/**
  * Function to add sections and the corresponding options in the configuration
  * page, each option belongs to a section, which is linked to a general tab 
  */
 function moduleAddFields()
 {
     // General definition array containing a list of sections
     // On every section you have to define an array to list fields
     $this->sectionsmenu = array('01' => array('section' => 'sz_google_authenticator_enabled', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-authenticator.php'), '02' => array('section' => 'sz_google_authenticator_emergency', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-authenticator-emergency.php'));
     // General definition array containing a list of fields
     // All fields are added to the previously defined sections
     $this->sectionsfields = array('01' => array(array('field' => 'authenticator_login_enable', 'title' => ucfirst(__('enable', 'sz-google')), 'callback' => array($this, 'callback_authenticator_login_enable')), array('field' => 'authenticator_discrepancy', 'title' => ucfirst(__('discrepancy', 'sz-google')), 'callback' => array($this, 'callback_authenticator_discrepancy'))), '02' => array(array('field' => 'authenticator_emergency_codes', 'title' => ucfirst(__('emergency codes', 'sz-google')), 'callback' => array($this, 'callback_authenticator_emergency_codes')), array('field' => 'authenticator_emergency', 'title' => ucfirst(__('emergency enable', 'sz-google')), 'callback' => array($this, 'callback_authenticator_emergency_enable')), array('field' => 'authenticator_emergency_file', 'title' => ucfirst(__('emergency file', 'sz-google')), 'callback' => array($this, 'callback_authenticator_emergency_file'))));
     // Calling up the function of the parent class to process the
     // variables that contain the values ​​of configuration section
     parent::moduleAddFields();
 }
예제 #2
0
 /**
  * Function to add sections and the corresponding options in the configuration
  * page, each option belongs to a section, which is linked to a general tab 
  */
 function moduleAddFields()
 {
     // General definition array containing a list of sections
     // On every section you have to define an array to list fields
     $this->sectionsmenu = array('01' => array('section' => 'sz_google_maps_language', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-maps-language.php'), '02' => array('section' => 'sz_google_maps_options', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-maps-options.php'), '03' => array('section' => 'sz_google_maps_s_active', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-maps-s-enable.php'), '04' => array('section' => 'sz_google_maps_s_options', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-maps-s-options.php'), '05' => array('section' => 'sz_google_maps_w_active', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-maps-w-enable.php'), '06' => array('section' => 'sz_google_maps_w_options', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-maps-w-options.php'));
     // General definition array containing a list of fields
     // All fields are added to the previously defined sections
     $this->sectionsfields = array('01' => array(array('field' => 'maps_language', 'title' => ucfirst(__('select language', 'sz-google')), 'callback' => array($this, 'callback_maps_language'))), '02' => array(array('field' => 'maps_accesskey', 'title' => ucwords(__('maps key', 'sz-google')), 'callback' => array($this, 'callback_maps_key')), array('field' => 'maps_sensor', 'title' => ucwords(__('maps sensor', 'sz-google')), 'callback' => array($this, 'callback_maps_sensor')), array('field' => 'maps_signin', 'title' => ucwords(__('maps signin', 'sz-google')), 'callback' => array($this, 'callback_maps_signin'))), '03' => array(array('field' => 'maps_s_enable', 'title' => ucfirst(__('shortcode', 'sz-google')), 'callback' => array($this, 'callback_maps_s_enable'))), '04' => array(array('field' => 'maps_s_width', 'title' => ucfirst(__('default width', 'sz-google')), 'callback' => array($this, 'callback_maps_s_width')), array('field' => 'maps_s_height', 'title' => ucfirst(__('default height', 'sz-google')), 'callback' => array($this, 'callback_maps_s_height')), array('field' => 'maps_s_lat', 'title' => ucfirst(__('default latitude', 'sz-google')), 'callback' => array($this, 'callback_maps_s_lat')), array('field' => 'maps_s_lng', 'title' => ucfirst(__('default longitude', 'sz-google')), 'callback' => array($this, 'callback_maps_s_lng')), array('field' => 'maps_s_zoom', 'title' => ucfirst(__('default zoom', 'sz-google')), 'callback' => array($this, 'callback_maps_s_zoom')), array('field' => 'maps_s_view', 'title' => ucfirst(__('default view', 'sz-google')), 'callback' => array($this, 'callback_maps_s_view')), array('field' => 'maps_s_layer', 'title' => ucfirst(__('default layer', 'sz-google')), 'callback' => array($this, 'callback_maps_s_layer')), array('field' => 'maps_s_wheel', 'title' => ucfirst(__('default wheel', 'sz-google')), 'callback' => array($this, 'callback_maps_s_wheel')), array('field' => 'maps_s_marker', 'title' => ucfirst(__('default marker', 'sz-google')), 'callback' => array($this, 'callback_maps_s_marker')), array('field' => 'maps_s_lazy', 'title' => ucfirst(__('lazy load', 'sz-google')), 'callback' => array($this, 'callback_maps_s_lazy'))), '05' => array(array('field' => 'maps_w_enable', 'title' => ucfirst(__('widget', 'sz-google')), 'callback' => array($this, 'callback_maps_w_enable'))), '06' => array(array('field' => 'maps_w_width', 'title' => ucfirst(__('default width', 'sz-google')), 'callback' => array($this, 'callback_maps_w_width')), array('field' => 'maps_w_height', 'title' => ucfirst(__('default height', 'sz-google')), 'callback' => array($this, 'callback_maps_w_height')), array('field' => 'maps_w_lat', 'title' => ucfirst(__('default latitude', 'sz-google')), 'callback' => array($this, 'callback_maps_w_lat')), array('field' => 'maps_w_lng', 'title' => ucfirst(__('default longitude', 'sz-google')), 'callback' => array($this, 'callback_maps_w_lng')), array('field' => 'maps_w_zoom', 'title' => ucfirst(__('default zoom', 'sz-google')), 'callback' => array($this, 'callback_maps_w_zoom')), array('field' => 'maps_w_view', 'title' => ucfirst(__('default view', 'sz-google')), 'callback' => array($this, 'callback_maps_w_view')), array('field' => 'maps_w_layer', 'title' => ucfirst(__('default layer', 'sz-google')), 'callback' => array($this, 'callback_maps_w_layer')), array('field' => 'maps_w_wheel', 'title' => ucfirst(__('default wheel', 'sz-google')), 'callback' => array($this, 'callback_maps_w_wheel')), array('field' => 'maps_w_marker', 'title' => ucfirst(__('default marker', 'sz-google')), 'callback' => array($this, 'callback_maps_w_marker')), array('field' => 'maps_w_lazy', 'title' => ucfirst(__('lazy load', 'sz-google')), 'callback' => array($this, 'callback_maps_w_lazy'))));
     // Calling up the function of the parent class to process the
     // variables that contain the values ​​of configuration section
     parent::moduleAddFields();
 }
예제 #3
0
 /**
  * Function to add sections and the corresponding options in the configuration
  * page, each option belongs to a section, which is linked to a general tab 
  */
 function moduleAddFields()
 {
     // General definition array containing a list of sections
     // On every section you have to define an array to list fields
     $this->sectionsmenu = array('01' => array('section' => 'sz_google_fonts_tinymce', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-fonts.php'), '02' => array('section' => 'sz_google_fonts_section', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-fonts-LO.php'), '03' => array('section' => 'sz_google_fonts_section_BX', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-fonts-BX.php'), '04' => array('section' => 'sz_google_fonts_section_HX', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-fonts-HX.php'));
     // General definition array containing a list of fields
     // All fields are added to the previously defined sections
     $this->sectionsfields = array('01' => array(array('field' => 'fonts_tinyMCE_F', 'title' => ucfirst(__('tinyMCE Font Family', 'sz-google')), 'callback' => array($this, 'callback_fonts_tinymce_f')), array('field' => 'fonts_tinyMCE_S', 'title' => ucfirst(__('tinyMCE Font Size', 'sz-google')), 'callback' => array($this, 'callback_fonts_tinymce_s'))), '02' => array(array('field' => 'fonts_family_L1', 'title' => ucfirst(__('font family', 'sz-google')), 'callback' => array($this, 'callback_fonts_family_L1')), array('field' => 'fonts_family_L2', 'title' => ucfirst(__('font family', 'sz-google')), 'callback' => array($this, 'callback_fonts_family_L2')), array('field' => 'fonts_family_L3', 'title' => ucfirst(__('font family', 'sz-google')), 'callback' => array($this, 'callback_fonts_family_L3')), array('field' => 'fonts_family_L4', 'title' => ucfirst(__('font family', 'sz-google')), 'callback' => array($this, 'callback_fonts_family_L4')), array('field' => 'fonts_family_L5', 'title' => ucfirst(__('font family', 'sz-google')), 'callback' => array($this, 'callback_fonts_family_L5')), array('field' => 'fonts_family_L6', 'title' => ucfirst(__('font family', 'sz-google')), 'callback' => array($this, 'callback_fonts_family_L6'))), '03' => array(array('field' => 'fonts_family_B1', 'title' => ucfirst(__('font family', 'sz-google') . htmlspecialchars(' <body>')), 'callback' => array($this, 'callback_fonts_family_B1')), array('field' => 'fonts_family_P1', 'title' => ucfirst(__('font family', 'sz-google') . htmlspecialchars(' <p>')), 'callback' => array($this, 'callback_fonts_family_P1')), array('field' => 'fonts_family_B2', 'title' => ucfirst(__('font family', 'sz-google') . htmlspecialchars(' <blockquote>')), 'callback' => array($this, 'callback_fonts_family_B2'))), '04' => array(array('field' => 'fonts_family_H1', 'title' => ucfirst(__('font family', 'sz-google') . htmlspecialchars(' <h1>')), 'callback' => array($this, 'callback_fonts_family_H1')), array('field' => 'fonts_family_H2', 'title' => ucfirst(__('font family', 'sz-google') . htmlspecialchars(' <h2>')), 'callback' => array($this, 'callback_fonts_family_H2')), array('field' => 'fonts_family_H3', 'title' => ucfirst(__('font family', 'sz-google') . htmlspecialchars(' <h3>')), 'callback' => array($this, 'callback_fonts_family_H3')), array('field' => 'fonts_family_H4', 'title' => ucfirst(__('font family', 'sz-google') . htmlspecialchars(' <h4>')), 'callback' => array($this, 'callback_fonts_family_H4')), array('field' => 'fonts_family_H5', 'title' => ucfirst(__('font family', 'sz-google') . htmlspecialchars(' <h5>')), 'callback' => array($this, 'callback_fonts_family_H5')), array('field' => 'fonts_family_H6', 'title' => ucfirst(__('font family', 'sz-google') . htmlspecialchars(' <h6>')), 'callback' => array($this, 'callback_fonts_family_H6'))));
     // Calling up the function of the parent class to process the
     // variables that contain the values ​​of configuration section
     parent::moduleAddFields();
 }
예제 #4
0
 /**
  * Funzione per aggiungere i campi del form con la corrispondenza
  * delle opzioni specificate nel modulo attualmente utilizzato
  *
  * @return void
  */
 function moduleAddFields()
 {
     // Definizione array generale contenente elenco delle sezioni
     // Su ogni sezione bisogna definire un array per elenco campi
     $this->sectionsmenu = array('01' => array('section' => 'sz_google_drive_section', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-drive.php'), '02' => array('section' => 'sz_google_drive_savebutton', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-drive-savebutton-enable.php'), '03' => array('section' => 'sz_google_drive_embed_s', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-drive-embed-enable-s.php'), '04' => array('section' => 'sz_google_drive_embed_w', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-drive-embed-enable-w.php'), '05' => array('section' => 'sz_google_drive_viewer_s', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-drive-viewer-enable-s.php'), '06' => array('section' => 'sz_google_drive_viewer_w', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-drive-viewer-enable-w.php'));
     // Definizione array generale contenente elenco dei campi
     // che bisogna aggiungere alle sezioni precedentemente definite
     $this->sectionsfields = array('01' => array(array('field' => 'drive_sitename', 'title' => ucfirst(__('site name', 'szgoogleadmin')), 'callback' => array($this, 'get_drive_sitename'))), '02' => array(array('field' => 'drive_savebutton_shortcode', 'title' => ucfirst(__('shortcode', 'szgoogleadmin')), 'callback' => array($this, 'get_drive_savebutton_shortcode')), array('field' => 'drive_savebutton_widget', 'title' => ucfirst(__('widget', 'szgoogleadmin')), 'callback' => array($this, 'get_drive_savebutton_widget'))), '03' => array(array('field' => 'drive_embed_shortcode', 'title' => ucfirst(__('shortcode', 'szgoogleadmin')), 'callback' => array($this, 'get_drive_embed_shortcode')), array('field' => 'drive_embed_s_width', 'title' => ucfirst(__('default width', 'szgoogleadmin')), 'callback' => array($this, 'get_drive_embed_s_width')), array('field' => 'drive_embed_s_height', 'title' => ucfirst(__('default height', 'szgoogleadmin')), 'callback' => array($this, 'get_drive_embed_s_height')), array('field' => 'drive_embed_s_height_p', 'title' => ucfirst(__('presentation height', 'szgoogleadmin')), 'callback' => array($this, 'get_drive_embed_s_height_p')), array('field' => 'drive_embed_s_height_v', 'title' => ucfirst(__('video height', 'szgoogleadmin')), 'callback' => array($this, 'get_drive_embed_s_height_v'))), '04' => array(array('field' => 'drive_embed_widget', 'title' => ucfirst(__('widget', 'szgoogleadmin')), 'callback' => array($this, 'get_drive_embed_widget')), array('field' => 'drive_embed_w_width', 'title' => ucfirst(__('default width', 'szgoogleadmin')), 'callback' => array($this, 'get_drive_embed_w_width')), array('field' => 'drive_embed_w_height', 'title' => ucfirst(__('default height', 'szgoogleadmin')), 'callback' => array($this, 'get_drive_embed_w_height')), array('field' => 'drive_embed_w_height_p', 'title' => ucfirst(__('presentation height', 'szgoogleadmin')), 'callback' => array($this, 'get_drive_embed_w_height_p')), array('field' => 'drive_embed_w_height_v', 'title' => ucfirst(__('video height', 'szgoogleadmin')), 'callback' => array($this, 'get_drive_embed_w_height_v'))), '05' => array(array('field' => 'drive_viewer_shortcode', 'title' => ucfirst(__('shortcode', 'szgoogleadmin')), 'callback' => array($this, 'get_drive_viewer_shortcode')), array('field' => 'drive_viewer_s_width', 'title' => ucfirst(__('default width', 'szgoogleadmin')), 'callback' => array($this, 'get_drive_viewer_s_width')), array('field' => 'drive_viewer_s_height', 'title' => ucfirst(__('default height', 'szgoogleadmin')), 'callback' => array($this, 'get_drive_viewer_s_height')), array('field' => 'drive_viewer_s_t_position', 'title' => ucfirst(__('title position', 'szgoogleadmin')), 'callback' => array($this, 'get_drive_viewer_s_t_position')), array('field' => 'drive_viewer_s_t_align', 'title' => ucfirst(__('title alignment', 'szgoogleadmin')), 'callback' => array($this, 'get_drive_viewer_s_t_align'))), '06' => array(array('field' => 'drive_viewer_widget', 'title' => ucfirst(__('widget', 'szgoogleadmin')), 'callback' => array($this, 'get_drive_viewer_widget')), array('field' => 'drive_viewer_w_width', 'title' => ucfirst(__('default width', 'szgoogleadmin')), 'callback' => array($this, 'get_drive_viewer_w_width')), array('field' => 'drive_viewer_w_height', 'title' => ucfirst(__('default height', 'szgoogleadmin')), 'callback' => array($this, 'get_drive_viewer_w_height')), array('field' => 'drive_viewer_w_t_position', 'title' => ucfirst(__('title position', 'szgoogleadmin')), 'callback' => array($this, 'get_drive_viewer_w_t_position')), array('field' => 'drive_viewer_w_t_align', 'title' => ucfirst(__('title alignment', 'szgoogleadmin')), 'callback' => array($this, 'get_drive_viewer_w_t_align'))));
     // Richiamo la funzione della classe padre per elaborare le
     // variabili contenenti i valori di configurazione sezione
     parent::moduleAddFields();
 }
