matkovsen
05.11.2008, 10:38
pridal som mod SPIAD (Special Page in A Div) displays the content of a subpage in a div element for specific pages
po aktvacii sa stranka rozbila vid tu www.nikolka.707.cz
riešil som to v bočnom paneli
Bočný panel (sidebar.php)
<div id="sidebar">
<ul>
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(1) ) : else : ?>
<li>
<?php include (TEMPLATEPATH . '/searchform.php'); ?>
</li>
<!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it.
<li><h2>Author</h2>
<p>A little something about you, the author. Nothing lengthy, just an overview.</p>
</li>
-->
<li>
<?php /* If this is a 404 page */ if (is_404()) { ?>
<?php /* If this is a category archive */ } elseif (is_category()) { ?>
<p>You are currently browsing the archives for the
<?php single_cat_title(''); ?>
category.</p>
<?php /* If this is a yearly archive */ } elseif (is_day()) { ?>
<p>You are currently browsing the <a href="<?php bloginfo('home'); ?>/"><?php echo bloginfo('name');
?></a> weblog archives
for the day
<?php the_time('l, F jS, Y'); ?>
.</p>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<p>You are currently browsing the <a href="<?php bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives
for
<?php the_time('F, Y'); ?>
.</p>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<p>You are currently browsing the <a href="<?php bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives
for the year
<?php the_time('Y'); ?>
.</p>
<?php /* If this is a monthly archive */ } elseif (is_search()) { ?>
<p>You have searched the <a href="<?php echo bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives
for <strong>'<?php echo wp_specialchars($s); ?>'</strong>. If you are unable to find anything in these search results, you can try one of these links.</p>
<?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<p>You are currently browsing the <a href="<?php echo bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives.</p>
<?php } ?>
<!-- begin e-calendar code -->
<iframe src="http://www.e-calendar.cz/calendar/Link.jsp?lang=cs&date=yes" frameborder=0 vspace=0 hspace=0 width=180 height=42 marginwidth=0 marginheight=0 scrolling=no></iframe>
<!-- end e-calendar code -->
<center> <embed src="http://img.photobucket.com/albums/v155/kijkwijzer/mandala-clocks/ma59.swf" width="150" height="150" wmode="transparent" type="application/x-shockwave-flash"></embed></center>
<?php wp_list_pages('title_li=<h2>Stranky</h2>&exclude=21,23' ); ?>
</li>
<li>
<h2>Archiv</h2>
<ul>
<?php wp_get_archives('type=monthly'); ?>
</ul>
</li>
<li>
<h2>Kategorie</h2>
<ul>
<?php wp_list_cats('sort_column=name&optioncount=1&hierarchical=0'); ?>
</ul>
</li>
<?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>
<?php get_links_list(); ?>
<li>
<h2>Meta</h2>
<ul>
<?php wp_register(); ?>
<li>
<?php wp_loginout(); ?>
</li>
<li><a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional">Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li>
<li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
<li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a></li>
<?php wp_meta(); ?>
</ul>
</li>
<?php } ?>
<?php endif; ?>
</ul>
<li><h2><?php _e( Meta ); ?></h2> <ul> <?php wp_register(); ?> <li><?php wp_loginout(); ?></li> <?php wp_meta(); ?> </ul> </li>
<div style="background-color:#DFDFDF;position:relative;left:-10px;width:210px;text-align:center">
<h2><font style="color:red"><u>Misto pro sponzori</u></font><br>
<center>Na tomto mieste ďakujeme ľuďom s dobrým srdcom a firmám ktoré prispeli:</center></h2>
<hr style="display:block;visibility:visible;margin-bottom:10px;margin-top:10px;">
<marquee behavior="scroll" direction="up" height="155" scrollamount="1" scrolldelay="50" truespeed onmouseover=this.stop() onmouseout=this.start()>
<DIV>
<br><br><br><br><br><br><br><br><br><br><br><br>
<?php get_fw_spiad (145, '0'); ?><br><br><br><br><br><br><br><br><br><br><br><br>
</div>
</marquee>
</div>
po aktvacii sa stranka rozbila vid tu www.nikolka.707.cz
riešil som to v bočnom paneli
Bočný panel (sidebar.php)
<div id="sidebar">
<ul>
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(1) ) : else : ?>
<li>
<?php include (TEMPLATEPATH . '/searchform.php'); ?>
</li>
<!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it.
<li><h2>Author</h2>
<p>A little something about you, the author. Nothing lengthy, just an overview.</p>
</li>
-->
<li>
<?php /* If this is a 404 page */ if (is_404()) { ?>
<?php /* If this is a category archive */ } elseif (is_category()) { ?>
<p>You are currently browsing the archives for the
<?php single_cat_title(''); ?>
category.</p>
<?php /* If this is a yearly archive */ } elseif (is_day()) { ?>
<p>You are currently browsing the <a href="<?php bloginfo('home'); ?>/"><?php echo bloginfo('name');
?></a> weblog archives
for the day
<?php the_time('l, F jS, Y'); ?>
.</p>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<p>You are currently browsing the <a href="<?php bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives
for
<?php the_time('F, Y'); ?>
.</p>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<p>You are currently browsing the <a href="<?php bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives
for the year
<?php the_time('Y'); ?>
.</p>
<?php /* If this is a monthly archive */ } elseif (is_search()) { ?>
<p>You have searched the <a href="<?php echo bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives
for <strong>'<?php echo wp_specialchars($s); ?>'</strong>. If you are unable to find anything in these search results, you can try one of these links.</p>
<?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<p>You are currently browsing the <a href="<?php echo bloginfo('home'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives.</p>
<?php } ?>
<!-- begin e-calendar code -->
<iframe src="http://www.e-calendar.cz/calendar/Link.jsp?lang=cs&date=yes" frameborder=0 vspace=0 hspace=0 width=180 height=42 marginwidth=0 marginheight=0 scrolling=no></iframe>
<!-- end e-calendar code -->
<center> <embed src="http://img.photobucket.com/albums/v155/kijkwijzer/mandala-clocks/ma59.swf" width="150" height="150" wmode="transparent" type="application/x-shockwave-flash"></embed></center>
<?php wp_list_pages('title_li=<h2>Stranky</h2>&exclude=21,23' ); ?>
</li>
<li>
<h2>Archiv</h2>
<ul>
<?php wp_get_archives('type=monthly'); ?>
</ul>
</li>
<li>
<h2>Kategorie</h2>
<ul>
<?php wp_list_cats('sort_column=name&optioncount=1&hierarchical=0'); ?>
</ul>
</li>
<?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>
<?php get_links_list(); ?>
<li>
<h2>Meta</h2>
<ul>
<?php wp_register(); ?>
<li>
<?php wp_loginout(); ?>
</li>
<li><a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional">Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li>
<li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
<li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a></li>
<?php wp_meta(); ?>
</ul>
</li>
<?php } ?>
<?php endif; ?>
</ul>
<li><h2><?php _e( Meta ); ?></h2> <ul> <?php wp_register(); ?> <li><?php wp_loginout(); ?></li> <?php wp_meta(); ?> </ul> </li>
<div style="background-color:#DFDFDF;position:relative;left:-10px;width:210px;text-align:center">
<h2><font style="color:red"><u>Misto pro sponzori</u></font><br>
<center>Na tomto mieste ďakujeme ľuďom s dobrým srdcom a firmám ktoré prispeli:</center></h2>
<hr style="display:block;visibility:visible;margin-bottom:10px;margin-top:10px;">
<marquee behavior="scroll" direction="up" height="155" scrollamount="1" scrolldelay="50" truespeed onmouseover=this.stop() onmouseout=this.start()>
<DIV>
<br><br><br><br><br><br><br><br><br><br><br><br>
<?php get_fw_spiad (145, '0'); ?><br><br><br><br><br><br><br><br><br><br><br><br>
</div>
</marquee>
</div>