コード例 #1
0
/**
 * Create a query to show all leads
 */
function wcmpls_show_leads()
{
    $leads = new WP_Query(array('post_type' => 'employees', 'posts_per_page' => 100, 'tax_query' => array(array('taxonomy' => 'positions', 'field' => 'slug', 'terms' => array('developer-lead', 'design-lead', 'support-lead')))));
    if ($leads->have_posts()) {
        ?>
		<ul>
			<?php 
        while ($leads->have_posts()) {
            $leads->the_post();
            ?>
				<li><?php 
            the_title();
            ?>
 - <?php 
            the_terms(get_the_ID(), 'positions');
            ?>
</li>
			<?php 
        }
        wp_reset_postdata();
        ?>
		</ul>
	<?php 
    }
}
コード例 #2
0
 /**
  * Define our custom columns shown in admin.
  * @param  string $column
  */
 public function custom_columns($column, $post_id)
 {
     switch ($column) {
         case 'sp_league':
             echo get_the_terms($post_id, 'sp_league') ? the_terms($post_id, 'sp_league') : __('All', 'prosports');
             break;
         case 'sp_season':
             echo get_the_terms($post_id, 'sp_season') ? the_terms($post_id, 'sp_season') : __('All', 'prosports');
             break;
         case 'sp_team':
             $teams = (array) get_post_meta($post_id, 'sp_team', false);
             $teams = array_filter($teams);
             if (empty($teams)) {
                 _e('All', 'prosports');
             } else {
                 foreach ($teams as $team_id) {
                     if (!$team_id) {
                         continue;
                     }
                     $team = get_post($team_id);
                     if ($team) {
                         echo $team->post_title . '<br>';
                     }
                 }
             }
             break;
     }
 }
コード例 #3
0
 /**
  * Define our custom columns shown in admin.
  * @param  string $column
  */
 public function custom_columns($column, $post_id)
 {
     switch ($column) {
         case 'sp_player':
             $players = array_filter(get_post_meta($post_id, 'sp_player'));
             echo sizeof($players);
             break;
         case 'sp_league':
             echo get_the_terms($post_id, 'sp_league') ? the_terms($post_id, 'sp_league') : __('All', 'prosports');
             break;
         case 'sp_season':
             echo get_the_terms($post_id, 'sp_season') ? the_terms($post_id, 'sp_season') : __('All', 'prosports');
             break;
         case 'sp_team':
             $teams = (array) get_post_meta($post_id, 'sp_team', false);
             $teams = array_filter($teams);
             if (empty($teams)) {
                 echo __('All', 'prosports');
             } else {
                 foreach ($teams as $team_id) {
                     if (!$team_id) {
                         continue;
                     }
                     $team = get_post($team_id);
                     if ($team) {
                         echo $team->post_title . '<br>';
                     }
                 }
             }
             break;
         case 'sp_layout':
             echo sp_array_value(SP()->formats->list, get_post_meta($post_id, 'sp_format', true), '&mdash;');
             break;
     }
 }
コード例 #4
0
 /**
  * Define our custom columns shown in admin.
  * @param  string $column
  */
 public function custom_columns($column, $post_id)
 {
     switch ($column) {
         case 'sp_league':
             echo get_the_terms($post_id, 'sp_league') ? the_terms($post_id, 'sp_league') : __('All', 'prosports');
             break;
         case 'sp_season':
             echo get_the_terms($post_id, 'sp_season') ? the_terms($post_id, 'sp_season') : __('All', 'prosports');
             break;
         case 'sp_rounds':
             echo get_post_meta($post_id, 'sp_rounds', true);
             break;
     }
 }
コード例 #5
0
 /**
  * Define our custom columns shown in admin.
  * @param  string $column
  */
 public function custom_columns($column, $post_id)
 {
     switch ($column) {
         case 'sp_league':
             echo get_the_terms($post_id, 'sp_league') ? the_terms($post_id, 'sp_league') : '&mdash;';
             break;
         case 'sp_season':
             echo get_the_terms($post_id, 'sp_season') ? the_terms($post_id, 'sp_season') : '&mdash;';
             break;
         case 'sp_team':
             $teams = array_filter(get_post_meta($post_id, 'sp_team'));
             echo sizeof($teams);
             break;
     }
 }
