Changeset 3236487
- Timestamp:
- 02/07/2025 09:21:17 AM (13 months ago)
- Location:
- tida-url-screenshot/tags
- Files:
-
- 4 edited
-
1.0.1/includes/admin/class-settings.php (modified) (6 diffs)
-
1.0.1/tida-url-screenshot.php (modified) (2 diffs)
-
1.0/includes/admin/class-settings.php (modified) (6 diffs)
-
1.0/tida-url-screenshot.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tida-url-screenshot/tags/1.0.1/includes/admin/class-settings.php
r3211546 r3236487 57 57 */ 58 58 public function add_menu_item() { 59 $page = add_options_page( __( 'Tida URL Screenshot Settings', 'tida _url_screenshot' ) , __( 'Tida URL Screenshot Settings', 'tida_url_screenshot' ) , 'manage_options' , 'tida-url-screenshot-settings' , array( &$this, 'settings_page' ) );59 $page = add_options_page( __( 'Tida URL Screenshot Settings', 'tida-url-screenshot' ) , __( 'Tida URL Screenshot Settings', 'tida-url-screenshot' ) , 'manage_options' , 'tida-url-screenshot-settings' , array( &$this, 'settings_page' ) ); 60 60 } 61 61 … … 78 78 79 79 $settings['general'] = array( 80 'title' => __( 'General', 'tida _url_screenshot' ),81 'description' => __( 'This section is the appearance settings.', 'tida _url_screenshot' ),80 'title' => __( 'General', 'tida-url-screenshot' ), 81 'description' => __( 'This section is the appearance settings.', 'tida-url-screenshot' ), 82 82 'fields' => array( 83 83 array( 84 84 'id' => 'input_class', 85 'label' => __( 'Input Class' , 'tida _url_screenshot' ),86 'description' => __( 'You can enter name of input class for custom style.', 'tida _url_screenshot' ),85 'label' => __( 'Input Class' , 'tida-url-screenshot' ), 86 'description' => __( 'You can enter name of input class for custom style.', 'tida-url-screenshot' ), 87 87 'type' => 'text', 88 88 'default' => '', … … 92 92 array( 93 93 'id' => 'button_class', 94 'label' => __( 'Button Class' , 'tida _url_screenshot' ),95 'description' => __( 'You can enter name of button class for custom style.', 'tida _url_screenshot' ),94 'label' => __( 'Button Class' , 'tida-url-screenshot' ), 95 'description' => __( 'You can enter name of button class for custom style.', 'tida-url-screenshot' ), 96 96 'type' => 'text', 97 97 'default' => '', … … 103 103 104 104 $settings['api'] = array( 105 'title' => __( 'API', 'tida _url_screenshot' ),106 'description' => __( 'This section is the settings of API service.', 'tida _url_screenshot' ),105 'title' => __( 'API', 'tida-url-screenshot' ), 106 'description' => __( 'This section is the settings of API service.', 'tida-url-screenshot' ), 107 107 'fields' => array( 108 108 array( 109 109 'id' => 'api_service', 110 'label' => __( 'API Service', 'tida _url_screenshot' ),111 'description' => __( 'Please select the service for taking the screenshot', 'tida _url_screenshot' ),110 'label' => __( 'API Service', 'tida-url-screenshot' ), 111 'description' => __( 'Please select the service for taking the screenshot', 'tida-url-screenshot' ), 112 112 'type' => 'select', 113 113 'options' => apply_filters('tida_screenshot_api_list', $list ) … … 361 361 // Build page HTML. 362 362 $html = '<div class="wrap" id="tida_url_screenshot_settings">' . "\n"; 363 $html .= '<h2>' . __( 'Tida URL Screenshot Settings', 'tida _url_screenshot' ) . '</h2>' . "\n";363 $html .= '<h2>' . __( 'Tida URL Screenshot Settings', 'tida-url-screenshot' ) . '</h2>' . "\n"; 364 364 365 365 $tab = ''; … … 413 413 $html .= '<p class="submit">' . "\n"; 414 414 $html .= '<input type="hidden" name="tab" value="' . esc_attr( $tab ) . '" />' . "\n"; 415 $html .= '<input name="Submit" type="submit" class="button-primary" value="' . esc_attr( __( 'Save Settings', 'tida _url_screenshot' ) ) . '" />' . "\n";415 $html .= '<input name="Submit" type="submit" class="button-primary" value="' . esc_attr( __( 'Save Settings', 'tida-url-screenshot' ) ) . '" />' . "\n"; 416 416 $html .= '</p>' . "\n"; 417 417 $html .= '</form>' . "\n"; -
tida-url-screenshot/tags/1.0.1/tida-url-screenshot.php
r3236484 r3236487 65 65 wp_localize_script( 'tida-screenshot', 'tida_screenshot_params', [ 66 66 'ajax_url' => admin_url('admin-ajax.php'), 67 'please_text' => __('Please Wait', 'tida _url_screenshot')67 'please_text' => __('Please Wait', 'tida-url-screenshot') 68 68 ]); 69 69 … … 84 84 <form class="tida_screenshot_form" method="post" action=""> 85 85 <?php wp_nonce_field('tida_url_screenshot_nonce', 'tida_url_screenshot_nonce'); ?> 86 <input type="text" <?php if(!empty($tida_screenshot_input_class)) echo 'class="'.esc_attr( $tida_screenshot_input_class ).'"'; ?> name="url" placeholder="<?php echo __('Enter URL...', 'tida _url_screenshot'); ?>" />87 <input type="submit" <?php if(!empty($tida_screenshot_button_class)) echo 'class="'.esc_attr( $tida_screenshot_button_class ).'"'; ?> name="check" value="<?php echo __('Take Screenshot', 'tida _url_screenshot'); ?>" />86 <input type="text" <?php if(!empty($tida_screenshot_input_class)) echo 'class="'.esc_attr( $tida_screenshot_input_class ).'"'; ?> name="url" placeholder="<?php echo __('Enter URL...', 'tida-url-screenshot'); ?>" /> 87 <input type="submit" <?php if(!empty($tida_screenshot_button_class)) echo 'class="'.esc_attr( $tida_screenshot_button_class ).'"'; ?> name="check" value="<?php echo __('Take Screenshot', 'tida-url-screenshot'); ?>" /> 88 88 </form> 89 89 <div class="screenshot_msg"></div> -
tida-url-screenshot/tags/1.0/includes/admin/class-settings.php
r3211546 r3236487 57 57 */ 58 58 public function add_menu_item() { 59 $page = add_options_page( __( 'Tida URL Screenshot Settings', 'tida _url_screenshot' ) , __( 'Tida URL Screenshot Settings', 'tida_url_screenshot' ) , 'manage_options' , 'tida-url-screenshot-settings' , array( &$this, 'settings_page' ) );59 $page = add_options_page( __( 'Tida URL Screenshot Settings', 'tida-url-screenshot' ) , __( 'Tida URL Screenshot Settings', 'tida-url-screenshot' ) , 'manage_options' , 'tida-url-screenshot-settings' , array( &$this, 'settings_page' ) ); 60 60 } 61 61 … … 78 78 79 79 $settings['general'] = array( 80 'title' => __( 'General', 'tida _url_screenshot' ),81 'description' => __( 'This section is the appearance settings.', 'tida _url_screenshot' ),80 'title' => __( 'General', 'tida-url-screenshot' ), 81 'description' => __( 'This section is the appearance settings.', 'tida-url-screenshot' ), 82 82 'fields' => array( 83 83 array( 84 84 'id' => 'input_class', 85 'label' => __( 'Input Class' , 'tida _url_screenshot' ),86 'description' => __( 'You can enter name of input class for custom style.', 'tida _url_screenshot' ),85 'label' => __( 'Input Class' , 'tida-url-screenshot' ), 86 'description' => __( 'You can enter name of input class for custom style.', 'tida-url-screenshot' ), 87 87 'type' => 'text', 88 88 'default' => '', … … 92 92 array( 93 93 'id' => 'button_class', 94 'label' => __( 'Button Class' , 'tida _url_screenshot' ),95 'description' => __( 'You can enter name of button class for custom style.', 'tida _url_screenshot' ),94 'label' => __( 'Button Class' , 'tida-url-screenshot' ), 95 'description' => __( 'You can enter name of button class for custom style.', 'tida-url-screenshot' ), 96 96 'type' => 'text', 97 97 'default' => '', … … 103 103 104 104 $settings['api'] = array( 105 'title' => __( 'API', 'tida _url_screenshot' ),106 'description' => __( 'This section is the settings of API service.', 'tida _url_screenshot' ),105 'title' => __( 'API', 'tida-url-screenshot' ), 106 'description' => __( 'This section is the settings of API service.', 'tida-url-screenshot' ), 107 107 'fields' => array( 108 108 array( 109 109 'id' => 'api_service', 110 'label' => __( 'API Service', 'tida _url_screenshot' ),111 'description' => __( 'Please select the service for taking the screenshot', 'tida _url_screenshot' ),110 'label' => __( 'API Service', 'tida-url-screenshot' ), 111 'description' => __( 'Please select the service for taking the screenshot', 'tida-url-screenshot' ), 112 112 'type' => 'select', 113 113 'options' => apply_filters('tida_screenshot_api_list', $list ) … … 361 361 // Build page HTML. 362 362 $html = '<div class="wrap" id="tida_url_screenshot_settings">' . "\n"; 363 $html .= '<h2>' . __( 'Tida URL Screenshot Settings', 'tida _url_screenshot' ) . '</h2>' . "\n";363 $html .= '<h2>' . __( 'Tida URL Screenshot Settings', 'tida-url-screenshot' ) . '</h2>' . "\n"; 364 364 365 365 $tab = ''; … … 413 413 $html .= '<p class="submit">' . "\n"; 414 414 $html .= '<input type="hidden" name="tab" value="' . esc_attr( $tab ) . '" />' . "\n"; 415 $html .= '<input name="Submit" type="submit" class="button-primary" value="' . esc_attr( __( 'Save Settings', 'tida _url_screenshot' ) ) . '" />' . "\n";415 $html .= '<input name="Submit" type="submit" class="button-primary" value="' . esc_attr( __( 'Save Settings', 'tida-url-screenshot' ) ) . '" />' . "\n"; 416 416 $html .= '</p>' . "\n"; 417 417 $html .= '</form>' . "\n"; -
tida-url-screenshot/tags/1.0/tida-url-screenshot.php
r3236484 r3236487 65 65 wp_localize_script( 'tida-screenshot', 'tida_screenshot_params', [ 66 66 'ajax_url' => admin_url('admin-ajax.php'), 67 'please_text' => __('Please Wait', 'tida _url_screenshot')67 'please_text' => __('Please Wait', 'tida-url-screenshot') 68 68 ]); 69 69 … … 84 84 <form class="tida_screenshot_form" method="post" action=""> 85 85 <?php wp_nonce_field('tida_url_screenshot_nonce', 'tida_url_screenshot_nonce'); ?> 86 <input type="text" <?php if(!empty($tida_screenshot_input_class)) echo 'class="'.esc_attr( $tida_screenshot_input_class ).'"'; ?> name="url" placeholder="<?php echo __('Enter URL...', 'tida _url_screenshot'); ?>" />87 <input type="submit" <?php if(!empty($tida_screenshot_button_class)) echo 'class="'.esc_attr( $tida_screenshot_button_class ).'"'; ?> name="check" value="<?php echo __('Take Screenshot', 'tida _url_screenshot'); ?>" />86 <input type="text" <?php if(!empty($tida_screenshot_input_class)) echo 'class="'.esc_attr( $tida_screenshot_input_class ).'"'; ?> name="url" placeholder="<?php echo __('Enter URL...', 'tida-url-screenshot'); ?>" /> 87 <input type="submit" <?php if(!empty($tida_screenshot_button_class)) echo 'class="'.esc_attr( $tida_screenshot_button_class ).'"'; ?> name="check" value="<?php echo __('Take Screenshot', 'tida-url-screenshot'); ?>" /> 88 88 </form> 89 89 <div class="screenshot_msg"></div>
Note: See TracChangeset
for help on using the changeset viewer.