Esempio n. 1
0
    echo $settings->title;
    ?>
</h1>
    <?php 
}
// Get posts
$posts = ctc_get_people($instance);
// Loop Posts
$i = 0;
foreach ($posts as $post) {
    setup_postdata($post);
    $i++;
    $ctc_person_position = ctc_person_data()['position'];
    $ctc_person_phone = ctc_person_data()['phone'];
    $ctc_person_email = ctc_person_data()['email'];
    $ctc_person_urls = ctc_person_data()['urls'];
    ?>

      <div class="fb-people--person">

        <?php 
    if ($instance['show_photo'] && has_post_thumbnail()) {
        ?>
          <a class="fb-people--person-photo" href="<?php 
        the_permalink();
        ?>
" title="<?php 
        the_title_attribute();
        ?>
">
            <?php 
Esempio n. 2
0
<?php

/**
 * The template part for displaying the post title.
 *
 * Learn more: http://codex.wordpress.org/Template_Hierarchy
 *
 * @package Rock
 */
// Get person data
$person_data = ctc_person_data();
$position = $person_data['position'];
$phone = $person_data['phone'];
$email = $person_data['email'];
$urls = $person_data['urls'];
?>
<header class="entry-header">
	<div class="entry-header-row">
		<div class="entry-header-column">

			<?php 
$tag = is_single() ? 'h1' : 'h2';
?>
			<<?php 
esc_attr_e($tag);
?>
 class="entry-title">
				<a href="<?php 
the_permalink();
?>
" rel="permalink"><?php 
Esempio n. 3
0
 */
// No direct access
if (!defined('ABSPATH')) {
    exit;
}
// HTML Before
echo $args['before_widget'];
// Title
$title = apply_filters('widget_title', $instance['title']);
if (!empty($title)) {
    echo $args['before_title'] . $title . $args['after_title'];
}
// Get posts
$posts = $this->ctc_get_posts();
// widget's default query according to field values
// Loop Posts
$i = 0;
foreach ($posts as $post) {
    setup_postdata($post);
    $i++;
    // Get people meta data
    // $position
    extract(ctc_person_data());
    ?>

	<article <?php 
    post_class('ctc-widget-entry ctc-people-widget-entry ctc-clearfix' . (1 == $i ? ' ctc-widget-entry-first' : ''));
    ?>
>
		<header class="ctc-clearfix">
			<?php