コード例 #6
0
ファイル: term.php プロジェクト: skylarkcob/hocwp-projects
function hocwp_the_terms($args = array())
{
    $terms = hocwp_get_value_by_key($args, 'terms');
    $before = hocwp_get_value_by_key($args, 'before');
    $sep = hocwp_get_value_by_key($args, 'separator', ', ');
    $after = hocwp_get_value_by_key($args, 'after');
    if (hocwp_array_has_value($terms)) {
        echo $before;
        $html = '';
        foreach ($terms as $term) {
            $html .= hocwp_get_term_link($term) . $sep;
        }
        $html = trim($html, $sep);
        echo $html;
        echo $after;
    } else {
        $post_id = hocwp_get_value_by_key($args, 'post_id', get_the_ID());
        $taxonomy = hocwp_get_value_by_key($args, 'taxonomy');
        $taxonomies = hocwp_get_value_by_key($args, 'taxonomies');
        if (!is_array($taxonomies)) {
            $taxonomies = array();
        }
        if (!empty($taxonomy) && !in_array($taxonomy, $taxonomies)) {
            $taxonomies[] = $taxonomy;
        }
        $has_term = false;
        foreach ($taxonomies as $taxonomy) {
            if (has_term('', $taxonomy, $post_id)) {
                $has_term = true;
                break;
            }
        }
        if (!$has_term) {
            return;
        }
        echo $before;
        ob_start();
        foreach ($taxonomies as $taxonomy) {
            the_terms($post_id, $taxonomy, '', $sep, '');
            echo $sep;
        }
        $html = ob_get_clean();
        $html = trim($html, $sep);
        echo $html;
        echo $after;
    }
}
コード例 #7
0
 /**
  * Define our custom columns shown in admin.
  * @param  string $column
  */
 public function custom_columns($column, $post_id)
 {
     switch ($column) {
         case 'sp_league':
             echo get_the_terms($post_id, 'sp_league') ? the_terms($post_id, 'sp_league') : __('All', 'sportspress');
             break;
         case 'sp_season':
             echo get_the_terms($post_id, 'sp_season') ? the_terms($post_id, 'sp_season') : __('All', 'sportspress');
             break;
         case 'sp_rounds':
             echo get_post_meta($post_id, 'sp_rounds', true);
             break;
         case 'sp_layout':
             echo sp_array_value(SP()->formats->tournament, get_post_meta($post_id, 'sp_format', true), '&mdash;');
             break;
     }
 }
コード例 #8
0
function list_categories_from_current_custom_post($customTax)
{
    global $post;
    $customCats = get_the_terms('', $customTax);
    if ($customCats) {
        ?>
    	
      <h5>Categories</h5>

      <?php 
        the_terms($post->ID, "service_type", '', ', ', ' ');
        ?>

      <?php 
        //echo '<ul>';
        //echo get_the_term_list( $post->ID, $customTax, '<li>', ',</li><li>', '</li>' );
        //echo '</ul>';
    }
}
コード例 #9
0
 /**
  * Define our custom columns shown in admin.
  * @param  string $column
  */
 public function custom_columns($column, $post_id)
 {
     switch ($column) {
         case 'sp_league':
             echo get_the_terms($post_id, 'sp_league') ? the_terms($post_id, 'sp_league') : __('All', 'prosports');
             break;
         case 'sp_season':
             echo get_the_terms($post_id, 'sp_season') ? the_terms($post_id, 'sp_season') : __('All', 'prosports');
             break;
         case 'sp_venue':
             echo get_the_terms($post_id, 'sp_venue') ? the_terms($post_id, 'sp_venue') : __('All', 'prosports');
             break;
         case 'sp_team':
             $teams = (array) get_post_meta($post_id, 'sp_team', false);
             $teams = array_filter($teams);
             if (empty($teams)) {
                 echo __('All', 'prosports');
             } else {
                 $current_team = get_post_meta($post_id, 'sp_current_team', true);
                 foreach ($teams as $team_id) {
                     if (!$team_id) {
                         continue;
                     }
                     $team = get_post($team_id);
                     if ($team) {
                         echo $team->post_title;
                         if ($team_id == $current_team) {
                             echo '<span class="dashicons dashicons-yes" title="' . __('Current Team', 'prosports') . '"></span>';
                         }
                         echo '<br>';
                     }
                 }
             }
             break;
         case 'sp_events':
             $calendar = new SP_Calendar($post_id);
             echo sizeof($calendar->data());
             break;
         case 'sp_layout':
             echo sp_array_value(SP()->formats->calendar, get_post_meta($post_id, 'sp_format', true), '&mdash;');
             break;
     }
 }
