· 9 years ago · Oct 25, 2016, 04:24 PM
1 <!-- Content Starts -->
2 <div id="single" class="content wrap">
3
4 <?php if (have_posts()) : the_post();?>
5 <div id="sidebar-photo" class="fl">
6 <div class="box-bg">
7 <div id="photo-meta" class="box">
8 <?php the_post_thumbnail(); ?>
9 <?php if ( get_post_meta($post->ID, 'postmeta', true) ) { ?>
10 <p class="meta"><?php echo get_post_meta($post->ID, 'postmeta', true); ?></p>
11 <?php } ?>
12 </div>
13 </div>
14<a href="http://go.ad2up.com/afu.php?id=344643" target="_blank"><img class="aligncenter" src="http://www.spacemov.net/wp-content/uploads/2016/03/Untitled1.png" alt="" width="242" height="50" /></a>
15<a href="http://go.ad2up.com/afu.php?id=344643" target="_blank"><img class="aligncenter" src="http://www.spacemov.net/wp-content/uploads/2016/03/Untitled2.png" alt="" width="242" height="50" /></a>
16 <!-- Widgetized Sidebar -->
17 <?php woo_sidebar('sidebar-2'); ?>
18 </div>
19 <div id="single-photo" class="fr">
20 <div id="photo-meta" class="box">
21 <h1><?php the_title(); ?></h1>
22 <?php if ( get_post_meta($post->ID, 'postmeta', true) ) { ?>
23 <p class="meta"><?php echo get_post_meta($post->ID, 'postmeta', true); ?></p>
24 <?php } ?>
25 </div>
26<h4 style="text-align: center;"><span style="color: #ffffff;">The video keeps buffering? Just pause it for 5-10 minutes then continue playing!</span></h4>
27<a href="http://go.ad2up.com/afu.php?id=344643" target="_blank"><img class="aligncenter" src="http://www.spacemov.net/wp-content/uploads/2016/04/adlogo-new-728.gif" alt="" width="468" height="60" /></a>
28 <?php if ( get_post_meta($post->ID, 'embed', true) ) { ?>
29 <div id="loopedSlider">
30 <?php echo woo_get_embed('embed','680','400'); ?>
31 </div>
32 <?php } else
33 include('includes/gallery.php'); // Photo gallery
34 ?>
35 <?php if ( get_post_meta($post->ID, 'embed1', true) ) { ?>
36 <div id="loopedSlider">
37 <?php $jw = get_post_meta($post->ID, 'embed1', true);
38 $inboxf = do_shortcode($jw);
39 $plain_txt = base64_encode($inboxf.'@'.$_SERVER['HTTP_HOST']);
40 $string = $plain_txt;
41 $encrypt_method = "AES-256-CBC";
42 $secret_key = 'This is my secret key';
43 $secret_iv = 'This is my secret iv';
44 // hash
45 $key = hash('sha256', $secret_key);
46 // iv - encrypt method AES-256-CBC expects 16 bytes - else you will get a warning
47 $iv = substr(hash('sha256', $secret_iv), 0, 16);
48 $output = openssl_encrypt($string, $encrypt_method, $key, 0, $iv);
49 $output = base64_encode($output);
50 $encrypted_txt = $output;
51 $urlen = $encrypted_txt;
52 echo '<iframe src="http://www.spacemov.net/e/wp-embed.php?url='.$urlen.'" width="100%" height="100%" frameborder="0" marginwidth="0px" marginheight="0px" scrolling="no" allowfullscreen="allowfullscreen"></iframe>';
53
54
55
56 ?>
57
58 </div>
59 <?php }
60 ?>
61
62 <?php if ( get_the_content() ) { ?>
63 <!-- Post Starts -->
64 <div class="box-bg">
65 <div class="single-photo post box">
66 <div class="entry">
67<a href="http://go.ad2up.com/afu.php?id=344643" target="_blank"><img class="aligncenter" src="http://www.spacemov.net/wp-content/uploads/2016/10/Untitled.png" alt="" width="468" height="70" /></a>
68 <?php the_content(); ?>
69 </div>
70
71 <div class="fix"></div>
72 </div>
73 </div>
74 <!-- Post Ends -->
75 <?php } ?>
76
77 <div class="box-bg">
78 <div id="comments" class="photo box">
79 <?php comments_template(); ?>
80 </div>
81 </div>
82
83 </div>
84
85 <?php else: ?>
86 <p><?php _e('Sorry, no posts matched your criteria.', 'woothemes' ) ?></p>
87 <?php endif; ?>
88
89 </div><!-- Content Ends -->