mirror of
https://github.com/KevinMidboe/rohnenedre.git
synced 2026-02-13 21:09:19 +00:00
Initial commit. State 04.2021.
This commit is contained in:
37
wp-content/themes/Divi/includes/social_icons.php
Normal file
37
wp-content/themes/Divi/includes/social_icons.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<ul class="et-social-icons">
|
||||
|
||||
<?php if ( 'on' === et_get_option( 'divi_show_facebook_icon', 'on' ) ) : ?>
|
||||
<li class="et-social-icon et-social-facebook">
|
||||
<a href="<?php echo esc_url( et_get_option( 'divi_facebook_url', '#' ) ); ?>" class="icon">
|
||||
<span><?php esc_html_e( 'Facebook', 'Divi' ); ?></span>
|
||||
</a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php if ( 'on' === et_get_option( 'divi_show_twitter_icon', 'on' ) ) : ?>
|
||||
<li class="et-social-icon et-social-twitter">
|
||||
<a href="<?php echo esc_url( et_get_option( 'divi_twitter_url', '#' ) ); ?>" class="icon">
|
||||
<span><?php esc_html_e( 'Twitter', 'Divi' ); ?></span>
|
||||
</a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php if ( 'on' === et_get_option( 'divi_show_google_icon', 'on' ) ) : ?>
|
||||
<li class="et-social-icon et-social-google-plus">
|
||||
<a href="<?php echo esc_url( et_get_option( 'divi_google_url', '#' ) ); ?>" class="icon">
|
||||
<span><?php esc_html_e( 'Google', 'Divi' ); ?></span>
|
||||
</a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
<?php if ( 'on' === et_get_option( 'divi_show_rss_icon', 'on' ) ) : ?>
|
||||
<?php
|
||||
$et_rss_url = '' !== et_get_option( 'divi_rss_url' )
|
||||
? et_get_option( 'divi_rss_url' )
|
||||
: get_bloginfo( 'rss2_url' );
|
||||
?>
|
||||
<li class="et-social-icon et-social-rss">
|
||||
<a href="<?php echo esc_url( $et_rss_url ); ?>" class="icon">
|
||||
<span><?php esc_html_e( 'RSS', 'Divi' ); ?></span>
|
||||
</a>
|
||||
</li>
|
||||
<?php endif; ?>
|
||||
|
||||
</ul>
|
||||
Reference in New Issue
Block a user