Example #1
0
 function widget($args, $instance)
 {
     extract($args);
     /* User-selected settings. */
     $title = apply_filters('widget_title', $instance['title']);
     /* Before widget (defined by themes). */
     echo $before_widget;
     /* Title of widget (before and after defined by themes). */
     if ($title) {
         echo $before_title . $title . $after_title;
     }
     /* Display name from widget settings. */
     if (is_front_page() || is_category() || is_archive() || is_tag() || is_month() || is_404() || is_search()) {
         $thePostID = 0;
     } else {
         global $wp_query;
         $thePostID = $wp_query->post->ID;
     }
     $c = new ShareAndFollow();
     $adminOptionsName = "ShareAndFollowAdminOptions";
     $c->_options = get_option($adminOptionsName);
     $args = array('page_id' => $thePostID, 'heading' => "2", 'share' => '', 'css_images' => $instance['css_images'], 'size' => $instance['size'], 'list_style' => $instance['style'], 'direction' => $instance['direction'], 'echo' => '0', 'email_body_text' => $instance['email_body_text']);
     $c->_allSites = ShareAndFollow::get_sites();
     $args2 = array();
     foreach ($c->_allSites as $item => $value) {
         if (strstr($value['service'], "share")) {
             if ($item != 'rss') {
                 $args2[] = $item;
             }
         }
     }
     foreach ($args2 as $item) {
         $args[$item] = $instance[$item];
         $args[$item . '_share_text'] = $instance[$item . '_share_text'];
         $args[$item . '_popup_text'] = $instance[$item . '_popup_text'];
     }
     social_links($args);
     // print_r($args);
     /*
      *  After widget (defined by themes). */
     echo $after_widget;
 }
<footer>
  <?php 
bloginfo('name');
?>
  <div class="social">
  <?php 
// social links, using the svgs inside the icons folder
// sample icons are from https://dribbble.com/shots/2089345-Nucleo-Free-Social-Icons
social_links('facebook');
social_links('twitter');
social_links('youtube');
social_links('instagram');
?>

  </div>

<?php 
wp_footer();
?>
</footer>

</div> <!-- close main container -->
</body>
</html>
Example #3
0
?>

<div class="memberInfo">
    <div class="violetWrapper">
        <div class="memberInfo__avatar">
            <?php 
echo show_avatar($current_member, 'avatar');
?>
        </div>
        <div class="memberInfo__nameWrapper">
            <div class="memberInfo__name"><?php 
echo $current_member->display_name;
?>
</div>
            <span class="memberInfo__social"><?php 
social_links($current_member, 'link--glowing');
?>
</span>
        </div>
    </div>
    <div class="whiteWrapper">
        <span class="memberInfo__status"><?php 
show_membership_status($current_member);
?>
</span>
        <?php 
if ($current_member->description) {
    ?>
            <span class="memberInfo__desc">
                <?php 
    echo $current_member->description;
    ?>
">
				<?php 
    echo show_avatar($curauth, 'membercardSmall__avatar');
    ?>
			</a>
			<div title="Liczba ukończonych projektów" class="membercardSmall__counter"><?php 
    echo get_number_of_projects($curauth, 'finished');
    ?>
</div>
		</div>
		<div>
			<h3 class="membercardSmall__name">
				<a class="link link--name noWrap" href="<?php 
    echo get_author_posts_url($curauth->ID, $curauth->user_nicename);
    ?>
"  rel="author"><?php 
    echo $curauth->display_name;
    ?>
</a>
			</h3>
		<div class="membercardSmall__icons">
			<?php 
    social_links($curauth, 'link--social');
    ?>
		</div>
		</div>

	</div>
	<?php 
}
		<div id="footer">
			<!-- Shell -->
			<div class="shell">
				<a href="#top" class="top-link">Zur&uuml;ck nach oben?</a>
				<!-- F Cols -->
				<div class="f-cols" id="f-cols">
					<ul>
						<?php 
dynamic_sidebar('footer-sidebar');
?>
					</ul>
					<div class="cl">&nbsp;</div>
				</div>
				<!-- End F Cols -->
				<?php 
social_links();
?>
				<!-- F Bottom -->
				<div class="f-bottom">
					<p class="copy"><?php 
echo get_option('copyright');
?>
</p>
					<div class="links">
						<?php 
$args = array('container' => false, 'theme_location' => 'footer-menu', 'fallback_cb' => 'wp_page_menu', 'after' => '&nbsp;|');
wp_nav_menu($args);
?>
 

					</div>
?>

<div class="memberInfo">
    <div class="violetWrapper">
        <div class="memberInfo__avatar">
            <?php 
echo show_avatar($current_member);
?>
        </div>
        <div class="memberInfo__nameWrapper">
            <div class="memberInfo__name"><?php 
echo $current_member->display_name;
?>
</div>
            <span class="memberInfo__social"><?php 
social_links($current_member);
?>
</span>
        </div>
    </div>
    <div class="whiteWrapper">
        <span class="memberInfo__status"><?php 
show_membership_status($current_member);
?>
</span>

    </div>
</div>


Example #7
0
 function show_page()
 {
     switch ($_GET['page']) {
         case 'homepage_settings':
             include_once dirname(__FILE__) . '/homepage_settings.php';
             homepage_settings();
             break;
         case 'manage_sidebars':
             include_once dirname(__FILE__) . '/manage_sidebars.php';
             manage_sidebars();
             break;
         case 'manage_users':
             include_once dirname(__FILE__) . '/manage_users.php';
             manage_users();
             break;
         case 'social_links':
             include_once dirname(__FILE__) . '/social_links.php';
             social_links();
             break;
         default:
             include_once dirname(__FILE__) . '/theme_options.php';
             theme_options();
             break;
     }
 }