当前位置: 首页>>代码示例>>PHP>>正文


PHP wm_schema_org函数代码示例

本文整理汇总了PHP中wm_schema_org函数的典型用法代码示例。如果您正苦于以下问题:PHP wm_schema_org函数的具体用法?PHP wm_schema_org怎么用?PHP wm_schema_org使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了wm_schema_org函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: the_ID

<?php

/**
 * bbPress Topic content
 *
 * @package     WebMan WordPress Theme Framework
 * @subpackage  Post Formats
 * @copyright   2014 WebMan - Oliver Juhas
 */
?>

<section id="post-<?php 
the_ID();
?>
" <?php 
post_class();
echo wm_schema_org('item_list');
?>
>

	<?php 
wmhook_entry_top();
the_content();
wmhook_entry_bottom();
?>

</section>
开发者ID:pab44,项目名称:pab44,代码行数:27,代码来源:content-type-topic.php

示例2: apply_filters

				<h1 class="page-title"><?php 
            $title_food_menu = (string) apply_filters('wmhook_loop_food_menu_title_text', _x('Menu', 'Food menu title.', 'wm_domain'));
            $food_menu_page_id = intval(get_transient('wm-page-template-food-menu'));
            if (1 <= $food_menu_page_id) {
                $title_food_menu = '<a href="' . esc_url(get_permalink($food_menu_page_id)) . '">' . $title_food_menu . '</a>';
            }
            echo apply_filters('wmhook_loop_food_menu_title_text_html', $title_food_menu);
            ?>
</h1>

			</header>

			<?php 
        }
        do_action('wmhook_loop_food_menu_postslist_before');
        echo '<div class="items items-list clearfix"' . wm_schema_org('ItemList') . '>';
        do_action('wmhook_loop_food_menu_postslist_top');
        while ($food_menu->have_posts()) {
            $food_menu->the_post();
            get_template_part('content', 'food-menu');
        }
        do_action('wmhook_loop_food_menu_postslist_bottom');
        echo '</div>';
        do_action('wmhook_loop_food_menu_postslist_after');
        ?>

		</section>

		<?php 
    }
    wp_reset_query();
开发者ID:JordanJackson,项目名称:HonsbergerTest,代码行数:31,代码来源:loop-food-menu.php

示例3: wm_schema_org

}
?>

<article class="<?php 
echo $helper['item_class'];
?>
"<?php 
echo wm_schema_org('article');
?>
>

	<?php 
if (has_post_thumbnail($helper['post_id'])) {
    echo '<div class="wm-posts-element wm-html-element image image-container"' . wm_schema_org('image') . '>';
    echo $link_output[0];
    the_post_thumbnail($helper['image_size'], array('title' => esc_attr(get_the_title(get_post_thumbnail_id($helper['post_id'])))));
    echo $link_output[1];
    echo '</div>';
}
?>

	<div class="wm-posts-element wm-html-element title"><?php 
echo '<' . $helper['atts']['heading_tag'] . wm_schema_org('name') . '>';
echo $link_output[0];
the_title();
echo $link_output[1];
echo '</' . $helper['atts']['heading_tag'] . '>';
?>
</div>

</article>
开发者ID:KJaddoe,项目名称:CSCMRA-Project,代码行数:31,代码来源:content-shortcode-posts-post-simple.php

示例4: wm_get_post_images

        } else {
            $posts_images = wm_get_post_images();
            foreach ($posts_images as $image) {
                $images[] = $image['id'];
            }
        }
        if (is_array($images) && !empty($images)) {
            echo do_shortcode(apply_filters('wmhook_post_format_gallery_slideshow_shortcode', '[wm_slideshow ids="' . implode(',', $images) . '" nav="pagination" size="' . $image_size . '" speed="4000" /]'));
        }
    }
}
//If no gallery, display featured image (also, always display featured image on single post page)
if ($is_single && !apply_filters('wmhook_disable_single_featured_image', false) && !(function_exists('wma_meta_option') && wma_meta_option('disable-featured-image')) && !$pagination_suffix) {
    echo wm_thumb(array('attr-link' => wm_schema_org('image'), 'class' => 'image-container post-thumbnail scale-rotate', 'link' => 'bigimage', 'size' => 'content-width'));
} elseif (!$is_single && (!$media_shortcode[0] || !function_exists('wma_amplifier'))) {
    echo wm_thumb(array('attr-link' => wm_schema_org('image'), 'class' => 'image-container post-thumbnail scale-rotate', 'link' => get_permalink(), 'size' => $image_size));
}
?>
	</div>

	<?php 
/**
 * Post title
 */
wm_post_title();
/**
 * Post content
 */
