Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- global $options;
- foreach ($options as $value) {
- if (get_settings( $value['id'] ) === FALSE) { $value['id'] = $value['std']; } else { $value['id'] = get_settings( $value['id'] ); }
- }
- ?>
- <?php get_header(); ?>
- <div id="slider">
- <img src="<?php bloginfo('template_url');?>/images/slider/1.jpg" alt="" />
- <img src="<?php bloginfo('template_url');?>/images/slider/2.jpg" alt="" />
- <img src="<?php bloginfo('template_url');?>/images/slider/3.jpg" alt="" />
- </div>
- <div id="controll">
- <div class="nav-buttons"><div class="online">
- <?php
- // Give your server a name
- $name = '';
- // The host/ip
- $host = 'mc40.crew.sk';
- // The port
- $port = '25570';
- // Disable error stuff
- error_reporting(0);
- // Here it checks if the server is ofline or online and output it with some text.
- if($socket = fsockopen($host, $port, $errno, $errstr, 10)) {
- echo $name.'<img src="images/online.png" alt="" />';
- fclose($socket);}
- else {
- echo $name.'<img src="images/offline.png" alt="" />';}
- echo '<br />';
- ?></div>
- <div class="players"></div><div class="mapa"><a href="http://wixis.clanwars.cz:48001/"></a></div><div class="realm"><p> ip server: <strong>mc.gamerpoint.cz</strong></p></div></div>
- <div class="nav-searcg"><?php get_search_form( $echo ); ?></div>
- </div>
- <div id="wrap">
- <div id="wrapip">
- <div id="main">
- <?php if (have_posts()) { ?>
- <?php while (have_posts()) { the_post();
- $thumbnail = wp_get_attachment_image_src(get_post_thumbnail_id(), 'large');
- ?>
- <div class="poster">
- <?
- // checks if thumbnails are disabled
- if ($xs_disable_thumbnails_archieve == "true") { ?>
- <? } else { ?>
- <?php
- if ( has_post_thumbnail() ) {
- // the current post has a thumbnail
- ?>
- <div class="thumbnail-wrap">
- <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><img src="<?php echo $thumbnail[0]; ?>" height="83" width="108" alt="<?php the_title(); ?>" class="thumbnail" /></a>
- </div><!-- /thumbnail-wrap -->
- <? } else {
- // the current post lacks a thumbnail
- ?>
- <? } ?>
- <? } ?>
- <div class="post postcontent">
- <div>
- <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
- <?
- // checks if the byline is disabled
- if ($xs_disable_inline_byline == "true") { ?>
- <?
- // if not show byline
- } else { ?>
- <? } ?>
- <?php the_excerpt(); ?>
- </div>
- </div><!-- /post postcontent -->
- <div class="clear"></div>
- </div>
- <?php
- }
- ?>
- <?php } ?>
- <?php
- //Check For the Page Navi Plugin
- if (function_exists('wp_pagenavi')) {
- wp_pagenavi();
- //Show Default Navigation if Page Navi Is Not Installed
- } else { ?>
- <div id="paginate">
- <div id="paginate-left"><?php previous_posts_link('Newer Posts'); ?></div>
- <div id="paginate-right"><?php next_posts_link('Older Posts'); ?></div>
- </div><!-- /paginate -->
- <? } ?>
- </div>
- </div><!-- End Main -->
- <div class="side">
- <?php get_sidebar(); ?> </div>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement