%PDF- %PDF-
Direktori : /var/www/html/qendrasteps/wp-content/themes/bridge/templates/ |
Current File : //var/www/html/qendrasteps/wp-content/themes/bridge/templates/blog_small_image-loop.php |
<?php global $qode_options_proya; $blog_hide_comments = ""; if (isset($qode_options_proya['blog_hide_comments'])) { $blog_hide_comments = $qode_options_proya['blog_hide_comments']; } $blog_hide_author = ""; if (isset($qode_options_proya['blog_hide_author'])) { $blog_hide_author = $qode_options_proya['blog_hide_author']; } $qode_like = "on"; if (isset($qode_options_proya['qode_like'])) { $qode_like = $qode_options_proya['qode_like']; } ?> <?php $_post_format = get_post_format(); ?> <?php switch ($_post_format) { case "video": ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <div class="post_content_holder"> <div class="post_image"> <?php $_video_type = get_post_meta(get_the_ID(), "video_format_choose", true);?> <?php if($_video_type == "youtube") { ?> <iframe name="fitvid-<?php the_ID(); ?>" src="//www.youtube.com/embed/<?php echo get_post_meta(get_the_ID(), "video_format_link", true); ?>?wmode=transparent" wmode="Opaque" width="805" height="403" allowfullscreen></iframe> <?php } elseif ($_video_type == "vimeo"){ ?> <iframe name="fitvid-<?php the_ID(); ?>" src="//player.vimeo.com/video/<?php echo get_post_meta(get_the_ID(), "video_format_link", true); ?>?title=0&byline=0&portrait=0" width="800" height="450" allowfullscreen></iframe> <?php } elseif ($_video_type == "self"){ ?> <div class="video"> <div class="mobile-video-image" style="background-image: url(<?php echo get_post_meta(get_the_ID(), "video_format_image", true); ?>);"></div> <div class="video-wrap" > <video class="video" poster="<?php echo get_post_meta(get_the_ID(), "video_format_image", true); ?>" preload="auto"> <?php if(get_post_meta(get_the_ID(), "video_format_webm", true) != "") { ?> <source type="video/webm" src="<?php echo get_post_meta(get_the_ID(), "video_format_webm", true); ?>"> <?php } ?> <?php if(get_post_meta(get_the_ID(), "video_format_mp4", true) != "") { ?> <source type="video/mp4" src="<?php echo get_post_meta(get_the_ID(), "video_format_mp4", true); ?>"> <?php } ?> <?php if(get_post_meta(get_the_ID(), "video_format_ogv", true) != "") { ?> <source type="video/ogg" src="<?php echo get_post_meta(get_the_ID(), "video_format_ogv", true); ?>"> <?php } ?> <object width="320" height="240" type="application/x-shockwave-flash" data="<?php echo get_template_directory_uri(); ?>/js/flashmediaelement.swf"> <param name="movie" value="<?php echo get_template_directory_uri(); ?>/js/flashmediaelement.swf" /> <param name="flashvars" value="controls=true&file=<?php echo get_post_meta(get_the_ID(), "video_format_mp4", true); ?>" /> <img itemprop="image" src="<?php echo get_post_meta(get_the_ID(), "video_format_image", true); ?>" width="1920" height="800" title="No video playback capabilities" alt="Video thumb" /> </object> </video> </div></div> <?php } ?> </div> <div class="post_text"> <div class="post_text_inner"> <h2 itemprop="name" class="entry_title"><span itemprop="dateCreated" class="date entry_date updated"><?php the_time('d M'); ?><meta itemprop="interactionCount" content="UserComments: <?php echo get_comments_number(qode_get_page_id()); ?>"/></span> <a itemprop="url" href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2> <div class="post_info"> <span class="time"><?php _e('Posted at','qode'); ?> <?php the_time('H:i'); ?><?php _e('h','qode'); ?></span> <?php _e('in','qode'); ?> <?php the_category(', '); ?> <?php if($blog_hide_author == "no") { ?> <span class="post_author"> <?php _e('by','qode'); ?> <a itemprop="author" class="post_author_link" href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>"><?php the_author_meta('display_name'); ?></a> </span> <?php } ?> <?php if($blog_hide_comments != "yes"){ ?> <span class="dots"><i class="fa fa-square"></i></span><a itemprop="url" class="post_comments" href="<?php comments_link(); ?>" target="_self"><?php comments_number('0 ' . __('Comments','qode'), '1 '.__('Comment','qode'), '% '.__('Comments','qode') ); ?></a> <?php } ?> <?php if( $qode_like == "on" ) { ?> <span class="dots"><i class="fa fa-square"></i></span><div class="blog_like"> <?php if( function_exists('qode_like') ) qode_like(); ?> </div> <?php } ?> <?php if(isset($qode_options_proya['enable_social_share']) && $qode_options_proya['enable_social_share'] == "yes") { ?> <span class="dots"><i class="fa fa-square"></i></span><?php echo do_shortcode('[social_share]'); ?> <?php } ?> </div> <?php qode_excerpt(); ?> <div class="post_more"> <a itemprop="url" href="<?php the_permalink(); ?>" class="qbutton small"><?php _e('Read More','qode'); ?></a> </div> </div> </div> </article> <?php break; case "audio": ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <div class="post_content_holder"> <?php if ( has_post_thumbnail() ) { ?> <div class="post_image"> <a itemprop="url" href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"> <?php the_post_thumbnail('full'); ?> </a> </div> <?php } ?> <div class="post_text"> <div class="post_text_inner"> <h2 itemprop="name" class="entry_title"><span itemprop="dateCreated" class="date entry_date updated"><?php the_time('d M'); ?><meta itemprop="interactionCount" content="UserComments: <?php echo get_comments_number(qode_get_page_id()); ?>"/></span> <a itemprop="url" href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2> <div class="post_info"> <span class="time"><?php _e('Posted at','qode'); ?> <?php the_time('H:i'); ?><?php _e('h','qode'); ?></span> <?php _e('in','qode'); ?> <?php the_category(', '); ?> <?php if($blog_hide_author == "no") { ?> <span class="post_author"> <?php _e('by','qode'); ?> <a itemprop="author" class="post_author_link" href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>"><?php the_author_meta('display_name'); ?></a> </span> <?php } ?> <?php if($blog_hide_comments != "yes"){ ?> <span class="dots"><i class="fa fa-square"></i></span><a itemprop="url" class="post_comments" href="<?php comments_link(); ?>" target="_self"><?php comments_number('0 ' . __('Comments','qode'), '1 '.__('Comment','qode'), '% '.__('Comments','qode') ); ?></a> <?php } ?> <?php if( $qode_like == "on" ) { ?> <span class="dots"><i class="fa fa-square"></i></span><div class="blog_like"> <?php if( function_exists('qode_like') ) qode_like(); ?> </div> <?php } ?> <?php if(isset($qode_options_proya['enable_social_share']) && $qode_options_proya['enable_social_share'] == "yes") { ?> <span class="dots"><i class="fa fa-square"></i></span><?php echo do_shortcode('[social_share]'); ?> <?php } ?> </div> <?php qode_excerpt(); ?> <div class="post_more"> <a itemprop="url" href="<?php the_permalink(); ?>" class="qbutton small"><?php _e('Read More','qode'); ?></a> </div> </div> </div> </div> </article> <?php break; case "link": ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <div class="post_content_holder"> <?php if ( has_post_thumbnail() ) { ?> <div class="post_image"> <a itemprop="url" href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"> <?php the_post_thumbnail('full'); ?> </a> </div> <?php } ?> <div class="post_text"> <div class="post_text_inner"> <div class="post_info"> <span class="time"><?php _e('Posted at','qode'); ?> <?php the_time('d M, H:i'); ?><?php _e('h','qode'); ?></span> <?php _e('in','qode'); ?> <?php the_category(', '); ?> <?php if($blog_hide_author == "no") { ?> <span class="post_author"> <?php _e('by','qode'); ?> <a itemprop="author" class="post_author_link" href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>"><?php the_author_meta('display_name'); ?></a> </span> <?php } ?> <?php if($blog_hide_comments != "yes"){ ?> <span class="dots"><i class="fa fa-square"></i></span><a itemprop="url" class="post_comments" href="<?php comments_link(); ?>" target="_self"><?php comments_number('0 ' . __('Comments','qode'), '1 '.__('Comment','qode'), '% '.__('Comments','qode') ); ?></a> <?php } ?> <?php if( $qode_like == "on" ) { ?> <span class="dots"><i class="fa fa-square"></i></span><div class="blog_like"> <?php if( function_exists('qode_like') ) qode_like(); ?> </div> <?php } ?> <?php if(isset($qode_options_proya['enable_social_share']) && $qode_options_proya['enable_social_share'] == "yes") { ?> <span class="dots"><i class="fa fa-square"></i></span><?php echo do_shortcode('[social_share]'); ?> <?php } ?> </div> <i class="link_mark fa fa-link pull-left"></i> <div class="post_title entry_title"> <p><a itemprop="url" href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></p> </div> </div> </div> </div> </article> <?php break; case "gallery": ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <div class="post_content_holder"> <div class="post_image"> <div class="flexslider"> <ul class="slides"> <?php $post_content = get_the_content(); preg_match('/\[gallery.*ids=.(.*).\]/', $post_content, $ids); $array_id = explode(",", $ids[1]); foreach($array_id as $img_id){ ?> <li><a itemprop="url" href="<?php the_permalink(); ?>"><?php echo wp_get_attachment_image( $img_id, 'full' ); ?></a></li> <?php } ?> </ul> </div> </div> <div class="post_text"> <div class="post_text_inner"> <h2 itemprop="name" class="entry_title"><span itemprop="dateCreated" class="date entry_date updated"><?php the_time('d M'); ?><meta itemprop="interactionCount" content="UserComments: <?php echo get_comments_number(qode_get_page_id()); ?>"/></span> <a itemprop="url" href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2> <div class="post_info"> <span class="time"><?php _e('Posted at','qode'); ?> <?php the_time('H:i'); ?><?php _e('h','qode'); ?></span> <?php _e('in','qode'); ?> <?php the_category(', '); ?> <?php if($blog_hide_author == "no") { ?> <span class="post_author"> <?php _e('by','qode'); ?> <a itemprop="author" class="post_author_link" href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>"><?php the_author_meta('display_name'); ?></a> </span> <?php } ?> <?php if($blog_hide_comments != "yes"){ ?> <span class="dots"><i class="fa fa-square"></i></span><a itemprop="url" class="post_comments" href="<?php comments_link(); ?>" target="_self"><?php comments_number('0 ' . __('Comments','qode'), '1 '.__('Comment','qode'), '% '.__('Comments','qode') ); ?></a> <?php } ?> <?php if( $qode_like == "on" ) { ?> <span class="dots"><i class="fa fa-square"></i></span><div class="blog_like"> <?php if( function_exists('qode_like') ) qode_like(); ?> </div> <?php } ?> <?php if(isset($qode_options_proya['enable_social_share']) && $qode_options_proya['enable_social_share'] == "yes") { ?> <span class="dots"><i class="fa fa-square"></i></span><?php echo do_shortcode('[social_share]'); ?> <?php } ?> </div> <?php qode_excerpt(); ?> <div class="post_more"> <a itemprop="url" href="<?php the_permalink(); ?>" class="qbutton small"><?php _e('Read More','qode'); ?></a> </div> </div> </div> </div> </article> <?php break; case "quote": ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <div class="post_content_holder"> <?php if ( has_post_thumbnail() ) { ?> <div class="post_image"> <a itemprop="url" href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"> <?php the_post_thumbnail('full'); ?> </a> </div> <?php } ?> <div class="post_text"> <div class="post_text_inner"> <div class="post_info"> <span class="time"><?php _e('Posted at','qode'); ?> <?php the_time('d M, H:i'); ?><?php _e('h','qode'); ?></span> <?php _e('in','qode'); ?> <?php the_category(', '); ?> <?php if($blog_hide_author == "no") { ?> <span class="post_author"> <?php _e('by','qode'); ?> <a itemprop="author" class="post_author_link" href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>"><?php the_author_meta('display_name'); ?></a> </span> <?php } ?> <?php if($blog_hide_comments != "yes"){ ?> <span class="dots"><i class="fa fa-square"></i></span><a itemprop="url" class="post_comments" href="<?php comments_link(); ?>" target="_self"><?php comments_number('0 ' . __('Comments','qode'), '1 '.__('Comment','qode'), '% '.__('Comments','qode') ); ?></a> <?php } ?> <?php if( $qode_like == "on" ) { ?> <span class="dots"><i class="fa fa-square"></i></span><div class="blog_like"> <?php if( function_exists('qode_like') ) qode_like(); ?> </div> <?php } ?> <?php if(isset($qode_options_proya['enable_social_share']) && $qode_options_proya['enable_social_share'] == "yes") { ?> <span class="dots"><i class="fa fa-square"></i></span><?php echo do_shortcode('[social_share]'); ?> <?php } ?> </div> <i class="qoute_mark fa fa-quote-right pull-left"></i> <div class="post_title entry_title"> <p><a itemprop="url" href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php echo get_post_meta(get_the_ID(), "quote_format", true); ?></a></p> <span class="quote_author">— <?php the_title(); ?></span> </div> </div> </div> </div> </article> <?php break; default: ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <div class="post_content_holder"> <?php if ( has_post_thumbnail() ) { ?> <div class="post_image"> <a itemprop="url" href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"> <?php the_post_thumbnail('full'); ?> </a> </div> <?php } ?> <div class="post_text"> <div class="post_text_inner"> <h2 itemprop="name" class="entry_title"><span itemprop="dateCreated" class="date entry_date updated"><?php the_time('d M'); ?><meta itemprop="interactionCount" content="UserComments: <?php echo get_comments_number(qode_get_page_id()); ?>"/></span> <a itemprop="url" href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2> <div class="post_info"> <span class="time"><?php _e('Posted at','qode'); ?> <?php the_time('H:i'); ?><?php _e('h','qode'); ?></span> <?php _e('in','qode'); ?> <?php the_category(', '); ?> <?php if($blog_hide_author == "no") { ?> <span class="post_author"> <?php _e('by','qode'); ?> <a itemprop="author" class="post_author_link" href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>"><?php the_author_meta('display_name'); ?></a> </span> <?php } ?> <?php if($blog_hide_comments != "yes"){ ?> <span class="dots"><i class="fa fa-square"></i></span><a itemprop="url" class="post_comments" href="<?php comments_link(); ?>" target="_self"><?php comments_number('0 ' . __('Comments','qode'), '1 '.__('Comment','qode'), '% '.__('Comments','qode') ); ?></a> <?php } ?> <?php if( $qode_like == "on" ) { ?> <span class="dots"><i class="fa fa-square"></i></span><div class="blog_like"> <?php if( function_exists('qode_like') ) qode_like(); ?> </div> <?php } ?> <?php if(isset($qode_options_proya['enable_social_share']) && $qode_options_proya['enable_social_share'] == "yes") { ?> <span class="dots"><i class="fa fa-square"></i></span><?php echo do_shortcode('[social_share]'); ?> <?php } ?> </div> <?php qode_excerpt(); ?> <div class="post_more"> <a itemprop="url" href="<?php the_permalink(); ?>" class="qbutton small"><?php _e('Read More','qode'); ?></a> </div> </div> </div> </div> </article> <?php } ?>