php - Parse error: syntax error, unexpected in Redux framework wordpress -


this question has answer here:

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

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -