Jump to content

Recommended Posts

Hi,

I want change scroll in my site, cause is uncomfortable. I want open link i new frame and delete scroll...

Sorry 4 my eng

 

Site: http://www.fenster-norta.at/angebot/

 

 

php files:

 

 

Menu:

<?php
/*
Template Name: Menu
*/
?>
<div id="menu">
<?php get_template_part('templates/page', 'header'); ?>
<?php get_template_part('templates/content', 'menu'); ?>
</div>

	<div class="span8 box-l">
		<?php if ( get_post_meta($post->ID, 'podpis-lewa', true) ) : ?>
		    <?php echo get_post_meta($post->ID, 'podpis-lewa', true) ?>
		<?php endif; ?>
	</div>
	<div class="span5 box-r pull-right">
		<h3>
		<?php if ( get_post_meta($post->ID, 'podpis-prawa', true) ) : ?>
		    <?php echo get_post_meta($post->ID, 'podpis-prawa', true) ?>
		<?php endif; ?>
		</h3>
	</div>

Content-menu:

<?php //wp_nav_menu( array( 'theme_location' => 'menu_navigation', 'walker' => new Custom_Walker_Nav_Menu ) ); ?>

<div class="row">
    <div class="span4">Fenster</div>
    <div class="span3">
	<?php 	
			$args = array( 
				'category_name' => 'kunststofffenster', 
				'post_type' => 'fenster_post',
				'posts_per_page' => 1 
			);
			$loop = null;
			$loop = new WP_Query( $args );
			//print_r($loop);
			if ($args) {
		   		while ( $loop->have_posts() ) : $loop->the_post();
					the_title();
		   		endwhile; 
			}   
	?>
	</div>

	<?php // List posts by the terms for a custom taxonomy of any post type

		$post_type = 'fenster_post';
		$tax = 'typ';
		$tax_terms = get_terms( $tax );
		//print_r($tax_terms);
		if ($tax_terms) {
			$i=0; 
			foreach ($tax_terms  as $tax_term) {
				//print_r($i);
			$args = array(
				'post_type' => $post_type,
				'category_name' => 'kunststofffenster', 
				//'category_name' => 'parent', 
				"$tax" => $tax_term->slug,
				'post_status' => 'publish',
				'posts_per_page' => -1,
			);

				$my_query = null;
				$my_query = new WP_Query($args);
				
				if( $my_query->have_posts() ) : ?>

				<div class="span <?php if ($i>1) echo offset7;?>">
					<div class="span3"><?php echo '<a data-toggle="tooltip" title="'.$tax_term->description.'" href="'.get_term_link($tax_term).'">'.$tax_term->name.'</a>'; ?></div>
					<ul class="span3 taxlist">
					<?php while ( $my_query->have_posts() ) : $my_query->the_post(); ?>
						<li>
							<a data-toggle="tooltip" title="technische daten" href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
						</li>
					<?php endwhile; // end of loop ?>

					</ul>
				</div>
				<?php else : ?>
				<?php endif; // if have_posts()
				wp_reset_query();
			$i++;	
			} // end foreach #tax_terms
		}
	?>
	
</div> 

