Changeset 3426187
- Timestamp:
- 12/23/2025 12:27:23 PM (13 days ago)
- Location:
- surveyjs/trunk
- Files:
-
- 6 edited
-
initializer.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
-
surveyjs.php (modified) (1 diff)
-
views/editor.php (modified) (1 diff)
-
views/results.php (modified) (1 diff)
-
views/settings.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
surveyjs/trunk/initializer.php
r3417998 r3426187 22 22 add_action('admin_enqueue_scripts', array($this, 'enqueue_admin_scripts')); 23 23 24 add_action('init', array($this, 'register_s js_gutenberg_block'));25 } 26 27 public function register_s js_gutenberg_block() {24 add_action('init', array($this, 'register_surveyjs_gutenberg_block')); 25 } 26 27 public function register_surveyjs_gutenberg_block() { 28 28 if ( ! function_exists( 'register_block_type' ) ) { 29 29 return; … … 31 31 32 32 $blockname = 'sjs/gutenberg-block'; 33 $blockscriptname = 's js-block-js';33 $blockscriptname = 'surveyjs-block-js'; 34 34 35 35 $client = new SurveyJS_Client(); … … 76 76 public function enqueue_admin_scripts() { 77 77 if ( isset( $_GET["page"] ) && 78 ($_GET["page"] == "s js-settings" ||79 $_GET['page'] == "s js-main-menu" ||78 ($_GET["page"] == "surveyjs-settings" || 79 $_GET['page'] == "surveyjs-main-menu" || 80 80 $_GET['page'] == "surveyjs_editor" || 81 81 $_GET['page'] == "surveyjs_results") … … 136 136 137 137 function wps_add_menu() { 138 add_menu_page( 'My surveys', 'SurveyJS', 'manage_options', 's js-main-menu', array(138 add_menu_page( 'My surveys', 'SurveyJS', 'manage_options', 'surveyjs-main-menu', array( 139 139 "SurveyJS_MySurveys", 'render' 140 140 ), plugins_url('images/logo_20х20.png', __FILE__)); 141 // add_submenu_page( 's js-main-menu', __( 'My Surveys', 'sjs-main-menu' ), __( 'My Surveys', 'sjs-main-menu' ), 'manage_options', 'sjs-my-surveys', array(141 // add_submenu_page( 'surveyjs-main-menu', __( 'My Surveys', 'surveyjs-main-menu' ), __( 'My Surveys', 'surveyjs-main-menu' ), 'manage_options', 'sjs-my-surveys', array( 142 142 // __CLASS__, 'wps_mysurveys_page' 143 143 // )); 144 add_submenu_page( 's js-main-menu', __( 'Settings', 'sjs-main-menu' ), __( 'Settings', 'sjs-main-menu' ), 'manage_options', 'sjs-settings', array( 'SurveyJS_SettingsPage', 'sjs_render_settings' ) );144 add_submenu_page( 'surveyjs-main-menu', __( 'Settings', 'surveyjs-main-menu' ), __( 'Settings', 'surveyjs-main-menu' ), 'manage_options', 'surveyjs-settings', array( 'SurveyJS_SettingsPage', 'surveyjs_render_settings' ) ); 145 145 add_submenu_page('', '', '', 'manage_options', 'surveyjs_editor', array('SurveyJS_Editor', 'render')); 146 146 add_submenu_page('', '', '', 'manage_options', 'surveyjs_results', array('SurveyJS_Results', 'render')); -
surveyjs/trunk/readme.txt
r3417998 r3426187 2 2 Contributors: devsoftbaltic 3 3 Tags: survey, quiz, form builder, survey creator, survey maker, quiz creator 4 Requires at least: 6.4 .15 Tested up to: 6. 8.14 Requires at least: 6.4 5 Tested up to: 6.9 6 6 Stable tag: trunk 7 Requires PHP: php8.27 Requires PHP: 8.2 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 82 82 83 83 84 = v2.4. 0=84 = v2.4.1 = 85 85 86 86 == Support == -
surveyjs/trunk/surveyjs.php
r3417998 r3426187 4 4 Plugin URI: https://wordpress.org/plugins/surveyjs 5 5 Description: Easy to use, drag & drop Survey Builder with myriad options. 6 Version: 2.4. 06 Version: 2.4.1 7 7 Author: Devsoft Baltic OÜ 8 8 Author URI: http://devsoftbaltic.com/ -
surveyjs/trunk/views/editor.php
r3417998 r3426187 75 75 <div class="survey-page-header"> 76 76 <div class="sv_main survey-page-header-content"> 77 <button style="min-width: 80px;color: white;background-color: #1ab394;border: none;padding: 6px;border-radius: 5px;margin-top: 10px;" onclick="window.location = '/wp-admin/admin.php?page=s js-main-menu'">< Back</button>77 <button style="min-width: 80px;color: white;background-color: #1ab394;border: none;padding: 6px;border-radius: 5px;margin-top: 10px;" onclick="window.location = '/wp-admin/admin.php?page=surveyjs-main-menu'">< Back</button> 78 78 </div> 79 79 </div> -
surveyjs/trunk/views/results.php
r3403869 r3426187 27 27 <div class="survey-page-header"> 28 28 <div class="sv_main survey-page-header-content"> 29 <button style="min-width: 80px;color: white;background-color: #1ab394;border: none;padding: 6px;border-radius: 5px;margin-top: 10px;" onclick="window.location = '/wp-admin/admin.php?page=s js-main-menu'">< Back</button>29 <button style="min-width: 80px;color: white;background-color: #1ab394;border: none;padding: 6px;border-radius: 5px;margin-top: 10px;" onclick="window.location = '/wp-admin/admin.php?page=surveyjs-main-menu'">< Back</button> 30 30 </div> 31 31 </div> -
surveyjs/trunk/views/settings.php
r3059576 r3426187 13 13 14 14 public static function get_license_key() { 15 $settings = (array) get_option( 's js-settings' );15 $settings = (array) get_option( 'surveyjs-settings' ); 16 16 if ( isset( $settings['license_key'] ) ) { 17 17 return esc_js( $settings['license_key'] ); … … 21 21 22 22 public function init() { 23 register_setting( 's js-settings-group', 'sjs-settings' );23 register_setting( 'surveyjs-settings-group', 'surveyjs-settings' ); 24 24 25 add_settings_section( 'sjs-license-key-section', __( 'Set License Key', 'sjs' ), array($this, 'sjs_license_key_section'), 's js-settings-page' );26 add_settings_field( 'license_key', __( 'License Key', 'sjs' ), array($this, 'set_license_key_render'), 's js-settings-page', 'sjs-license-key-section' );25 add_settings_section( 'sjs-license-key-section', __( 'Set License Key', 'sjs' ), array($this, 'sjs_license_key_section'), 'surveyjs-settings-page' ); 26 add_settings_field( 'license_key', __( 'License Key', 'sjs' ), array($this, 'set_license_key_render'), 'surveyjs-settings-page', 'sjs-license-key-section' ); 27 27 } 28 28 … … 36 36 37 37 public function set_license_key_render() { 38 $settings = (array) get_option( 's js-settings' );38 $settings = (array) get_option( 'surveyjs-settings' ); 39 39 40 40 if (isset($settings['license_key'])) … … 45 45 if ($license_key ) 46 46 { 47 echo "<input type='text' placeholder='put the license key here...' name='s js-settings[license_key]' id='sjs-settings[license_key]' value='$license_key' style='width: 350px;'/>";47 echo "<input type='text' placeholder='put the license key here...' name='surveyjs-settings[license_key]' id='surveyjs-settings[license_key]' value='$license_key' style='width: 350px;'/>"; 48 48 } else { 49 echo "<input type='text' placeholder='put the license key here...' name='s js-settings[license_key]' id='sjs-settings[license_key]' style='width: 350px;'/>";49 echo "<input type='text' placeholder='put the license key here...' name='surveyjs-settings[license_key]' id='surveyjs-settings[license_key]' style='width: 350px;'/>"; 50 50 } 51 51 } 52 52 53 public static function s js_render_settings() {53 public static function surveyjs_render_settings() { 54 54 ?> 55 55 <div class="wrap"> 56 56 <h2><?php _e( 'SurveyJS Settings', 'sjs' ); ?></h2> 57 57 <form action="options.php" method="POST"> 58 <?php settings_fields( 's js-settings-group' ); ?>59 <?php do_settings_sections( 's js-settings-page' ); ?>58 <?php settings_fields( 'surveyjs-settings-group' ); ?> 59 <?php do_settings_sections( 'surveyjs-settings-page' ); ?> 60 60 <?php submit_button(); ?> 61 61 </form>
Note: See TracChangeset
for help on using the changeset viewer.