Advertisement
Guest User

Untitled

a guest
Jul 30th, 2014
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.26 KB | None | 0 0
  1. <?php
  2. global $options;
  3. foreach ($options as $value) {
  4. if (get_settings( $value['id'] ) === FALSE) { $value['id'] = $value['std']; } else { $value['id'] = get_settings( $value['id'] ); }
  5. }
  6. ?>
  7. <?php get_header(); ?>
  8. <div id="slider">
  9. <img src="<?php bloginfo('template_url');?>/images/slider/1.jpg" alt="" />
  10. <img src="<?php bloginfo('template_url');?>/images/slider/2.jpg" alt="" />
  11. <img src="<?php bloginfo('template_url');?>/images/slider/3.jpg" alt="" />
  12. </div>
  13.  
  14. <div id="controll">
  15. <div class="nav-buttons"><div class="online">
  16. <?php
  17.  
  18. // Give your server a name
  19. $name = '';
  20. // The host/ip
  21. $host = 'mc40.crew.sk';
  22. // The port
  23. $port = '25570';
  24.  
  25. // Disable error stuff
  26. error_reporting(0);
  27.  
  28. // Here it checks if the server is ofline or online and output it with some text.
  29. if($socket = fsockopen($host, $port, $errno, $errstr, 10)) {
  30. echo $name.'<img src="images/online.png" alt="" />';
  31. fclose($socket);}
  32. else {
  33. echo $name.'<img src="images/offline.png" alt="" />';}
  34. echo '<br />';
  35. ?></div>
  36. <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>
  37.  
  38. <div class="nav-searcg"><?php get_search_form( $echo ); ?></div>
  39. </div>
  40.  
  41. <div id="wrap">
  42. <div id="wrapip">
  43. <div id="main">
  44. <?php if (have_posts()) { ?>
  45. <?php while (have_posts()) { the_post();
  46. $thumbnail = wp_get_attachment_image_src(get_post_thumbnail_id(), 'large');
  47. ?>
  48. <div class="poster">
  49.  
  50. <?
  51. // checks if thumbnails are disabled
  52. if ($xs_disable_thumbnails_archieve == "true") { ?>
  53. <? } else { ?>
  54. <?php
  55. if ( has_post_thumbnail() ) {
  56. // the current post has a thumbnail
  57. ?>
  58. <div class="thumbnail-wrap">
  59. <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>
  60. </div><!-- /thumbnail-wrap -->
  61. <? } else {
  62. // the current post lacks a thumbnail
  63. ?>
  64. <? } ?>
  65. <? } ?>
  66.  
  67. <div class="post postcontent">
  68. <div>
  69. <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
  70. <?
  71. // checks if the byline is disabled
  72. if ($xs_disable_inline_byline == "true") { ?>
  73. <?
  74. // if not show byline
  75. } else { ?>
  76.  
  77. <? } ?>
  78. <?php the_excerpt(); ?>
  79. </div>
  80. </div><!-- /post postcontent -->
  81.  
  82. <div class="clear"></div>
  83. </div>
  84.  
  85. <?php
  86. }
  87. ?>
  88. <?php } ?>
  89. <?php
  90. //Check For the Page Navi Plugin
  91. if (function_exists('wp_pagenavi')) {
  92. wp_pagenavi();
  93. //Show Default Navigation if Page Navi Is Not Installed
  94. } else { ?>
  95. <div id="paginate">
  96. <div id="paginate-left"><?php previous_posts_link('Newer Posts'); ?></div>
  97. <div id="paginate-right"><?php next_posts_link('Older Posts'); ?></div>
  98. </div><!-- /paginate -->
  99. <? } ?>
  100. </div>
  101. </div><!-- End Main -->
  102. <div class="side">
  103. <?php get_sidebar(); ?> </div>
  104. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement