Parse error: syntax error, unexpected 'if' (T_IF)
-
Hi,
I am getting this error but I don’t see where the issue is.
Can you?
<?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; ?>
Thanks
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Parse error: syntax error, unexpected 'if' (T_IF)’ is closed to new replies.