panel_boczny

Page 1

<div id="aside">

<?php if($post->post_parent) { $children = wp_list_pages("title_li=&child_of=".$post->post_parent."&echo=0"); $titlenamer = get_the_title($post->post_parent); }

else { $children = wp_list_pages("title_li=&child_of=".$post->ID."&echo=0"); $titlenamer = get_the_title($post->ID); } if ($children) { ?>

<div class="widget"> <div class="body"> <h2><?php echo $titlenamer ?></h2> <ul> <?php echo $children; ?> </ul> </div> <div class="footer"></div> </div> <?php } ?>

<?php global $more; $more = 0; query_posts('cat=3&showposts=1'); if ( have_posts() ) :


?> <div class="widget"> <div class="body">

<h2><span><a href="http://onamagazyn.pl/kategoria/blog/" target="_blank"><strong>ONA pisze bloga</strong></a></span></h2>

<?php while ( have_posts() ) : the_post(); ?> <h3><?php the_title(); ?></h3> <?php the_content(''); ?> <p class="more"><h2><a href="http://onamagazyn.pl/kategoria/blog/" target="_blank"><strong><span>Czytaj dalej</span></strong></a></h2></p> <?php endwhile; ?>

</div> <div class="footer"></div> </div> <?php endif; wp_reset_query(); ?>

<div class="widget"> <div class="body"> <h2>Wizyt贸wki</h2> <?php $rand_posts = get_posts('cat=5&numberposts=1&orderby=rand'); foreach( $rand_posts as $post ) : ?> <p class="img"> <img src="<?php echo pt(); ?>?src=<?php echo get('card-logo'); ?>&w=200" class="card-logo" alt="Logo firmy <?php the_title(); ?>" /> </p> <?php $www = get('card-www'); if(!empty($www)){ ?> <h2><a href="<?php echo $www; ?>"><?php the_title(); ?></a></h2>


<?php } else { ?> <h2><?php the_title(); ?></h2> <?php } ?> <?php $mail= get('card-email'); if(!empty($mail)){ ?> <p class="mail"><a href="mailto:<?php echo $mail; ?>"><? echo $mail; ?></a></p> <?php } ?> <?php $tel = get('card-tel'); if(!empty($tel)){ ?> <p class="tel">tel: <span><? echo $tel; ?></span></p> <?php } ?> <?php $fax = get('card-fax'); if(!empty($fax)){ ?> <p class="fax">faks: <span><? echo $fax; ?></span></p> <?php } ?> <p class="text"><?php echo $post->post_content ?></p> <?php endforeach; ?> </div> <div class="footer"></div> </div> <?php if(!is_category(5)){ ?> <p class="button"> <a href="<?php echo get_page_link(108); ?>">+ Dodaj wizytówkę</a> </p> <?php } ?>

</div> </div>

<div id="sidebar"> <?php if(is_category(5)){ ?> <p class="button"> <a href="<?php echo get_page_link(108); ?>">+ Dodaj wizytówkę</a> </p>


<?php } else { ?> <p class="button"> <a href="http://www.kukulka.net.pl/onamagazyn/">Czytaj on-line</a> </p> <?php } ?> <div class="widget"> <div class="body"> <h2>Newsletter</h2> <p>Praktyczny przewodnik kobiet biznesu. Zapisz się na darmowe porady.</p> <form action="http://onamagazyn.pl/newsletter/" method="post" id="NewsletterForm"> <fieldset> <p> <label for="name">Imię i nazwisko:</label> <input type="text" id="name" name="nn" class="text" /> </p> <p> <label for="email">Adres e-mail:</label> <input type="text" id="email" name="ne" class="text" /> </p> <p class="submit"> <input type="submit" value="Wyślij" /> </p> <input type="hidden" value="s" name="na"> </fieldset> </form> </div> <div class="footer"></div> </div> <?php query_posts('cat=18&showposts=1');


if ( have_posts() ) : ?> <div class="widget"> <div class="body"> <h2><a href="http://onamagazyn.pl/kik" target="_blank"><strong><span>Klub Inwestycyjny Kobiet</span></strong></a></h2> <ul> <?php while ( have_posts() ) : the_post(); ?> <li> <a href="<?php echo get('partner-url'); ?>"> <img src="<?php echo pt(); ?>?src=<?php echo get('partner-logo'); ?>&w=200" alt="<? php the_title(); ?>" /> </a> </li> <?php endwhile; ?> </ul> </div> <div class="footer"></div> </div> <?php endif; wp_reset_query(); ?>

</div>


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.