php - Parse error: syntax error, unexpected in Redux framework wordpress -
this question has answer here:
- php parse/syntax errors; , how solve them? 12 answers
i used redux framework theme according tutorial of redux in link gives error
error :
parse error: syntax error, unexpected ''placeholder'' (t_constant_encapsed_string), expecting ')' in c:\xampp\htdocs\wp\wp-content\themes\theme\options\config.php on line 273
and config file :
redux::setsection( $opt_name, array( 'title' => __( 'صفحه ی اصلی', 'dima_theme' ), 'id' => 'dima-index', 'desc' => __( 'تنظیمات صفحه ی اصلی', 'dima_theme' ), 'icon' => 'el el-instagram', 'fields' => array( array( 'id' => 'opt-slides', 'type' => 'slides', 'title' => __('slides options', 'redux-framework-demo'), 'subtitle' => __('unlimited slides drag , drop sortings.', 'redux-framework-demo'), 'desc' => __('.', 'redux-framework-demo') 'placeholder' => array( 'title' => __('this title', 'redux-framework-demo'), 'description' => __('description here', 'redux-framework-demo'), 'url' => __('give link!', 'redux-framework-demo'), ) ), ) ) );
line 273 : 'placeholder' => array(
whats wrong ?
you have missed "," after:
'desc' => __('.', 'redux-framework-demo')
so code should be:
redux::setsection($opt_name, array( 'title' => __('صفحه ی اصلی', 'dima_theme'), 'id' => 'dima-index', 'desc' => __('تنظیمات صفحه ی اصلی', 'dima_theme'), 'icon' => 'el el-instagram', 'fields' => array( array( 'id' => 'opt-slides', 'type' => 'slides', 'title' => __('slides options', 'redux-framework-demo'), 'subtitle' => __('unlimited slides drag , drop sortings.', 'redux-framework-demo'), 'desc' => __('.', 'redux-framework-demo'), 'placeholder' => array( 'title' => __('this title', 'redux-framework-demo'), 'description' => __('description here', 'redux-framework-demo'), 'url' => __('give link!', 'redux-framework-demo'), ), ), ), ));
Comments
Post a Comment