Пример #1
0
 /**
  * Get the project thumbnail for the loop.
  *
  * Hooked into projects_loop_item
  *
  * @access public
  * @subpackage	Loop
  * @return void
  */
 function projects_template_loop_project_thumbnail()
 {
     echo '<figure class="project-thumbnail">' . projects_get_project_thumbnail() . '</figure>';
 }
 * Override this template by copying it to yourtheme/projects/content-project-widget.php
 *
 * @author 		WooThemes
 * @package 	Projects/Templates
 * @version     1.0.0
 */
if (!defined('ABSPATH')) {
    exit;
}
// Exit if accessed directly
global $post, $project;
?>
<li>

	<a href="<?php 
the_permalink();
?>
" class="project-permalink">

		<?php 
echo projects_get_project_thumbnail('project-thumbnail');
?>

		<span class="project-title"><?php 
the_title();
?>
</span>

	</a>

</li>