Submit
Path:
~
/
home
/
getwphos
/
public_html
/
shellfish
/
wp-content
/
plugins
/
templaza-framework
/
shortcodes
/
social
/
tmpl
/
File Content:
social.php
<?php defined('TEMPLAZA_FRAMEWORK') or exit(); use TemPlazaFramework\Functions; use TemPlazaFramework\Templates; $options = Functions::get_theme_options(); $social_profiles = isset($options['social'])?$options['social']:''; if(isset($atts['text_align'])){ if($atts['text_align'] == 'center'){ $atts['tz_class'] .= ' uk-flex-center'; } if($atts['text_align'] == 'right'){ $atts['tz_class'] .= ' uk-flex-right'; } } if(!empty($social_profiles)){ $social_profiles = json_decode($social_profiles); $style = isset($options['social-style']) ? $options['social-style'] : 'inherit'; $social_gap = isset($options['social-gap']) ? 'uk-grid-' . $options['social-gap'] : ''; ?> <ul<?php echo isset($atts['tz_id'])?' id="'.esc_attr($atts['tz_id']).'"':''; ?> class="uk-child-width-auto uk-grid-collapse uk-grid <?php echo isset($atts['tz_class'])?esc_attr(trim($atts['tz_class'])):''; ?>" data-uk-grid> <?php foreach ($social_profiles as $social_profile) { $social_profile_link = $social_profile->link; if(isset($social_profile -> id)){ switch ($social_profile->id) { case 'whatsapp': $social_profile_link = 'https://wa.me/' . $social_profile->link; break; case 'telegram': $social_profile_link = 'https://t.me/' . $social_profile->link; break; case 'skype': $social_profile_link = 'skype:' . $social_profile->link . '?chat'; break; default: $social_profile_link = $social_profile->link; break; } } echo '<li><a style="color:' . ($style == 'inherit' ? 'inherit;' : esc_attr($social_profile->color) .' !important;') . '" href="' . esc_url($social_profile_link) . '" target="_blank" rel="noopener"><i class="' . esc_attr($social_profile->icon) . '"></i></a></li>'; } ?> </ul> <?php } ?>
Submit
FILE
FOLDER
Name
Size
Permission
Action
social.php
2012 bytes
0644
N4ST4R_ID | Naxtarrr