<?php

/**
 * Template Name: Portfolio Fullsize Background Video
 *
 * @package WordPress
 * @subpackage Invictus
 */
global $meta, $isFullsizeVideo, $fullsize_gallery_posts;
/* Get the page meta informations and store them in an array */
$meta = max_get_cutom_meta_array();
$isFullsizeGallery = true;
$showSuperbgimage = true;
$isFullsizeVideo = true;
/* query the page object - olé */
$fullsize_gallery_posts = new WP_Query(array('post_type' => 'page', 'post__in' => array(get_the_ID())));
get_header();
?>

<?php 
/* get the password protected login template part */
if (post_password_required()) {
    get_template_part('includes/page', 'password.inc');
}
?>

<?php 
if (!post_password_required()) {
    ?>

	<?php 
Esempio n. 2
0
<?php

global $meta, $portfolio, $post, $post_metam, $page_tpl;
$meta = max_get_cutom_meta_array(get_the_ID());
$embededCode = $meta[MAX_SHORTNAME . '_video_embeded_value'];
$_m4v = !empty($meta[MAX_SHORTNAME . '_video_url_m4v_value']) ? $meta[MAX_SHORTNAME . '_video_url_ogv_value'] : false;
$_ogv = !empty($meta[MAX_SHORTNAME . '_video_url_ogv_value']) ? $meta[MAX_SHORTNAME . '_video_url_ogv_value'] : false;
$_webm = !empty($meta[MAX_SHORTNAME . '_video_url_webm_value']) ? $meta[MAX_SHORTNAME . '_video_url_webm_value'] : false;
// Video Preview is an Imager from an URL
if ($meta[MAX_SHORTNAME . '_video_poster_value'] == 'url') {
    $_poster_url = $meta[MAX_SHORTNAME . '_video_url_poster_value'];
}
// Video Preview is the post featured image or the URL was chosen but not set
if ($meta[MAX_SHORTNAME . '_video_poster_value'] == 'featured' || $meta[MAX_SHORTNAME . '_video_poster_value'] == 'url' && $meta[MAX_SHORTNAME . '_video_poster_value'] == "") {
    $_previewUrl = max_get_image_path($post->ID, 'full');
    // get the imgUrl for showing the post image
    $_poster_url = max_get_custom_image_url(get_post_thumbnail_ID(get_the_ID()), get_the_ID(), MAX_CONTENT_WIDTH, $meta[MAX_SHORTNAME . '_video_height_value']);
}
$width = MAX_CONTENT_WIDTH;
?>

<div class="entry-video-wrapper">
  <div class="entry-video" style="width: 100%">

  <script>// get fitVids if not already included
  if( !jQuery().fitVids ){
    document.write('<script src="<?php 
echo get_template_directory_uri();
?>
/js/jquery.fitvids.min.js"><\/script>');
  }</script>
Esempio n. 3
0
<?php

/**
 * The loop that displays search posts.
 *
 * @package WordPress
 * @subpackage Invictus
 * @since Invictus 1.0
 */
$post_meta = max_get_cutom_meta_array($post->ID);
if (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>

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

								<div class="rel">

									<div class="date-badge"><?php 
        echo get_the_date("d");
        ?>
<span><?php 
        echo get_the_date("M");
        ?>
Esempio n. 4
0
function max_get_video_js($post_id)
{
    if (!empty($post_id)) {
        $meta = max_get_cutom_meta_array($post_id);
    }
    // Video Preview is an Imager from an URL
    if ($meta[MAX_SHORTNAME . '_video_poster_value'] == 'url') {
        $_poster_url = $meta[MAX_SHORTNAME . '_video_url_poster_value'];
    }
    // Video Preview is the post featured image or the URL was chosen but not set
    if ($meta[MAX_SHORTNAME . '_video_poster_value'] == 'featured' || $meta[MAX_SHORTNAME . '_video_poster_value'] == 'url' && $meta[MAX_SHORTNAME . '_video_poster_value'] == "") {
        $_imgID = get_post_thumbnail_id(get_the_ID());
        $_previewUrl = max_get_image_path($post_id, 'full');
        // get the imgUrl for showing the post image
        $_poster_url = max_get_custom_image_url(get_post_thumbnail_ID(get_the_ID()), get_the_ID(), MAX_CONTENT_WIDTH);
    }
    $_m4v = $meta[MAX_SHORTNAME . '_video_url_m4v_value'];
    $_ogv = $meta[MAX_SHORTNAME . '_video_url_ogv_value'];
    $_webm = $meta[MAX_SHORTNAME . '_video_url_webm_value'];
    echo do_shortcode('[video width="' . MAX_CONTENT_WIDTH . '" height="' . $meta[MAX_SHORTNAME . '_video_height_value'] . '" mp4="' . $_m4v . '" ogv="' . $_ogv . '" webm="' . $_webm . '" poster="' . $_poster_url . '"  controls="controls">]');
}