if ($is_single) {
    //Outputs full post content including excerpt at the top
    wmhook_entry_top();
开发者ID:KJaddoe,项目名称:CSCMRA-Project,代码行数:31,代码来源:content-gallery.php

示例5: wmhook_postslist_before

/**
 * Default WordPress posts loop
 *
 * @package    Auberge
 * @copyright  2015 WebMan - Oliver Juhas
 *
 * @since    1.0
 * @version  1.3
 */
if (have_posts()) {
    wmhook_postslist_before();
    if (is_archive() && is_tax('nova_menu')) {
        echo '<div id="items" class="items items-list clearfix"' . wm_schema_org('ItemList') . '>';
    } else {
        echo '<div id="posts" class="posts posts-list clearfix"' . wm_schema_org('ItemList') . '>';
    }
    wmhook_postslist_top();
    while (have_posts()) {
        the_post();
        $content_type = get_post_format();
        if ('nova_menu_item' === get_post_type()) {
            $content_type = 'food-menu';
        }
        get_template_part('content', $content_type);
    }
    wmhook_postslist_bottom();
    echo '</div>';
    wmhook_postslist_after();
} else {
    get_template_part('content', 'none');
开发者ID:JordanJackson,项目名称:HonsbergerTest,代码行数:30,代码来源:loop.php

示例6: get_the_terms

        }
        $output_contacts .= '</li>';
    }
    if ($output_contacts) {
        echo '<ul class="wm-posts-element wm-html-element contacts">' . $output_contacts . '</ul>';
    }
}
?>

	<?php 
$terms = get_the_terms($helper['post_id'], 'staff_position');
$terms_array = array();
if (!is_wp_error($terms) && !empty($terms)) {
    foreach ($terms as $term) {
        $terms_array[] = '<span class="term term-' . sanitize_html_class($term->slug) . '"' . wm_schema_org('itemprop="jobtitle"') . '>' . $term->name . '</span>';
    }
    echo '<div class="wm-posts-element wm-html-element taxonomy">' . $link_output[0] . implode(', ', $terms_array) . $link_output[1] . '</div>';
}
?>

	<div class="wm-posts-element wm-html-element content"<?php 
echo wm_schema_org('description');
?>
>
		<?php 
echo do_shortcode(wpautop(get_the_content()));
?>
	</div>

</article>
开发者ID:pab44,项目名称:pab44,代码行数:30,代码来源:content-shortcode-posts-wm_staff.php

示例7: wmhook_entry_top

    if (!empty($image_link)) {
        echo '</a>';
    }
    ?>

					</figure>

				</div>

				<?php 
    /**
     * Post content
     */
    echo '<div class="entry-inner">';
    wmhook_entry_top();
    echo '<div class="entry-content"' . wm_schema_org('itemprop="description"') . '>';
    ?>

						<table>
							<tbody>
								<tr class="date">
									<th><?php 
    _ex('Image published on:', 'Attachment page publish time.', 'wm_domain');
    ?>
</th>
									<td><?php 
    the_time(get_option('date_format'));
    ?>
</td>
								</tr>
								<tr class="size">
开发者ID:bluefire42,项目名称:modern,代码行数:31,代码来源:image.php

示例8: wmhook_entry_top

    ?>

			</figure>

		</div>

		<?php 
}
/**
 * Post content
 */
echo '<div class="entry-inner">';
wmhook_entry_top();
echo '<div class="entry-content"' . wm_schema_org('entry_body') . '>';
if (has_excerpt() && !$pagination_suffix) {
    echo '<div class="food-menu-item-description"' . wm_schema_org('itemprop="description"') . '>';
    the_excerpt();
    echo '</div>';
}
if (is_single()) {
    the_content(apply_filters('wmhook_wm_excerpt_continue_reading', ''));
}
echo '</div>';
wmhook_entry_bottom();
echo '</div>';
?>

</<?php 
echo $tag;
?>
>
开发者ID:JordanJackson,项目名称:HonsbergerTest,代码行数:31,代码来源:content-food-menu.php

示例9: str_replace

    }
    //Remove the shortcode from content
    if ($media_shortcode) {
        $content = str_replace($media_shortcode, '', $content);
    }
    //Output media
    if ($media_shortcode) {
        echo do_shortcode($media_shortcode);
    }
    //If no video display featured image
    if (!$is_single && !$media_shortcode) {
        $image_size = apply_filters('wmhook_post_thumbnail_image_size', wm_option('skin-image-blog'));
        if (!$image_size) {
            $image_size = WM_DEFAULT_IMAGE_SIZE;
        }
        echo wm_thumb(array('attr-link' => wm_schema_org('image'), 'link' => get_permalink(), 'size' => $image_size));
    }
    ?>
	</div>

	<?php 
}
/**
 * Post title
 */
wm_post_title();
/**
 * Post content
 */
