Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

kabbo508 on "new tab from template"

$
0
0

here is my website url: http://redripley.com/
in the home homepage you see "FEATURED WORK" option is in there have my many woks details,but when i set my cursor pointer and try to opn any of one work detail by new tab or new window,then i cant get this option..can any one help me out of this issue...here is the my homepage template php code.

<?php
/**
 * Template Name: Homepage Template
 * Description: A Page Template that showcases Sticky Posts, Asides, and Blog Posts
 *
 * The showcase template in Twenty Eleven consists of a featured posts section using sticky posts,
 * another recent posts area (with the latest post shown in full and the rest as a list)
 * and a left sidebar holding aside posts.
 *
 * We are creating two queries to fetch the proper posts and a custom widget for the sidebar.
 *
 * @package WordPress
 * @subpackage Twenty_Eleven
 * @since Twenty Eleven 1.0
 */

get_header(); ?>

		<div id="primary">

			<div id="content" role="main">

                <div class="tagline" style="padding-top: 40px;">
                	<div class="big">WE MAKE <span class="bigred">AWESOME</span> VIDEOS<BR>FOR BRANDS AND AGENCIES</div>
                    <div class="small"><h1 style="font-size:28px;">Vancouver Video Production Company</h1>We're a small full service multifaceted video production studio based out of Vancouver, Canada. <a href="http://redripley.com/people/">Our team</a> is incredibly enthusiastic about every project we do. By clearly communicating with our clients and sweating the small details, we've built a loyal client base ranging from large market corporations to small startups. We have the right expertise and experience to be able to provide you with only the <a href="http://redripley.com/work/">highest quality commercial video production</a> and <b><i>corporate video production</i></b> services. Our goal is to produce a video that captures your messaging in a unique and powerful way, helping you to captivate your audience and achieve your marketing objectives.<br /><br /><h2 style="font-size:25px;">Corporate Video Production</h2>We use only the latest in video production technology, providing our clients with cutting edge video production services for corporate and commercial projects. We guarantee 100% customer satisfaction every time. If you're looking for a professional <b><i>Vancouver video production company</i></b> who will get the job done quickly, efficiently and affordably, get in touch with our video production team. We don't want to create yet another boring, lifeless video. We only create pieces that are beautiful, powerful and unforgettable, telling the story that you want people to know. We would be happy to discuss with you your vision and to help you make it come to life. </div>
                </div>

				<div class="labelblock">
                	<div class="label">FEATURED WORK</div>
                    <a href="<?php echo esc_url( home_url( '/work/' ) ); ?>" class="redbutton">VIEW LATEST WORK</a>
                    <div class="clear"></div>
                </div>
				<div class="blocksholder">

                <div id="container" class="clearfix">

					  <?php
                          $linksPosts = new WP_Query();
                          $linksPosts->query('cat=13&order=DESC&showposts=13');
                      ?>
                      <?php
					  $counter = 1;
					  while ($linksPosts->have_posts()) : $linksPosts->the_post(); 

					  global $more;
					  $more = 0;

					  $values = get_post_custom_values("type");
					  $short_title = get_post_custom_values("short_title");

					  if($values[0]!='spotlight'){
						 $class = "col1";
						 $fontcolor = "skyblue";
						 $tagline = 'BLOG';
						 $cover = 'background: #2fd3f6;';
					  }else{
						 $class = "col2";
						 $fontcolor = "orange";
						 $tagline = $values[0];
						 $cover = 'background: #ffa801;';
					  }
					 	$large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'large');
						$short_description = get_post_custom_values("short_description");

						if (in_category('Featured Videos')){
						//$tagline = 'Featured';
						}

					  ?>
                      <div class="box <?php echo $class;?> m-info-block">
                      <div class="box-title"><?php
					  	echo the_time('Y.d.m');
					  //echo $short_title[0];?></div>
                      <div class="box-tagline <?php echo $fontcolor;?>">
					  <?php
					  	$catcount = 1;
						foreach((get_the_category()) as $category) {
//						echo $category->cat_name;
						if($category->cat_name!='Blog' && $category->cat_name!='Featured Videos' && $category->cat_name!='All Video Posts'){
							if($catcount != 1){
								echo ' / ';
							}
							echo $category->cat_name;
							$catcount++;
						}
/*						if($category->cat_name!='Blog' || $category->cat_name!='Featured Videos'){
							$category_id = get_cat_ID( $category->cat_name );
							$category_link = get_category_link( $category_id );
							echo '<a href="'.$category_link.'">'.$category->cat_name.'</a>';
						} */
						}
						?>
					  <?php 

					  //$categories_list = get_the_category_list( __( '.', 'twentyeleven' ) ); echo $categories_list;?><?php //echo $tagline;?></div>
                      	<div class="cover" onclick="location.href='<?php echo the_permalink();?>'" style="<?php echo $cover;?>">
                        	<div class="bunchtext">
                            	<div class="bunchholder">
                                    <div class="line1">VIEW</div>
                                    <div class="line2">MORE</div>
                                    <div class="line3">></div>
                                </div>
                            </div>
                        </div>
                        <div class="innercontent">
                            <div class="read">
                            <div class="thumb" style="background: url(<?php echo $large_image_url[0];?>) center no-repeat;"></div>
                            <h4><?php the_title(); ?></h4>
                            <div class="text"><?php echo $short_description[0];?></div>
                            </div>
                        </div>

                      </div>
                      <?php
					  $counter++;
					  endwhile; ?>

                </div>

                </div><br />
                <div class="labelblock">
                	<div class="label">OUR CLIENTS</div>
                    <a href="<?php echo esc_url( home_url( '/work/' ) ); ?>" class="redbutton">VIEW OUR CLIENTS</a>
                    <div class="clear"></div>
                </div>
                <div class="blocksholder">
               	<?php
				$sidebar_page = new WP_Query('pagename=Partner Logos - Do Not Remove');
				$sidebar_page->the_post();
				the_content(); ?>

                </div>

                <div class="clear"></div>

                <div class="quoteholder">
					<div class="quote"><span class="openquote">"</span>&nbsp;Red+Ripley, a video production and communications firm specializing in custom marketing strategies, video production, corporate videos, event videos, studio filming, film shoots, RED™ EPIC, SCARLET HD shooting, post production, editing, animation, visual effects (VFX), production management, and digital film and video presentations that can be used on the web.<span class="closequote">"</span></div>
                                </div>

				<div class="clear"></div>

                <div class="backtotopholder">
                	<a href="#top" class="button"></a>
                </div>
                <div class="clear"></div>

                <div class="contactholder">
                	Get in touch<br>
                    <span class="number">604.765.2444</span><br>
                    No Obligation Consultation
                </div>

			</div><!-- #content -->
		</div><!-- #primary -->
<div class="clear"></div>

<?php get_footer(); ?>

Viewing all articles
Browse latest Browse all 8245

Trending Articles