function pl_social_links() { $target = "target='_blank'"; ob_start(); ?> <div class="sl-links"> <?php foreach (pl_social_icons() as $icon) { $url = pl_setting('sl_' . $icon) ? pl_setting('sl_' . $icon) : false; if ($url) { printf('<a href="%s" class="sl-link" %s><i class="icon icon-%s"></i></a>', $url, $target, $icon); } } if (!pl_setting('sl_web_disable')) { ?> <span class="sl-web-links"><a class="sl-link" title="CSS3 Valid"><i class="icon icon-css3"></i></a><a class="sl-link" title="HTML5 Valid"><i class="icon icon-html5"></i></a><a class="sl-link" href="http://www.pagelines.com" title="Built with PageLines DMS"><i class="icon icon-pagelines"></i></a> </span> <?php } ?> </div> <?php return ob_get_clean(); }
function section_template($location = false) { $icons = pl_social_icons(); $target = "target='_blank'"; $text = $this->opt('sl_text') ? $this->opt('sl_text') : sprintf('© %s %s', date("Y"), get_bloginfo('name')); $align = $this->opt('sl_align') ? $this->opt('sl_align') : 'sl-links-right'; $menu = $this->opt('menu') ? $this->opt('menu') : false; ?> <div class="socialinks-wrap fix <?php echo $align; ?> "> <?php $menu_args = array('theme_location' => 'socialinks_nav', 'menu' => $menu, 'menu_class' => 'inline-list pl-nav sl-nav', 'respond' => false); $nav = $menu ? pl_navigation($menu_args) : ''; echo sprintf('<div class="sl-text"><span class="sl-copy">%s</span> %s</div>', $text, $nav); echo pl_social_links(); ?> </div> <?php }