if ($is_single) {
    //Outputs full post content including excerpt at the top
开发者ID:KJaddoe,项目名称:CSCMRA-Project,代码行数:31,代码来源:content-video.php

示例10: wmhook_entry_before

if (!$sections_layout) {
    echo "\r\n\r\n" . '<div class="wrap-inner">';
    $content_area_class = $sidebar['class_main'];
}
echo "\r\n\t" . '<div class="content-area site-content' . $content_area_class . '">' . "\r\n\r\n";
wmhook_entry_before();
if (have_posts()) {
    the_post();
    if ($sidebar_none_posts) {
        /**
         * Remove JetPack sharing when Sections used
         */
        if ($sections_layout) {
            remove_filter('the_content', 'sharing_display', 19);
        }
        echo '<article id="post-' . get_the_ID() . '" class="' . implode(' ', get_post_class()) . '"' . wm_schema_org('article') . '>';
        wmhook_entry_top();
        the_content();
        wmhook_entry_bottom();
        echo '</article>';
    } else {
        $content_type = '';
        if (is_singular('post')) {
            $content_type = get_post_format();
        } elseif (get_post_type()) {
            $content_type = 'type-' . get_post_type();
        }
        get_template_part('content', apply_filters('wmhook_loop_singular_content_type', $content_type));
    }
    wp_reset_query();
}
开发者ID:networksoft,项目名称:sharesystem.co,代码行数:31,代码来源:loop-singular.php

示例11: wm_bbp_large_topic

 function wm_bbp_large_topic()
 {
     global $paged;
     //Requirements check
     if (!(bbp_is_single_topic() || bbp_is_single_reply())) {
         return;
     }
     //Helper variables
     $output = array();
     $post_id = bbp_is_single_reply() ? bbp_get_reply_topic_id() : get_the_id();
     //Preparing output
     $output[10] = '<div class="bbp-large-topic">';
     $output[20] = '<div class="wrap-inner">';
     $output[30] = '<div class="content-area site-content pane twelve">';
     $output[100] = '<div ' . bbp_get_reply_class() . wm_schema_org('article') . '>';
     //Author
     $output[110] = '<div class="bbp-reply-author">';
     $output[120] = bbp_get_reply_author_link(array('post_id' => $post_id, 'sep' => '<br />', 'show_role' => true));
     $output[130] = '</div>';
     // /.bbp-reply-author
     //Heading and content
     $output[200] = '<div class="bbp-reply-content">';
     $output[210] = '<h1 class="bbp-topic-title">';
     if (1 < $paged) {
         $output[210] .= '<a href="' . get_permalink($post_id) . '">';
     }
     $output[210] .= bbp_get_topic_title($post_id);
     if (1 < $paged) {
         $output[210] .= '</a> ' . wm_paginated_suffix('small');
     }
     $output[210] .= '</h1>';
     $output[220] = bbp_get_topic_tag_list($post_id);
     if (!post_password_required($post_id)) {
         $output[230] = '<div class="bbp-content-container">';
         setup_postdata(get_post($post_id));
         $output[240] = apply_filters('wmhook_content_filters', bbp_get_topic_content($post_id), $post_id);
         wp_reset_postdata();
         $output[250] = '</div>';
         // /.bbp-content-container
     }
     $output[260] = '</div>';
     // /.bbp-reply-content
     //Meta
     $output[300] = '<div class="bbp-meta">';
     $output[310] = '<span class="bbp-reply-post-date">' . bbp_get_reply_post_date($post_id) . '</span>';
     if (bbp_is_single_user_replies()) {
         $output[320] = '<span class="bbp-header">';
         $output[330] = __('in reply to: ', 'mustang');
         $output[340] = '<a class="bbp-topic-permalink" href="' . bbp_get_topic_permalink(bbp_get_reply_topic_id($post_id)) . '">';
         $output[350] = bbp_get_topic_title(bbp_get_reply_topic_id($post_id));
         $output[360] = '</a>';
         // /.bbp-topic-permalink
         $output[370] = '</span>';
         // /.bbp-header
     }
     $output[380] = bbp_get_reply_admin_links(array('id' => $post_id));
     $output[390] = '</div>';
     // /.bbp-meta
     $output[500] = '</div>';
     // /.bbp_get_reply_class()
     $output[600] = '</div>';
     // /.content-area
     $output[610] = '</div>';
     // /.wrap-inner
     $output[620] = '</div>';
     // /.bbp-large-topic
     //Output
     $output = apply_filters('wmhook_wm_bbp_large_topic_output', $output, $post_id);
     echo implode('', $output);
 }
开发者ID:pab44,项目名称:pab44,代码行数:70,代码来源:setup-bbpress.php

示例12: the_ID

 * @subpackage  Post Formats
 * @copyright   2014 WebMan - Oliver Juhas
 */
?>

<article id="post-<?php 
the_ID();
?>
" <?php 
post_class();
echo wm_schema_org('article');
?>
>

	<?php 
wm_post_title(false);
wmhook_entry_top();
//Featured image
if (has_post_thumbnail()) {
    $image_size = apply_filters('wmhook_quote_post_thumbnail_image_size', 'admin-thumbnail');
    echo '<div class="quote-container has-thumbnail">';
    echo wm_thumb(array('attr-link' => wm_schema_org('image'), 'link' => '', 'size' => $image_size));
} else {
    echo '<div class="quote-container">';
}
echo apply_filters('wmhook_content_filters', get_the_content());
echo '</div>';
wmhook_entry_bottom();
?>

</article>
开发者ID:KJaddoe,项目名称:CSCMRA-Project,代码行数:31,代码来源:content-quote.php

示例13: the_ID

<?php

/**
 * Status post format content
 *
 * @package     WebMan WordPress Theme Framework
 * @subpackage  Post Formats
 * @copyright   2014 WebMan - Oliver Juhas
 */
?>

<article id="post-<?php 
the_ID();
?>
" <?php 
post_class();
echo wm_schema_org('article');
?>
>

	<?php 
wm_post_title(false);
wmhook_entry_top();
echo get_avatar(get_the_author_meta('ID'), 120);
echo apply_filters('wmhook_content_filters', get_the_content());
wmhook_entry_bottom();
?>

</article>
开发者ID:KJaddoe,项目名称:CSCMRA-Project,代码行数:29,代码来源:content-status.php

示例14: wm_schema_org

	<?php 
if (has_post_thumbnail($helper['post_id'])) {
    echo '<div class="wm-posts-element wm-html-element image image-container scale-rotate"' . wm_schema_org('image') . '>';
    echo $link_output[0];
    the_post_thumbnail($helper['image_size'], array('title' => esc_attr(get_the_title(get_post_thumbnail_id($helper['post_id'])))));
    echo $link_output[1];
    echo '</div>';
}
?>

	<div class="wm-posts-element wm-html-element title"><?php 
echo '<' . $helper['atts']['heading_tag'] . wm_schema_org('name') . '>';
echo $link_output[0];
the_title();
echo $link_output[1];
echo '</' . $helper['atts']['heading_tag'] . '>';
?>
</div>

	<?php 
if (0 < $helper['excerpt_length']) {
    echo '<div class="wm-posts-element wm-html-element content"' . wm_schema_org('description') . '>' . wp_trim_words(get_the_excerpt(), $helper['excerpt_length'], '&hellip;') . '</div>';
}
?>

	<?php 
echo wm_post_meta(apply_filters('wmhook_shortcode_posts_meta_info', array('class' => 'wm-posts-element wm-html-element meta entry-meta', 'date_format' => trim(str_replace(array('Y'), '', get_option('date_format')), ', '), 'meta' => array('date', 'comments', 'permalink'))));
?>

</article>
开发者ID:KJaddoe,项目名称:CSCMRA-Project,代码行数:30,代码来源:content-shortcode-posts-post.php

示例15: wmhook_postslist_before

 * Search results
 *
 * @package    WebMan WordPress Theme Framework
 * @copyright  2014 WebMan - Oliver Juhas
 *
 * @since    1.0
 * @version  1.1.1
 */
if (have_posts()) {
    wmhook_postslist_before();
    echo '<div id="list-articles" class="list-articles list-search clearfix"' . wm_schema_org('item_list') . '>';
    wmhook_postslist_top();
    while (have_posts()) {
        the_post();
        $output = '<article class="search-item"' . wm_schema_org('article') . '>';
        $output .= '<header class="entry-header"><h1 class="entry-title"' . wm_schema_org('name') . '>';
        if (has_post_thumbnail()) {
            $thumb_size = !function_exists('wma_amplifier') ? array(100, 100) : 'admin-thumbnail';
            $output .= '<a href="' . get_permalink() . '" title="' . esc_attr(get_the_title()) . '">';
            $output .= get_the_post_thumbnail(get_the_ID(), $thumb_size);
            $output .= '</a>';
        }
        $output .= '<a href="' . get_permalink() . '">';
        $output .= get_the_title();
        $output .= '</a>';
        $output .= '</h1></header>';
        $output .= wm_excerpt();
        $output .= 'page' === get_post_type() ? wm_post_meta(apply_filters('wmhook_search_page_meta', array('meta' => array('permalink')))) : wm_post_meta();
        $output .= '</article>';
        echo $output;
    }
开发者ID:KJaddoe,项目名称:CSCMRA-Project,代码行数:31,代码来源:loop-theme-search.php


注:本文中的wm_schema_org函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。