예제 #5
0
 /**
  * Funzione per aggiungere i campi del form con la corrispondenza
  * delle opzioni specificate nel modulo attualmente utilizzato
  *
  * @return void
  */
 function moduleAddFields()
 {
     // Definizione array generale contenente elenco delle sezioni
     // Su ogni sezione bisogna definire un array per elenco campi
     $this->sectionsmenu = array('01' => array('section' => 'sz_google_fonts_section', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-fonts.php'), '02' => array('section' => 'sz_google_fonts_section_BX', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-fonts-BX.php'), '03' => array('section' => 'sz_google_fonts_section_HX', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-fonts-HX.php'));
     // Definizione array generale contenente elenco dei campi
     // che bisogna aggiungere alle sezioni precedentemente definite
     $this->sectionsfields = array('01' => array(array('field' => 'fonts_family_L1', 'title' => ucfirst(__('font family', 'szgoogleadmin')), 'callback' => array($this, 'get_fonts_family_L1')), array('field' => 'fonts_family_L2', 'title' => ucfirst(__('font family', 'szgoogleadmin')), 'callback' => array($this, 'get_fonts_family_L2')), array('field' => 'fonts_family_L3', 'title' => ucfirst(__('font family', 'szgoogleadmin')), 'callback' => array($this, 'get_fonts_family_L3')), array('field' => 'fonts_family_L4', 'title' => ucfirst(__('font family', 'szgoogleadmin')), 'callback' => array($this, 'get_fonts_family_L4')), array('field' => 'fonts_family_L5', 'title' => ucfirst(__('font family', 'szgoogleadmin')), 'callback' => array($this, 'get_fonts_family_L5')), array('field' => 'fonts_family_L6', 'title' => ucfirst(__('font family', 'szgoogleadmin')), 'callback' => array($this, 'get_fonts_family_L6'))), '02' => array(array('field' => 'fonts_family_B1', 'title' => ucfirst(__('font family', 'szgoogleadmin') . htmlspecialchars(' <body>')), 'callback' => array($this, 'get_fonts_family_B1')), array('field' => 'fonts_family_P1', 'title' => ucfirst(__('font family', 'szgoogleadmin') . htmlspecialchars(' <p>')), 'callback' => array($this, 'get_fonts_family_P1')), array('field' => 'fonts_family_B2', 'title' => ucfirst(__('font family', 'szgoogleadmin') . htmlspecialchars(' <blockquote>')), 'callback' => array($this, 'get_fonts_family_B2'))), '03' => array(array('field' => 'fonts_family_H1', 'title' => ucfirst(__('font family', 'szgoogleadmin') . htmlspecialchars(' <h1>')), 'callback' => array($this, 'get_fonts_family_H1')), array('field' => 'fonts_family_H2', 'title' => ucfirst(__('font family', 'szgoogleadmin') . htmlspecialchars(' <h2>')), 'callback' => array($this, 'get_fonts_family_H2')), array('field' => 'fonts_family_H3', 'title' => ucfirst(__('font family', 'szgoogleadmin') . htmlspecialchars(' <h3>')), 'callback' => array($this, 'get_fonts_family_H3')), array('field' => 'fonts_family_H4', 'title' => ucfirst(__('font family', 'szgoogleadmin') . htmlspecialchars(' <h4>')), 'callback' => array($this, 'get_fonts_family_H4')), array('field' => 'fonts_family_H5', 'title' => ucfirst(__('font family', 'szgoogleadmin') . htmlspecialchars(' <h5>')), 'callback' => array($this, 'get_fonts_family_H5')), array('field' => 'fonts_family_H6', 'title' => ucfirst(__('font family', 'szgoogleadmin') . htmlspecialchars(' <h6>')), 'callback' => array($this, 'get_fonts_family_H6'))));
     // Richiamo la funzione della classe padre per elaborare le
     // variabili contenenti i valori di configurazione sezione
     parent::moduleAddFields();
 }
예제 #6
0
 /**
  * Funzione per aggiungere i campi del form con la corrispondenza
  * delle opzioni specificate nel modulo attualmente utilizzato
  *
  * @return void
  */
 function moduleAddFields()
 {
     // Definizione array generale contenente elenco delle sezioni
     // Su ogni sezione bisogna definire un array per elenco campi
     $this->sectionsmenu = array('01' => array('section' => 'sz_google_analytics_section', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-analytics.php'), '02' => array('section' => 'sz_google_analytics_enabled', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-analytics-enabled.php'), '03' => array('section' => 'sz_google_analytics_classic', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-analytics-classic.php'));
     // Definizione array generale contenente elenco dei campi
     // che bisogna aggiungere alle sezioni precedentemente definite
     $this->sectionsfields = array('01' => array(array('field' => 'ga_uacode', 'title' => ucwords(__('UA code', 'szgoogleadmin')), 'callback' => array($this, 'get_analytics_uacode')), array('field' => 'ga_position', 'title' => ucfirst(__('position', 'szgoogleadmin')), 'callback' => array($this, 'get_analytics_position')), array('field' => 'ga_type', 'title' => ucfirst(__('type code', 'szgoogleadmin')), 'callback' => array($this, 'get_analytics_type'))), '02' => array(array('field' => 'ga_enable_front', 'title' => ucfirst(__('frontend', 'szgoogleadmin')), 'callback' => array($this, 'get_analytics_enable_front')), array('field' => 'ga_enable_admin', 'title' => ucfirst(__('backend', 'szgoogleadmin')), 'callback' => array($this, 'get_analytics_enable_admin')), array('field' => 'ga_enable_admin_administrator', 'title' => ucfirst(__('administrator', 'szgoogleadmin')), 'callback' => array($this, 'get_analytics_enable_administrator')), array('field' => 'ga_enable_admin_logged', 'title' => ucfirst(__('user logged', 'szgoogleadmin')), 'callback' => array($this, 'get_analytics_enable_logged'))), '03' => array(array('field' => 'ga_enable_subdomains', 'title' => ucfirst(__('tracking subdomains', 'szgoogleadmin')), 'callback' => array($this, 'get_analytics_enable_subdomains')), array('field' => 'ga_enable_multiple', 'title' => ucfirst(__('multiple top domains', 'szgoogleadmin')), 'callback' => array($this, 'get_analytics_enable_multiple')), array('field' => 'ga_enable_advertiser', 'title' => ucfirst(__('advertiser', 'szgoogleadmin')), 'callback' => array($this, 'get_analytics_enable_advertiser'))));
     // Richiamo la funzione della classe padre per elaborare le
     // variabili contenenti i valori di configurazione sezione
     parent::moduleAddFields();
 }
 /**
  * Function to add sections and the corresponding options in the configuration
  * page, each option belongs to a section, which is linked to a general tab 
  */
 function moduleAddFields()
 {
     // General definition array containing a list of sections
     // On every section you have to define an array to list fields
     $this->sectionsmenu = array('01' => array('section' => 'sz_google_recaptcha', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-recaptcha.php'), '02' => array('section' => 'sz_google_recaptcha_enabled', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-recaptcha-enable.php'), '03' => array('section' => 'sz_google_recaptcha_emergency', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-recaptcha-emergency.php'), '04' => array('section' => 'sz_google_recaptcha_style', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-recaptcha-style.php'), '05' => array('section' => 'sz_google_recaptcha_corrections', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-recaptcha-corrections.php'));
     // General definition array containing a list of fields
     // All fields are added to the previously defined sections
     $this->sectionsfields = array('01' => array(array('field' => 'recaptcha_key_site', 'title' => ucfirst(__('KEY Site', 'sz-google')), 'callback' => array($this, 'callback_recaptcha_key_site')), array('field' => 'recaptcha_key_secret', 'title' => ucfirst(__('KEY Secret', 'sz-google')), 'callback' => array($this, 'callback_recaptcha_key_secret'))), '02' => array(array('field' => 'recaptcha_enable_login', 'title' => ucfirst(__('enable login', 'sz-google')), 'callback' => array($this, 'callback_recaptcha_enable_login'))), '03' => array(array('field' => 'recaptcha_emergency', 'title' => ucfirst(__('emergency', 'sz-google')), 'callback' => array($this, 'callback_recaptcha_emergency_enable')), array('field' => 'recaptcha_emergency_file', 'title' => ucfirst(__('emergency file', 'sz-google')), 'callback' => array($this, 'callback_recaptcha_emergency_file'))), '04' => array(array('field' => 'recaptcha_style_login', 'title' => ucfirst(__('style login', 'sz-google')), 'callback' => array($this, 'callback_recaptcha_style_login'))), '05' => array(array('field' => 'recaptcha_style_login_CSS', 'title' => ucfirst(__('style login CSS', 'sz-google')), 'callback' => array($this, 'callback_recaptcha_style_login_css')), array('field' => 'recaptcha_style_login_width', 'title' => ucfirst(__('style login width', 'sz-google')), 'callback' => array($this, 'callback_recaptcha_style_login_width'))));
     // Calling up the function of the parent class to process the
     // variables that contain the values ​​of configuration section
     parent::moduleAddFields();
 }
 /**
  * Function to add sections and the corresponding options in the configuration
  * page, each option belongs to a section, which is linked to a general tab 
  */
 function moduleAddFields()
 {
     // General definition array containing a list of sections
     // On every section you have to define an array to list fields
     $this->sectionsmenu = array('01' => array('section' => 'sz_google_hangouts_start', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-hangouts-start.php'));
     // General definition array containing a list of fields
     // All fields are added to the previously defined sections
     $this->sectionsfields = array('01' => array(array('field' => 'hangouts_start_shortcode', 'title' => ucfirst(__('shortcode', 'sz-google')), 'callback' => array($this, 'callback_hangouts_start_shortcode')), array('field' => 'hangouts_start_widget', 'title' => ucfirst(__('widget', 'sz-google')), 'callback' => array($this, 'callback_hangouts_start_widget')), array('field' => 'hangouts_start_logged', 'title' => ucfirst(__('user logged', 'sz-google')), 'callback' => array($this, 'callback_hangouts_start_logged')), array('field' => 'hangouts_start_guest', 'title' => ucfirst(__('user guest', 'sz-google')), 'callback' => array($this, 'callback_hangouts_start_guest'))));
     // Calling up the function of the parent class to process the
     // variables that contain the values ​​of configuration section
     parent::moduleAddFields();
 }
 /**
  * Function to add sections and the corresponding options in the configuration
  * page, each option belongs to a section, which is linked to a general tab 
  */
 function moduleAddFields()
 {
     // General definition array containing a list of sections
     // On every section you have to define an array to list fields
     $this->sectionsmenu = array('01' => array('section' => 'sz_google_translate_section', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-translate.php'), '02' => array('section' => 'sz_google_translate_language', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-translate-language.php'), '03' => array('section' => 'sz_google_translate_active', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-translate-enable.php'), '04' => array('section' => 'sz_google_translate_advanced', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-translate-advanced.php'));
     // General definition array containing a list of fields
     // All fields are added to the previously defined sections
     $this->sectionsfields = array('01' => array(array('field' => 'translate_meta', 'title' => ucfirst(__('code META', 'sz-google')), 'callback' => array($this, 'callback_translate_meta')), array('field' => 'translate_mode', 'title' => ucfirst(__('display mode', 'sz-google')), 'callback' => array($this, 'callback_translate_mode'))), '02' => array(array('field' => 'translate_language', 'title' => ucfirst(__('website language', 'sz-google')), 'callback' => array($this, 'callback_translate_language'))), '03' => array(array('field' => 'translate_shortcode', 'title' => ucfirst(__('shortcode', 'sz-google')), 'callback' => array($this, 'callback_translate_shortcode')), array('field' => 'translate_widget', 'title' => ucfirst(__('widget', 'sz-google')), 'callback' => array($this, 'callback_translate_widget'))), '04' => array(array('field' => 'translate_automatic', 'title' => ucfirst(__('automatic banner', 'sz-google')), 'callback' => array($this, 'callback_translate_automatic')), array('field' => 'translate_multiple', 'title' => ucfirst(__('multiple language', 'sz-google')), 'callback' => array($this, 'callback_translate_multiple')), array('field' => 'translate_analytics', 'title' => ucwords(__('google analytics', 'sz-google')), 'callback' => array($this, 'callback_translate_analytics')), array('field' => 'translate_analytics_ua', 'title' => ucwords(__('google analytics UA', 'sz-google')), 'callback' => array($this, 'callback_translate_analytics_ua'))));
     // Calling up the function of the parent class to process the
     // variables that contain the values ​​of configuration section
     parent::moduleAddFields();
 }
예제 #10
0
 /**
  * Function to add sections and the corresponding options in the configuration
  * page, each option belongs to a section, which is linked to a general tab 
  */
 function moduleAddFields()
 {
     // General definition array containing a list of sections
     // On every section you have to define an array to list fields
     $this->sectionsmenu = array('01' => array('section' => 'sz_google_plus_section', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-plus.php'), '02' => array('section' => 'sz_google_plus_language', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-plus-language.php'), '03' => array('section' => 'sz_google_plus_redirect', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-plus-redirect.php'), '04' => array('section' => 'sz_google_plus_system', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-plus-system.php'), '05' => array('section' => 'sz_google_plus_s_badges', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-plus-s-badges.php'), '06' => array('section' => 'sz_google_plus_s_buttons', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-plus-s-buttons.php'), '07' => array('section' => 'sz_google_plus_s_posts', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-plus-s-posts.php'), '08' => array('section' => 'sz_google_plus_w_badges', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-plus-w-badges.php'), '09' => array('section' => 'sz_google_plus_w_buttons', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-plus-w-buttons.php'), '10' => array('section' => 'sz_google_plus_w_posts', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-plus-w-posts.php'), '11' => array('section' => 'sz_google_plus_comments', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-plus-comments.php'), '12' => array('section' => 'sz_google_plus_head', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-plus-head.php'), '13' => array('section' => 'sz_google_plus_contacts', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-plus-contacts.php'), '14' => array('section' => 'sz_google_plus_author', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-plus-author.php'));
     // General definition array containing a list of fields
     // All fields are added to the previously defined sections
     $this->sectionsfields = array('01' => array(array('field' => 'plus_profile', 'title' => ucwords(__('google+ profile', 'sz-google')), 'callback' => array($this, 'callback_plus_profile')), array('field' => 'plus_page', 'title' => ucwords(__('google+ page', 'sz-google')), 'callback' => array($this, 'callback_plus_page')), array('field' => 'plus_community', 'title' => ucwords(__('google+ community', 'sz-google')), 'callback' => array($this, 'callback_plus_community'))), '02' => array(array('field' => 'plus_language', 'title' => ucfirst(__('select language', 'sz-google')), 'callback' => array($this, 'callback_plus_language'))), '03' => array(array('field' => 'plus_redirect_sign', 'title' => ucfirst(__('redirect /+', 'sz-google')), 'callback' => array($this, 'callback_plus_redirect_sign')), array('field' => 'plus_redirect_sign_url', 'title' => ucfirst(__('redirect /+ URL', 'sz-google')), 'callback' => array($this, 'callback_plus_redirect_sign_url')), array('field' => 'plus_redirect_plus', 'title' => ucfirst(__('redirect /plus', 'sz-google')), 'callback' => array($this, 'callback_plus_redirect_plus')), array('field' => 'plus_redirect_plus_url', 'title' => ucfirst(__('redirect /plus URL', 'sz-google')), 'callback' => array($this, 'callback_plus_redirect_plus_url')), array('field' => 'plus_redirect_curl', 'title' => ucfirst(__('redirect URL', 'sz-google')), 'callback' => array($this, 'callback_plus_redirect_curl')), array('field' => 'plus_redirect_curl_source', 'title' => ucfirst(__('redirect URL source', 'sz-google')), 'callback' => array($this, 'callback_plus_redirect_curl_source')), array('field' => 'plus_redirect_curl_target', 'title' => ucfirst(__('redirect URL target', 'sz-google')), 'callback' => array($this, 'callback_plus_redirect_curl_target'))), '04' => array(array('field' => 'plus_enable_recommendations', 'title' => ucwords(__('recommendations mobile', 'sz-google')), 'callback' => array($this, 'callback_plus_enable_recommendations')), array('field' => 'plus_system_javascript', 'title' => ucwords(__('disable file javascript', 'sz-google')), 'callback' => array($this, 'callback_plus_system_javascript'))), '05' => array(array('field' => 'plus_shortcode_pr_enable', 'title' => ucwords(__('google+ profile', 'sz-google')), 'callback' => array($this, 'callback_plus_shortcode_profile')), array('field' => 'plus_shortcode_pa_enable', 'title' => ucwords(__('google+ page', 'sz-google')), 'callback' => array($this, 'callback_plus_shortcode_page')), array('field' => 'plus_shortcode_co_enable', 'title' => ucwords(__('google+ community', 'sz-google')), 'callback' => array($this, 'callback_plus_shortcode_community')), array('field' => 'plus_shortcode_fl_enable', 'title' => ucwords(__('google+ followers', 'sz-google')), 'callback' => array($this, 'callback_plus_shortcode_followers')), array('field' => 'plus_shortcode_size_portrait', 'title' => ucwords(__('width portrait', 'sz-google')), 'callback' => array($this, 'callback_plus_shortcode_size_portrait')), array('field' => 'plus_shortcode_size_landscape', 'title' => ucwords(__('width landscape', 'sz-google')), 'callback' => array($this, 'callback_plus_shortcode_size_landscape'))), '06' => array(array('field' => 'plus_button_enable_plusone', 'title' => ucwords(__('google+ plusone', 'sz-google')), 'callback' => array($this, 'callback_plus_button_plusone')), array('field' => 'plus_button_enable_sharing', 'title' => ucwords(__('google+ sharing', 'sz-google')), 'callback' => array($this, 'callback_plus_button_sharing')), array('field' => 'plus_button_enable_follow', 'title' => ucwords(__('google+ follow', 'sz-google')), 'callback' => array($this, 'callback_plus_button_follow'))), '07' => array(array('field' => 'plus_post_enable_shortcode', 'title' => ucwords(__('google+ post', 'sz-google')), 'callback' => array($this, 'callback_plus_post_shortcode'))), '08' => array(array('field' => 'plus_widget_pr_enable', 'title' => ucwords(__('google+ profile', 'sz-google')), 'callback' => array($this, 'callback_plus_widget_profile')), array('field' => 'plus_widget_pa_enable', 'title' => ucwords(__('google+ page', 'sz-google')), 'callback' => array($this, 'callback_plus_widget_page')), array('field' => 'plus_widget_co_enable', 'title' => ucwords(__('google+ community', 'sz-google')), 'callback' => array($this, 'callback_plus_widget_community')), array('field' => 'plus_widget_fl_enable', 'title' => ucwords(__('google+ followers', 'sz-google')), 'callback' => array($this, 'callback_plus_widget_followers')), array('field' => 'plus_widget_size_portrait', 'title' => ucwords(__('width portrait', 'sz-google')), 'callback' => array($this, 'callback_plus_widget_size_portrait')), array('field' => 'plus_widget_size_landscape', 'title' => ucwords(__('width landscape', 'sz-google')), 'callback' => array($this, 'callback_plus_widget_size_landscape'))), '09' => array(array('field' => 'plus_button_enable_widget_plusone', 'title' => ucwords(__('google+ plusone', 'sz-google')), 'callback' => array($this, 'callback_plus_widget_button_plusone')), array('field' => 'plus_button_enable_widget_sharing', 'title' => ucwords(__('google+ sharing', 'sz-google')), 'callback' => array($this, 'callback_plus_widget_button_sharing')), array('field' => 'plus_button_enable_widget_follow', 'title' => ucwords(__('google+ follow', 'sz-google')), 'callback' => array($this, 'callback_plus_widget_button_follow'))), '10' => array(array('field' => 'plus_post_enable_widget', 'title' => ucwords(__('google+ post', 'sz-google')), 'callback' => array($this, 'callback_plus_post_widget'))), '11' => array(array('field' => 'plus_comments_gp_enable', 'title' => ucwords(__('g+ comments', 'sz-google')), 'callback' => array($this, 'callback_plus_comments_gp')), array('field' => 'plus_comments_wp_enable', 'title' => ucwords(__('WP comments', 'sz-google')), 'callback' => array($this, 'callback_plus_comments_wp')), array('field' => 'plus_comments_ac_enable', 'title' => ucwords(__('after content', 'sz-google')), 'callback' => array($this, 'callback_plus_comments_ac')), array('field' => 'plus_comments_aw_enable', 'title' => ucwords(__('after WP system', 'sz-google')), 'callback' => array($this, 'callback_plus_comments_aw')), array('field' => 'plus_comments_wd_enable', 'title' => ucwords(__('widget', 'sz-google')), 'callback' => array($this, 'callback_plus_comments_wd')), array('field' => 'plus_comments_sh_enable', 'title' => ucwords(__('shortcode', 'sz-google')), 'callback' => array($this, 'callback_plus_comments_sh')), array('field' => 'plus_comments_dt_enable', 'title' => ucwords(__('date switch', 'sz-google')), 'callback' => array($this, 'callback_plus_comments_dt')), array('field' => 'plus_comments_fixed_size', 'title' => ucwords(__('fixed size', 'sz-google')), 'callback' => array($this, 'callback_plus_comments_fixed_size')), array('field' => 'plus_comments_title', 'title' => ucwords(__('title', 'sz-google')), 'callback' => array($this, 'callback_plus_comments_title')), array('field' => 'plus_comments_css_class_1', 'title' => ucwords(__('CSS class 1', 'sz-google')), 'callback' => array($this, 'callback_plus_comments_css_class_1')), array('field' => 'plus_comments_css_class_2', 'title' => ucwords(__('CSS class 2', 'sz-google')), 'callback' => array($this, 'callback_plus_comments_css_class_2'))), '12' => array(array('field' => 'plus_enable_author', 'title' => ucwords(__('HEAD Author', 'sz-google')), 'callback' => array($this, 'callback_plus_enable_author')), array('field' => 'plus_enable_publisher', 'title' => ucwords(__('HEAD Publisher', 'sz-google')), 'callback' => array($this, 'callback_plus_enable_publisher'))), '13' => array(array('field' => 'plus_usercontact_page', 'title' => ucwords(__('google+ page', 'sz-google')), 'callback' => array($this, 'callback_plus_usercontact_page')), array('field' => 'plus_usercontact_community', 'title' => ucwords(__('google+ community', 'sz-google')), 'callback' => array($this, 'callback_plus_usercontact_community')), array('field' => 'plus_usercontact_bestpost', 'title' => ucwords(__('google+ best post', 'sz-google')), 'callback' => array($this, 'callback_plus_usercontact_bestpost'))), '14' => array(array('field' => 'plus_author_badge', 'title' => ucwords(__('author badge', 'sz-google')), 'callback' => array($this, 'callback_plus_author_badge'))));
     // Calling up the function of the parent class to process the
     // variables that contain the values ​​of configuration section
     parent::moduleAddFields();
 }
예제 #11
0
 /**
  * Funzione per aggiungere i campi del form con la corrispondenza
  * delle opzioni specificate nel modulo attualmente utilizzato
  *
  * @return void
  */
 function moduleAddFields()
 {
     // Definizione array generale contenente elenco delle sezioni
     // Su ogni sezione bisogna definire un array per elenco campi
     $this->sectionsmenu = array('01' => array('section' => 'sz_google_groups_language', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-groups-language.php'), '02' => array('section' => 'sz_google_groups_active', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-groups-enable.php'), '03' => array('section' => 'sz_google_groups_display', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-groups-display.php'));
     // Definizione array generale contenente elenco dei campi
     // che bisogna aggiungere alle sezioni precedentemente definite
     $this->sectionsfields = array('01' => array(array('field' => 'groups_language', 'title' => ucfirst(__('default language', 'szgoogleadmin')), 'callback' => array($this, 'get_groups_language'))), '02' => array(array('field' => 'groups_shortcode', 'title' => ucfirst(__('shortcode', 'szgoogleadmin')), 'callback' => array($this, 'get_groups_shortcode')), array('field' => 'groups_widget', 'title' => ucfirst(__('widget', 'szgoogleadmin')), 'callback' => array($this, 'get_groups_widget'))), '03' => array(array('field' => 'groups_name', 'title' => ucfirst(__('group name', 'szgoogleadmin')), 'callback' => array($this, 'get_groups_name')), array('field' => 'groups_showsearch', 'title' => ucfirst(__('show search', 'szgoogleadmin')), 'callback' => array($this, 'get_groups_showsearch')), array('field' => 'groups_showtabs', 'title' => ucfirst(__('show tabs', 'szgoogleadmin')), 'callback' => array($this, 'get_groups_showtabs')), array('field' => 'groups_hidetitle', 'title' => ucfirst(__('hide title', 'szgoogleadmin')), 'callback' => array($this, 'get_groups_hidetitle')), array('field' => 'groups_hidesubject', 'title' => ucfirst(__('hide subject', 'szgoogleadmin')), 'callback' => array($this, 'get_groups_hidesubject')), array('field' => 'groups_width', 'title' => ucfirst(__('default width', 'szgoogleadmin')), 'callback' => array($this, 'get_groups_width')), array('field' => 'groups_height', 'title' => ucfirst(__('default height', 'szgoogleadmin')), 'callback' => array($this, 'get_groups_height'))));
     // Richiamo la funzione della classe padre per elaborare le
     // variabili contenenti i valori di configurazione sezione
     parent::moduleAddFields();
 }
 /**
  * Function to add sections and the corresponding options in the configuration
  * page, each option belongs to a section, which is linked to a general tab 
  */
 function moduleAddFields()
 {
     // General definition array containing a list of sections
     // On every section you have to define an array to list fields
     $this->sectionsmenu = array('01' => array('section' => 'sz_google_analytics_section', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-analytics.php'), '02' => array('section' => 'sz_google_analytics_enabled', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-analytics-enabled.php'), '03' => array('section' => 'sz_google_analytics_classic', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-analytics-classic.php'), '04' => array('section' => 'sz_google_analytics_universal', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-analytics-universal.php'));
     // General definition array containing a list of fields
     // All fields are added to the previously defined sections
     $this->sectionsfields = array('01' => array(array('field' => 'ga_uacode', 'title' => ucwords(__('UA code', 'sz-google')), 'callback' => array($this, 'callback_analytics_uacode')), array('field' => 'ga_position', 'title' => ucfirst(__('position', 'sz-google')), 'callback' => array($this, 'callback_analytics_position')), array('field' => 'ga_type', 'title' => ucfirst(__('type code', 'sz-google')), 'callback' => array($this, 'callback_analytics_type')), array('field' => 'ga_compression', 'title' => ucfirst(__('compression', 'sz-google')), 'callback' => array($this, 'callback_analytics_compression'))), '02' => array(array('field' => 'ga_enable_front', 'title' => ucfirst(__('frontend', 'sz-google')), 'callback' => array($this, 'callback_analytics_enable_front')), array('field' => 'ga_enable_admin', 'title' => ucfirst(__('backend', 'sz-google')), 'callback' => array($this, 'callback_analytics_enable_admin')), array('field' => 'ga_enable_admin_administrator', 'title' => ucfirst(__('administrator', 'sz-google')), 'callback' => array($this, 'callback_analytics_enable_administrator')), array('field' => 'ga_enable_admin_logged', 'title' => ucfirst(__('user logged', 'sz-google')), 'callback' => array($this, 'callback_analytics_enable_logged'))), '03' => array(array('field' => 'ga_enable_subdomains', 'title' => ucfirst(__('tracking subdomains', 'sz-google')), 'callback' => array($this, 'callback_analytics_enable_subdomains')), array('field' => 'ga_enable_multiple', 'title' => ucfirst(__('multiple top domains', 'sz-google')), 'callback' => array($this, 'callback_analytics_enable_multiple')), array('field' => 'ga_enable_advertiser', 'title' => ucfirst(__('advertiser', 'sz-google')), 'callback' => array($this, 'callback_analytics_enable_advertiser')), array('field' => 'ga_enable_ip_none_cl', 'title' => ucfirst(__('IP Anonymization', 'sz-google')), 'callback' => array($this, 'callback_analytics_enable_ip_none_cl')), array('field' => 'ga_enable_cl_proxy', 'title' => ucfirst(__('Proxy HTTP', 'sz-google')), 'callback' => array($this, 'callback_analytics_enable_cl_proxy')), array('field' => 'ga_enable_cl_proxy_url', 'title' => ucfirst(__('Proxy HTTP URL', 'sz-google')), 'callback' => array($this, 'callback_analytics_enable_cl_proxy_url')), array('field' => 'ga_enable_cl_proxy_adv', 'title' => ucfirst(__('Proxy HTTP URL adv', 'sz-google')), 'callback' => array($this, 'callback_analytics_enable_cl_proxy_adv'))), '04' => array(array('field' => 'ga_enable_ip_none_ad', 'title' => ucfirst(__('IP Anonymization', 'sz-google')), 'callback' => array($this, 'callback_analytics_enable_ip_none_ad')), array('field' => 'ga_enable_features', 'title' => ucfirst(__('display features', 'sz-google')), 'callback' => array($this, 'callback_analytics_enable_features')), array('field' => 'ga_enable_un_proxy', 'title' => ucfirst(__('Proxy HTTP', 'sz-google')), 'callback' => array($this, 'callback_analytics_enable_un_proxy')), array('field' => 'ga_enable_un_proxy_url', 'title' => ucfirst(__('Proxy HTTP URL', 'sz-google')), 'callback' => array($this, 'callback_analytics_enable_un_proxy_url'))));
     // Calling up the function of the parent class to process the
     // variables that contain the values ​​of configuration section
     parent::moduleAddFields();
 }
예제 #13
0
 /**
  * Function to add sections and the corresponding options in the configuration
  * page, each option belongs to a section, which is linked to a general tab 
  */
 function moduleAddFields()
 {
     // General definition array containing a list of sections
     // On every section you have to define an array to list fields
     $this->sectionsmenu = array('01' => array('section' => 'sz_google_drive_section', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-drive.php'), '02' => array('section' => 'sz_google_drive_savebutton', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-drive-savebutton-enable.php'), '03' => array('section' => 'sz_google_drive_embed_s', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-drive-embed-enable-s.php'), '04' => array('section' => 'sz_google_drive_embed_w', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-drive-embed-enable-w.php'), '05' => array('section' => 'sz_google_drive_viewer_s', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-drive-viewer-enable-s.php'), '06' => array('section' => 'sz_google_drive_viewer_w', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-drive-viewer-enable-w.php'));
     // General definition array containing a list of fields
     // All fields are added to the previously defined sections
     $this->sectionsfields = array('01' => array(array('field' => 'drive_sitename', 'title' => ucfirst(__('site name', 'sz-google')), 'callback' => array($this, 'callback_drive_sitename'))), '02' => array(array('field' => 'drive_savebutton_shortcode', 'title' => ucfirst(__('shortcode', 'sz-google')), 'callback' => array($this, 'callback_drive_savebutton_shortcode')), array('field' => 'drive_savebutton_widget', 'title' => ucfirst(__('widget', 'sz-google')), 'callback' => array($this, 'callback_drive_savebutton_widget'))), '03' => array(array('field' => 'drive_embed_shortcode', 'title' => ucfirst(__('shortcode', 'sz-google')), 'callback' => array($this, 'callback_drive_embed_shortcode')), array('field' => 'drive_embed_s_width', 'title' => ucfirst(__('default width', 'sz-google')), 'callback' => array($this, 'callback_drive_embed_s_width')), array('field' => 'drive_embed_s_height', 'title' => ucfirst(__('default height', 'sz-google')), 'callback' => array($this, 'callback_drive_embed_s_height')), array('field' => 'drive_embed_s_height_p', 'title' => ucfirst(__('presentation height', 'sz-google')), 'callback' => array($this, 'callback_drive_embed_s_height_p')), array('field' => 'drive_embed_s_height_v', 'title' => ucfirst(__('video height', 'sz-google')), 'callback' => array($this, 'callback_drive_embed_s_height_v'))), '04' => array(array('field' => 'drive_embed_widget', 'title' => ucfirst(__('widget', 'sz-google')), 'callback' => array($this, 'callback_drive_embed_widget')), array('field' => 'drive_embed_w_width', 'title' => ucfirst(__('default width', 'sz-google')), 'callback' => array($this, 'callback_drive_embed_w_width')), array('field' => 'drive_embed_w_height', 'title' => ucfirst(__('default height', 'sz-google')), 'callback' => array($this, 'callback_drive_embed_w_height')), array('field' => 'drive_embed_w_height_p', 'title' => ucfirst(__('presentation height', 'sz-google')), 'callback' => array($this, 'callback_drive_embed_w_height_p')), array('field' => 'drive_embed_w_height_v', 'title' => ucfirst(__('video height', 'sz-google')), 'callback' => array($this, 'callback_drive_embed_w_height_v'))), '05' => array(array('field' => 'drive_viewer_shortcode', 'title' => ucfirst(__('shortcode', 'sz-google')), 'callback' => array($this, 'callback_drive_viewer_shortcode')), array('field' => 'drive_viewer_s_width', 'title' => ucfirst(__('default width', 'sz-google')), 'callback' => array($this, 'callback_drive_viewer_s_width')), array('field' => 'drive_viewer_s_height', 'title' => ucfirst(__('default height', 'sz-google')), 'callback' => array($this, 'callback_drive_viewer_s_height')), array('field' => 'drive_viewer_s_t_position', 'title' => ucfirst(__('title position', 'sz-google')), 'callback' => array($this, 'callback_drive_viewer_s_t_position')), array('field' => 'drive_viewer_s_t_align', 'title' => ucfirst(__('title alignment', 'sz-google')), 'callback' => array($this, 'callback_drive_viewer_s_t_align'))), '06' => array(array('field' => 'drive_viewer_widget', 'title' => ucfirst(__('widget', 'sz-google')), 'callback' => array($this, 'callback_drive_viewer_widget')), array('field' => 'drive_viewer_w_width', 'title' => ucfirst(__('default width', 'sz-google')), 'callback' => array($this, 'callback_drive_viewer_w_width')), array('field' => 'drive_viewer_w_height', 'title' => ucfirst(__('default height', 'sz-google')), 'callback' => array($this, 'callback_drive_viewer_w_height')), array('field' => 'drive_viewer_w_t_position', 'title' => ucfirst(__('title position', 'sz-google')), 'callback' => array($this, 'callback_drive_viewer_w_t_position')), array('field' => 'drive_viewer_w_t_align', 'title' => ucfirst(__('title alignment', 'sz-google')), 'callback' => array($this, 'callback_drive_viewer_w_t_align'))));
     // Calling up the function of the parent class to process the
     // variables that contain the values ​​of configuration section
     parent::moduleAddFields();
 }
 /**
  * Function to add sections and the corresponding options in the configuration
  * page, each option belongs to a section, which is linked to a general tab 
  */
 function moduleAddFields()
 {
     // Definizione array generale contenente elenco delle sezioni
     // Su ogni sezione bisogna definire un array per elenco campi
     $this->sectionsmenu = array('01' => array('section' => 'sz_google_panoramio_s_active', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-panoramio-s-enable.php'), '02' => array('section' => 'sz_google_panoramio_s_options', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-panoramio-s-options.php'), '03' => array('section' => 'sz_google_panoramio_w_active', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-panoramio-w-enable.php'), '04' => array('section' => 'sz_google_panoramio_w_options', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-panoramio-w-options.php'));
     // General definition array containing a list of fields
     // All fields are added to the previously defined sections
     $this->sectionsfields = array('01' => array(array('field' => 'panoramio_shortcode', 'title' => ucfirst(__('shortcode', 'sz-google')), 'callback' => array($this, 'callback_panoramio_shortcode'))), '02' => array(array('field' => 'panoramio_s_template', 'title' => ucfirst(__('default template', 'sz-google')), 'callback' => array($this, 'callback_panoramio_s_template')), array('field' => 'panoramio_s_width', 'title' => ucfirst(__('default width', 'sz-google')), 'callback' => array($this, 'callback_panoramio_s_width')), array('field' => 'panoramio_s_height', 'title' => ucfirst(__('default height', 'sz-google')), 'callback' => array($this, 'callback_panoramio_s_height')), array('field' => 'panoramio_s_orientation', 'title' => ucfirst(__('default orientation', 'sz-google')), 'callback' => array($this, 'callback_panoramio_s_orientation')), array('field' => 'panoramio_s_list_size', 'title' => ucfirst(__('default list size', 'sz-google')), 'callback' => array($this, 'callback_panoramio_s_list_size')), array('field' => 'panoramio_s_position', 'title' => ucfirst(__('default position', 'sz-google')), 'callback' => array($this, 'callback_panoramio_s_position')), array('field' => 'panoramio_s_paragraph', 'title' => ucfirst(__('enable paragraph', 'sz-google')), 'callback' => array($this, 'callback_panoramio_s_paragraph'))), '03' => array(array('field' => 'panoramio_widget', 'title' => ucfirst(__('widget', 'sz-google')), 'callback' => array($this, 'callback_panoramio_widget'))), '04' => array(array('field' => 'panoramio_w_template', 'title' => ucfirst(__('default template', 'sz-google')), 'callback' => array($this, 'callback_panoramio_w_template')), array('field' => 'panoramio_w_width', 'title' => ucfirst(__('default width', 'sz-google')), 'callback' => array($this, 'callback_panoramio_w_width')), array('field' => 'panoramio_w_height', 'title' => ucfirst(__('default height', 'sz-google')), 'callback' => array($this, 'callback_panoramio_w_height')), array('field' => 'panoramio_w_orientation', 'title' => ucfirst(__('default orientation', 'sz-google')), 'callback' => array($this, 'callback_panoramio_w_orientation')), array('field' => 'panoramio_w_list_size', 'title' => ucfirst(__('default list size', 'sz-google')), 'callback' => array($this, 'callback_panoramio_w_list_size')), array('field' => 'panoramio_w_position', 'title' => ucfirst(__('default position', 'sz-google')), 'callback' => array($this, 'callback_panoramio_w_position'))));
     // Calling up the function of the parent class to process the
     // variables that contain the values ​​of configuration section
     parent::moduleAddFields();
 }
예제 #15
0
 /**
  * Funzione per aggiungere i campi del form con la corrispondenza
  * delle opzioni specificate nel modulo attualmente utilizzato
  *
  * @return void
  */
 function moduleAddFields()
 {
     // Definizione array generale contenente elenco delle sezioni
     // Su ogni sezione bisogna definire un array per elenco campi
     $this->sectionsmenu = array('01' => array('section' => 'sz_google_plus_section', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-plus.php'), '02' => array('section' => 'sz_google_plus_language', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-plus-language.php'), '03' => array('section' => 'sz_google_plus_redirect', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-plus-redirect.php'), '04' => array('section' => 'sz_google_plus_system', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-plus-system.php'), '05' => array('section' => 'sz_google_plus_s_badges', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-plus-s-badges.php'), '06' => array('section' => 'sz_google_plus_s_buttons', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-plus-s-buttons.php'), '07' => array('section' => 'sz_google_plus_s_posts', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-plus-s-posts.php'), '08' => array('section' => 'sz_google_plus_w_badges', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-plus-w-badges.php'), '09' => array('section' => 'sz_google_plus_w_buttons', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-plus-w-buttons.php'), '10' => array('section' => 'sz_google_plus_w_posts', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-plus-w-posts.php'), '11' => array('section' => 'sz_google_plus_comments', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-plus-comments.php'), '12' => array('section' => 'sz_google_plus_head', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-plus-head.php'), '13' => array('section' => 'sz_google_plus_contacts', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-plus-contacts.php'), '14' => array('section' => 'sz_google_plus_author', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-plus-author.php'));
     // Definizione array generale contenente elenco dei campi
     // che bisogna aggiungere alle sezioni precedentemente definite
     $this->sectionsfields = array('01' => array(array('field' => 'plus_profile', 'title' => ucwords(__('google+ profile', 'szgoogleadmin')), 'callback' => array($this, 'get_plus_profile')), array('field' => 'plus_page', 'title' => ucwords(__('google+ page', 'szgoogleadmin')), 'callback' => array($this, 'get_plus_page')), array('field' => 'plus_community', 'title' => ucwords(__('google+ community', 'szgoogleadmin')), 'callback' => array($this, 'get_plus_community'))), '02' => array(array('field' => 'plus_language', 'title' => ucfirst(__('select language', 'szgoogleadmin')), 'callback' => array($this, 'get_plus_language'))), '03' => array(array('field' => 'plus_redirect_sign', 'title' => ucfirst(__('redirect /+', 'szgoogleadmin')), 'callback' => array($this, 'get_plus_redirect_sign')), array('field' => 'plus_redirect_sign_url', 'title' => ucfirst(__('redirect /+ URL', 'szgoogleadmin')), 'callback' => array($this, 'get_plus_redirect_sign_url')), array('field' => 'plus_redirect_plus', 'title' => ucfirst(__('redirect /plus', 'szgoogleadmin')), 'callback' => array($this, 'get_plus_redirect_plus')), array('field' => 'plus_redirect_plus_url', 'title' => ucfirst(__('redirect /plus URL', 'szgoogleadmin')), 'callback' => array($this, 'get_plus_redirect_plus_url')), array('field' => 'plus_redirect_curl', 'title' => ucfirst(__('redirect URL', 'szgoogleadmin')), 'callback' => array($this, 'get_plus_redirect_curl')), array('field' => 'plus_redirect_curl_source', 'title' => ucfirst(__('redirect URL source', 'szgoogleadmin')), 'callback' => array($this, 'get_plus_redirect_curl_source')), array('field' => 'plus_redirect_curl_target', 'title' => ucfirst(__('redirect URL target', 'szgoogleadmin')), 'callback' => array($this, 'get_plus_redirect_curl_target'))), '04' => array(array('field' => 'plus_enable_recommendations', 'title' => ucwords(__('recommendations mobile', 'szgoogleadmin')), 'callback' => array($this, 'get_plus_enable_recommendations')), array('field' => 'plus_system_javascript', 'title' => ucwords(__('disable file javascript', 'szgoogleadmin')), 'callback' => array($this, 'get_plus_system_javascript'))), '05' => array(array('field' => 'plus_shortcode_pr_enable', 'title' => ucwords(__('google+ profile', 'szgoogleadmin')), 'callback' => array($this, 'get_plus_shortcode_profile')), array('field' => 'plus_shortcode_pa_enable', 'title' => ucwords(__('google+ page', 'szgoogleadmin')), 'callback' => array($this, 'get_plus_shortcode_page')), array('field' => 'plus_shortcode_co_enable', 'title' => ucwords(__('google+ community', 'szgoogleadmin')), 'callback' => array($this, 'get_plus_shortcode_community')), array('field' => 'plus_shortcode_fl_enable', 'title' => ucwords(__('google+ followers', 'szgoogleadmin')), 'callback' => array($this, 'get_plus_shortcode_followers')), array('field' => 'plus_shortcode_size_portrait', 'title' => ucwords(__('width portrait', 'szgoogleadmin')), 'callback' => array($this, 'get_plus_shortcode_size_portrait')), array('field' => 'plus_shortcode_size_landscape', 'title' => ucwords(__('width landscape', 'szgoogleadmin')), 'callback' => array($this, 'get_plus_shortcode_size_landscape'))), '06' => array(array('field' => 'plus_button_enable_plusone', 'title' => ucwords(__('google+ plusone', 'szgoogleadmin')), 'callback' => array($this, 'get_plus_button_plusone')), array('field' => 'plus_button_enable_sharing', 'title' => ucwords(__('google+ sharing', 'szgoogleadmin')), 'callback' => array($this, 'get_plus_button_sharing')), array('field' => 'plus_button_enable_follow', 'title' => ucwords(__('google+ follow', 'szgoogleadmin')), 'callback' => array($this, 'get_plus_button_follow'))), '07' => array(array('field' => 'plus_post_enable_shortcode', 'title' => ucwords(__('google+ post', 'szgoogleadmin')), 'callback' => array($this, 'get_plus_post_shortcode'))), '08' => array(array('field' => 'plus_widget_pr_enable', 'title' => ucwords(__('google+ profile', 'szgoogleadmin')), 'callback' => array($this, 'get_plus_widget_profile')), array('field' => 'plus_widget_pa_enable', 'title' => ucwords(__('google+ page', 'szgoogleadmin')), 'callback' => array($this, 'get_plus_widget_page')), array('field' => 'plus_widget_co_enable', 'title' => ucwords(__('google+ community', 'szgoogleadmin')), 'callback' => array($this, 'get_plus_widget_community')), array('field' => 'plus_widget_fl_enable', 'title' => ucwords(__('google+ followers', 'szgoogleadmin')), 'callback' => array($this, 'get_plus_widget_followers')), array('field' => 'plus_widget_size_portrait', 'title' => ucwords(__('width portrait', 'szgoogleadmin')), 'callback' => array($this, 'get_plus_widget_size_portrait')), array('field' => 'plus_widget_size_landscape', 'title' => ucwords(__('width landscape', 'szgoogleadmin')), 'callback' => array($this, 'get_plus_widget_size_landscape'))), '09' => array(array('field' => 'plus_button_enable_widget_plusone', 'title' => ucwords(__('google+ plusone', 'szgoogleadmin')), 'callback' => array($this, 'get_plus_widget_button_plusone')), array('field' => 'plus_button_enable_widget_sharing', 'title' => ucwords(__('google+ sharing', 'szgoogleadmin')), 'callback' => array($this, 'get_plus_widget_button_sharing')), array('field' => 'plus_button_enable_widget_follow', 'title' => ucwords(__('google+ follow', 'szgoogleadmin')), 'callback' => array($this, 'get_plus_widget_button_follow'))), '10' => array(array('field' => 'plus_post_enable_widget', 'title' => ucwords(__('google+ post', 'szgoogleadmin')), 'callback' => array($this, 'get_plus_post_widget'))), '11' => array(array('field' => 'plus_comments_gp_enable', 'title' => ucwords(__('g+ comments', 'szgoogleadmin')), 'callback' => array($this, 'get_plus_comments_gp')), array('field' => 'plus_comments_wp_enable', 'title' => ucwords(__('WP comments', 'szgoogleadmin')), 'callback' => array($this, 'get_plus_comments_wp')), array('field' => 'plus_comments_ac_enable', 'title' => ucwords(__('after content', 'szgoogleadmin')), 'callback' => array($this, 'get_plus_comments_ac')), array('field' => 'plus_comments_aw_enable', 'title' => ucwords(__('after WP system', 'szgoogleadmin')), 'callback' => array($this, 'get_plus_comments_aw')), array('field' => 'plus_comments_wd_enable', 'title' => ucwords(__('widget', 'szgoogleadmin')), 'callback' => array($this, 'get_plus_comments_wd')), array('field' => 'plus_comments_sh_enable', 'title' => ucwords(__('shortcode', 'szgoogleadmin')), 'callback' => array($this, 'get_plus_comments_sh')), array('field' => 'plus_comments_dt_enable', 'title' => ucwords(__('date switch', 'szgoogleadmin')), 'callback' => array($this, 'get_plus_comments_dt')), array('field' => 'plus_comments_fixed_size', 'title' => ucwords(__('fixed size', 'szgoogleadmin')), 'callback' => array($this, 'get_plus_comments_fixed_size')), array('field' => 'plus_comments_title', 'title' => ucwords(__('title', 'szgoogleadmin')), 'callback' => array($this, 'get_plus_comments_title')), array('field' => 'plus_comments_css_class_1', 'title' => ucwords(__('CSS class 1', 'szgoogleadmin')), 'callback' => array($this, 'get_plus_comments_css_class_1')), array('field' => 'plus_comments_css_class_2', 'title' => ucwords(__('CSS class 2', 'szgoogleadmin')), 'callback' => array($this, 'get_plus_comments_css_class_2'))), '12' => array(array('field' => 'plus_enable_author', 'title' => ucwords(__('HEAD Author', 'szgoogleadmin')), 'callback' => array($this, 'get_plus_enable_author')), array('field' => 'plus_enable_publisher', 'title' => ucwords(__('HEAD Publisher', 'szgoogleadmin')), 'callback' => array($this, 'get_plus_enable_publisher'))), '13' => array(array('field' => 'plus_usercontact_page', 'title' => ucwords(__('google+ page', 'szgoogleadmin')), 'callback' => array($this, 'get_plus_usercontact_page')), array('field' => 'plus_usercontact_community', 'title' => ucwords(__('google+ community', 'szgoogleadmin')), 'callback' => array($this, 'get_plus_usercontact_community')), array('field' => 'plus_usercontact_bestpost', 'title' => ucwords(__('google+ best post', 'szgoogleadmin')), 'callback' => array($this, 'get_plus_usercontact_bestpost'))), '14' => array(array('field' => 'plus_author_badge', 'title' => ucwords(__('author badge', 'szgoogleadmin')), 'callback' => array($this, 'get_plus_author_badge'))));
     // Richiamo la funzione della classe padre per elaborare le
     // variabili contenenti i valori di configurazione sezione
     parent::moduleAddFields();
 }
예제 #16
0
 /**
  * Function to add sections and the corresponding options in the configuration
  * page, each option belongs to a section, which is linked to a general tab 
  */
 function moduleAddFields()
 {
     // General definition array containing a list of sections
     // On every section you have to define an array to list fields
     $this->sectionsmenu = array('01' => array('section' => 'sz_google_groups_language', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-groups-language.php'), '02' => array('section' => 'sz_google_groups_active', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-groups-enable.php'), '03' => array('section' => 'sz_google_groups_display', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-groups-display.php'));
     // General definition array containing a list of fields
     // All fields are added to the previously defined sections
     $this->sectionsfields = array('01' => array(array('field' => 'groups_language', 'title' => ucfirst(__('default language', 'sz-google')), 'callback' => array($this, 'callback_groups_language'))), '02' => array(array('field' => 'groups_shortcode', 'title' => ucfirst(__('shortcode', 'sz-google')), 'callback' => array($this, 'callback_groups_shortcode')), array('field' => 'groups_widget', 'title' => ucfirst(__('widget', 'sz-google')), 'callback' => array($this, 'callback_groups_widget'))), '03' => array(array('field' => 'groups_name', 'title' => ucfirst(__('group name', 'sz-google')), 'callback' => array($this, 'callback_groups_name')), array('field' => 'groups_showsearch', 'title' => ucfirst(__('show search', 'sz-google')), 'callback' => array($this, 'callback_groups_showsearch')), array('field' => 'groups_showtabs', 'title' => ucfirst(__('show tabs', 'sz-google')), 'callback' => array($this, 'callback_groups_showtabs')), array('field' => 'groups_hidetitle', 'title' => ucfirst(__('hide title', 'sz-google')), 'callback' => array($this, 'callback_groups_hidetitle')), array('field' => 'groups_hidesubject', 'title' => ucfirst(__('hide subject', 'sz-google')), 'callback' => array($this, 'callback_groups_hidesubject')), array('field' => 'groups_width', 'title' => ucfirst(__('default width', 'sz-google')), 'callback' => array($this, 'callback_groups_width')), array('field' => 'groups_height', 'title' => ucfirst(__('default height', 'sz-google')), 'callback' => array($this, 'callback_groups_height'))));
     // Calling up the function of the parent class to process the
     // variables that contain the values ​​of configuration section
     parent::moduleAddFields();
 }
예제 #17
0
 /**
  * Funzione per aggiungere i campi del form con la corrispondenza
  * delle opzioni specificate nel modulo attualmente utilizzato
  *
  * @return void
  */
 function moduleAddFields()
 {
     // Definizione array generale contenente elenco delle sezioni
     // Su ogni sezione bisogna definire un array per elenco campi
     $this->sectionsmenu = array('01' => array('section' => 'sz_google_translate_section', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-translate.php'), '02' => array('section' => 'sz_google_translate_language', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-translate-language.php'), '03' => array('section' => 'sz_google_translate_active', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-translate-enable.php'), '04' => array('section' => 'sz_google_translate_advanced', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-translate-advanced.php'));
     // Definizione array generale contenente elenco dei campi
     // che bisogna aggiungere alle sezioni precedentemente definite
     $this->sectionsfields = array('01' => array(array('field' => 'translate_meta', 'title' => ucfirst(__('code META', 'szgoogleadmin')), 'callback' => array($this, 'get_translate_meta')), array('field' => 'translate_mode', 'title' => ucfirst(__('display mode', 'szgoogleadmin')), 'callback' => array($this, 'get_translate_mode'))), '02' => array(array('field' => 'translate_language', 'title' => ucfirst(__('website language', 'szgoogleadmin')), 'callback' => array($this, 'get_translate_language'))), '03' => array(array('field' => 'translate_shortcode', 'title' => ucfirst(__('shortcode', 'szgoogleadmin')), 'callback' => array($this, 'get_translate_shortcode')), array('field' => 'translate_widget', 'title' => ucfirst(__('widget', 'szgoogleadmin')), 'callback' => array($this, 'get_translate_widget'))), '04' => array(array('field' => 'translate_automatic', 'title' => ucfirst(__('automatic banner', 'szgoogleadmin')), 'callback' => array($this, 'get_translate_automatic')), array('field' => 'translate_multiple', 'title' => ucfirst(__('multiple language', 'szgoogleadmin')), 'callback' => array($this, 'get_translate_multiple')), array('field' => 'translate_analytics', 'title' => ucwords(__('google analytics', 'szgoogleadmin')), 'callback' => array($this, 'get_translate_analytics')), array('field' => 'translate_analytics_ua', 'title' => ucwords(__('google analytics UA', 'szgoogleadmin')), 'callback' => array($this, 'get_translate_analytics_ua'))));
     // Richiamo la funzione della classe padre per elaborare le
     // variabili contenenti i valori di configurazione sezione
     parent::moduleAddFields();
 }
 /**
  * Funzione per aggiungere i campi del form con la corrispondenza
  * delle opzioni specificate nel modulo attualmente utilizzato
  *
  * @return void
  */
 function moduleAddFields()
 {
     // Definizione array generale contenente elenco delle sezioni
     // Su ogni sezione bisogna definire un array per elenco campi
     $this->sectionsmenu = array('01' => array('section' => 'sz_google_authenticator_enabled', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-authenticator.php'), '02' => array('section' => 'sz_google_authenticator_emergency', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-authenticator-emergency.php'));
     // Definizione array generale contenente elenco dei campi
     // che bisogna aggiungere alle sezioni precedentemente definite
     $this->sectionsfields = array('01' => array(array('field' => 'authenticator_login_enable', 'title' => ucfirst(__('enable', 'szgoogleadmin')), 'callback' => array($this, 'get_authenticator_login_enable')), array('field' => 'authenticator_discrepancy', 'title' => ucfirst(__('discrepancy', 'szgoogleadmin')), 'callback' => array($this, 'get_authenticator_discrepancy'))), '02' => array(array('field' => 'authenticator_emergency', 'title' => ucfirst(__('emergency enable', 'szgoogleadmin')), 'callback' => array($this, 'get_authenticator_emergency_enable')), array('field' => 'authenticator_emergency_file', 'title' => ucfirst(__('emergency file', 'szgoogleadmin')), 'callback' => array($this, 'get_authenticator_emergency_file'))));
     // Richiamo la funzione della classe padre per elaborare le
     // variabili contenenti i valori di configurazione sezione
     parent::moduleAddFields();
 }
예제 #19
0
 /**
  * Function to add sections and the corresponding options in the configuration
  * page, each option belongs to a section, which is linked to a general tab 
  */
 function moduleAddFields()
 {
     // General definition array containing a list of sections
     // On every section you have to define an array to list fields
     $this->sectionsmenu = array('01' => array('section' => 'sz_google_calendar_general', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-calendar-general.php'), '02' => array('section' => 'sz_google_calendar_s_active', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-calendar-s-enable.php'), '03' => array('section' => 'sz_google_calendar_s_options', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-calendar-s-options.php'), '04' => array('section' => 'sz_google_calendar_w_active', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-calendar-w-enable.php'), '05' => array('section' => 'sz_google_calendar_w_options', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-calendar-w-options.php'));
     // General definition array containing a list of fields
     // All fields are added to the previously defined sections
     $this->sectionsfields = array('01' => array(array('field' => 'calendar_o_calendars', 'title' => ucfirst(__('default calendars', 'sz-google')), 'callback' => array($this, 'callback_calendar_o_calendars')), array('field' => 'calendar_o_title', 'title' => ucfirst(__('default title', 'sz-google')), 'callback' => array($this, 'callback_calendar_o_title')), array('field' => 'calendar_o_mode', 'title' => ucfirst(__('default mode', 'sz-google')), 'callback' => array($this, 'callback_calendar_o_mode')), array('field' => 'calendar_o_weekstart', 'title' => ucfirst(__('default week start', 'sz-google')), 'callback' => array($this, 'callback_calendar_o_weekstart')), array('field' => 'calendar_o_language', 'title' => ucfirst(__('select language', 'sz-google')), 'callback' => array($this, 'callback_calendar_o_language')), array('field' => 'calendar_o_timezone', 'title' => ucfirst(__('select time zone', 'sz-google')), 'callback' => array($this, 'callback_calendar_o_timezone'))), '02' => array(array('field' => 'calendar_s_enable', 'title' => ucfirst(__('shortcode', 'sz-google')), 'callback' => array($this, 'callback_calendar_s_enable'))), '03' => array(array('field' => 'calendar_s_calendars', 'title' => ucfirst(__('default calendars', 'sz-google')), 'callback' => array($this, 'callback_calendar_s_calendars')), array('field' => 'calendar_s_title', 'title' => ucfirst(__('default title', 'sz-google')), 'callback' => array($this, 'callback_calendar_s_title')), array('field' => 'calendar_s_width', 'title' => ucfirst(__('default width', 'sz-google')), 'callback' => array($this, 'callback_calendar_s_width')), array('field' => 'calendar_s_height', 'title' => ucfirst(__('default height', 'sz-google')), 'callback' => array($this, 'callback_calendar_s_height')), array('field' => 'calendar_s_show_title', 'title' => ucfirst(__('show title', 'sz-google')), 'callback' => array($this, 'callback_calendar_s_show_title')), array('field' => 'calendar_s_show_navs', 'title' => ucfirst(__('show navigation', 'sz-google')), 'callback' => array($this, 'callback_calendar_s_show_navs')), array('field' => 'calendar_s_show_date', 'title' => ucfirst(__('show date', 'sz-google')), 'callback' => array($this, 'callback_calendar_s_show_date')), array('field' => 'calendar_s_show_print', 'title' => ucfirst(__('show print icon', 'sz-google')), 'callback' => array($this, 'callback_calendar_s_show_print')), array('field' => 'calendar_s_show_tabs', 'title' => ucfirst(__('show tabs', 'sz-google')), 'callback' => array($this, 'callback_calendar_s_show_tabs')), array('field' => 'calendar_s_show_calendars', 'title' => ucfirst(__('show calendars', 'sz-google')), 'callback' => array($this, 'callback_calendar_s_show_calendars')), array('field' => 'calendar_s_show_timezone', 'title' => ucfirst(__('show time zone', 'sz-google')), 'callback' => array($this, 'callback_calendar_s_show_timezone'))), '04' => array(array('field' => 'calendar_w_enable', 'title' => ucfirst(__('widget', 'sz-google')), 'callback' => array($this, 'callback_calendar_w_enable'))), '05' => array(array('field' => 'calendar_w_calendars', 'title' => ucfirst(__('default calendars', 'sz-google')), 'callback' => array($this, 'callback_calendar_w_calendars')), array('field' => 'calendar_w_title', 'title' => ucfirst(__('default title', 'sz-google')), 'callback' => array($this, 'callback_calendar_w_title')), array('field' => 'calendar_w_width', 'title' => ucfirst(__('default width', 'sz-google')), 'callback' => array($this, 'callback_calendar_w_width')), array('field' => 'calendar_w_height', 'title' => ucfirst(__('default height', 'sz-google')), 'callback' => array($this, 'callback_calendar_w_height')), array('field' => 'calendar_w_show_title', 'title' => ucfirst(__('show title', 'sz-google')), 'callback' => array($this, 'callback_calendar_w_show_title')), array('field' => 'calendar_w_show_navs', 'title' => ucfirst(__('show navigation', 'sz-google')), 'callback' => array($this, 'callback_calendar_w_show_navs')), array('field' => 'calendar_w_show_date', 'title' => ucfirst(__('show date', 'sz-google')), 'callback' => array($this, 'callback_calendar_w_show_date')), array('field' => 'calendar_w_show_print', 'title' => ucfirst(__('show print icon', 'sz-google')), 'callback' => array($this, 'callback_calendar_w_show_print')), array('field' => 'calendar_w_show_tabs', 'title' => ucfirst(__('show tabs', 'sz-google')), 'callback' => array($this, 'callback_calendar_w_show_tabs')), array('field' => 'calendar_w_show_calendars', 'title' => ucfirst(__('show calendars', 'sz-google')), 'callback' => array($this, 'callback_calendar_w_show_calendars')), array('field' => 'calendar_w_show_timezone', 'title' => ucfirst(__('show time zone', 'sz-google')), 'callback' => array($this, 'callback_calendar_w_show_timezone'))));
     // Calling up the function of the parent class to process the
     // variables that contain the values ​​of configuration section
     parent::moduleAddFields();
 }
예제 #20
0
 /**
  * Function to add sections and the corresponding options in the configuration
  * page, each option belongs to a section, which is linked to a general tab 
  */
 function moduleAddFields()
 {
     // General definition array containing a list of sections
     // On every section you have to define an array to list fields
     $this->sectionsmenu = array('01' => array('section' => 'sz_google_youtube_config', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-youtube-config.php'), '02' => array('section' => 'sz_google_youtube_advanced', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-youtube-advanced.php'), '03' => array('section' => 'sz_google_youtube_active_s', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-youtube-enable-s.php'), '04' => array('section' => 'sz_google_youtube_active_w', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-youtube-enable-w.php'), '05' => array('section' => 'sz_google_youtube_display', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-youtube-display.php'), '06' => array('section' => 'sz_google_youtube_margins', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-youtube-margins.php'));
     // General definition array containing a list of fields
     // All fields are added to the previously defined sections
     $this->sectionsfields = array('01' => array(array('field' => 'youtube_channel', 'title' => ucfirst(__('channel name or ID', 'sz-google')), 'callback' => array($this, 'callback_youtube_channel'))), '02' => array(array('field' => 'youtube_force_ssl', 'title' => ucfirst(__('force SSL', 'sz-google')), 'callback' => array($this, 'callback_youtube_force_ssl')), array('field' => 'youtube_fullscreen', 'title' => ucfirst(__('enable fullscreen', 'sz-google')), 'callback' => array($this, 'callback_youtube_fullscreen')), array('field' => 'youtube_disablekeyboard', 'title' => ucfirst(__('disable keyboard', 'sz-google')), 'callback' => array($this, 'callback_youtube_disablekeyboard')), array('field' => 'youtube_disableiframe', 'title' => ucfirst(__('disable IFRAME and use API', 'sz-google')), 'callback' => array($this, 'callback_youtube_disableiframe')), array('field' => 'youtube_analytics', 'title' => ucfirst(__('google analytics', 'sz-google')), 'callback' => array($this, 'callback_youtube_analytics')), array('field' => 'youtube_delayed', 'title' => ucfirst(__('delayed loading', 'sz-google')), 'callback' => array($this, 'callback_youtube_delayed')), array('field' => 'youtube_disablerelated', 'title' => ucfirst(__('disable related', 'sz-google')), 'callback' => array($this, 'callback_youtube_disablerelated'))), '03' => array(array('field' => 'youtube_shortcode', 'title' => ucfirst(__('youtube video', 'sz-google')), 'callback' => array($this, 'callback_youtube_shortcode')), array('field' => 'youtube_shortcode_badge', 'title' => ucfirst(__('youtube badge', 'sz-google')), 'callback' => array($this, 'callback_youtube_shortcode_badge')), array('field' => 'youtube_shortcode_button', 'title' => ucfirst(__('youtube button', 'sz-google')), 'callback' => array($this, 'callback_youtube_shortcode_button')), array('field' => 'youtube_shortcode_link', 'title' => ucfirst(__('youtube link', 'sz-google')), 'callback' => array($this, 'callback_youtube_shortcode_link')), array('field' => 'youtube_shortcode_playlist', 'title' => ucfirst(__('youtube playlist', 'sz-google')), 'callback' => array($this, 'callback_youtube_shortcode_playlist'))), '04' => array(array('field' => 'youtube_widget', 'title' => ucfirst(__('youtube video', 'sz-google')), 'callback' => array($this, 'callback_youtube_widget')), array('field' => 'youtube_widget_badge', 'title' => ucfirst(__('youtube badge', 'sz-google')), 'callback' => array($this, 'callback_youtube_widget_badge')), array('field' => 'youtube_widget_button', 'title' => ucfirst(__('youtube button', 'sz-google')), 'callback' => array($this, 'callback_youtube_widget_button')), array('field' => 'youtube_widget_link', 'title' => ucfirst(__('youtube link', 'sz-google')), 'callback' => array($this, 'callback_youtube_widget_link')), array('field' => 'youtube_widget_playlist', 'title' => ucfirst(__('youtube playlist', 'sz-google')), 'callback' => array($this, 'callback_youtube_widget_playlist'))), '05' => array(array('field' => 'youtube_responsive', 'title' => ucfirst(__('responsive mode', 'sz-google')), 'callback' => array($this, 'callback_youtube_responsive')), array('field' => 'youtube_width', 'title' => ucfirst(__('default width', 'sz-google')), 'callback' => array($this, 'callback_youtube_width')), array('field' => 'youtube_height', 'title' => ucfirst(__('default height', 'sz-google')), 'callback' => array($this, 'callback_youtube_height')), array('field' => 'youtube_autoplay', 'title' => ucfirst(__('video autoplay', 'sz-google')), 'callback' => array($this, 'callback_youtube_autoplay')), array('field' => 'youtube_loop', 'title' => ucfirst(__('video loop', 'sz-google')), 'callback' => array($this, 'callback_youtube_loop')), array('field' => 'youtube_theme', 'title' => ucfirst(__('theme', 'sz-google')), 'callback' => array($this, 'callback_youtube_theme')), array('field' => 'youtube_cover', 'title' => ucfirst(__('cover', 'sz-google')), 'callback' => array($this, 'callback_youtube_cover')), array('field' => 'youtube_schemaorg', 'title' => ucfirst(__('schema.org', 'sz-google')), 'callback' => array($this, 'callback_youtube_schemaorg'))), '06' => array(array('field' => 'youtube_margin_top', 'title' => ucfirst(__('margin top', 'sz-google')), 'callback' => array($this, 'callback_youtube_margin_top')), array('field' => 'youtube_margin_right', 'title' => ucfirst(__('margin right', 'sz-google')), 'callback' => array($this, 'callback_youtube_margin_right')), array('field' => 'youtube_margin_bottom', 'title' => ucfirst(__('margin bottom', 'sz-google')), 'callback' => array($this, 'callback_youtube_margin_bottom')), array('field' => 'youtube_margin_left', 'title' => ucfirst(__('margin left', 'sz-google')), 'callback' => array($this, 'callback_youtube_margin_left')), array('field' => 'youtube_margin_unit', 'title' => ucfirst(__('margin unit', 'sz-google')), 'callback' => array($this, 'callback_youtube_margin_unit'))));
     // Calling up the function of the parent class to process the
     // variables that contain the values ​​of configuration section
     parent::moduleAddFields();
 }
예제 #21
0
 /**
  * Funzione per aggiungere i campi del form con la corrispondenza
  * delle opzioni specificate nel modulo attualmente utilizzato
  *
  * @return void
  */
 function moduleAddFields()
 {
     // Definizione array generale contenente elenco delle sezioni
     // Su ogni sezione bisogna definire un array per elenco campi
     $this->sectionsmenu = array('01' => array('section' => 'sz_google_youtube_config', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-youtube-config.php'), '02' => array('section' => 'sz_google_youtube_advanced', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-youtube-advanced.php'), '03' => array('section' => 'sz_google_youtube_active_s', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-youtube-enable-s.php'), '04' => array('section' => 'sz_google_youtube_active_w', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-youtube-enable-w.php'), '05' => array('section' => 'sz_google_youtube_display', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-youtube-display.php'), '06' => array('section' => 'sz_google_youtube_margins', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-youtube-margins.php'));
     // Definizione array generale contenente elenco dei campi
     // che bisogna aggiungere alle sezioni precedentemente definite
     $this->sectionsfields = array('01' => array(array('field' => 'youtube_channel', 'title' => ucfirst(__('channel name or ID', 'szgoogleadmin')), 'callback' => array($this, 'get_youtube_channel'))), '02' => array(array('field' => 'youtube_force_ssl', 'title' => ucfirst(__('force SSL', 'szgoogleadmin')), 'callback' => array($this, 'get_youtube_force_ssl')), array('field' => 'youtube_fullscreen', 'title' => ucfirst(__('enable fullscreen', 'szgoogleadmin')), 'callback' => array($this, 'get_youtube_fullscreen')), array('field' => 'youtube_disablekeyboard', 'title' => ucfirst(__('disable keyboard', 'szgoogleadmin')), 'callback' => array($this, 'get_youtube_disablekeyboard')), array('field' => 'youtube_disableiframe', 'title' => ucfirst(__('disable IFRAME and use API', 'szgoogleadmin')), 'callback' => array($this, 'get_youtube_disableiframe')), array('field' => 'youtube_analytics', 'title' => ucfirst(__('google analytics', 'szgoogleadmin')), 'callback' => array($this, 'get_youtube_analytics')), array('field' => 'youtube_delayed', 'title' => ucfirst(__('delayed loading', 'szgoogleadmin')), 'callback' => array($this, 'get_youtube_delayed')), array('field' => 'youtube_disablerelated', 'title' => ucfirst(__('disable related', 'szgoogleadmin')), 'callback' => array($this, 'get_youtube_disablerelated'))), '03' => array(array('field' => 'youtube_shortcode', 'title' => ucfirst(__('youtube video', 'szgoogleadmin')), 'callback' => array($this, 'get_youtube_shortcode')), array('field' => 'youtube_shortcode_badge', 'title' => ucfirst(__('youtube badge', 'szgoogleadmin')), 'callback' => array($this, 'get_youtube_shortcode_badge')), array('field' => 'youtube_shortcode_button', 'title' => ucfirst(__('youtube button', 'szgoogleadmin')), 'callback' => array($this, 'get_youtube_shortcode_button')), array('field' => 'youtube_shortcode_link', 'title' => ucfirst(__('youtube link', 'szgoogleadmin')), 'callback' => array($this, 'get_youtube_shortcode_link')), array('field' => 'youtube_shortcode_playlist', 'title' => ucfirst(__('youtube playlist', 'szgoogleadmin')), 'callback' => array($this, 'get_youtube_shortcode_playlist'))), '04' => array(array('field' => 'youtube_widget', 'title' => ucfirst(__('youtube video', 'szgoogleadmin')), 'callback' => array($this, 'get_youtube_widget')), array('field' => 'youtube_widget_badge', 'title' => ucfirst(__('youtube badge', 'szgoogleadmin')), 'callback' => array($this, 'get_youtube_widget_badge')), array('field' => 'youtube_widget_playlist', 'title' => ucfirst(__('youtube playlist', 'szgoogleadmin')), 'callback' => array($this, 'get_youtube_widget_playlist'))), '05' => array(array('field' => 'youtube_responsive', 'title' => ucfirst(__('responsive mode', 'szgoogleadmin')), 'callback' => array($this, 'get_youtube_responsive')), array('field' => 'youtube_width', 'title' => ucfirst(__('default width', 'szgoogleadmin')), 'callback' => array($this, 'get_youtube_width')), array('field' => 'youtube_height', 'title' => ucfirst(__('default height', 'szgoogleadmin')), 'callback' => array($this, 'get_youtube_height')), array('field' => 'youtube_autoplay', 'title' => ucfirst(__('video autoplay', 'szgoogleadmin')), 'callback' => array($this, 'get_youtube_autoplay')), array('field' => 'youtube_loop', 'title' => ucfirst(__('video loop', 'szgoogleadmin')), 'callback' => array($this, 'get_youtube_loop')), array('field' => 'youtube_theme', 'title' => ucfirst(__('theme', 'szgoogleadmin')), 'callback' => array($this, 'get_youtube_theme')), array('field' => 'youtube_cover', 'title' => ucfirst(__('cover', 'szgoogleadmin')), 'callback' => array($this, 'get_youtube_cover')), array('field' => 'youtube_schemaorg', 'title' => ucfirst(__('schema.org', 'szgoogleadmin')), 'callback' => array($this, 'get_youtube_schemaorg'))), '06' => array(array('field' => 'youtube_margin_top', 'title' => ucfirst(__('margin top', 'szgoogleadmin')), 'callback' => array($this, 'get_youtube_margin_top')), array('field' => 'youtube_margin_right', 'title' => ucfirst(__('margin right', 'szgoogleadmin')), 'callback' => array($this, 'get_youtube_margin_right')), array('field' => 'youtube_margin_bottom', 'title' => ucfirst(__('margin bottom', 'szgoogleadmin')), 'callback' => array($this, 'get_youtube_margin_bottom')), array('field' => 'youtube_margin_left', 'title' => ucfirst(__('margin left', 'szgoogleadmin')), 'callback' => array($this, 'get_youtube_margin_left')), array('field' => 'youtube_margin_unit', 'title' => ucfirst(__('margin unit', 'szgoogleadmin')), 'callback' => array($this, 'get_youtube_margin_unit'))));
     // Richiamo la funzione della classe padre per elaborare le
     // variabili contenenti i valori di configurazione sezione
     parent::moduleAddFields();
 }
예제 #22
0
 /**
  * Funzione per aggiungere i campi del form con la corrispondenza
  * delle opzioni specificate nel modulo attualmente utilizzato
  *
  * @return void
  */
 function moduleAddFields()
 {
     // Definizione array generale contenente elenco delle sezioni
     // Su ogni sezione bisogna definire un array per elenco campi
     $this->sectionsmenu = array('01' => array('section' => 'sz_google_calendar_general', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-calendar-general.php'), '02' => array('section' => 'sz_google_calendar_s_active', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-calendar-s-enable.php'), '03' => array('section' => 'sz_google_calendar_s_options', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-calendar-s-options.php'), '04' => array('section' => 'sz_google_calendar_w_active', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-calendar-w-enable.php'), '05' => array('section' => 'sz_google_calendar_w_options', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-calendar-w-options.php'));
     // Definizione array generale contenente elenco dei campi
     // che bisogna aggiungere alle sezioni precedentemente definite
     $this->sectionsfields = array('01' => array(array('field' => 'calendar_o_calendars', 'title' => ucfirst(__('default calendars', 'szgoogleadmin')), 'callback' => array($this, 'get_calendar_o_calendars')), array('field' => 'calendar_o_title', 'title' => ucfirst(__('default title', 'szgoogleadmin')), 'callback' => array($this, 'get_calendar_o_title')), array('field' => 'calendar_o_mode', 'title' => ucfirst(__('default mode', 'szgoogleadmin')), 'callback' => array($this, 'get_calendar_o_mode')), array('field' => 'calendar_o_weekstart', 'title' => ucfirst(__('default week start', 'szgoogleadmin')), 'callback' => array($this, 'get_calendar_o_weekstart')), array('field' => 'calendar_o_language', 'title' => ucfirst(__('select language', 'szgoogleadmin')), 'callback' => array($this, 'get_calendar_o_language')), array('field' => 'calendar_o_timezone', 'title' => ucfirst(__('select time zone', 'szgoogleadmin')), 'callback' => array($this, 'get_calendar_o_timezone'))), '02' => array(array('field' => 'calendar_s_enable', 'title' => ucfirst(__('shortcode', 'szgoogleadmin')), 'callback' => array($this, 'get_calendar_s_enable'))), '03' => array(array('field' => 'calendar_s_calendars', 'title' => ucfirst(__('default calendars', 'szgoogleadmin')), 'callback' => array($this, 'get_calendar_s_calendars')), array('field' => 'calendar_s_title', 'title' => ucfirst(__('default title', 'szgoogleadmin')), 'callback' => array($this, 'get_calendar_s_title')), array('field' => 'calendar_s_width', 'title' => ucfirst(__('default width', 'szgoogleadmin')), 'callback' => array($this, 'get_calendar_s_width')), array('field' => 'calendar_s_height', 'title' => ucfirst(__('default height', 'szgoogleadmin')), 'callback' => array($this, 'get_calendar_s_height')), array('field' => 'calendar_s_show_title', 'title' => ucfirst(__('show title', 'szgoogleadmin')), 'callback' => array($this, 'get_calendar_s_show_title')), array('field' => 'calendar_s_show_navs', 'title' => ucfirst(__('show navigation', 'szgoogleadmin')), 'callback' => array($this, 'get_calendar_s_show_navs')), array('field' => 'calendar_s_show_date', 'title' => ucfirst(__('show date', 'szgoogleadmin')), 'callback' => array($this, 'get_calendar_s_show_date')), array('field' => 'calendar_s_show_print', 'title' => ucfirst(__('show print icon', 'szgoogleadmin')), 'callback' => array($this, 'get_calendar_s_show_print')), array('field' => 'calendar_s_show_tabs', 'title' => ucfirst(__('show tabs', 'szgoogleadmin')), 'callback' => array($this, 'get_calendar_s_show_tabs')), array('field' => 'calendar_s_show_calendars', 'title' => ucfirst(__('show calendars', 'szgoogleadmin')), 'callback' => array($this, 'get_calendar_s_show_calendars')), array('field' => 'calendar_s_show_timezone', 'title' => ucfirst(__('show time zone', 'szgoogleadmin')), 'callback' => array($this, 'get_calendar_s_show_timezone'))), '04' => array(array('field' => 'calendar_w_enable', 'title' => ucfirst(__('widget', 'szgoogleadmin')), 'callback' => array($this, 'get_calendar_w_enable'))), '05' => array(array('field' => 'calendar_w_calendars', 'title' => ucfirst(__('default calendars', 'szgoogleadmin')), 'callback' => array($this, 'get_calendar_w_calendars')), array('field' => 'calendar_w_title', 'title' => ucfirst(__('default title', 'szgoogleadmin')), 'callback' => array($this, 'get_calendar_w_title')), array('field' => 'calendar_w_width', 'title' => ucfirst(__('default width', 'szgoogleadmin')), 'callback' => array($this, 'get_calendar_w_width')), array('field' => 'calendar_w_height', 'title' => ucfirst(__('default height', 'szgoogleadmin')), 'callback' => array($this, 'get_calendar_w_height')), array('field' => 'calendar_w_show_title', 'title' => ucfirst(__('show title', 'szgoogleadmin')), 'callback' => array($this, 'get_calendar_w_show_title')), array('field' => 'calendar_w_show_navs', 'title' => ucfirst(__('show navigation', 'szgoogleadmin')), 'callback' => array($this, 'get_calendar_w_show_navs')), array('field' => 'calendar_w_show_date', 'title' => ucfirst(__('show date', 'szgoogleadmin')), 'callback' => array($this, 'get_calendar_w_show_date')), array('field' => 'calendar_w_show_print', 'title' => ucfirst(__('show print icon', 'szgoogleadmin')), 'callback' => array($this, 'get_calendar_w_show_print')), array('field' => 'calendar_w_show_tabs', 'title' => ucfirst(__('show tabs', 'szgoogleadmin')), 'callback' => array($this, 'get_calendar_w_show_tabs')), array('field' => 'calendar_w_show_calendars', 'title' => ucfirst(__('show calendars', 'szgoogleadmin')), 'callback' => array($this, 'get_calendar_w_show_calendars')), array('field' => 'calendar_w_show_timezone', 'title' => ucfirst(__('show time zone', 'szgoogleadmin')), 'callback' => array($this, 'get_calendar_w_show_timezone'))));
     // Richiamo la funzione della classe padre per elaborare le
     // variabili contenenti i valori di configurazione sezione
     parent::moduleAddFields();
 }
예제 #23
0
 /**
  * Funzione per aggiungere i campi del form con la corrispondenza
  * delle opzioni specificate nel modulo attualmente utilizzato
  *
  * @return void
  */
 function moduleAddFields()
 {
     // Definizione array generale contenente elenco delle sezioni
     // Su ogni sezione bisogna definire un array per elenco campi
     $this->sectionsmenu = array('01' => array('section' => 'sz_google_panoramio_s_active', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-panoramio-s-enable.php'), '02' => array('section' => 'sz_google_panoramio_s_options', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-panoramio-s-options.php'), '03' => array('section' => 'sz_google_panoramio_w_active', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-panoramio-w-enable.php'), '04' => array('section' => 'sz_google_panoramio_w_options', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-panoramio-w-options.php'));
     // Definizione array generale contenente elenco dei campi
     // che bisogna aggiungere alle sezioni precedentemente definite
     $this->sectionsfields = array('01' => array(array('field' => 'panoramio_shortcode', 'title' => ucfirst(__('shortcode', 'szgoogleadmin')), 'callback' => array($this, 'get_panoramio_shortcode'))), '02' => array(array('field' => 'panoramio_s_template', 'title' => ucfirst(__('default template', 'szgoogleadmin')), 'callback' => array($this, 'get_panoramio_s_template')), array('field' => 'panoramio_s_width', 'title' => ucfirst(__('default width', 'szgoogleadmin')), 'callback' => array($this, 'get_panoramio_s_width')), array('field' => 'panoramio_s_height', 'title' => ucfirst(__('default height', 'szgoogleadmin')), 'callback' => array($this, 'get_panoramio_s_height')), array('field' => 'panoramio_s_orientation', 'title' => ucfirst(__('default orientation', 'szgoogleadmin')), 'callback' => array($this, 'get_panoramio_s_orientation')), array('field' => 'panoramio_s_list_size', 'title' => ucfirst(__('default list size', 'szgoogleadmin')), 'callback' => array($this, 'get_panoramio_s_list_size')), array('field' => 'panoramio_s_position', 'title' => ucfirst(__('default position', 'szgoogleadmin')), 'callback' => array($this, 'get_panoramio_s_position')), array('field' => 'panoramio_s_paragraph', 'title' => ucfirst(__('enable paragraph', 'szgoogleadmin')), 'callback' => array($this, 'get_panoramio_s_paragraph'))), '03' => array(array('field' => 'panoramio_widget', 'title' => ucfirst(__('widget', 'szgoogleadmin')), 'callback' => array($this, 'get_panoramio_widget'))), '04' => array(array('field' => 'panoramio_w_template', 'title' => ucfirst(__('default template', 'szgoogleadmin')), 'callback' => array($this, 'get_panoramio_w_template')), array('field' => 'panoramio_w_width', 'title' => ucfirst(__('default width', 'szgoogleadmin')), 'callback' => array($this, 'get_panoramio_w_width')), array('field' => 'panoramio_w_height', 'title' => ucfirst(__('default height', 'szgoogleadmin')), 'callback' => array($this, 'get_panoramio_w_height')), array('field' => 'panoramio_w_orientation', 'title' => ucfirst(__('default orientation', 'szgoogleadmin')), 'callback' => array($this, 'get_panoramio_w_orientation')), array('field' => 'panoramio_w_list_size', 'title' => ucfirst(__('default list size', 'szgoogleadmin')), 'callback' => array($this, 'get_panoramio_w_list_size')), array('field' => 'panoramio_w_position', 'title' => ucfirst(__('default position', 'szgoogleadmin')), 'callback' => array($this, 'get_panoramio_w_position'))));
     // Richiamo la funzione della classe padre per elaborare le
     // variabili contenenti i valori di configurazione sezione
     parent::moduleAddFields();
 }
예제 #24
0
 /**
  * Function to add sections and the corresponding options in the configuration
  * page, each option belongs to a section, which is linked to a general tab 
  */
 function moduleAddFields()
 {
     // General definition array containing a list of sections
     // On every section you have to define an array to list fields
     $this->sectionsmenu = array('01' => array('section' => 'sz_google_base_section', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin.php'), '02' => array('section' => 'sz_google_base_api', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin-api.php'));
     // General definition array containing a list of fields
     // All fields are added to the previously defined sections
     $this->sectionsfields = array('01' => array(array('field' => 'plus', 'title' => ucwords(__('google+', 'sz-google')), 'callback' => array($this, 'callback_base_plus')), array('field' => 'analytics', 'title' => ucwords(__('google analytics', 'sz-google')), 'callback' => array($this, 'callback_base_analytics')), array('field' => 'authenticator', 'title' => ucwords(__('google authenticator', 'sz-google')), 'callback' => array($this, 'callback_base_authenticator')), array('field' => 'calendar', 'title' => ucwords(__('google calendar', 'sz-google')), 'callback' => array($this, 'callback_base_calendar')), array('field' => 'drive', 'title' => ucwords(__('google drive', 'sz-google')), 'callback' => array($this, 'callback_base_drive')), array('field' => 'fonts', 'title' => ucwords(__('google fonts', 'sz-google')), 'callback' => array($this, 'callback_base_fonts')), array('field' => 'groups', 'title' => ucwords(__('google groups', 'sz-google')), 'callback' => array($this, 'callback_base_groups')), array('field' => 'hangouts', 'title' => ucwords(__('google hangouts', 'sz-google')), 'callback' => array($this, 'callback_base_hangouts')), array('field' => 'maps', 'title' => ucwords(__('google maps', 'sz-google')), 'callback' => array($this, 'callback_base_maps')), array('field' => 'panoramio', 'title' => ucwords(__('google panoramio', 'sz-google')), 'callback' => array($this, 'callback_base_panoramio')), array('field' => 'reCAPTCHA', 'title' => ucwords(__('google reCAPTCHA', 'sz-google')), 'callback' => array($this, 'callback_base_recaptcha')), array('field' => 'translate', 'title' => ucwords(__('google translate', 'sz-google')), 'callback' => array($this, 'callback_base_translate')), array('field' => 'youtube', 'title' => ucwords(__('google youtube', 'sz-google')), 'callback' => array($this, 'callback_base_youtube')), array('field' => 'documentation', 'title' => ucwords(__('documentation', 'sz-google')), 'callback' => array($this, 'callback_base_documentation')), array('field' => 'tinymce', 'title' => ucwords(__('tinyMCE shortcodes', 'sz-google')), 'callback' => array($this, 'callback_base_tinymce'))), '02' => array(array('field' => 'API_enable', 'title' => ucwords(__('API enable', 'sz-google')), 'callback' => array($this, 'callback_base_api_enable'))));
     // Calling up the function of the parent class to process the
     // variables that contain the values ​​of configuration section
     parent::moduleAddFields();
 }
 /**
  * Funzione per aggiungere i campi del form con la corrispondenza
  * delle opzioni specificate nel modulo attualmente utilizzato
  *
  * @return void
  */
 function moduleAddFields()
 {
     // Definizione array generale contenente elenco delle sezioni
     // Su ogni sezione bisogna definire un array per elenco campi
     $this->sectionsmenu = array('01' => array('section' => 'sz_google_documentation_gplus', 'title' => $this->null, 'callback' => array($this, 'moduleAddHelpPlus'), 'slug' => 'sz-google-admin-documentation-gplus.php'), '02' => array('section' => 'sz_google_documentation_analytics', 'title' => $this->null, 'callback' => array($this, 'moduleAddHelpAnalytics'), 'slug' => 'sz-google-admin-documentation-analytics.php'), '03' => array('section' => 'sz_google_documentation_authenticator', 'title' => $this->null, 'callback' => array($this, 'moduleAddHelpAuthenticator'), 'slug' => 'sz-google-admin-documentation-authenticator.php'), '04' => array('section' => 'sz_google_documentation_calendar', 'title' => $this->null, 'callback' => array($this, 'moduleAddHelpCalendar'), 'slug' => 'sz-google-admin-documentation-calendar.php'), '05' => array('section' => 'sz_google_documentation_drive', 'title' => $this->null, 'callback' => array($this, 'moduleAddHelpDriveSave'), 'slug' => 'sz-google-admin-documentation-drive.php'), '06' => array('section' => 'sz_google_documentation_groups', 'title' => $this->null, 'callback' => array($this, 'moduleAddHelpGroups'), 'slug' => 'sz-google-admin-documentation-groups.php'), '07' => array('section' => 'sz_google_documentation_hangouts', 'title' => $this->null, 'callback' => array($this, 'moduleAddHelpHangouts'), 'slug' => 'sz-google-admin-documentation-hangouts.php'), '08' => array('section' => 'sz_google_documentation_panoramio', 'title' => $this->null, 'callback' => array($this, 'moduleAddHelpPanoramio'), 'slug' => 'sz-google-admin-documentation-panoramio.php'), '09' => array('section' => 'sz_google_documentation_translate', 'title' => $this->null, 'callback' => array($this, 'moduleAddHelpTranslate'), 'slug' => 'sz-google-admin-documentation-translate.php'), '10' => array('section' => 'sz_google_documentation_youtube', 'title' => $this->null, 'callback' => array($this, 'moduleAddHelpYoutube'), 'slug' => 'sz-google-admin-documentation-youtube.php'), '11' => array('section' => 'sz_google_documentation_reviews', 'title' => $this->null, 'callback' => array($this, 'moduleAddHelpReviews'), 'slug' => 'sz-google-admin-documentation-reviews.php'));
     // Richiamo la funzione della classe padre per elaborare le
     // variabili contenenti i valori di configurazione sezione
     parent::moduleAddFields();
 }
예제 #26
0
 /**
  * Funzione per aggiungere i campi del form con la corrispondenza
  * delle opzioni specificate nel modulo attualmente utilizzato
  *
  * @return void
  */
 function moduleAddFields()
 {
     // Definizione array generale contenente elenco delle sezioni
     // Su ogni sezione bisogna definire un array per elenco campi
     $this->sectionsmenu = array('01' => array('section' => 'sz_google_base_section', 'title' => $this->null, 'callback' => $this->callbacksection, 'slug' => 'sz-google-admin.php'));
     // Definizione array generale contenente elenco dei campi
     // che bisogna aggiungere alle sezioni precedentemente definite
     $this->sectionsfields = array('01' => array(array('field' => 'plus', 'title' => ucwords(__('google+', 'szgoogleadmin')), 'callback' => array($this, 'get_base_plus')), array('field' => 'analytics', 'title' => ucwords(__('google analytics', 'szgoogleadmin')), 'callback' => array($this, 'get_base_analytics')), array('field' => 'authenticator', 'title' => ucwords(__('google authenticator', 'szgoogleadmin')), 'callback' => array($this, 'get_base_authenticator')), array('field' => 'calendar', 'title' => ucwords(__('google calendar', 'szgoogleadmin')), 'callback' => array($this, 'get_base_calendar')), array('field' => 'drive', 'title' => ucwords(__('google drive', 'szgoogleadmin')), 'callback' => array($this, 'get_base_drive')), array('field' => 'fonts', 'title' => ucwords(__('google fonts', 'szgoogleadmin')), 'callback' => array($this, 'get_base_fonts')), array('field' => 'groups', 'title' => ucwords(__('google groups', 'szgoogleadmin')), 'callback' => array($this, 'get_base_groups')), array('field' => 'hangouts', 'title' => ucwords(__('google hangouts', 'szgoogleadmin')), 'callback' => array($this, 'get_base_hangouts')), array('field' => 'panoramio', 'title' => ucwords(__('google panoramio', 'szgoogleadmin')), 'callback' => array($this, 'get_base_panoramio')), array('field' => 'translate', 'title' => ucwords(__('google translate', 'szgoogleadmin')), 'callback' => array($this, 'get_base_translate')), array('field' => 'youtube', 'title' => ucwords(__('google youtube', 'szgoogleadmin')), 'callback' => array($this, 'get_base_youtube')), array('field' => 'documentation', 'title' => ucwords(__('documentation ', 'szgoogleadmin')), 'callback' => array($this, 'get_base_documentation'))));
     // Richiamo la funzione della classe padre per elaborare le
     // variabili contenenti i valori di configurazione sezione
     parent::moduleAddFields();
 }
 /**
  * Call the general function for the creation of the general form
  * sections must be passed as an array of name = > title
  */
 function moduleCallback()
 {
     // Check if you specify a section of the help documentation
     // in the directory of the file and if it is existing
     if (isset($_GET['help'])) {
         $LANGUAGE = get_bloginfo('language');
         $FILENAM1 = dirname(SZ_PLUGIN_GOOGLE_MAIN) . '/admin/help/' . $LANGUAGE . '/' . trim($_GET['help']);
         $FILENAM2 = dirname(SZ_PLUGIN_GOOGLE_MAIN) . '/admin/help/' . substr($LANGUAGE, 0, 2) . '/' . trim($_GET['help']);
         $FILENAM3 = dirname(SZ_PLUGIN_GOOGLE_MAIN) . '/admin/help/en/' . trim($_GET['help']);
         if (is_readable($FILENAM1)) {
             @(include $FILENAM1);
             return;
         }
         if (is_readable($FILENAM2)) {
             @(include $FILENAM2);
             return;
         }
         if (is_readable($FILENAM3)) {
             @(include $FILENAM3);
             return;
         }
     }
     // If you can not find any specific
     // documentation files is called the main page
     parent::moduleCallback();
 }