コード例 #10
0
 /**
  * Define our custom columns shown in admin.
  * @param  string $column
  */
 public function custom_columns($column, $post_id)
 {
     switch ($column) {
         case 'sp_league':
             echo get_the_terms($post_id, 'sp_league') ? the_terms($post_id, 'sp_league') : '&mdash;';
             break;
         case 'sp_season':
             echo get_the_terms($post_id, 'sp_season') ? the_terms($post_id, 'sp_season') : '&mdash;';
             break;
         case 'sp_team':
             $select = get_post_meta($post_id, 'sp_select', true);
             if ('manual' == $select) {
                 $teams = array_filter(get_post_meta($post_id, 'sp_team'));
                 echo sizeof($teams);
             } else {
                 _e('Auto', 'sportspress');
             }
             break;
     }
 }
 public function manage_columns($column_name, $id)
 {
     global $wpdb;
     switch ($column_name) {
         case 'client-type':
             $transport_type = get_post_meta($id, 'syn_transport_type', true);
             try {
                 $client = Syndication_Client_Factory::get_client($transport_type, $id);
                 $client_data = $client->get_client_data();
                 echo esc_html(sprintf('%s (%s)', $client_data['name'], array_shift($client_data['modes'])));
             } catch (Exception $e) {
                 printf(__('Unknown (%s)', 'push-syndication'), esc_html($transport_type));
             }
             break;
         case 'syn_sitegroup':
             the_terms($id, 'syn_sitegroup', '', ', ', '');
             break;
         default:
             break;
     }
 }
コード例 #12
0
 /**
  * Define our custom columns shown in admin.
  * @param  string $column
  */
 public function custom_columns($column, $post_id)
 {
     switch ($column) {
         case 'sp_icon':
             echo has_post_thumbnail($post_id) ? edit_post_link(get_the_post_thumbnail($post_id, 'prosports-fit-mini'), '', '', $post_id) : '';
             break;
         case 'sp_url':
             echo sp_get_url($post_id);
             break;
         case 'sp_abbreviation':
             $abbreviation = get_post_meta($post_id, 'sp_abbreviation', true);
             echo $abbreviation ? $abbreviation : '&mdash;';
             break;
         case 'sp_league':
             echo get_the_terms($post_id, 'sp_league') ? the_terms($post_id, 'sp_league') : '&mdash;';
             break;
         case 'sp_season':
             echo get_the_terms($post_id, 'sp_season') ? the_terms($post_id, 'sp_season') : '&mdash;';
             break;
     }
 }
コード例 #13
0
 public function manage_columns($column_name, $id)
 {
     global $client_manager;
     switch ($column_name) {
         // Output the client label
         case 'client-type':
             // Fetch the site transport type
             $transport_type = get_post_meta($id, 'syn_transport_type', true);
             // Fetch the corresponding client
             $pull_client = $client_manager->get_pull_or_push_client($transport_type);
             // Output the client name
             if (isset($pull_client['label'])) {
                 echo esc_html($pull_client['label']);
             }
             break;
         case 'syn_sitegroup':
             the_terms($id, 'syn_sitegroup', '', ', ', '');
             break;
         default:
             break;
     }
 }