<?php /* ----------------------- */ ?>
<div class="row">
    <div class="span3 offset4">
	<?php 	
			$args = array( 
				'category_name' => 'aluminiumkonstruktionen', 
				'post_type' => 'fenster_post',
				'posts_per_page' => 1 
			);
			$loop = null;
			$loop = new WP_Query( $args );
			//print_r($loop);
			if ($args) {
		   		while ( $loop->have_posts() ) : $loop->the_post();
					the_title();
		   		endwhile; 
			}   
	?>
	</div>

	<?php // List posts by the terms for a custom taxonomy of any post type

		$post_type = 'fenster_post';
		$tax = 'typ';
		$tax_terms = get_terms( $tax );
		if ($tax_terms) {
			$index=0; 
			foreach ($tax_terms  as $tax_term) {
			$args = array(
				'post_type' => $post_type,
				'category_name' => 'aluminiumkonstruktionen', 
				"$tax" => $tax_term->slug,
				'post_status' => 'publish',
				'posts_per_page' => -1,
			);

				$my_query = null;
				$my_query = new WP_Query($args);
				
				if( $my_query->have_posts() ) : ?>

				<div class="span <?php if ($index>0) echo offset7;?>">
					<div class="span3"><?php echo '<a href="'.get_term_link($tax_term).'">'.$tax_term->name.'</a>'; ?></div>
					<ul class="span3 taxlist">
					<?php while ( $my_query->have_posts() ) : $my_query->the_post(); ?>
						<li>
							<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
						</li>
					<?php endwhile; // end of loop ?>

					</ul>
				</div>
				<?php else : ?>
				<?php endif; // if have_posts()
				wp_reset_query();
			$index++;	
			} // end foreach #tax_terms
		}
	?>
	
</div> 

<hr>

<?php /* ------------------------------------------------------------------------------------------------------------------------ */ ?>
<div class="row">
    <div class="span4">Turen</div>
    <?php // List posts by the terms for a custom taxonomy of any post type

		$post_type = 'turen_post';
		$tax = 'typ2';
		$tax_terms = get_terms( $tax );
		//print_r($tax_terms);
		if ($tax_terms) {
			$i=0; 
			foreach ($tax_terms  as $tax_term) {
				//print_r($i);
			$args = array(
				'post_type' => $post_type,
				//'category_name' => 'kunststofffenster', 
				//'category_name' => 'parent', 
				"$tax" => $tax_term->slug,
				'post_status' => 'publish',
				'posts_per_page' => -1,
			);

				$my_query = null;
				$my_query = new WP_Query($args);
				
				if( $my_query->have_posts() ) : ?>

				<div class="pull-left <?php if ($i>1) echo offset7;?>">
					<div class="span3"><?php echo '<a href="'.get_term_link($tax_term).'">'.$tax_term->name.'</a>'; ?></div>
					<ul class="span3 taxlist">
					<?php while ( $my_query->have_posts() ) : $my_query->the_post(); ?>
						<li>
							<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
						</li>
					<?php endwhile; // end of loop ?>

					</ul>
				</div>
				<?php else : ?>
				<?php endif; // if have_posts()
				wp_reset_query();
			$i++;	
			} // end foreach #tax_terms
		}
	?>

</div> 

<hr>

<?php /* ------------------------------------------------------------------------------------------------------------------------ */ ?>
<div class="row">
    <div class="span4">Rollläden und Zubehör</div>
    <?php // List posts by the terms for a custom taxonomy of any post type

		$post_type = 'rollladen_post';
		$tax = 'typ3';
		$tax_terms = get_terms( $tax );
		//print_r($tax_terms);
		if ($tax_terms) {
			$i=0; 
			foreach ($tax_terms  as $tax_term) {
				//print_r($i);
			$args = array(
				'post_type' => $post_type,
				//'category_name' => 'kunststofffenster', 
				//'category_name' => 'parent', 
				"$tax" => $tax_term->slug,
				'post_status' => 'publish',
				'posts_per_page' => -1,
			);

				$my_query = null;
				$my_query = new WP_Query($args);
				
				if( $my_query->have_posts() ) : ?>

				<div class="pull-left <?php if ($i>=1) echo offset4;?>">
					<div class="span3"><?php echo '<a href="'.get_term_link($tax_term).'">'.$tax_term->name.'</a>'; ?></div>
					<ul class="span3 taxlist">
					<?php while ( $my_query->have_posts() ) : $my_query->the_post(); ?>
						<li>
							<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
						</li>
					<?php endwhile; // end of loop ?>

					</ul>
				</div>
				<?php else : ?>
				<?php endif; // if have_posts()
				wp_reset_query();
			$i++;	
			} // end foreach #tax_terms
		}
	?>
</div> 
Link to comment
https://forums.phpfreaks.com/topic/277991-links-in-the-frame/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.