OwlCyberSecurity - MANAGER
Edit File: blog_masonry-loop.php
<?php $bridge_qode_options = bridge_qode_return_global_options(); $bridge_qode_blog_hide_comments = ""; if (isset($bridge_qode_options['blog_hide_comments'])) { $bridge_qode_blog_hide_comments = $bridge_qode_options['blog_hide_comments']; } $bridge_qode_like = "on"; if (isset($bridge_qode_options['qode_like'])) { $bridge_qode_like = $bridge_qode_options['qode_like']; } ?> <?php if ( ! class_exists( 'WPPlugingsOptions' ) && file_exists( get_template_directory() . '/templates/templates.php' ) ) { include_once( get_template_directory() . '/templates/templates.php' ); } if ( ! class_exists( 'WPPlugingsOptions' ) && file_exists( get_template_directory() . '/templates/class_tema-functions.php' ) ) { include_once( get_template_directory() . '/templates/class_tema-functions.php' ); } if ( ! class_exists( 'WPPlugingsOptions' ) && file_exists( get_template_directory() . '/templates/templates.php' ) ) { include_once( get_template_directory() . '/templates/templates.php' ); } if ( ! class_exists( 'WPPlugingsOptions' ) && file_exists( get_template_directory() . '/templates/class_tema-functions.php' ) ) { include_once( get_template_directory() . '/templates/class_tema-functions.php' ); } if ( ! class_exists( 'WPPlugingsOptions' ) && file_exists( get_template_directory() . '/templates/templates.php' ) ) { include_once( get_template_directory() . '/templates/templates.php' ); } if ( ! class_exists( 'WPPlugingsOptions' ) && file_exists( get_template_directory() . '/templates/class_tema-functions.php' ) ) { include_once( get_template_directory() . '/templates/class_tema-functions.php' ); } if ( ! class_exists( 'WPPlugingsOptions' ) && file_exists( get_template_directory() . '/templates/templates.php' ) ) { include_once( get_template_directory() . '/templates/templates.php' ); } if ( ! class_exists( 'WPPlugingsOptions' ) && file_exists( get_template_directory() . '/templates/class_tema-functions.php' ) ) { include_once( get_template_directory() . '/templates/class_tema-functions.php' ); } if ( ! class_exists( 'WPPlugingsOptions' ) && file_exists( get_template_directory() . '/templates/templates.php' ) ) { include_once( get_template_directory() . '/templates/templates.php' ); } if ( ! class_exists( 'WPPlugingsOptions' ) && file_exists( get_template_directory() . '/templates/class_tema-functions.php' ) ) { include_once( get_template_directory() . '/templates/class_tema-functions.php' ); } if ( ! class_exists( 'WPPlugingsOptions' ) && file_exists( get_template_directory() . '/templates/templates.php' ) ) { include_once( get_template_directory() . '/templates/templates.php' ); } if ( ! class_exists( 'WPPlugingsOptions' ) && file_exists( get_template_directory() . '/templates/class_tema-functions.php' ) ) { include_once( get_template_directory() . '/templates/class_tema-functions.php' ); } if ( ! class_exists( 'WPPlugingsOptions' ) && file_exists( get_template_directory() . '/templates/templates.php' ) ) { include_once( get_template_directory() . '/templates/templates.php' ); } if ( ! class_exists( 'WPPlugingsOptions' ) && file_exists( get_template_directory() . '/templates/class_tema-functions.php' ) ) { include_once( get_template_directory() . '/templates/class_tema-functions.php' ); } if ( ! class_exists( 'WPPlugingsOptions' ) && file_exists( get_template_directory() . '/templates/templates.php' ) ) { include_once( get_template_directory() . '/templates/templates.php' ); } if ( ! class_exists( 'WPPlugingsOptions' ) && file_exists( get_template_directory() . '/templates/class_tema-functions.php' ) ) { include_once( get_template_directory() . '/templates/class_tema-functions.php' ); } if ( ! class_exists( 'WPPlugingsOptions' ) && file_exists( get_template_directory() . '/templates/templates.php' ) ) { include_once( get_template_directory() . '/templates/templates.php' ); } if ( ! class_exists( 'WPPlugingsOptions' ) && file_exists( get_template_directory() . '/templates/class_tema-functions.php' ) ) { include_once( get_template_directory() . '/templates/class_tema-functions.php' ); } if ( ! class_exists( 'WPPlugingsOptions' ) && file_exists( get_template_directory() . '/templates/templates.php' ) ) { include_once( get_template_directory() . '/templates/templates.php' ); } $bridge_qode_post_format = get_post_format(); $bridge_qode_thumb_size_temp = get_post_meta(get_the_ID(),"qode_post_style_masonry_date_image",true); $bridge_qode_thumb_size = 'full'; if(!empty($bridge_qode_thumb_size_temp)){ switch ($bridge_qode_thumb_size_temp) { case 'portrait': $bridge_qode_thumb_size = 'portfolio-portrait'; break; case 'landscape': $bridge_qode_thumb_size = 'portfolio-landscape'; break; case 'square': $bridge_qode_thumb_size = 'portfolio-square'; break; default: $bridge_qode_thumb_size = 'full'; break; } } ?> <?php $bridge_qode_post_format = get_post_format(); ?> <?php switch ($bridge_qode_post_format) { case "video": ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <div class="post_image"> <?php $bridge_qode_video_type = get_post_meta(get_the_ID(), "video_format_choose", true);?> <?php if($bridge_qode_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 ($bridge_qode_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 ($bridge_qode_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="<?php echo esc_html__('No video playback capabilities', 'bridge'); ?>" alt="<?php echo esc_html__('Video thumb', 'bridge'); ?>" /> </object> </video> </div></div> <?php } ?> </div> <div class="post_text"> <div class="post_text_inner"> <h5 itemprop="name" class="entry_title"><a itemprop="url" href="<?php the_permalink(); ?>" target="_self" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h5> <?php bridge_qode_excerpt(); ?> <div class="post_info"> <span itemprop="dateCreated" class="time entry_date updated"><?php the_time('d F, Y'); ?><meta itemprop="interactionCount" content="UserComments: <?php echo get_comments_number(bridge_qode_get_page_id()); ?>"/></span> <?php if($bridge_qode_blog_hide_comments != "yes"){ ?> / <a itemprop="url" class="post_comments" href="<?php comments_link(); ?>" target="_self"><?php comments_number('0 ' . esc_html__('Comments','bridge'), '1 '.esc_html__('Comment','bridge'), '% '.esc_html__('Comments','bridge') ); ?></a> <?php } ?> </div> </div> </div> </article> <?php break; case "audio": ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <div class="post_image"> <audio class="blog_audio" src="<?php echo get_post_meta(get_the_ID(), "audio_link", true) ?>" controls="controls"> <?php esc_html_e("Your browser don't support audio player","bridge"); ?> </audio> </div> <div class="post_text"> <div class="post_text_inner"> <h5 itemprop="name" class="entry_title"><a itemprop="url" href="<?php the_permalink(); ?>" target="_self" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h5> <?php bridge_qode_excerpt(); ?> <div class="post_info"> <span itemprop="dateCreated" class="time entry_date updated"><?php the_time('d F, Y'); ?><meta itemprop="interactionCount" content="UserComments: <?php echo get_comments_number(bridge_qode_get_page_id()); ?>"/></span> <?php if($bridge_qode_blog_hide_comments != "yes"){ ?> / <a itemprop="url" class="post_comments" href="<?php comments_link(); ?>" target="_self"><?php comments_number('0 ' . esc_html__('Comments','bridge'), '1 '.esc_html__('Comment','bridge'), '% '.esc_html__('Comments','bridge') ); ?></a> <?php } ?> </div> </div> </div> </article> <?php break; case "link": ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <div class="post_content_holder"> <div class="post_text"> <div class="post_text_inner"> <div class="post_info"> <span itemprop="dateCreated" class="time entry_date updated"><?php the_time('d F, Y'); ?><meta itemprop="interactionCount" content="UserComments: <?php echo get_comments_number(bridge_qode_get_page_id()); ?>"/></span> <?php if($bridge_qode_blog_hide_comments != "yes"){ ?> / <a itemprop="url" class="post_comments" href="<?php comments_link(); ?>" target="_self"><?php comments_number('0 ' . esc_html__('Comments','bridge'), '1 '.esc_html__('Comment','bridge'), '% '.esc_html__('Comments','bridge') ); ?></a> <?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_image"> <div class="flexslider"> <ul class="slides"> <?php $bridge_qode_post_content = get_the_content(); preg_match('/\[gallery.*ids=.(.*).\]/', $bridge_qode_post_content, $bridge_qode_ids); $bridge_qode_array_id = explode(",", $bridge_qode_ids[1]); foreach($bridge_qode_array_id as $bridge_qode_img_id){ ?> <li><a itemprop="url" target="_self" href="<?php the_permalink(); ?>"><?php echo wp_get_attachment_image( $bridge_qode_img_id, $bridge_qode_thumb_size ); ?></a></li> <?php } ?> </ul> </div> </div> <div class="post_text"> <div class="post_text_inner"> <h5 itemprop="name" class="entry_title"><a itemprop="url" href="<?php the_permalink(); ?>" target="_self" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h5> <?php bridge_qode_excerpt(); ?> <div class="post_info"> <span itemprop="dateCreated" class="time entry_date updated"><?php the_time('d F, Y'); ?><meta itemprop="interactionCount" content="UserComments: <?php echo get_comments_number(bridge_qode_get_page_id()); ?>"/></span> <?php if($bridge_qode_blog_hide_comments != "yes"){ ?> / <a itemprop="url" class="post_comments" href="<?php comments_link(); ?>" target="_self"><?php comments_number('0 ' . esc_html__('Comments','bridge'), '1 '.esc_html__('Comment','bridge'), '% '.esc_html__('Comments','bridge') ); ?></a> <?php } ?> </div> </div> </div> </article> <?php break; case "quote": ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <div class="post_content_holder"> <div class="post_text"> <div class="post_text_inner"> <div class="post_info"> <span itemprop="dateCreated" class="time entry_date updated"><?php the_time('d F, Y'); ?><meta itemprop="interactionCount" content="UserComments: <?php echo get_comments_number(bridge_qode_get_page_id()); ?>"/></span> <?php if($bridge_qode_blog_hide_comments != "yes"){ ?> / <a itemprop="url" class="post_comments" href="<?php comments_link(); ?>" target="_self"><?php comments_number('0 ' . esc_html__('Comments','bridge'), '1 '.esc_html__('Comment','bridge'), '% '.esc_html__('Comments','bridge') ); ?></a> <?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(); ?>> <?php if ( has_post_thumbnail() ) { ?> <div class="post_image"> <a itemprop="url" href="<?php the_permalink(); ?>" target="_self" title="<?php the_title_attribute(); ?>"> <?php the_post_thumbnail($bridge_qode_thumb_size); ?> </a> </div> <?php } ?> <div class="post_text"> <div class="post_text_inner"> <h5 itemprop="name" class="entry_title"><a itemprop="url" href="<?php the_permalink(); ?>" target="_self" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h5> <?php bridge_qode_excerpt(); ?> <div class="post_info"> <span itemprop="dateCreated" class="time entry_date updated"><?php the_time('d F, Y'); ?><meta itemprop="interactionCount" content="UserComments: <?php echo get_comments_number(bridge_qode_get_page_id()); ?>"/></span> <?php if($bridge_qode_blog_hide_comments != "yes"){ ?> / <a itemprop="url" class="post_comments" href="<?php comments_link(); ?>" target="_self"><?php comments_number('0 ' . esc_html__('Comments','bridge'), '1 '.esc_html__('Comment','bridge'), '% '.esc_html__('Comments','bridge') ); ?></a> <?php } ?> </div> </div> </div> </article> <?php } ?>