Arkadaşlar gittik bir ücretli tema satan yabancı firmadan temayı aldık. Saolsunlar destekleri berbatmış ki 2 günden beri dönmediler, bekletiyorlar. Bu sorunu veriyor site ne yapmalıyım bilen var mıdır?
Parse error: syntax error, unexpected 'get_header' (T_STRING) in /home/enab/public_html/wp-content/themes/dail/page-templates/front-page.php on line 1
O sayfadaki kodlar:
<?php/*Template Name: Home Page*/get_header(); ?> <script type="text/javascript" >var root_path_js = '<?php echo get_option('siteurl')."/";?>';</script><link type="text/css" href="<?php echo get_template_directory_uri(); ?>/library/css/ui-lightness/jquery-ui-1.8.14.custom.css" rel="stylesheet" /><script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/library/js/jquery-ui-1.8.14.custom.min.js"></script><script type="text/javascript" src="<?php echo get_template_directory_uri(); ?>/library/js/timer.js"></script><script type="text/javascript">jQuery.noConflict(); function a() { return false; } jQuery(function() { jQuery( "#slider-range-min-var" ).slider({ range: "min", value: jQuery("#sellsqlinfo1").val(), min: 0, max: jQuery("#noofcoupon1").val(), enable: false, slide: function( event, ui ) { jQuery("#amount").val("$"+ ui.value ); } }); jQuery( "#amount" ).val( "$" + jQuery( "#slider-range-min-var" ).slider( "value" ) ); });</script><?php/* Mail To Friend BOF */if(@$_POST['sendact']=='email_frnd') { require_once (get_template_directory() . '/monetize/send_to_friend/email_friend_frm.php');exit;}?> <div class="top_content"><?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('home_above')) { } else { }?> </div><?php/* Mail To Friend EOF *//* Home Page Deal Display BOF */global $wpdb,$deal_db_table_name,$post; if(@get_option('timezone_string')){ date_default_timezone_set(get_option('timezone_string'));}date_default_timezone_get();$postmeta_db_table_name = $wpdb->prefix."postmeta";$post_db_table_name = $wpdb->prefix."posts";$destination_path = site_url().'/wp-content/uploads/';$args = array('numberposts' => 1,'meta_key' =>'is_expired' , 'meta_value' =>'0','post_status' => 'publish','post_type' => 'seller','meta_key' =>'status' , 'meta_value' =>'2' ,'orderby' => 'DESC');$recent_posts = get_posts( $args );if(count($recent_posts) > 0) { $post_large = get_post_meta($post->ID,'file_name',true); $post_images = get_post_meta($post->ID,'file_name',true); ?><!-- top content #end --> <div id="content"> <div id="inner-content" class="row clearfix"> <div class="content-box clearfix"> <div class="column"> <?php foreach( $recent_posts as $post ){ if(get_post_meta($post->ID,'status',true) == 2) { if(get_post_meta($post->ID,'enddate',true) != '0'){ deal_expire_process($post->ID); } $home_deal_id = $post->ID; global $home_deal_id; $coupon_website= get_post_meta($post->ID,'coupon_website',true); $owner_name= get_post_meta($post->ID,'owner_name',true); $our_price= get_post_meta($post->ID,'our_price',true); $current_price= get_post_meta($post->ID,'current_price',true); $sellsql = "select count(*) from $transection_db_table_name where post_id=".$post->ID." and status=1"; $totdiff = $current_price - $our_price; $percent = $totdiff * 100; $percentsave = $percent/$current_price; $sellsqlinfo = $wpdb->get_var($sellsql); $date = get_post_meta($post->ID,'coupon_end_date_time',true); if($date != ""){ $tardate= date("F d, Y H:i:s",get_post_meta($post->ID,'coupon_end_date_time',true)); $targatedate= date("d-m-y H:i:s",get_post_meta($post->ID,'coupon_end_date_time',true)); $tardate1= date("F d, Y",get_post_meta($post->ID,'coupon_end_date_time',true)); } $stdate= date("F d, Y H:i:s",get_post_meta($post->ID,'coupon_start_date_time',true)); if(get_post_meta($post->ID,'enddate',true) != '0'){ if(get_post_meta($post->ID,'coupon_end_date_time',true) != "") { if(date("Y-m-d H:i:s") >= $tardate1 && get_post_meta($post->ID,'enddate',true) != '0' ) { if(get_post_meta($post->ID,'is_expired',true)== '0' || get_post_meta($post->ID,'is_expired',true)== '') { update_post_meta($post->ID,'is_expired','1'); } } } else { if(get_post_meta($post->ID,'enddate',true) != '0' ) { if(get_post_meta($post->ID,'is_expired',true)== '0' || get_post_meta($post->ID,'is_expired',true)== '') { update_post_meta($post->ID,'is_expired','1'); } } } } $geo_longitude = get_post_meta($post->ID,'geo_longitude',true); $geo_latitude = get_post_meta($post->ID,'geo_latitude',true); $shhiping_address = get_post_meta($post->ID,'shhiping_address',true); $coupon_type = get_post_meta($post->ID,'coupon_type',true); $no_of_coupon = get_post_meta($post->ID,'no_of_coupon',true); ?> <div class="deal-list-wrap"> <div class="deal-list clearfix"> <div class="deal-img"><a href="<?php the_permalink(); ?>"> <?php if(get_post_meta($post->ID,'file_name',true) != "") { ?> <img src="<?php echo templ_thumbimage_filter(get_post_meta($post->ID,'file_name',true),330,250); ?>" alt="" /> <?php } else { ?> <img src="<?php echo get_template_directory_uri()."/images/no-image.png"; ?>" width="330" height="250" alt="" /> <?php } ?></a></div> <div class="deal-content"> <div class="deal-meta"><span><?php echo TODAY_DEAL; ?></span> – <?php echo PROVIDE_BY; ?> <span><a href="#"> <?php $user_data = get_userdata( $post->post_author ); if(get_post_meta($post->ID,'coupon_type',true) == 1) { ?> <a href="<?php echo get_post_meta($post->ID,'coupon_link',true); ?>" title="<?php echo $user_data->display_name; ?>" class="top_lnk" target="_blank"><?php echo get_post_meta($post->ID,'owner_name',true);?></a> <?php } else { ?> <a href="<?php echo get_author_posts_url($post->post_author);?>" class="top_lnk" title="<?php echo get_post_meta($post->ID,'owner_name',true);?>"><?php echo get_post_meta($post->ID,'owner_name',true);?></a> <?php } ?></a></span></div> <h3><a href="<?php echo get_permalink($post->ID); ?>"><?php echo $post->post_title; ?></a></h3> <div class="progressbar"> <?php if(get_post_meta($post->ID,'enddate',true) != '0'){ if(strtotime($stdate) > strtotime(date("F d, Y H:i:s"))){ /* if start date is bigger then current date */ ?><div class="i_start"> <?php echo START_FORM;?> <span><?php echo $stdate;?></span></div> <?php }else if(get_post_meta($post->ID,'no_of_coupon',true)== $sellsqlinfo || strtotime(date("F d, Y H:i:s"))>= strtotime($tardate) ){ /* if items are sold out or product is expired means its cross the end-date */ if(get_post_meta($post->ID,'is_expired',true)=='1') { ?> <div class="i_expire"><?php echo THIS_DEAL;?><span><?php echo EXPIRED;?></span> <?php echo ON;?> <span><?php echo $tardate1;?></span></div> <?php } if(get_post_meta($post->ID,'no_of_coupon',true)== $sellsqlinfo && get_post_meta($post->ID,'is_expired',true)!='1') { ?> <div class="i_start"><span><?php echo "Is Sold Out"; ?></span></div> <?php } } else { if(get_post_meta($post->ID,'coupon_end_date_time',true)){ ?> <div id="demo" style="pointer-events:none; cursor:default;" style="display:block;"> <div id="slider-range-min-var" ></div> </div> <div class="deal_box clearfix"> <div class="time_line"></div> <div id="countdowncontainer" class="countdowncontainer"></div> <div class="fr" id="fr_index" style="display:block;"> <div class="dealprice"> <span><?php echo get_currency_sym();?><?php echo $current_price;?></span> <?php echo get_currency_sym();?><?php echo $our_price;?></div> </div> <?php if(get_post_meta($post->ID,'coupon_type',true) == 1) { ?> <a href="<?php echo get_post_meta($post->ID,'coupon_link',true); ?>" title="<?php echo BUY_NOW;?>" class="button orange-button" target="_blank"><?php echo BUY_NOW;?></a> <?php } else { ?> <a href="<?php echo get_option('siteurl');?>/?ptype=buydeal&did=<?php echo $post->ID; ?>" title="<?php echo BUY_NOW;?>" class="button orange-button"><?php echo BUY_NOW;?></a> <?php }?> <?php $targatedate = explode(' ',$targatedate); $tar_date = explode('-',$targatedate[0]); /* target date date*/ $tar_time = explode(':',$targatedate[1]); /* target date time explode ij H:M:S format */ $timezone = get_option('ptthemes_time_offset'); $exp_year = explode(',',$tardate1); $cur_date = date("F-d-Y-H-i-s"); /* Month day year hour mint sec */ ?> <script> var DEAL_EXPIRED = '<?php _e('This deal is expired','templatic'); ?>'; var ON = '<?php _e('on','templatic'); ?>'; var DEAL = '<?php _e('DEAL','templatic'); ?>'; var ENDS = '<?php _e('ENDS IN','templatic'); ?>'; var DAYS = '<?php _e('Days','templatic'); ?>'; var HOURS = '<?php _e('Hours','templatic'); ?>'; var MINUTES = '<?php _e('minutes','templatic'); ?>'; var SECONDS = '<?php _e('seconds','templatic'); ?>'; displayTZCountDown(setTZCountDown('<?php echo $tar_date[1]; ?>','<?php echo $tar_date[0]; ?>','<?php echo $tar_time[0]; ?>','<?php echo $tar_time[1]; ?>','<?php echo $tar_time[2]; ?>','<?php echo $timezone; ?>','<?php echo $exp_year[1]; ?>','<?php echo $cur_date; ?>'),'countdowncontainer','fr_index','<?php echo $tardate1; ?>'); </script> </div> <?php } } }?></div> <ul class="rate_summery clearfix"> <li class="rate_current_price"><span><?php echo CURRENT_PRICE;?></span> <strong><small><?php echo get_currency_sym();?></small><?php echo $current_price;?></strong></li> <li class="rate_our_price"><span><?php echo OUR_PRICE;?></span> <strong><small><?php echo get_currency_sym();?></small><?php echo $our_price;?></strong></li> <li class="rate_percentage"><span><?php echo YOU_SAVE;?></span> <strong><?php echo @number_format($percentsave,2);?>%</strong></li> <li class="bdr_none rate_item_sold"><span><?php echo ITEMS_SOLD;?></span> <strong><?php echo $sellsqlinfo;?></strong> <?php if($sellsqlinfo == 0 ) { $enddate = explode(" ",$tardate); $curdate = explode(" ",date("F d, Y H:i:s")); $enddate= str_replace(",","",$enddate[1]); $curdate = str_replace(",","",$curdate[1]); $startdate = explode(" ",$stdate); $strdate = str_replace(","," ",$startdate[1]); $curtime = $enddate - $curdate; $totaltime = ($enddate - $strdate); $nowremail = $curdate - $strdate; ?> <input type="hidden" value="<?php echo $nowremail ; ?>" name="sellsqlinfo1" id="sellsqlinfo1"/> <input type="hidden" value="<?php echo ($enddate - $strdate) ; ?>" name="noofcoupon1" id="noofcoupon1"/> <?php } else { ?> <input type="hidden" value="<?php echo $sellsqlinfo; ?>" name="sellsqlinfo1" id="sellsqlinfo1"/> <input type="hidden" value="<?php echo $no_of_coupon; ?>" name="noofcoupon1" id="noofcoupon1"/> <?php } ?> </li> </ul> <?php if(get_post_meta($post->ID,'enddate',true) == '0' && get_option('ptttheme_view_opt') != 'Grid View' && (get_post_meta($post->ID,'status',true) == '1' || get_post_meta($post->ID,'status',true) == '2') ) { ?> <?php if(get_post_meta($post->ID,'coupon_type',true) == 1) {?> <a href="<?php echo get_post_meta($post->ID,'coupon_link',true); ?>" title="<?php echo BUY_NOW;?>" class="button orange-button" target="_blank"><?php echo BUY_NOW;?></a> <?php } else { ?> <a href="<?php echo get_option('siteurl');?>/?ptype=buydeal&did=<?php echo $post->ID; ?>" title="<?php echo BUY_NOW;?>" class="button orange-button"><?php echo BUY_NOW;?></a> <?php } }?> <div class="deal-data"> <?php echo "".$post->post_excerpt.""; ?> <a href="<?php echo get_permalink($post->ID); ?>" class="readmore_link"><?php echo sprintf(__('%s','templatic'),get_option('ptthemes_content_excerpt_readmore'));?></a> </div> </div> </div> <div class="social-media-shareicon"> <ul> <?php if(strtolower(get_option('ptthemes_tweet_button'))=='yes') {?> <li><a class="twitter" href="http://twitter.com/home?status=Reading: <?php the_permalink(); ?>" title="<?php _e('Share this post on Twitter!','templatic'); ?>" target="_blank"><i class="step fa fa-twitter"></i> Twitter</a></li> <?php } if(strtolower(get_option('ptthemes_facebook_button'))=='yes') {?> <li><a class="facebook" href="http://www.facebook.com/sharer.php?u=<?php the_permalink();?>&t=<?php the_title(); ?>" title="<?php _e('Share this post on Facebook!','templatic'); ?>" target="_blank"> <i class="step fa fa-facebook"></i> Facebook</a></li> <?php } if(strtolower(get_option('ptthemes_googleplus_button'))=='yes') {?> <li><a class="googleplus" target="_blank" href="https://plus.google.com/share?url=<?php the_permalink(); ?> title="<?php _e('Share this post on GooglePlus!','templatic'); ?>""><i class="fa fa-google-plus"></i> <?php _e('Google+','templatic'); ?></a></li> <?php } if(strtolower(get_option('ptthemes_pinit_button'))=='yes') {?> <li><a class="pinit" href="http://pinterest.com/pin/create/button/?url=<?php the_permalink(); ?>" title="<?php _e('Pin It!','templatic'); ?>" count-layout="none"><i class="fa fa-pinterest"></i> <?php _e('Pin It','templatic'); ?></a></li> <?php } if(strtolower(get_option('ptthemes_linkedin_button'))=='yes') {?> <li><a class="linkedin" href="http://www.linkedin.com/shareArticle?mini=true&url=<?php the_permalink(); ?>&title=<?php the_title(); ?>&summary=<?php the_title(); ?>&source=<?php echo home_url(); ?>" title="<?php _e('Share this post on LinkedIn','templatic'); ?>" count-layout="none"><i class="fa fa-linkedin"></i> <?php _e('LinkedIn','templatic');?></a></li> <?php } if(strtolower(get_option('ptthemes_email_button'))=='yes') {?> <li><a class="email" href="mailto:<?php echo (antispambot($user_data->user_email)); ?>" title="<?php _e('Email','templatic'); ?>" ><i class="fa fa-envelope"></i> <?php _e('Email','templatic'); ?></a></li> <?php } ?> <li><a href="#" data-reveal-id="basic-modal-content" title="Mail to a friend" class="pinit i_mail b_sendtofriend"><i class="fa fa-envelope"></i> <?php _e('Mail to a friend','templatic');?></a></li> </ul> </div> <?php include_once (get_template_directory() . '/monetize/send_to_friend/popup_frms.php');?> </div> </div> <?php } else { ?> <div class="content_left"> <h3><?php echo _e(NO_RECENT_DEAL,'templatic'); ?></h3> </div> <?php } } ?> </div> <?php if (is_active_sidebar('home_below') ) { dynamic_sidebar('home_below'); }?> </div> </div> <!-- end #inner-content --> </div> <!-- end #content --><?php} get_footer(); ?>
--R10.NET; Flood Engellendi -->-> Yeni yazılan mesaj 22:26:33 -->-> Daha önceki mesaj 21:12:14 --
yok mu bir hayırsever?