コード例 #14
0
 /**
  * Prints HTML with meta information for the categories, tags and comments.
  */
 function aaron_portfolio_footer()
 {
     if (get_theme_mod('aaron_hide_meta') == "") {
         echo '<footer class="entry-footer">';
         global $post;
         echo '<a href="' . esc_url(home_url('/portfolio/')) . '"><b>' . __('Portfolio', 'aaron') . '</b></a><br/><br/>';
         //the_terms( $id, $taxonomy, $before, $sep, $after );
         echo the_terms($post->ID, 'jetpack-portfolio-type', '<span class="jetpack-portfolio-type"><i aria-hidden="true"></i>' . __('Project Type: ', 'aaron'), ', ', '</span>');
         echo the_terms($post->ID, 'jetpack-portfolio-tag', '<span class="tags-links"><i aria-hidden="true"></i>' . __('Project Tags: ', 'aaron'), ', ', '</span>');
         /* translators: % is the post title */
         edit_post_link(sprintf(__('Edit %s', 'aaron'), get_the_title()), '<span class="edit-link"><i aria-hidden="true"></i>', '</span>');
         /* Display jetpack's share if it's active*/
         if (function_exists('sharing_display')) {
             echo sharing_display();
         }
         /* Display jetpack's like  if it's active */
         if (class_exists('Jetpack_Likes')) {
             $aaron_custom_likes = new Jetpack_Likes();
             echo $aaron_custom_likes->post_likes('');
         }
         echo '</footer><!-- .entry-footer -->';
     }
 }
コード例 #15
0
function pr_info_bar_render()
{
    global $smof_data, $post;
    $show_info = 1;
    if (is_single()) {
        $show_info = $smof_data['show_info_post'] ? $show_info : 0;
    } else {
        $show_info = $smof_data['show_info_blog'] ? $show_info : 0;
    }
    ob_start();
    ?>
        <?php 
    if ($show_info) {
        ?>
        <div class="blog-info">
            <time class="publish-date" datetime="<?php 
        echo get_the_date('Y-m-j') . ' ' . get_the_time('H:i:s');
        ?>
" pubdate="pubdate">
                <?php 
        _e('Published on', THEMENAME);
        ?>
 <?php 
        echo get_the_date('l, j F Y') . ' ' . get_the_time('H:i');
        ?>
            </time>
            <span class="category-name"><?php 
        the_terms(get_the_ID(), 'category', __('Category: ', THEMENAME), ', ');
        ?>
</span>
        </div>
        <?php 
    }
    ?>
        <?php 
    return ob_get_clean();
}
コード例 #16
0
ファイル: single-content.php プロジェクト: sefrijn/metabolic
    ?>
"><?php 
    echo $title;
    ?>
</a><?php 
    echo $role;
    ?>
</span><br>
			<span class="categories">
				Categories: 
				<?php 
    $categories = get_the_category();
    $i = 0;
    $cats = array('mb_knowledge_cat', 'mb_in-the-news_cat');
    if ($categories[0] == "") {
        the_terms(get_the_ID(), $cats);
    } else {
        foreach ($categories as $category) {
            if ($i > 0) {
                echo ', ';
            }
            $i++;
            echo '<a href="' . get_category_link($category->term_id) . '">' . $category->name . '</a>';
        }
    }
    ?>
				
			</span>
		</div>
		<div class="content">
			<?php 
コード例 #17
0
<?php 
get_template_part('tpls/header', 'menu');
?>

	<div class="container">
	
		<!-- project header -->
		<div class="project_header">
			
			<div class="ten columns alpha project_title">
				<h1><?php 
the_title();
?>
</h1>
				<h2><?php 
the_terms(get_the_ID(), 'portfolio-category');
?>
</h2>
			</div>
			
			<div class="six columns prev_next">
				
				<a href="<?php 
echo $prev_post_link;
?>
" class="next"><span><?php 
_e('上一个项目', TD);
?>
</span></a>
				<a href="<?php 
echo $next_post_link;
コード例 #18
0
</h3>
									<ul class="blog_meta cf">
										<li class="by"><span class="meta_icon" aria-hidden="true" data-icon="&#x23;"></span><?php 
        the_author();
        ?>
 </li>
										<li class="on"><span class="meta_icon" aria-hidden="true" data-icon="&#x25;"></span><?php 
        the_time('j M Y');
        ?>
</li>
										<li class="in"><span class="meta_icon" aria-hidden="true" data-icon="&#x2c;"></span><?php 
        the_terms($post->ID, 'community-categories', '', '', '');
        ?>
