<style>
    .single__thumbnail{
        <?php 
if (has_post_thumbnail()) {
    ?>
            background-image: url("<?php 
    echo get_thumb_url('full');
    ?>
");
        <?php 
} else {
    ?>
            background-image: url("<?php 
    bloginfo('template_url');
    ?>
/img/Header.jpg");
            background-position: center;
            height: 400px;
        <?php 
}
?>
    }
</style>

<div class="wrapper m-bottom-40">
    <div class="row m-bottom-20">
        <div class="small-3 medium-3 large-6 columns backtopackage">
            <a href="<?php 
echo site_url('paket-umroh');
?>
"><i class="fa fa-angle-left"></i> <span class="show-for-large">KEMBALI KE DAFTAR PAKET</span></a>
 $page_link = $pagination->getPagination('media_content', 'p_mc_my_videos_');
 $start_num = $pagination->getStartItem();
 $end_num = $pagination->getEndItem();
 $code = array();
 $code[] = '<div class="m-b-15">';
 $code[] = '<a href="#attach_playlist_videos" id="attach_mcp_playlist_videos">' . $lang['user.playlist'] . '</a> <strong>&middot;</strong>';
 $code[] = '<a href="#attach_favorite_videos" id="attach_mcp_favorite_videos">' . $lang['user.favorites'] . '</a> <strong>&middot;</strong>';
 $code[] = '<span class="text-white">' . $lang['ajax.my_videos'] . '</span>';
 $code[] = '<button id="close_attach_mc_mv" type="button" class="close">&#215;</button>';
 $code[] = '</div>';
 if ($videos) {
     $code[] = '<div class="m-b--15">';
     $code[] = '<div class="row">';
     foreach ($videos as $video) {
         $code[] = '<div class="col-xs-6 col-sm-3 m-b-15">';
         $code[] = '<a href="#attach_my_video_' . $video['VID'] . '" id="attach_media_video_' . $video['VID'] . '"><img src="' . get_thumb_url($video['VID']) . '/1.jpg" alt="' . htmlspecialchars($video['title'], ENT_QUOTES, 'UTF-8') . '" class="img-responsive" /></a>';
         $code[] = '</div>';
     }
     $code[] = '</div>';
     $code[] = '</div>';
     if ($page_link) {
         $code[] = '<div class="visible-xs center m-b--15">';
         $code[] = '<ul class="pagination pagination-lg">' . $page_link . '</ul>';
         $code[] = '</div>';
         $code[] = '<div class="hidden-xs center m-b--15">';
         $code[] = '<ul class="pagination">' . $page_link . '</ul>';
         $code[] = '</div>';
     }
 } else {
     $code[] = '<div class="no_items">' . $lang['ajax.see_none'] . '</div>';
 }
Exemple #3
0
function insert_video_thumbs($options)
{
    global $config;
    $vid = intval($options['VID']);
    $vkey = $options['vkey'];
    $thumb = $options['thumb'];
    $output = array();
    for ($i = 1; $i <= 20; $i++) {
        $tmb = get_thumb_dir($vid) . '/' . $i . '.jpg';
        if (file_exists($tmb) && is_file($tmb)) {
            $class = $thumb == $i ? 'tmb_active' : 'tmb';
            $output[] = '<img src="' . get_thumb_url($vid) . '/' . $i . '.jpg" width="72" id="change_tmb_' . $vkey . '_' . $i . '" class="' . $class . '">';
        }
    }
    return implode("\n", $output);
}
Exemple #4
0
    $subpages->the_post();
    $slug = basename(get_permalink());
    ?>

     <div  class="grid__item small-12 medium-6 large-4 columns text-center grid__item--<?php 
    echo $slug;
    ?>
">

        <?php 
    if ($slug == "plus") {
        ?>
            <style>
                .grid__item--plus .grid__item__box{
                    background-image: url("<?php 
        echo get_thumb_url('large');
        ?>
");
                }
            </style>
        <?php 
    }
    ?>

        <div data-equalizer-watch class="grid__item__box">
            <div class="grid__item__box__wrap">
                <h2 class="grid__item__title">Umroh <?php 
    the_title();
    ?>
</h2>
                <br />
Exemple #5
0
echo $player['logo_position'];
?>
</position>
    <link><?php 
echo $player['logo_link'];
?>
</link>
    <alpha><?php 
echo $player['logo_alpha'];
?>
</alpha>
  </logo>
  <video>
    <autorun>false</autorun>
    <image><?php 
echo get_thumb_url($video_id) . '/default.jpg';
?>
</image>
    <bufferTime><?php 
echo $player['buffertime'];
?>
</bufferTime>
    <src><?php 
echo $SD_URL;
?>
</src>
    <hd><?php 
echo $HD_URL;
?>
</hd>
	<ratio>fit</ratio> 
Exemple #6
0
 $videos = $rs->getrows();
 $code = array();
 $total_pages = $pagination->getTotalPages();
 $page = $page >= $total_pages ? $total_pages : $page;
 $code[] = '<div class="row">';
 foreach ($videos as $video) {
     if ($video['type'] == 'private') {
         $img_class = 'class="img-responsive img-private"';
     } else {
         $img_class = 'class="img-responsive"';
     }
     $code[] = '<div class="col-sm-6 col-md-3 col-lg-3">';
     $code[] = '<div class="well well-sm m-b-0 m-t-20">';
     $code[] = '<a href="' . $config['BASE_URL'] . '/video/' . $video['VID'] . '/' . prepare_string($video['title']) . '">';
     $code[] = '<div class="thumb-overlay">';
     $code[] = '<img src="' . get_thumb_url($video['VID']) . '/' . $video['thumb'] . '.jpg" title="' . htmlspecialchars($video['title'], ENT_QUOTES, 'UTF-8') . '" alt="' . htmlspecialchars($video['title'], ENT_QUOTES, 'UTF-8') . '" id="rotate_' . $video['VID'] . '_' . $video['thumbs'] . '_' . $video['thumb'] . '" ' . $img_class . ' />';
     if ($video['type'] == 'private') {
         $code[] = '<div class="label-private">' . $lang['global.PRIVATE'] . '</div>';
     }
     if ($video['hd'] == 1) {
         $code[] = '<div class="hd-text-icon">HD</div>';
     }
     $code[] = '<div class="duration">';
     $code[] = duration($video['duration']);
     $code[] = '</div>';
     $code[] = '</div>';
     $code[] = '<span class="video-title title-truncate m-t-5">' . htmlspecialchars($video['title'], ENT_QUOTES, 'UTF-8') . '</span>';
     $code[] = '</a>';
     $code[] = '<div class="video-added">';
     $code[] = time_range($video['addtime']);
     $code[] = '</div>';
function get_top_posts($args = array())
{
    global $post, $exclude_posts;
    $defaults = array('list_post_title' => 'Recent Headlines');
    // merge arguments with defaults && set keys as variables
    $args = array_merge($defaults, $args);
    foreach ($args as $key => $val) {
        ${$key} = $val;
    }
    $args = array('posts_per_page' => 1, 'post_status' => 'publish', 'post__not_in' => $exclude_posts, 'post_type' => 'exclusive');
    $query = new WP_Query($args);
    while ($query->have_posts()) {
        $query->the_post();
        $id = get_the_ID();
        exclude_this_post(1, $id);
        $thumb_caption = '';
        $thumb_id = get_post_thumbnail_id($post->ID);
        $thumb_image = get_posts(array('p' => $thumb_id, 'post_type' => 'attachment'));
        if ($thumb_image && isset($thumb_image[0])) {
            $thumb_caption = $thumb_image[0]->post_excerpt . '</span>';
        }
        ?>

		<article class="top-post">
			<a href="<?php 
        the_permalink();
        ?>
">
				<div class="featured-image" data-src="<?php 
        echo get_thumb_url(700, 700);
        ?>
"></div>
				<div class="wp-caption-text"><?php 
        echo $thumb_caption;
        ?>
</div>
			</a>
			<div class="post-info">
				<div class="col-md-7 left-story">
					<a href="<?php 
        the_permalink();
        ?>
">
						<h1><?php 
        the_title();
        ?>
</h1>
					</a>
					<div class="post-excerpt"><?php 
        the_excerpt();
        ?>
</div>
					<div class="author-title"><h3>written by <?php 
        the_author_posts_link();
        ?>
</h3></div>

				</div>
				<div class="col-md-5 right-story">

					<?php 
        $args = array('posts_per_page' => 4, 'post_status' => 'publish', 'post__not_in' => $exclude_posts, 'post_type' => 'post', 'orderby' => 'date', 'order' => 'DESC');
        $recent_query = new WP_Query();
        $network_query = $recent_query->posts = network_query_posts($args);
        $post_count = $recent_query->post_count = count($network_query);
        $i = 1;
        while ($recent_query->have_posts()) {
            $recent_query->the_post();
            $blogID = $post->BLOG_ID;
            if ($i == 1) {
                ?>
							<div class="headline-list">
								<h4><?php 
                echo $list_post_title;
                ?>
</h4>
								<ul>
									<?php 
            }
            if ($i >= 1 && $i <= 4) {
                echo '<li>';
                echo list_post($blogID);
                echo '</li>';
            }
            if ($i == 4 || $i == $post_count) {
                ?>
								</ul>
							</div>
							<?php 
                break;
                // so no additional loops once we run out of posts!
            }
            $i++;
        }
        wp_reset_query();
        reset_blog();
        ?>

				</div>
				<div style="clear:both;"></div>
			</div>
		</article>

		<?php 
    }
}
function spotlight_post($blogID = 1, $args = array())
{
    min_switch_to_blog($blogID);
    $id = get_the_ID();
    exclude_this_post($blogID, $id);
    $defaults = array('center' => false);
    // merge arguments with defaults && set keys as variables
    $args = array_merge($defaults, $args);
    foreach ($args as $key => $val) {
        ${$key} = $val;
    }
    $new_title = get_post_meta($id, 'db_featured_title', true);
    $subtitle = get_post_meta($id, 'db_subtitle', true);
    $title = get_the_title();
    if (!empty($new_title)) {
        $title = $new_title;
    }
    $w = 450;
    $h = 450;
    $styles = '';
    if ($center) {
        $styles = ' main-spotlight';
        $w = 800;
        $h = 800;
    }
    $external = '';
    if ($blogID > 1) {
        $external = 'external-link';
    }
    ?>

	<article class="spotlight-post<?php 
    echo $styles;
    ?>
">
		<a href="<?php 
    the_permalink();
    ?>
">
			<div class="featured-image" data-src="<?php 
    echo get_thumb_url($w, $h);
    ?>
"><?php 
    /*<div class="spotlight-bg"></div><?php */
    ?>
</div>
		</a>
		<div class="caption">
			<?php 
    if ($blogID > 1) {
        ?>
			<h4>via <?php 
        echo blog_svg($blogID);
        ?>
</h4>
			<?php 
    }
    ?>

			<h1 class="<?php 
    echo $external;
    ?>
"><?php 
    echo $title;
    ?>
</h1>

			<?php 
    if (isset($subtitle) && $center == 1) {
        ?>
			<h2><?php 
        echo $subtitle;
        ?>
</h2>
			<?php 
    }
    ?>
		</div>
	</article>

	<?php 
}
Exemple #9
0
    ?>
        <video>
            <title><?php 
    echo $video['title'];
    ?>
</title>
            <duration><?php 
    echo duration($video['duration']);
    ?>
</duration>
            <url><?php 
    echo $config['BASE_URL'] . '/video/' . $video['VID'] . '/' . prepare_string($video['title']);
    ?>
</url>
			<image><?php 
    echo get_thumb_url($video['VID']) . '/1.jpg';
    ?>
</image>
            <desc><?php 
    echo htmlspecialchars($video['description'], ENT_QUOTES, 'UTF-8');
    ?>
</desc>
            <stars><?php 
    echo $video['rate'];
    ?>
</stars>
        </video>
    <?php 
}
?>
    </videos>