Current File : /home/kelaby89/muzza.fit/wp-content/plugins/wolf-videos/inc/frontend/wv-template-functions.php
<?php
/**
 * WolfVideos Template Functions
 *
 * Functions used in the template files to output content - in most cases hooked in via the template actions. All functions are pluggable.
 *
 * @author WolfThemes
 * @category Core
 * @package WolfVideos/Templates
 * @since 1.0.2
 */

if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

/**
 * Output generator tag to aid debugging.
 */
function wolf_videos_generator_tag( $gen, $type ) {
	switch ( $type ) {
		case 'html':
			$gen .= "\n" . '<meta name="generator" content="WolfVideos ' . esc_attr( WV_VERSION ) . '">';
			break;
		case 'xhtml':
			$gen .= "\n" . '<meta name="generator" content="WolfVideos ' . esc_attr( WV_VERSION ) . '" />';
			break;
	}
	return $gen;
}

/**
 * Add specific class to the body when we're on the portfolio pages
 *
 * @since 1.1.6
 * @param array $classes
 * @return array $classes
 */
function wv_body_class( $classes ) {

	if (
		! is_singular( 'video' )
		&& ( 'video' == get_post_type() || ( function_exists( 'wolf_videos_get_page_id' ) && is_page( wolf_videos_get_page_id() ) ) )
		&& ! is_search()
	) {
		$classes[] = 'wolf-videos';
		$classes[] = 'wolf-videos-cols-' . wolf_videos_get_option( 'col', 3 );
	}

	return $classes;
}

/** Global ****************************************************************/

if ( ! function_exists( 'wolf_videos_output_content_wrapper' ) ) {

	/**
	 * Output the start of the page wrapper.
	 *
	 * @access public
	 * @return void
	 */
	function wolf_videos_output_content_wrapper() {
		wolf_videos_get_template( 'videos/wrapper-start.php' );
	}
}


if ( ! function_exists( 'wolf_videos_output_content_wrapper_end' ) ) {

	/**
	 * Output the end of the page wrapper.
	 *
	 * @access public
	 * @return void
	 */
	function wolf_videos_output_content_wrapper_end() {
		wolf_videos_get_template( 'videos/wrapper-end.php' );
	}
}

if ( ! function_exists( 'wolf_videos_loop_start' ) ) {

	/**
	 * Output the start of a ticket loop. By default this is a UL
	 *
	 * @access public
	 * @return void
	 */
	function wolf_videos_loop_start( $echo = true ) {
		ob_start();
		
		wolf_videos_get_template( 'loop/loop-start.php' );
		
		if ( $echo )
			echo ob_get_clean();
		else
			return ob_get_clean();
	}
}


if ( ! function_exists( 'wolf_videos_loop_end' ) ) {

	/**
	 * Output the end of a ticket loop. By default this is a UL
	 *
	 * @access public
	 * @return void
	 */
	function wolf_videos_loop_end( $echo = true ) {
		ob_start();

		wolf_videos_get_template( 'loop/loop-end.php' );

		if ( $echo )
			echo ob_get_clean();
		else
			return ob_get_clean();
	}
}
Page not found – Hello World !