</li>
										<li class="tags"><span class="meta_icon" aria-hidden="true" data-icon="&#x2e;"></span><?php 
        the_terms($post->ID, 'community-key-words', '', ', ', '');
        ?>
</li>
									</ul>
								</hgroup>
								

								<div class="art_txt">
								<?php 
        the_content();
        ?>
								</div>

								<?php 
        include_once "likes.php";
        ?>
コード例 #19
0
                                </div><!-- /postMeta -->

                                <div class="postContent">
                                    <h2 class="postTitle"><a href="<?php 
        the_permalink();
        ?>
"><?php 
        the_title();
        ?>
</a></h2>
                                    <div class="post-date"><span class="fa-calendar"></span> <?php 
        the_time('F j, Y');
        ?>
</div>
                                    <div class="post-cats"><?php 
        the_terms($post->ID, 'news_category', '', ', ');
        ?>
</div>


                                    <!-- postExcerpt -->
                                    <!-- Defaults to 55 chars, strips out all HTML except <a>, <p>, and <strong>. Can be modified in oms-theme-functions.php. -->
                                    <div class="storyContent posts postExcerpt">
                                        <?php 
        the_excerpt();
        ?>
                                    </div><!-- /postExcerpt -->
                                </div>

                            </div><!-- /postExcerptsContainer -->
コード例 #20
0
        ?>
</a></h3>
                                <?php 
        if (get_the_terms($post->ID, 'portfolio-tags') != false) {
            ?>
                                    <div class="tztag">
                                        TAG: <?php 
            the_terms($post->ID, 'portfolio-tags', '', ',');
            ?>
                                    </div>
                                <?php 
        }
        ?>
                                <div class="tzcat">
                                    CATEGORY : <?php 
        the_terms($post->ID, 'portfolio-category', '', ',');
        ?>
                                </div>
                                <div class="description">
                                    <?php 
        the_excerpt();
        ?>
                                </div>
                            </div>
                        </div>
                    <?php 
    }
    // end while have posts
}
// end if have posts
wp_reset_postdata();
コード例 #21
0
				<?php 
        render_wpfc_sermon_excerpt();
        ?>
			</div>
			<div style="clear:both;"></div>
			<?php 
        if ($smof_data['post_meta'] && (!$smof_data['post_meta_author'] || !$smof_data['post_meta_date'] || !$smof_data['post_meta_cats'] || !$smof_data['post_meta_comments'] || !$smof_data['post_meta_tags'])) {
            ?>
			<div class="meta-info">
				<div class="alignleft vcard">
					<?php 
            if (!$smof_data['post_meta_author']) {
                echo __('By', 'Avada');
                ?>
 <span class="fn"><?php 
                echo the_terms($post->ID, 'wpfc_preacher', '', ', ', ' ');
                ?>
</span><span class="sep">|</span><?php 
            }
            if (!$smof_data['post_meta_date']) {
                ?>
<span class="updated" style="display:none;"><?php 
                the_modified_time('c');
                ?>
</span><span class="published"><?php 
                the_time($smof_data['date_format']);
                ?>
</span><span class="sep">|</span><?php 
            }
            if (!$smof_data['post_meta_cats']) {
                if (!$smof_data['post_meta_tags']) {
コード例 #22
0
    /**
     * Admin edit table
     */
    public static function table($data = array(), $checked = array())
    {
        ?>
		<div class="sp-data-table-container">
			<table class="widefat sp-data-table sp-team-staff-table sp-select-all-range">
				<thead>
					<tr>
						<th class="check-column"><input class="sp-select-all" type="checkbox"></th>
						<th class="column-staff">
							<?php 
        _e('Staff', 'sportspress');
        ?>
						</th>
						<th class="column-role">
							<?php 
        _e('Job', 'sportspress');
        ?>
						</th>
						<th class="column-league">
							<?php 
        _e('Competition', 'sportspress');
        ?>
						</th>
						<th class="column-season">
							<?php 
        _e('Season', 'sportspress');
        ?>
						</th>
					</tr>
				</thead>
				<tbody>
					<?php 
        if (is_array($data)) {
            if (sizeof($data) > 0) {
                $i = 0;
                foreach ($data as $staff) {
                    $role = get_post_meta($staff->ID, 'sp_role', true);
                    ?>
								<tr class="sp-row sp-post<?php 
                    if ($i % 2 == 0) {
                        echo ' alternate';
                    }
                    ?>
">
									<td>
										<input type="checkbox" name="sp_staff[]" id="sp_staff_<?php 
                    echo $staff->ID;
                    ?>
" value="<?php 
                    echo $staff->ID;
                    ?>
" <?php 
                    checked(in_array($staff->ID, $checked));
                    ?>
>
									</td>
									<td>
										<a href="<?php 
                    echo get_edit_post_link($staff->ID);
                    ?>
">
											<?php 
                    echo $staff->post_title;
                    ?>
										</a>
									</td>
									<td><?php 
                    echo get_the_terms($staff->ID, 'sp_role') ? the_terms($staff->ID, 'sp_role') : '&mdash;';
                    ?>
</td>
									<td><?php 
                    echo get_the_terms($staff->ID, 'sp_league') ? the_terms($staff->ID, 'sp_league') : '&mdash;';
                    ?>
</td>
									<td><?php 
                    echo get_the_terms($staff->ID, 'sp_season') ? the_terms($staff->ID, 'sp_season') : '&mdash;';
                    ?>
</td>
								</tr>
								<?php 
                    $i++;
                }
            } else {
                ?>
							<tr class="sp-row alternate">
								<td colspan="4">
									<?php 
                _e('No results found.', 'sportspress');
                ?>
								</td>
							</tr>
							<?php 
            }
        } else {
            ?>
					<tr class="sp-row alternate">
						<td colspan="4">
							<?php 
            printf(__('Select %s', 'sportspress'), __('Details', 'sportspress'));
            ?>
						</td>
					</tr>
					<?php 
        }
        ?>
				</tbody>
			</table>
		</div>
		<?php 
    }
コード例 #23
0
            }
        }
    }
}
?>
			<?php 
