コード例 #1
0
ファイル: blog-single-link.php プロジェクト: iq007/MadScape
/**
 * Blog single post link format media
 * Link formats should redirect to the URL defined in the custom fields
 * This template file is used as a fallback only.
 *
 * @package Total WordPress theme
 * @subpackage Partials
 * @version 3.0.0
 */
// Exit if accessed directly
if (!defined('ABSPATH')) {
    exit;
}
// Get thumbnail
$thumbnail = wpex_get_blog_post_thumbnail();
// Return if there isn't a thumbnail
if (!$thumbnail) {
    return;
}
?>

<div id="post-media" class="clr">
	<?php 
// Image with lightbox link
if (wpex_get_mod('blog_post_image_lightbox')) {
    ?>

		<a href="<?php 
    wpex_permalink();
    ?>
コード例 #2
0
/**
 * Displays the blog post thumbnail
 *
 * @since Total 1.0
 */
function wpex_blog_post_thumbnail($args = '')
{
    echo wpex_get_blog_post_thumbnail($args);
}