" height="<?php echo $image_attr[2]; ?> " alt="<?php the_title_attribute(); ?> " /> </a> <?php } else { ?> <a href="<?php the_permalink(); ?> "><img src='<?php echo YIT_Services()->plugin_assets_url; ?> /images/no-featured.jpg' title="<?php _e('(this post does not have a featured image)', 'yit'); ?> " alt="no featured images" /></a> <?php } ?> </div> <?php if ($show_title == 'yes') { ?> <h3><?php echo yit_plugin_decode_title(get_the_title()); ?>
* Add the print of single template part for the YIThemes's themes. For all others templates, it's valid the * standard single-services.php template of wordpress. * * @return void * @since 1.0 * @author Antonino Scarfì <*****@*****.**> */ public function load_single_template() { if (!is_singular($this->service_post_type)) { return; } yit_plugin_get_template($this->plugin_path, 'services/single.php'); } } /** * Main instance of plugin * * @return object * @since 1.0 * @author Antonio La Rocca <*****@*****.**> */ function YIT_Services() { return YIT_Services::instance(); } /** * Create a new YIT_Services object */ YIT_Services();