Пример #1
0
 /**
  * Front-end display of widget.
  *
  * @see WP_Widget::widget()
  *
  * @param array $args Widget arguments.
  * @param array $instance Saved values from database.
  */
 public function widget($args, $instance)
 {
     $title = apply_filters('widget_title', $instance['title']);
     echo $args['before_widget'];
     if (!empty($title)) {
         echo $args['before_title'] . $title . $args['after_title'];
     }
     ciPrintSocialLinks();
     echo $args['after_widget'];
 }
Пример #2
0
                <img class="mb0 stsaff-photo" src="<?php 
        echo $staffMember['imgURL'];
        ?>
" alt="<?php 
        echo $staffMember['title'];
        ?>
" width="<?php 
        echo $staffMember['imgWidth'];
        ?>
" height="<?php 
        echo $staffMember['imgHeight'];
        ?>
" itemprop="image">
                </a><?php 
        if (!ciStaffSocialURLsAreEmpty($staffMember['socialURLs'])) {
            ciPrintSocialLinks($staffMember['socialURLs'], 'in-staff-list');
        }
        ?>
                </div><?php 
    }
    ?>
            <h2><a href="<?php 
    echo $staffMember['url'];
    ?>
" title="<?php 
    echo $staffMember['title'];
    ?>
" itemprop="name" class="staff-name"><?php 
    echo $staffMember['title'];
    ?>
</a></h2> <?php 
Пример #3
0
<?php

while (have_posts()) {
    the_post();
    ?>
  <?php 
    the_content();
    ?>
    <div> <?php 
    if (function_exists('ciPrintSocialLinks')) {
        ciPrintSocialLinks(ciGetStaffSocialURLs(), 'alignright mb20');
    }
    ?>
    </div>
  <?php 
    wp_link_pages(array('before' => '<nav class="pagination">', 'after' => '</nav>'));
}