Merhaba,
muhtemelen php versiyonunuzdan kaynaklanıyor.
ilk satırda şunun yerine
if( !class_exists( 'CS_Notification_Helper' ) ) {
şunu
if( !interface_exists( 'CS_Notification_Helper' ) ) {
kullanarak dener misiniz?
Hata alırsanız hatayı tekrar paylaşırsanız yardımcı olmaya çalışırız.
Kolaylıklar
Parse error: syntax error, unexpected 'if' (T_IF) in "include/helpers/notification-helper.php on line 1
arkdaşlar bu hatayı veriyor yüklemeye çalışıyorum wordpress temayı çözemedim
o php sayfasına ait kodlarda bu
<?php
/**
* @Start notification helper class
* @return
*/
if( !class_exists( 'CS_Notification_Helper' ) ) {
class CS_Notification_Helper{
public $message;
public function __construct() {
// Do Something here..
}
public function success( $message = 'No recored found' ) {
global $post;
$output = '';
$output .= '<div class="col-md-12 cs-succ_mess"><p>';
$output .= $message;
$output .= '</p></div>';
echo force_balance_tags ( $output );
}
public function error( $message='No recored found' ) {
global $post;
$output = '';
$output .= '<div class="col-md-12 cs-error"><p>';
$output .= $message;
$output .= '</p></div>';
echo force_balance_tags ( $output );
}
public function warning( $message='No recored found' ) {
global $post;
$output = '';
$output .= '<div class="col-md-12 cs-warning"><p>';
$output .= $message;
$output .= '</p></div>';
echo force_balance_tags ( $output );
}
public function informations($message='No recored found') {
global $post;
$output = '';
$output .= '<div class="col-md-12 cs-informations"><p>';
$output .= $message;
$output .= '</p></div>';
echo force_balance_tags ( $output );
}
}
}
$cs_notification = new CS_Notification_Helper();
global $cs_notification;
?>