Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Advertising

Paste Description for Miscellany

i see this sentence:

Parse error: syntax error, unexpected T_ENDIF in /home/evaznama/public_html/wp-content/themes/WP-FarsNews-Theme/index.php on line 124

Miscellany
Saturday, July 21st, 2012 at 11:30:26pm MDT 

  1. <html>
  2. <head>
  3. <meta charset="<?php bloginfo( 'charset' ); ?>" />
  4. <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> &raquo; اخبار <?php } ?> <?php wp_title(); ?></title>
  5. <link rel="profile" href="http://gmpg.org/xfn/11" />
  6. <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
  7. <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
  8. <?php wp_head(); ?>
  9. </head>
  10. <body>
  11. <center>
  12. <div class="header">
  13. <div class="logo">
  14. <a href="<?php bloginfo('url'); ?>"><img src="<?php bloginfo('template_url'); ?>/images/logo.gif" /></a>
  15. <div class="logoinfobar">
  16. <div class="lngsitelinks">
  17. </div>
  18. <div class="dates">
  19. <script language="javascript" link="www.khatrokhat.ir">
  20.                                    function showdate() {
  21.                                            week= new Array("يكشنبه","دوشنبه","سه شنبه","چهارشنبه","پنج شنبه","جمعه","شنبه")
  22.                                            months = new Array("فروردين","ارديبهشت","خرداد","تير","مرداد","شهريور","مهر","آبان","آذر","دی","بهمن","اسفند");
  23.                                            a = new Date();
  24.                                            d= a.getDay();
  25.                                            day= a.getDate()+1;
  26.                                            month = a.getMonth()+1;
  27.                                            year= a.getYear();
  28.  
  29.                                    year = (year== 0)?2000:year;
  30.                                    (year<1000)? (year += 1900):true;
  31.  
  32.                                    year -= ( (month < 3) || ((month == 3) && (day < 21)) )? 622:621;
  33.  
  34.                                    switch (month) {
  35.                                            case 1: (day<21)? (month=10, day+=10):(month=11, day-=20); break;
  36.                                            case 2: (day<20)? (month=11, day+=11):(month=12, day-=19); break;
  37.                                            case 3: (day<21)? (month=12, day+=9):(month=1, day-=20);   break;
  38.                                            case 4: (day<21)? (month=1, day+=11):(month=2, day-=20);   break;
  39.                                            case 5:
  40.                                            case 6: (day<22)? (month-=3, day+=10):(month-=2, day-=21); break;
  41.                                            case 7:
  42.                                            case 8:
  43.                                            case 9: (day<23)? (month-=3, day+=9):(month-=2, day-=22);  break;
  44.                                            case 10:(day<23)? (month=7, day+=8):(month=8, day-=22);    break;
  45.                                            case 11:
  46.                                            case 12:(day<22)? (month-=3, day+=9):(month-=2, day-=21);  break;
  47.                                                   default:  break;
  48.                                    }
  49.                                    document.write(week[d]+" "+day+" "+months[month-1]+" "+ year);
  50.                                    }
  51.                                    </script>
  52.                                    <script>showdate()</script>
  53. </div>
  54. <div class="gmttime"></div>
  55. </div>
  56. </div>
  57. </div>
  58. <div class="mainframe">
  59. <div class="rightcolumn">
  60. <div class="sdmenu" id="left-navbar-menu">
  61. <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("right") ) ?>
  62. </div>
  63. </div>
  64. <div class="centercolumn">
  65. <?php if ( !is_single() and !is_page() ) : ?><div class="newsmainpane"><?php endif; ?>
  66. <?php if ( is_home() ) : ?>
  67. <?php
  68. global $post;
  69. $myposts = get_posts('numberposts=1');
  70. foreach($myposts as $post) :
  71. setup_postdata($post);
  72. ?>
  73. <?php $img = get_post_meta($post->ID, 'img', true); ?>
  74. <div class="impnews">
  75. <div class="impnewsinfo">
  76. <a href="<?php the_permalink(); ?>" target="_blank"><div class="impnewsinfotitle"><?php the_title(); ?></div></a>
  77. <p class="newslead" style="line-height: 160%;"><?php the_excerpt_rss(); ?></p>
  78. </div>
  79. <div class="impnewspic"><a href="<?php the_permalink(); ?>" target="_blank"><img src='<?php echo $img; ?>' /></a></div>
  80. </div><div class="impdownline"><div>&nbsp;</div></div>
  81. <?php endforeach; ?>
  82. <?php endif; ?>
  83. <?php if(have_posts()): ?><?php while(have_posts()):the_post(); ?>
  84. <?php $img = get_post_meta($post->ID, 'img', true); ?>
  85. <?php if ( is_single() or is_page() ) : ?>
  86. <div class="pagetitle">
  87. <div class="nwstxtctglink">
  88. <?php the_category(',') ?>
  89. </div>
  90. <div class="nwstxtdt" style="direction:rtl;"><?php the_date('d M Y'); ?></div>
  91. <div class="nwstxtnn">شماره:<?php the_ID(); ?></div>
  92. <div class="imgrepclear"></div>
  93. </div>
  94. <div class="nwstxtmainpane">
  95. <div class="nwstxtlinkicons">
  96. </div>
  97. <div class="nwstxttoppane">
  98. <div class="nwstxtnewsinfo">
  99. <div class="nwstxtrotitr"></div>
  100. <div class="nwstxtinfotitle"><?php the_title(); ?></div>
  101. </div>
  102. <div class="nwstxtpic">
  103. <img class="nwstxttoppic" src="<?php echo $img; ?>" /><br />                        </div>
  104. </div>
  105. <p class="nwstxttext" style="line-height: 180%;"><?php the_content(''); ?></p>
  106. <div class="nwstxttablepane"></div>
  107. <?php comments_template(); ?>
  108. </div>
  109. <?php else : ?>
  110. <div class="topnews"><div class="topnewspic"><a href="<?php the_permalink(); ?>" target="_blank"><img src='<?php echo $img; ?>' /></a></div><div class="topnewsinfo"><a href="<?php the_permalink(); ?>" target="_blank"><div class="topnewsinfotitle"><?php the_title(); ?></div></a><p class="newslead" style="line-height: 160%;"><?php the_excerpt_rss(); ?></p></div></div><div class="topdownline">&nbsp;</div>
  111. <?php endif; ?>
  112. <?php endwhile; ?><?php endif; ?>
  113. </div>
  114. <?php if ( !is_single() and !is_page() ) : ?></div><?php endif; ?>
  115. <div class="leftcolumn">
  116. <div class="leftmainnewspane">
  117. <div class="advertisement">
  118. <?php if ( !is_single() and !is_page() ) : ?>
  119. <center>
  120. <?php $options = get_option('mc_options'); ?>
  121.  endif; ?>
  122. </center>
  123. <?php if ($options['show_ads']) : ?><?php if($options['ads_contents']) { echo ($options['ads_contents']); } else { _e('شما باید از بخش "پوسته ها » ویرایش تبلیغات" تبلیغات خود را بصورت اچ تی ام ال قرار دهید و یا آن را غیر فعال کنید.','kubric'); } ?><?php
  124. php endif; ?>
  125. </div>
  126. <?php if ( !is_single() and !is_page() ) : ?>
  127. <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar("left") ) ?>
  128. <?php endif; ?>
  129. </div>
  130. </div>
  131. </div>
  132. <center>
  133. <div style="direction:ltr; width:450px; text-align:left; clear:both;"><?php if(function_exists('wp_page_numbers')) : wp_page_numbers(); endif; ?></div>
  134. <br>
  135. </center>
  136. <div class="footerpane">
  137. <div class="copyright">
  138. </div>
  139. </div>
  140. </center>
  141. </body>
  142. </html>

advertising

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

worth-right