echo $title;
?>
		</h3>
		<?php 
if (isset($show_venue) && $show_venue) {
    $venues = get_the_terms($post->ID, 'sp_venue');
    if ($venues) {
        ?>
				<h5 class="event-venue"><?php 
        the_terms($post->ID, 'sp_venue');
        ?>
</h5>
				<?php 
    }
}
if (isset($show_league) && $show_league) {
    $leagues = get_the_terms($post->ID, 'sp_league');
    if ($leagues) {
        foreach ($leagues as $league) {
            $term = get_term($league->term_id, 'sp_league');
            ?>
					<h5 class="event-league"><?php 
            echo $term->name;
            ?>
</h5>
コード例 #24
0
			<p id="history" class="description"><em>Sensitive Skin</em> features art, writing and music, without rules or boundaries, by both famous and emerging artists, writers, and musicians from around the globe.


		
		<p class="description"><em>Sensitive Skin</em> began as a print venture from New York’s Lower East Side in the 1990s, and published such literary luminaries as Richard Hell, Steve Cannon, Jack Micheline, Penny Arcade, John Farris, Eileen Myles, Lynne Tillman, Patrick McGrath, Bob Holman, Maggie Estep, Emily XYZ, Herbert Huncke and Joel Rose, with art by Andres Serrano, Ari Marcopolis, Andrew Castrucci and James Romberger, to name but a few….

		<p id="bottom" class="description"><em>Sensitive Skin</em> was reborn in the summer of 2010, and has since presented original work by such esteemed writers, artists and musicians as Samuel R. Delaney, John Lurie, Gary Indiana, Sharon Mesmer, Charles Gatewood, Gretchen Faust, Alex Katz, Peter Blauner, Hal Sirowitz, Arthur Nersesian, Maggie Estep, Fred Frith, Evelyn Bencicova, Thurston Moore, Iggy Pop, Winston Smith, Sue Rynski, Steve Dalachinsky, Marty Thau, Justine Frischmann, Craig Clevenger, Darius James, Stewart Home, Michael A. Gonzales, Drew Hubner, Jonathan Shaw, Melissa Febos, Stephen Lack, Max Blagg, Patricia Eakins, Díre McCain, Rob Roberge, Kurt Wolf, Erika Schickel, John S. Hall, Kevin Rafferty, Elliott Sharp, Mike Hudson, James Greer, Ruby Ray, William S. Burroughs and Allen Ginsberg.

		<p class="description">
		<!--<?php 
the_terms($post->ID, 'download_tag', 'Tags: ', ', ', '');
?>
-->
	</br>
		<!--<?php 
the_terms($post->ID, 'download_category', 'Categories: ', ', ', '');
?>
-->
	</p>
		<?php 
wp_link_pages(array('before' => '<div class="page-links">' . esc_html__('Pages:', 'sensitive-skin-bootstrap'), 'after' => '</div>'));
?>
	</div><!-- .entry-content -->

	<footer class="entry-footer">
		<?php 
sensitive_skin_bootstrap_entry_footer();
?>
	</footer><!-- .entry-footer -->
</article><!-- #post-## -->
コード例 #25
0
 $portfolioDate = get_post_meta($post->ID, 'tz_portfolio_date', true);
 $portfolioInfo = get_post_meta($post->ID, 'tz_portfolio_info', true);
 $portfolioURL = get_post_meta($post->ID, 'tz_portfolio_url', true);
 $portfolioMeta = of_get_option('folio_meta');
 if ($portfolioMeta == "yes") {
     $post_type = get_post_type($post);
     if (has_term('', $post_type . '_category', $post->ID) || has_term('', $post_type . '_tag', $post->ID)) {
         echo '<div class="portfolio-meta">';
         if (has_term('', $post_type . '_category', $post->ID)) {
             echo '<span class="post_category"><i class="icon-bookmark"></i>';
             echo the_terms($post->ID, $post_type . '_category', '', ', ');
             echo '</span>';
         }
         if (has_term('', $post_type . '_tag', $post->ID)) {
             echo '<span class="post_tag"><i class="icon-tag"></i>';
             echo the_terms($post->ID, $post_type . '_tag', '', ', ');
             echo '</span>';
         }
         echo '</div>';
     }
 }
 if (!empty($portfolioClient) || !empty($portfolioDate) || !empty($portfolioInfo) || !empty($portfolioURL)) {
     echo '<ul class="portfolio-meta-list">';
 }
 if (!empty($portfolioClient)) {
     echo '<li>';
     echo '<strong class="portfolio-meta-key">' . theme_locals("client") . ":" . '</strong>';
     echo '<span>' . $portfolioClient . '</span><br />';
     echo '</li>';
 }
 if (!empty($portfolioDate)) {
コード例 #26
0
        } else {
            $icon = '&nbsp;';
        }
        echo apply_filters('sportspress_performance_icon', $icon, $row->ID);
        ?>
									</td>
									<td class="row-title"><?php 
        echo $row->post_title;
        ?>
</td>
									<td><code><?php 
        echo $row->post_name;
        ?>
</code></td>
									<td><?php 
        echo get_the_terms($row->ID, 'sp_position') ? the_terms($row->ID, 'sp_position') : __('All', 'sportspress');
        ?>
</td>
									<td><p class="description"><?php 
        echo $row->post_excerpt;
        ?>
</p></td>
									<td class="edit"><a class="button" href="<?php 
        echo get_edit_post_link($row->ID);
        ?>
"><?php 
        _e('Edit', 'sportspress');
        ?>
</s></td>
								</tr>
							<?php 
コード例 #27
0
the_ID();
?>
" <?php 
post_class();
?>
>

	<header class="entry-header">
		<h1 class="entry-title"><?php 
the_title();
?>
</h1>
        <div class="entry-meta">
            <span class="technology">
                <?php 
the_terms($post->ID, 'technology');
?>
            </span>
        </div><!-- .entry-meta -->
	</header><!-- .entry-header -->

	<div class="row">
		<div class="col-xs-12 col-sm-9">
			<div id="description"><?php 
the_content();
?>
</div>
		</div>
		<div class="col-xs-12 col-sm-3">
			<div id="gallery">
				<div id="big-image"></div>
コード例 #28
0
function ro_blog_slider_func($atts, $content = null)
{
    extract(shortcode_atts(array('category' => '', 'posts_per_page' => -1, 'orderby' => 'none', 'order' => 'none', 'el_class' => '', 'show_image' => 0, 'show_title' => 0, 'show_category' => 0, 'show_meta' => 0, 'show_btn_read_more' => 0), $atts));
    $class = array();
    $class[] = 'ro-blog-slider-wrapper clearfix';
    $class[] = $el_class;
    $paged = get_query_var('paged') ? get_query_var('paged') : 1;
    $args = array('posts_per_page' => $posts_per_page, 'paged' => $paged, 'orderby' => $orderby, 'order' => $order, 'post_type' => 'post', 'post_status' => 'publish');
    if (isset($category) && $category != '') {
        $cats = explode(',', $category);
        $category = array();
        foreach ((array) $cats as $cat) {
            $category[] = trim($cat);
        }
        $args['tax_query'] = array(array('taxonomy' => 'category', 'field' => 'id', 'terms' => $category));
    }
    $wp_query = new WP_Query($args);
    ob_start();
    if ($wp_query->have_posts()) {
        ?>
	<div class="<?php 
        echo esc_attr(implode(' ', $class));
        ?>
">
		<div class="ro-blog-slider flexslider ro-section-item">
			<ul class="slides">
				<?php 
        while ($wp_query->have_posts()) {
            $wp_query->the_post();
            ?>
				<li class="ro-blog-slider-item">
					<?php 
            if (has_post_thumbnail()) {
                the_post_thumbnail('full');
            }
            ?>
					<div class="ro-content">
						<h6 class="ro-text-ellipsis"><a href="<?php 
            the_permalink();
            ?>
"><?php 
            the_title();
            ?>
</a></h6>
						<div class="ro-category"><?php 
            the_terms(get_the_ID(), 'category', '', ', ');
            ?>
</div>
						<div class="ro-meta"><?php 
            echo get_the_author() . ' - ' . get_the_date();
            ?>
</div>
						<a class="icon icon-right-open-mini ro-read-more" href="<?php 
            the_permalink();
            ?>
"></a>
					</div>
				</li>
				<?php 
        }
        ?>
			</ul>
		</div>
	</div>
    <?php 
    }
    return ob_get_clean();
}
コード例 #29
0
</span>
				<?php 
    }
    ?>
				<span class="publish"><?php 
    _e('<i class="fa fa-clock-o"></i> ', 'robusta');
    echo get_the_date();
    ?>
</span>
				<span class="author"><?php 
    _e('<i class="fa fa-user"></i> ', 'robusta');
    echo get_the_author();
    ?>
</span>
				<span class="categories"><?php 
    the_terms(get_the_ID(), 'category', __('<i class="fa fa-folder-open"></i> ', 'robusta'), ', ');
    ?>
</span>
				<span class="tags"><?php 
    the_tags(__('<i class="fa fa-tags"></i> ', 'robusta'), ', ', '');
    ?>
 </span>
			</div>
		<?php 
}
?>
		<?php 
if ($tb_blog_show_post_excerpt) {
    ?>
 
			<div class="ro-sub-content clearfix">
コード例 #30
0
        ?>
                
                <div class="project-details">
                <?php 
        if (isset($portfolio_settings["client-name"])) {
            ?>
                		<p> <span> <?php 
            _e("Client", "dt_themes");
            ?>
 : </span>  <?php 
            echo dttheme_wp_kses($portfolio_settings["client-name"]);
            ?>
</p>
                <?php 
        }
        the_terms($post->ID, 'portfolio_entries', '<p> <span>' . __(" Category", "dt_themes") . ' : </span> ', ', ', '</p>');
        ?>
                        <p> <span> <?php 
        _e("Date", "dt_themes");
        ?>
 : </span> <?php 
        the_date("d M Y");
        ?>
</p>
                </div>
                
                <?php 
        if (isset($portfolio_settings["website-link"])) {
            ?>
                		<a class="dt-sc-button" title="" target="_blank" href="<?php 
            echo esc_url($portfolio_settings["website-link"]);