Skip to content

Commit

Permalink
feat: add telegram link
Browse files Browse the repository at this point in the history
  • Loading branch information
astagi authored Feb 21, 2023
1 parent 44a507d commit 3a120e5
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
<?php if($instagram = dsi_get_option( "instagram", "socials" )) :?><a href="<?php echo $instagram; ?>" aria-label="instagram" title="vai alla pagina instagram"><svg class="icon it-social-instagram"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#it-social-instagram"></use></svg></a><?php endif; ?>
<?php if($twitter = dsi_get_option( "twitter", "socials" )) :?><a href="<?php echo $twitter; ?>" aria-label="twitter" title="vai alla pagina twitter"><svg class="icon it-social-twitter"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#it-social-twitter"></use></svg></a><?php endif; ?>
<?php if($linkedin = dsi_get_option( "linkedin", "socials" )) :?><a href="<?php echo $linkedin; ?>" aria-label="linkedin" title="vai alla pagina linkedin"><svg class="icon it-social-linkedin"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#it-social-linkedin"></use></svg></a><?php endif; ?>
<?php if($telegram = dsi_get_option( "telegram", "socials" )) :?><a href="<?php echo $telegram; ?>" aria-label="telegram" title="vai su Telegram"><svg class="icon it-social-telegram"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#it-social-telegram"></use></svg></a><?php endif; ?>
</div><!-- /footer-social-wrapper -->
</div><!-- /gooter-social -->
<?php endif ?>
Expand Down
1 change: 1 addition & 0 deletions header.php
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@
<?php if($instagram = dsi_get_option( "instagram", "socials" )) :?><a href="<?php echo $instagram; ?>" aria-label="instagram" title="vai alla pagina instagram"><svg class="icon it-social-instagram"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#it-social-instagram"></use></svg></a><?php endif; ?>
<?php if($twitter = dsi_get_option( "twitter", "socials" )) :?><a href="<?php echo $twitter; ?>" aria-label="twitter" title="vai alla pagina twitter"><svg class="icon it-social-twitter"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#it-social-twitter"></use></svg></a><?php endif; ?>
<?php if($linkedin = dsi_get_option( "linkedin", "socials" )) :?><a href="<?php echo $linkedin; ?>" aria-label="linkedin" title="vai alla pagina linkedin"><svg class="icon it-social-linkedin"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#it-social-linkedin"></use></svg></a><?php endif; ?>
<?php if($telegram = dsi_get_option( "telegram", "socials" )) :?><a href="<?php echo $telegram; ?>" aria-label="telegram" title="vai su Telegram"><svg class="icon it-social-telegram"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#it-social-telegram"></use></svg></a><?php endif; ?>
</div><!-- /header-social-wrapper -->
</div><!-- /header-social -->
<?php endif ?>
Expand Down
6 changes: 6 additions & 0 deletions inc/admin/options.php
Original file line number Diff line number Diff line change
Expand Up @@ -1270,6 +1270,12 @@ function dsi_register_main_options_metabox() {
'type' => 'text_url',
) );

$social_options->add_field( array(
'id' => $prefix . 'telegram',
'name' => 'Telegram',
'type' => 'text_url',
) );


// pagina opzioni
/**
Expand Down
3 changes: 3 additions & 0 deletions template-parts/common/svg.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,9 @@
d="M24.062,10.087c-2.559,-0.087 -4.97,1.237 -6.268,3.445l0,-2.877l-6.447,0l0,21.31l6.624,0l0,-10.566c0,-2.789 0.515,-5.488 3.978,-5.488c3.463,0 3.427,3.197 3.427,5.665l0,10.389l6.624,0l0,-11.721c0,-5.736 -1.225,-10.157 -7.938,-10.157Zm-20.191,-10.087c-0.006,0 -0.012,0 -0.017,0c-2.114,0 -3.854,1.74 -3.854,3.854c0,2.113 1.74,3.853 3.854,3.853c2.107,0 3.843,-1.728 3.853,-3.836c0,-0.012 0,-0.023 0,-0.035c0,-2.104 -1.731,-3.836 -3.836,-3.836c0,0 0,0 0,0Zm-3.321,10.655l0,21.31l6.589,0l0,-21.31l-6.589,0Zm23.512,-0.533c-2.552,-0.094 -4.961,1.216 -6.268,3.41l0,-2.877l-6.447,0l0,21.31l6.624,0l0,-10.566c0,-2.789 0.515,-5.488 3.978,-5.488c3.463,0 3.427,3.197 3.427,5.665l0,10.389l6.624,0l0,-11.721c0,-5.736 -1.225,-10.157 -7.938,-10.157l0,0.035Zm-23.512,21.843l6.589,0l0,-21.31l-6.589,0l0,21.31Zm3.321,-31.965c-0.006,0 -0.012,0 -0.017,0c-2.114,0 -3.854,1.74 -3.854,3.854c0,2.113 1.74,3.853 3.854,3.853c2.107,0 3.843,-1.728 3.853,-3.836c0,-0.012 0,-0.023 0,-0.035c0,-2.104 -1.731,-3.836 -3.836,-3.836c0,0 0,0 0,0Z"
style="fill-rule:nonzero;" />
</symbol>
<symbol id="it-social-telegram" viewBox="0 0 16 16">
<path d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zM8.287 5.906c-.778.324-2.334.994-4.666 2.01-.378.15-.577.298-.595.442-.03.243.275.339.69.47l.175.055c.408.133.958.288 1.243.294.26.006.549-.1.868-.32 2.179-1.471 3.304-2.214 3.374-2.23.05-.012.12-.026.166.016.047.041.042.12.037.141-.03.129-1.227 1.241-1.846 1.817-.193.18-.33.307-.358.336a8.154 8.154 0 0 1-.188.186c-.38.366-.664.64.015 1.088.327.216.589.393.85.571.284.194.568.387.936.629.093.06.183.125.27.187.331.236.63.448.997.414.214-.02.435-.22.547-.82.265-1.417.786-4.486.906-5.751a1.426 1.426 0 0 0-.013-.315.337.337 0 0 0-.114-.217.526.526 0 0 0-.31-.093c-.3.005-.763.166-2.984 1.09z"/>
</symbol>
<symbol id="it-pdf-document" viewBox="0 0 32 32">
<rect x="0" y="0.035" width="32" height="32" style="fill:none;" />
<path
Expand Down

0 comments on commit 3a120e5

Please sign in to comment.