Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * @author madars.bitenieks
- * @copyright 2011
- */
- get_header();
- $post_types=get_post_types('','names');
- foreach ($post_types as $post_type ) {
- }
- $slides = get_post_meta($post->ID,'slides', true);
- $sidebar=get_post_meta($post->ID, "madza_sidebar_type", true);
- $single_thumb=get_post_meta($post->ID, "madza_post_single_thumb_size", true);
- $image_type = get_post_meta(get_the_ID(), 'tz_post_thumb_single', TRUE);
- $height = get_post_meta(get_the_ID(), 'tz_post_image_height', TRUE);
- $height2 = get_post_meta(get_the_ID(), 'tz_post_image_height2', TRUE);
- $height3 = get_post_meta(get_the_ID(), 'tz_post_image_height3', TRUE);
- $height4 = get_post_meta(get_the_ID(), 'tz_post_image_height4', TRUE);
- $height5 = get_post_meta(get_the_ID(), 'tz_post_image_height5', TRUE);
- $image1 = get_post_meta(get_the_ID(), 'tz_post_image', TRUE);
- $image2 = get_post_meta(get_the_ID(), 'tz_post_image2', TRUE);
- $image3 = get_post_meta(get_the_ID(), 'tz_post_image3', TRUE);
- $image4 = get_post_meta(get_the_ID(), 'tz_post_image4', TRUE);
- $image5 = get_post_meta(get_the_ID(), 'tz_post_image5', TRUE);
- $height = get_post_meta(get_the_ID(), 'tz_post_image_height', TRUE);
- $embed = get_post_meta(get_the_ID(), 'tz_post_embed_code', TRUE);
- $heightSingle = get_post_meta(get_the_ID(), 'tz_video_height_single', TRUE);
- $mp4 = get_post_meta(get_the_ID(), 'tz_video_m4v', TRUE);
- $webm = get_post_meta(get_the_ID(), 'tz_video_webm', TRUE);
- $ogv = get_post_meta(get_the_ID(), 'tz_video_ogv', TRUE);
- $image_prew = get_post_meta(get_the_ID(), 'tz_video_poster', TRUE);
- if ( have_posts() ) while ( have_posts() ) : the_post();
- ?>
- <!--TEXT CONTENT -->
- <div class="<?php $sidebar=get_post_meta($post->ID, "madza_sidebar_type", true); if($sidebar=="Left") { echo "right-content"; } else { echo "left-content"; } ?>">
- <?php
- if ($heightSingle == '' AND $embed == '' AND $image1 == '' AND $image2 == '' AND $image3 == '' AND $image4 == '' AND $image5 == '' AND has_post_thumbnail() ) {
- the_post_thumbnail("post-670");
- } else if ($image1 != '') { ?>
- <?php if($image2 != '' or $image3 != '' or $image4 != '' or $image5 != '') {?><div id="single-slider"><?php } ?>
- <ul style="margin-top:0px;" class="slider-ul-single" id="circle-slidrer">
- <?php if($image1 != '') : ?>
- <li><img height="<?php echo $height; ?>" width="670" src="<?php echo $image1; ?>" alt="<?php the_title(); ?>" /></li>
- <?php endif; ?>
- <?php if($image2 != '') : ?>
- <li><img height="<?php echo $height2; ?>" width="670" src="<?php echo $image2; ?>" alt="<?php the_title(); ?>" /></li>
- <?php endif; ?>
- <?php if($image3 != '') : ?>
- <li><img height="<?php echo $height3; ?>" width="670" src="<?php echo $image3; ?>" alt="<?php the_title(); ?>" /></li>
- <?php endif; ?>
- <?php if($image4 != '') : ?>
- <li><img height="<?php echo $height4; ?>" width="670" src="<?php echo $image4; ?>" alt="<?php the_title(); ?>" /></li>
- <?php endif; ?>
- <?php if($image5 != '') : ?>
- <li><img height="<?php echo $height5; ?>" width="670" src="<?php echo $image5; ?>" alt="<?php the_title(); ?>" /></li>
- <?php endif; ?>
- </ul>
- <?php if($image2 != '' or $image3 != '' or $image4 != '' or $image5 != '') {?>
- <div class="single-blog-nav">
- <div id="next2"></div>
- <div id="prev2"></div>
- <div class="clear"></div>
- </div>
- <script type="text/javascript">
- var $j = jQuery.noConflict();
- $j(document).ready(function(){
- $j('#circle-slidrer').cycle({
- fx: 'scrollHorz',
- speed: 1000,
- before: onBefore,
- timeout: 0,
- after: onAfter,
- next: '#next2',
- prev: '#prev2',
- easing: 'easeInOutExpo',
- sync: true
- });
- function onAfter(curr, next, opts, fwd) {
- var $ht = $j(this).height();
- $j(this).parent().animate({height: $ht});
- };
- function onBefore(curr, next, opts, fwd) {
- var $ht = $j(this).height();
- $j(this).parent().animate({height: $ht});
- };
- });
- </script>
- </div>
- <?php }
- } else if($heightSingle != '') { ?>
- <script type="text/javascript" charset="utf-8"> VideoJS.setupAllWhenReady(); </script>
- <!-- Begin VideoJS -->
- <div class="video-js-box">
- <!-- Using the Video for Everybody Embed Code http://camendesign.com/code/video_for_everybody -->
- <video class="video-js" width="670" height="<?php echo $heightSingle; ?>" controls preload poster="<?php echo $image_prew; ?>">
- <source src="<?php echo $mp4; ?>" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"' />
- <source src="<?php echo $webm; ?>" type='video/webm; codecs="vp8, vorbis"' />
- <source src="<?php echo $ogv; ?>" type='video/ogg; codecs="theora, vorbis"' />
- <!-- Flash Fallback. Use any flash video player here. Make sure to keep the vjs-flash-fallback class. -->
- <object class="vjs-flash-fallback" width="670" height="<?php echo $heightSingle; ?>" type="application/x-shockwave-flash" data="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf">
- <param name="movie" value="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf" />
- <param name="allowfullscreen" value="true" />
- <param name="flashvars" value='config={"playlist":["<?php echo $image_prew; ?>", {"url": "<?php echo $mp4; ?>","autoPlay":false,"autoBuffering":true}]}' />
- <!-- Image Fallback. Typically the same as the poster image. -->
- <img src="<?php echo $image_prew; ?>" width="670" height="<?php echo $heightSingle; ?>" alt="Poster Image" title="No video playback capabilities." />
- </object>
- </video>
- </div>
- <!-- End VideoJS -->
- <?php
- } else if ( $embed!="" ) {
- ?><?php echo stripslashes(htmlspecialchars_decode($embed)); ?><?php
- }
- ?>
- <!-- <h1 style="margin-bottom:0px;"><?php the_title(); ?></h1> -->
- <div id="single-content-div"><?php the_content(); ?> </div>
- <p class="callme2" style="margin: 0 0 0 11px;"><a href="tel:014130636">Click this button</a></p>
- <!--<div class="single-meta-frame">
- <?php if ( count( get_the_category() ) ) : ?>
- <div class="cat-links">
- <?php if (of_get_option("meta_date")=="1") {
- ?><div class="meta-date-blog"><?php the_time('F jS, Y'); ?></div><?php
- }
- if (of_get_option("meta_category")=="1") {
- ?><div class="meta-category-blog"><?php _e( 'In: ', "madza_translate" ); printf( __( '%2$s' , 'madza_translate'), 'entry-utility-prep entry-utility-prep-cat-links', get_the_category_list( ', ' ) ); ?></div><?php
- } ?>
- <?php if (of_get_option("meta_author")=="1") {
- ?><div class="meta-author-blog"><?php _e( 'By: ', "madza_translate" ); the_author_posts_link(); ?></div><?php
- } ?>
- <?php if (of_get_option("meta_comment")=="1") {
- ?><div class="meta-comment-blog"><?php comments_popup_link( __( ' Comments: 0', "madza_translate"), __( ' Comment: 1', "madza_translate" ), __( ' Comments: %', "madza_translate"), '0', '0' ); ?></div><?php
- } ?>
- </div>
- <?php endif; ?>
- </div>-->
- <div class="clear"></div>
- <?php if ( ! dynamic_sidebar( 'text-widget-area' ) ) : ?>
- <?php endif; // end text widget area ?>
- <?php
- if (of_get_option("about_author")=="1"){
- if ( get_the_author_meta( 'description' ) ) : // If a user has filled out their description, show a bio on their entries ?>
- <div id="entry_author_info">
- <div id="author_avatar">
- <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'Gooseo_author_bio_avatar_size', 68 ) ); ?>
- </div><!-- #euthor_avatar -->
- <div id="author_description">
- <span class="fn"><?php printf( esc_attr__( '%s', 'Gooseo' ), get_the_author() ); ?></span>
- <p><?php the_author_meta( 'description' ); ?></p>
- </div><!-- #author_description -->
- <div class="clear"></div>
- </div><!-- #entry_author_info -->
- <?php endif; }?>
- <div class="clear"></div>
- <div id="comments_frame">
- <?php comments_template( '', true ); ?>
- </div>
- </div><!--END TEXT CONTENT --> <?php
- endwhile;
- get_sidebar();
- get_footer();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement