/** * Creates Digg button * * http://about.digg.com/button for different sizes ... Medium, Large, Compact, Icon * * @access public * @param string * @param string * @param string * @return string */ function social_digg($post_url, $post_title, $size = 'Icon') { $social_config = _get_social_config(); $url = social_url($social_config['bookmarks']['Digg'], $post_url, $post_title); $str = generate_social_js($social_config['digg']); $str .= '<a class="DiggThisButton Digg' . ucfirst($size) . '" href="' . $url . '"></a>'; return $str; }
<!-- Social network accounts --> <div class="anchor-footer__right-section mdl-mini-footer--right-section"> <ul class="mdl-mini-footer--link-list"> <?php foreach (array('facebook', 'twitter', 'github') as $network) { ?> <?php if (social_account($network)) { ?> <li class="mdl-mini-footer--social-btn anchor-social"> <a class="anchor-social__link anchor-social__link--<?php echo $network; ?> " href="<?php echo social_url($network); ?> "> </a> </li> <?php } ?> <?php } ?> </ul> </div> </footer> </section> </main> </div>