Changeset 3586921
- Timestamp:
- 06/26/2026 08:02:45 AM (4 months ago)
- Location:
- maxbuttons
- Files:
-
- 4 deleted
- 19 edited
- 89 copied
-
tags/9.8.6 (copied) (copied from maxbuttons/trunk )
-
tags/9.8.6/assets/css/maxmodal.css (copied) (copied from maxbuttons/trunk/assets/css/maxmodal.css )
-
tags/9.8.6/assets/css/maxmodal.css.map (copied) (copied from maxbuttons/trunk/assets/css/maxmodal.css.map )
-
tags/9.8.6/assets/css/style.css (copied) (copied from maxbuttons/trunk/assets/css/style.css )
-
tags/9.8.6/assets/css/style.css.map (copied) (copied from maxbuttons/trunk/assets/css/style.css.map )
-
tags/9.8.6/assets/icons (deleted)
-
tags/9.8.6/assets/integrations/gutenberg/block.json (copied) (copied from maxbuttons/trunk/assets/integrations/gutenberg/block.json )
-
tags/9.8.6/assets/integrations/gutenberg/gutenberg.php (copied) (copied from maxbuttons/trunk/assets/integrations/gutenberg/gutenberg.php )
-
tags/9.8.6/assets/integrations/gutenberg/js (copied) (copied from maxbuttons/trunk/assets/integrations/gutenberg/js )
-
tags/9.8.6/assets/libraries/alpha-color/alpha-color-picker.js (copied) (copied from maxbuttons/trunk/assets/libraries/alpha-color/alpha-color-picker.js )
-
tags/9.8.6/assets/libraries/font-awesome-5/convert.php (copied) (copied from maxbuttons/trunk/assets/libraries/font-awesome-5/convert.php )
-
tags/9.8.6/assets/libraries/polyfill-ctype (copied) (copied from maxbuttons/trunk/assets/libraries/polyfill-ctype )
-
tags/9.8.6/assets/libraries/scss.inc.php.new (deleted)
-
tags/9.8.6/assets/libraries/scssphp/phpcs.xml.dist (deleted)
-
tags/9.8.6/assets/libraries/scssphp/scss.inc.php (copied) (copied from maxbuttons/trunk/assets/libraries/scssphp/scss.inc.php )
-
tags/9.8.6/assets/libraries/scssphp/src/Base/Range.php (copied) (copied from maxbuttons/trunk/assets/libraries/scssphp/src/Base/Range.php )
-
tags/9.8.6/assets/libraries/scssphp/src/Block (copied) (copied from maxbuttons/trunk/assets/libraries/scssphp/src/Block )
-
tags/9.8.6/assets/libraries/scssphp/src/Block.php (copied) (copied from maxbuttons/trunk/assets/libraries/scssphp/src/Block.php )
-
tags/9.8.6/assets/libraries/scssphp/src/Cache.php (copied) (copied from maxbuttons/trunk/assets/libraries/scssphp/src/Cache.php )
-
tags/9.8.6/assets/libraries/scssphp/src/Colors.php (copied) (copied from maxbuttons/trunk/assets/libraries/scssphp/src/Colors.php )
-
tags/9.8.6/assets/libraries/scssphp/src/Compiler.php (copied) (copied from maxbuttons/trunk/assets/libraries/scssphp/src/Compiler.php )
-
tags/9.8.6/assets/libraries/scssphp/src/Compiler/Environment.php (copied) (copied from maxbuttons/trunk/assets/libraries/scssphp/src/Compiler/Environment.php )
-
tags/9.8.6/assets/libraries/scssphp/src/Exception/ParserException.php (copied) (copied from maxbuttons/trunk/assets/libraries/scssphp/src/Exception/ParserException.php )
-
tags/9.8.6/assets/libraries/scssphp/src/Formatter.php (copied) (copied from maxbuttons/trunk/assets/libraries/scssphp/src/Formatter.php )
-
tags/9.8.6/assets/libraries/scssphp/src/Formatter/Compressed.php (copied) (copied from maxbuttons/trunk/assets/libraries/scssphp/src/Formatter/Compressed.php )
-
tags/9.8.6/assets/libraries/scssphp/src/Formatter/Crunched.php (copied) (copied from maxbuttons/trunk/assets/libraries/scssphp/src/Formatter/Crunched.php )
-
tags/9.8.6/assets/libraries/scssphp/src/Formatter/Expanded.php (copied) (copied from maxbuttons/trunk/assets/libraries/scssphp/src/Formatter/Expanded.php )
-
tags/9.8.6/assets/libraries/scssphp/src/Formatter/Nested.php (copied) (copied from maxbuttons/trunk/assets/libraries/scssphp/src/Formatter/Nested.php )
-
tags/9.8.6/assets/libraries/scssphp/src/Formatter/OutputBlock.php (copied) (copied from maxbuttons/trunk/assets/libraries/scssphp/src/Formatter/OutputBlock.php )
-
tags/9.8.6/assets/libraries/scssphp/src/Logger/QuietLogger.php (copied) (copied from maxbuttons/trunk/assets/libraries/scssphp/src/Logger/QuietLogger.php )
-
tags/9.8.6/assets/libraries/scssphp/src/Logger/StreamLogger.php (copied) (copied from maxbuttons/trunk/assets/libraries/scssphp/src/Logger/StreamLogger.php )
-
tags/9.8.6/assets/libraries/scssphp/src/Node.php (copied) (copied from maxbuttons/trunk/assets/libraries/scssphp/src/Node.php )
-
tags/9.8.6/assets/libraries/scssphp/src/Node/Number.php (copied) (copied from maxbuttons/trunk/assets/libraries/scssphp/src/Node/Number.php )
-
tags/9.8.6/assets/libraries/scssphp/src/Parser.php (copied) (copied from maxbuttons/trunk/assets/libraries/scssphp/src/Parser.php )
-
tags/9.8.6/assets/libraries/scssphp/src/SourceMap/Base64.php (copied) (copied from maxbuttons/trunk/assets/libraries/scssphp/src/SourceMap/Base64.php )
-
tags/9.8.6/assets/libraries/scssphp/src/SourceMap/Base64VLQ.php (copied) (copied from maxbuttons/trunk/assets/libraries/scssphp/src/SourceMap/Base64VLQ.php )
-
tags/9.8.6/assets/libraries/scssphp/src/SourceMap/SourceMapGenerator.php (copied) (copied from maxbuttons/trunk/assets/libraries/scssphp/src/SourceMap/SourceMapGenerator.php )
-
tags/9.8.6/assets/libraries/scssphp/src/Type.php (copied) (copied from maxbuttons/trunk/assets/libraries/scssphp/src/Type.php )
-
tags/9.8.6/assets/libraries/scssphp/src/Util.php (copied) (copied from maxbuttons/trunk/assets/libraries/scssphp/src/Util.php )
-
tags/9.8.6/assets/libraries/scssphp/src/Version.php (copied) (copied from maxbuttons/trunk/assets/libraries/scssphp/src/Version.php )
-
tags/9.8.6/assets/libraries/simplehtmldom/simple_html_dom.php (copied) (copied from maxbuttons/trunk/assets/libraries/simplehtmldom/simple_html_dom.php )
-
tags/9.8.6/assets/libraries/url_slug.php (copied) (copied from maxbuttons/trunk/assets/libraries/url_slug.php )
-
tags/9.8.6/assets/scss/_editor.scss (copied) (copied from maxbuttons/trunk/assets/scss/_editor.scss )
-
tags/9.8.6/assets/scss/_elements.scss (copied) (copied from maxbuttons/trunk/assets/scss/_elements.scss )
-
tags/9.8.6/assets/scss/_input_range.scss (copied) (copied from maxbuttons/trunk/assets/scss/_input_range.scss )
-
tags/9.8.6/assets/scss/_mixins.scss (copied) (copied from maxbuttons/trunk/assets/scss/_mixins.scss )
-
tags/9.8.6/assets/scss/_overview.scss (copied) (copied from maxbuttons/trunk/assets/scss/_overview.scss )
-
tags/9.8.6/assets/scss/_settings.scss (copied) (copied from maxbuttons/trunk/assets/scss/_settings.scss )
-
tags/9.8.6/blocks/advanced.php (copied) (copied from maxbuttons/trunk/blocks/advanced.php )
-
tags/9.8.6/blocks/basic.php (copied) (copied from maxbuttons/trunk/blocks/basic.php ) (4 diffs)
-
tags/9.8.6/blocks/border.php (copied) (copied from maxbuttons/trunk/blocks/border.php )
-
tags/9.8.6/blocks/color.php (copied) (copied from maxbuttons/trunk/blocks/color.php )
-
tags/9.8.6/blocks/container.php (copied) (copied from maxbuttons/trunk/blocks/container.php )
-
tags/9.8.6/blocks/dimension.php (copied) (copied from maxbuttons/trunk/blocks/dimension.php )
-
tags/9.8.6/blocks/gradient.php (copied) (copied from maxbuttons/trunk/blocks/gradient.php )
-
tags/9.8.6/blocks/meta.php (copied) (copied from maxbuttons/trunk/blocks/meta.php )
-
tags/9.8.6/blocks/responsive.php (copied) (copied from maxbuttons/trunk/blocks/responsive.php ) (3 diffs)
-
tags/9.8.6/blocks/text.php (copied) (copied from maxbuttons/trunk/blocks/text.php )
-
tags/9.8.6/blocks/tpl/sidebar_section.tpl (copied) (copied from maxbuttons/trunk/blocks/tpl/sidebar_section.tpl )
-
tags/9.8.6/classes/admin-class.php (copied) (copied from maxbuttons/trunk/classes/admin-class.php ) (1 diff)
-
tags/9.8.6/classes/block.php (copied) (copied from maxbuttons/trunk/classes/block.php )
-
tags/9.8.6/classes/blocks.php (copied) (copied from maxbuttons/trunk/classes/blocks.php )
-
tags/9.8.6/classes/button.php (copied) (copied from maxbuttons/trunk/classes/button.php ) (1 diff)
-
tags/9.8.6/classes/buttons.php (copied) (copied from maxbuttons/trunk/classes/buttons.php )
-
tags/9.8.6/classes/controller.php (copied) (copied from maxbuttons/trunk/classes/controller.php )
-
tags/9.8.6/classes/controllers/editorController.php (copied) (copied from maxbuttons/trunk/classes/controllers/editorController.php ) (1 diff)
-
tags/9.8.6/classes/controllers/listController.php (copied) (copied from maxbuttons/trunk/classes/controllers/listController.php ) (1 diff)
-
tags/9.8.6/classes/controllers/settingsController.php (copied) (copied from maxbuttons/trunk/classes/controllers/settingsController.php )
-
tags/9.8.6/classes/controllers/supportController.php (copied) (copied from maxbuttons/trunk/classes/controllers/supportController.php )
-
tags/9.8.6/classes/controllers/upgradeController.php (copied) (copied from maxbuttons/trunk/classes/controllers/upgradeController.php )
-
tags/9.8.6/classes/field.php (copied) (copied from maxbuttons/trunk/classes/field.php )
-
tags/9.8.6/classes/installation.php (copied) (copied from maxbuttons/trunk/classes/installation.php )
-
tags/9.8.6/classes/integrations.php (copied) (copied from maxbuttons/trunk/classes/integrations.php )
-
tags/9.8.6/classes/max-utils.php (copied) (copied from maxbuttons/trunk/classes/max-utils.php ) (2 diffs)
-
tags/9.8.6/classes/maxCSSParser.php (copied) (copied from maxbuttons/trunk/classes/maxCSSParser.php )
-
tags/9.8.6/classes/maxbuttons-admin-helper.php (copied) (copied from maxbuttons/trunk/classes/maxbuttons-admin-helper.php ) (1 diff)
-
tags/9.8.6/classes/maxbuttons-class.php (copied) (copied from maxbuttons/trunk/classes/maxbuttons-class.php ) (1 diff)
-
tags/9.8.6/classes/screen.php (copied) (copied from maxbuttons/trunk/classes/screen.php ) (1 diff)
-
tags/9.8.6/classes/upgrader/installer.php (copied) (copied from maxbuttons/trunk/classes/upgrader/installer.php )
-
tags/9.8.6/classes/upgrader/license.php (copied) (copied from maxbuttons/trunk/classes/upgrader/license.php ) (3 diffs)
-
tags/9.8.6/includes/admin_header.php (copied) (copied from maxbuttons/trunk/includes/admin_header.php )
-
tags/9.8.6/includes/maxbuttons-button.php (copied) (copied from maxbuttons/trunk/includes/maxbuttons-button.php )
-
tags/9.8.6/includes/maxbuttons-list.php (copied) (copied from maxbuttons/trunk/includes/maxbuttons-list.php ) (2 diffs)
-
tags/9.8.6/includes/maxbuttons-no-simplexml.php (copied) (copied from maxbuttons/trunk/includes/maxbuttons-no-simplexml.php ) (1 diff)
-
tags/9.8.6/includes/maxbuttons-settings.php (copied) (copied from maxbuttons/trunk/includes/maxbuttons-settings.php )
-
tags/9.8.6/includes/maxbuttons-support.php (modified) (1 diff)
-
tags/9.8.6/index.php (modified) (1 diff)
-
tags/9.8.6/js/init.js (copied) (copied from maxbuttons/trunk/js/init.js )
-
tags/9.8.6/js/live-preview.js (copied) (copied from maxbuttons/trunk/js/live-preview.js )
-
tags/9.8.6/js/maxajax.js (copied) (copied from maxbuttons/trunk/js/maxajax.js )
-
tags/9.8.6/js/maxbuttons-admin.js (copied) (copied from maxbuttons/trunk/js/maxbuttons-admin.js )
-
tags/9.8.6/js/media_button.js (copied) (copied from maxbuttons/trunk/js/media_button.js )
-
tags/9.8.6/js/min (deleted)
-
tags/9.8.6/maxbuttons.php (copied) (copied from maxbuttons/trunk/maxbuttons.php ) (2 diffs)
-
tags/9.8.6/readme.txt (copied) (copied from maxbuttons/trunk/readme.txt ) (2 diffs)
-
trunk/blocks/basic.php (modified) (4 diffs)
-
trunk/blocks/responsive.php (modified) (3 diffs)
-
trunk/classes/admin-class.php (modified) (1 diff)
-
trunk/classes/button.php (modified) (1 diff)
-
trunk/classes/controllers/editorController.php (modified) (1 diff)
-
trunk/classes/controllers/listController.php (modified) (1 diff)
-
trunk/classes/max-utils.php (modified) (2 diffs)
-
trunk/classes/maxbuttons-admin-helper.php (modified) (1 diff)
-
trunk/classes/maxbuttons-class.php (modified) (1 diff)
-
trunk/classes/screen.php (modified) (1 diff)
-
trunk/classes/upgrader/license.php (modified) (3 diffs)
-
trunk/includes/maxbuttons-list.php (modified) (2 diffs)
-
trunk/includes/maxbuttons-no-simplexml.php (modified) (1 diff)
-
trunk/includes/maxbuttons-support.php (modified) (1 diff)
-
trunk/index.php (modified) (1 diff)
-
trunk/maxbuttons.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
maxbuttons/tags/9.8.6/blocks/basic.php
r3279932 r3586921 237 237 238 238 $sql = $wpdb->prepare("SELECT id from $table where name = %s and status = 'publish' and id <> %d ", $name, $button_id); 239 240 239 $results = $wpdb->get_col($sql); 241 240 … … 243 242 { 244 243 $message = __('Button name already used. Using non-unique names with the shortcode can cause issues', 'maxbuttons'); 245 $message .= ' ' . __('Already used in : ' );244 $message .= ' ' . __('Already used in : ', 'maxbuttons'); 246 245 foreach($results as $id) 247 246 { 248 $url = admin_url() . 'admin.php?page=maxbuttons-controller&action=edit&id=' . $id;247 $url = admin_url() . 'admin.php?page=maxbuttons-controller&action=edit&id=' . intval($id); 249 248 $message .= ' <a href="' . esc_attr($url) . '" target="_blank">' . intval($id) . '</a> '; 250 249 } … … 322 321 $copyno->label = ' '; 323 322 $copyno->name = 'prevent-copy-message'; 324 $copyno->content = "<p>" . __('<strong>Tip: </strong> You don\'t need to copy buttons to change URL or Text. See the examples on top of page' ) . '</p>';323 $copyno->content = "<p>" . __('<strong>Tip: </strong> You don\'t need to copy buttons to change URL or Text. See the examples on top of page', 'maxbuttons') . '</p>'; 325 324 $screen->addField($copyno, 'start','end'); 326 325 } … … 394 393 $field_text->is_responsive = false; 395 394 $field_text->value = esc_attr($screen->getValue($field_text->id)); 396 $field_text->help = __('Shortcode attribute: text' );395 $field_text->help = __('Shortcode attribute: text', 'maxbuttons'); 397 396 $screen->addField($field_text, 'start', 'end'); 398 397 -
maxbuttons/tags/9.8.6/blocks/responsive.php
r2977449 r3586921 216 216 $name->is_new = true; 217 217 $name->value = $screen->getValue($name->id); 218 $name->note = __('The internal name for this screen. [optional]' );218 $name->note = __('The internal name for this screen. [optional]', 'maxbuttons'); 219 219 $screen->addField($name, 'start', 'end'); 220 220 … … 230 230 $preset->id = $screen->getFieldID('preset'); 231 231 $preset->name = $preset->id; 232 $preset->label = __('Select a Preset' );232 $preset->label = __('Select a Preset', 'maxbuttons'); 233 233 $preset->is_new = true; 234 234 $preset->options = $preset_options; … … 339 339 $output .= "<div class='removed-note'>" . __("Save your settings first to remove the screen", 'maxbuttons') . '</div>'; 340 340 $output .= '<p><h4>' . sprintf(__('You already have %s screens. To add more responsive screens to your buttons, upgrade to MaxButtons PRO.', 'maxbuttons'), $screen::countScreens() ) . '</b></h4>'; 341 $output .= '<h4>' . __('The best button editor for WordPress includes: ' ) . '</h4>';341 $output .= '<h4>' . __('The best button editor for WordPress includes: ', 'maxbuttons') . '</h4>'; 342 342 $output .= '<ul>'; 343 343 $output .= '<li>' . __('Infinite amount of screens', 'maxbuttons') . '</li>'; -
maxbuttons/tags/9.8.6/classes/admin-class.php
r2977449 r3586921 311 311 $preview = new maxField('generic'); 312 312 $preview->name = 'button-preview'; 313 $preview->content = '<h3>' . __('Shortcode Options' ) . '</h3>313 $preview->content = '<h3>' . __('Shortcode Options', 'maxbuttons') . '</h3> 314 314 <p>' . $button->display($display_args) . '</p> 315 315 <p>' . __('Change the options to add shortcode attributes. ', 'maxbuttons') . '</p>'; -
maxbuttons/tags/9.8.6/classes/button.php
r3197889 r3586921 576 576 maxButtons::buttonDone(array("button_id" => $this->id, "document_id" => $this->document_id) ); 577 577 578 $domObj->clear(); 578 579 maxUtils::endTime('button-display-'. $this->id); 579 580 -
maxbuttons/tags/9.8.6/classes/controllers/editorController.php
r2977449 r3586921 170 170 if ($new_button) 171 171 { 172 wp_ redirect($url);172 wp_safe_redirect($url); 173 173 exit(); 174 174 } -
maxbuttons/tags/9.8.6/classes/controllers/listController.php
r2977449 r3586921 35 35 public function loadView() 36 36 { 37 if (! isset($this->view->listView)) // Can be set by handlePost 38 $this->view->listView = (isset($_GET["view"])) ? sanitize_text_field($_GET["view"]) : "all"; 37 if (! isset($this->view->listView)) 38 { // Can be set by handlePost 39 $view = isset($_GET['view']) && ($_GET['view'] == 'trash') ? 'trash' : 'all'; 40 $this->view->listView = $view; 41 } 39 42 40 43 $this->loadButtons(); -
maxbuttons/tags/9.8.6/classes/max-utils.php
r3272308 r3586921 32 32 $plugin_action = isset($_POST['plugin_action']) ? sanitize_text_field($_POST['plugin_action']) : ''; 33 33 $nonce = isset($_POST['nonce']) ? $_POST['nonce'] : false; 34 $message = __( sprintf("No Handler found for action %s ", $plugin_action), 'maxbuttons');34 $message = sprintf(__("No Handler found for action %s ",'maxbuttons'), $plugin_action ); 35 35 36 36 if (! wp_verify_nonce($nonce, 'maxajax') ) 37 37 { 38 $message = __('Nonce not verified (' . $nonce . ')', 'maxbuttons');38 $message = sprintf(__('Nonce not verified (%s)', 'maxbuttons'), sanitize_text_field($nonce) ); 39 39 } 40 40 else … … 395 395 396 396 // This is a fix specific for NGGallery since they load their scripts weirdly / wrongly, but do check for the presence of a style named 'fontawesome' . 397 wp_register_style('fontawesome', $src );397 wp_register_style('fontawesome', $src, [], MAXBUTTONS_VERSION_NUM); 398 398 399 399 } -
maxbuttons/tags/9.8.6/classes/maxbuttons-admin-helper.php
r2977449 r3586921 24 24 $version = self::getAdVersion(); 25 25 $url = self::getCheckoutURL(); 26 ?> 27 28 <?php printf(__('Upgrade to MaxButtons Pro today! %sClick Here%s', 'maxbuttons'), '<a class="simple-btn" href="' . $url . '&utm_source=mbf-dash' . $version . '&utm_medium=mbf-plugin&utm_content=click-here&utm_campaign=cart' . $version . '" target="_blank">', '</a>' ) ?> 29 30 31 <?php 26 27 printf(__('Upgrade to MaxButtons Pro today! %sClick Here%s', 'maxbuttons'), '<a class="simple-btn" href="' . esc_attr($url) . '&utm_source=mbf-dash' . $version . '&utm_medium=mbf-plugin&utm_content=click-here&utm_campaign=cart' . esc_attr($version) . '" target="_blank">', '</a>' ); 28 29 32 30 } 33 31 -
maxbuttons/tags/9.8.6/classes/maxbuttons-class.php
r3361572 r3586921 554 554 'wpColorPickerL10n', 555 555 array( 556 'clear' => __( 'Clear' ),557 'clearAriaLabel' => __( 'Clear color' ),558 'defaultString' => __( 'Default' ),559 'defaultAriaLabel' => __( 'Select default color' ),560 'pick' => __( 'Select Color' ),561 'defaultLabel' => __( 'Color value' ),556 'clear' => __( 'Clear', 'maxbuttons' ), 557 'clearAriaLabel' => __( 'Clear color', 'maxbuttons' ), 558 'defaultString' => __( 'Default', 'maxbuttons' ), 559 'defaultAriaLabel' => __( 'Select default color', 'maxbuttons' ), 560 'pick' => __( 'Select Color', 'maxbuttons' ), 561 'defaultLabel' => __( 'Color value', 'maxbuttons' ), 562 562 ) 563 563 ); -
maxbuttons/tags/9.8.6/classes/screen.php
r2977449 r3586921 144 144 public function addfield($field, $start = '', $end = '') 145 145 { 146 $field_id = isset($field->id) ? $field->id : $field->template . \ rand(0,1000);146 $field_id = isset($field->id) ? $field->id : $field->template . \wp_rand(0,1000); 147 147 148 148 // don't add if it's not our screen. -
maxbuttons/tags/9.8.6/classes/upgrader/license.php
r2977942 r3586921 77 77 if ($free_url != '') 78 78 $args["free_url"] = $free_url; 79 80 //$api_url = add_query_arg($args, $this->api_url);81 82 //header('Content-Type: application/json');83 84 if ($error) // errors before the request85 {86 return $error_body;87 //echo json_encode($error_body);88 // exit();89 }90 79 91 80 $data = $this->do_api_post($args); … … 163 152 case 'expired' : 164 153 $message = sprintf( 165 __( 'Your license key expired on %s.', 'maxbuttons -pro' ),154 __( 'Your license key expired on %s.', 'maxbuttons' ), 166 155 date_i18n( get_option( 'date_format' ), strtotime( strval($data->expires), current_time( 'timestamp' ) ) ) 167 156 ); … … 169 158 case 'revoked' : 170 159 case 'disabled' : 171 $message = __( 'Your license key has been disabled.','maxbuttons -pro');160 $message = __( 'Your license key has been disabled.','maxbuttons'); 172 161 break; 173 162 case 'missing' : 174 $message = __( 'Invalid license. Please check the license code. ', 'maxbuttons -pro');163 $message = __( 'Invalid license. Please check the license code. ', 'maxbuttons'); 175 164 break; 176 165 case 'invalid' : 177 166 case 'site_inactive' : 178 $message = __( 'Your license is not active for this URL.', 'maxbuttons -pro' );167 $message = __( 'Your license is not active for this URL.', 'maxbuttons' ); 179 168 break; 180 169 case 'item_name_mismatch' : 181 $message = sprintf( __( 'This appears to be an invalid license key for %s.', 'maxbuttons -pro' ), 'MaxButtons PRO' );170 $message = sprintf( __( 'This appears to be an invalid license key for %s.', 'maxbuttons' ), 'MaxButtons PRO' ); 182 171 break; 183 172 case 'no_activations_left': 184 $message = __( 'Your license key has reached its activation limit.','maxbuttons -pro' );173 $message = __( 'Your license key has reached its activation limit.','maxbuttons' ); 185 174 break; 186 175 default : 187 $message = __( 'An error occurred, please try again.', 'maxbuttons -pro' );176 $message = __( 'An error occurred, please try again.', 'maxbuttons' ); 188 177 break; 189 178 } 190 179 $data->additional_info = $message ; 191 // $result = $new_result;192 193 180 return $data; 194 //echo json_encode($result);195 // exit();196 181 } 197 182 -
maxbuttons/tags/9.8.6/includes/maxbuttons-list.php
r2977449 r3586921 60 60 <?php endif; ?> 61 61 62 <input type="hidden" name="view" value="<?php echo $view->listView?>" />62 <input type="hidden" name="view" value="<?php echo esc_attr($view->listView) ?>" /> 63 63 <?php wp_nonce_field("mb-list","mb-list-nonce"); ?> 64 64 … … 77 77 78 78 <?php if ($view->listView == 'trash'): ?> 79 <button type="button" class='button alignright' value='empty-trash' data-buttonaction='empty-trash' data-confirm="<?php _e('Permanently delete all buttons in trash. Are you sure?', 'maxbuttons -pro') ?>"><?php _e('Empty Trash', 'maxbuttons'); ?></button>79 <button type="button" class='button alignright' value='empty-trash' data-buttonaction='empty-trash' data-confirm="<?php _e('Permanently delete all buttons in trash. Are you sure?', 'maxbuttons') ?>"><?php _e('Empty Trash', 'maxbuttons'); ?></button> 80 80 <?php endif; ?> 81 81 <?php do_action("mb-display-pagination", $view->pageArgs, 'top'); ?> -
maxbuttons/tags/9.8.6/includes/maxbuttons-no-simplexml.php
r2716443 r3586921 11 11 12 12 $admin = MB()->getClass('admin'); 13 $page_title = __("Packs","maxbuttons -pro");13 $page_title = __("Packs","maxbuttons"); 14 14 15 15 $admin->get_header(array("title" => $page_title) ); -
maxbuttons/tags/9.8.6/includes/maxbuttons-support.php
r2171726 r3586921 46 46 echo maxbuttons_system_label('MySQL Version:', $mysql_version, 8) ?> 47 47 48 <?php echo maxbuttons_system_label('Web Server:', $_SERVER['SERVER_SOFTWARE'], 11) ?> 48 <?php 49 $software = isset($_SERVER['SERVER_SOFTWARE']) ? $_SERVER['SERVER_SOFTWARE'] : ''; 50 echo maxbuttons_system_label('Web Server:', esc_html($software) , 11) 51 ?> 49 52 50 53 <?php echo maxbuttons_system_label('WordPress URL:', get_bloginfo('wpurl'), 8) ?> -
maxbuttons/tags/9.8.6/index.php
r1384110 r3586921 1 <?php 1 2 // silence -
maxbuttons/tags/9.8.6/maxbuttons.php
r3361572 r3586921 1 1 <?php 2 2 /* 3 Plugin Name: MaxButtons 3 Plugin Name: MaxButtons - Create buttons 4 4 Plugin URI: http://maxbuttons.com 5 5 Description: The best WordPress button generator. This is the free version; the Pro version <a href="http://maxbuttons.com/?ref=mbfree">can be found here</a>. 6 Version: 9.8. 56 Version: 9.8.6 7 7 Author: Max Foundry 8 8 Author URI: http://maxfoundry.com 9 9 Text Domain: maxbuttons 10 10 Domain Path: /languages 11 License: GPL v2 or later 12 11 13 12 14 Copyright 2025 Max Foundry, LLC (http://maxfoundry.com) … … 17 19 define("MAXBUTTONS_ROOT_FILE", __FILE__); 18 20 if (! defined('MAXBUTTONS_VERSION_NUM')) 19 define('MAXBUTTONS_VERSION_NUM', '9.8. 5');21 define('MAXBUTTONS_VERSION_NUM', '9.8.6'); 20 22 21 define('MAXBUTTONS_RELEASE'," 15 September 2025");23 define('MAXBUTTONS_RELEASE',"26 June 2026"); 22 24 23 25 if (! function_exists('MaxButtons\maxbutton_double_load')) -
maxbuttons/tags/9.8.6/readme.txt
r3361572 r3586921 3 3 Tags: butotn creator, share button, css3 button generator, responsive buttons, css wordpress button 4 4 Requires at least: 5.0 5 Tested up to: 6.85 Tested up to: 7.0 6 6 License: GPL v2 or later 7 7 License URI: https://www.gnu.org/licenses/gpl-2.0.html 8 8 Requires PHP: 7.0 9 Stable tag: 9.8. 59 Stable tag: 9.8.6 10 10 11 11 Maxbuttons is the best and easiest button plugin for WordPress. Within minutes you can create beautiful buttons, share buttons and social icons. … … 279 279 == Changelog == 280 280 281 = 9.8.6 = 282 283 - Maintenance release 284 - Fix - Missing escape on view parameter in maxbutton list 285 - Compatible and tested with latest WordPress (7.0) and PHP (8.3) 286 281 287 = 9.8.5 = 282 288 -
maxbuttons/trunk/blocks/basic.php
r3279932 r3586921 237 237 238 238 $sql = $wpdb->prepare("SELECT id from $table where name = %s and status = 'publish' and id <> %d ", $name, $button_id); 239 240 239 $results = $wpdb->get_col($sql); 241 240 … … 243 242 { 244 243 $message = __('Button name already used. Using non-unique names with the shortcode can cause issues', 'maxbuttons'); 245 $message .= ' ' . __('Already used in : ' );244 $message .= ' ' . __('Already used in : ', 'maxbuttons'); 246 245 foreach($results as $id) 247 246 { 248 $url = admin_url() . 'admin.php?page=maxbuttons-controller&action=edit&id=' . $id;247 $url = admin_url() . 'admin.php?page=maxbuttons-controller&action=edit&id=' . intval($id); 249 248 $message .= ' <a href="' . esc_attr($url) . '" target="_blank">' . intval($id) . '</a> '; 250 249 } … … 322 321 $copyno->label = ' '; 323 322 $copyno->name = 'prevent-copy-message'; 324 $copyno->content = "<p>" . __('<strong>Tip: </strong> You don\'t need to copy buttons to change URL or Text. See the examples on top of page' ) . '</p>';323 $copyno->content = "<p>" . __('<strong>Tip: </strong> You don\'t need to copy buttons to change URL or Text. See the examples on top of page', 'maxbuttons') . '</p>'; 325 324 $screen->addField($copyno, 'start','end'); 326 325 } … … 394 393 $field_text->is_responsive = false; 395 394 $field_text->value = esc_attr($screen->getValue($field_text->id)); 396 $field_text->help = __('Shortcode attribute: text' );395 $field_text->help = __('Shortcode attribute: text', 'maxbuttons'); 397 396 $screen->addField($field_text, 'start', 'end'); 398 397 -
maxbuttons/trunk/blocks/responsive.php
r2977449 r3586921 216 216 $name->is_new = true; 217 217 $name->value = $screen->getValue($name->id); 218 $name->note = __('The internal name for this screen. [optional]' );218 $name->note = __('The internal name for this screen. [optional]', 'maxbuttons'); 219 219 $screen->addField($name, 'start', 'end'); 220 220 … … 230 230 $preset->id = $screen->getFieldID('preset'); 231 231 $preset->name = $preset->id; 232 $preset->label = __('Select a Preset' );232 $preset->label = __('Select a Preset', 'maxbuttons'); 233 233 $preset->is_new = true; 234 234 $preset->options = $preset_options; … … 339 339 $output .= "<div class='removed-note'>" . __("Save your settings first to remove the screen", 'maxbuttons') . '</div>'; 340 340 $output .= '<p><h4>' . sprintf(__('You already have %s screens. To add more responsive screens to your buttons, upgrade to MaxButtons PRO.', 'maxbuttons'), $screen::countScreens() ) . '</b></h4>'; 341 $output .= '<h4>' . __('The best button editor for WordPress includes: ' ) . '</h4>';341 $output .= '<h4>' . __('The best button editor for WordPress includes: ', 'maxbuttons') . '</h4>'; 342 342 $output .= '<ul>'; 343 343 $output .= '<li>' . __('Infinite amount of screens', 'maxbuttons') . '</li>'; -
maxbuttons/trunk/classes/admin-class.php
r2977449 r3586921 311 311 $preview = new maxField('generic'); 312 312 $preview->name = 'button-preview'; 313 $preview->content = '<h3>' . __('Shortcode Options' ) . '</h3>313 $preview->content = '<h3>' . __('Shortcode Options', 'maxbuttons') . '</h3> 314 314 <p>' . $button->display($display_args) . '</p> 315 315 <p>' . __('Change the options to add shortcode attributes. ', 'maxbuttons') . '</p>'; -
maxbuttons/trunk/classes/button.php
r3197889 r3586921 576 576 maxButtons::buttonDone(array("button_id" => $this->id, "document_id" => $this->document_id) ); 577 577 578 $domObj->clear(); 578 579 maxUtils::endTime('button-display-'. $this->id); 579 580 -
maxbuttons/trunk/classes/controllers/editorController.php
r2977449 r3586921 170 170 if ($new_button) 171 171 { 172 wp_ redirect($url);172 wp_safe_redirect($url); 173 173 exit(); 174 174 } -
maxbuttons/trunk/classes/controllers/listController.php
r2977449 r3586921 35 35 public function loadView() 36 36 { 37 if (! isset($this->view->listView)) // Can be set by handlePost 38 $this->view->listView = (isset($_GET["view"])) ? sanitize_text_field($_GET["view"]) : "all"; 37 if (! isset($this->view->listView)) 38 { // Can be set by handlePost 39 $view = isset($_GET['view']) && ($_GET['view'] == 'trash') ? 'trash' : 'all'; 40 $this->view->listView = $view; 41 } 39 42 40 43 $this->loadButtons(); -
maxbuttons/trunk/classes/max-utils.php
r3272308 r3586921 32 32 $plugin_action = isset($_POST['plugin_action']) ? sanitize_text_field($_POST['plugin_action']) : ''; 33 33 $nonce = isset($_POST['nonce']) ? $_POST['nonce'] : false; 34 $message = __( sprintf("No Handler found for action %s ", $plugin_action), 'maxbuttons');34 $message = sprintf(__("No Handler found for action %s ",'maxbuttons'), $plugin_action ); 35 35 36 36 if (! wp_verify_nonce($nonce, 'maxajax') ) 37 37 { 38 $message = __('Nonce not verified (' . $nonce . ')', 'maxbuttons');38 $message = sprintf(__('Nonce not verified (%s)', 'maxbuttons'), sanitize_text_field($nonce) ); 39 39 } 40 40 else … … 395 395 396 396 // This is a fix specific for NGGallery since they load their scripts weirdly / wrongly, but do check for the presence of a style named 'fontawesome' . 397 wp_register_style('fontawesome', $src );397 wp_register_style('fontawesome', $src, [], MAXBUTTONS_VERSION_NUM); 398 398 399 399 } -
maxbuttons/trunk/classes/maxbuttons-admin-helper.php
r2977449 r3586921 24 24 $version = self::getAdVersion(); 25 25 $url = self::getCheckoutURL(); 26 ?> 27 28 <?php printf(__('Upgrade to MaxButtons Pro today! %sClick Here%s', 'maxbuttons'), '<a class="simple-btn" href="' . $url . '&utm_source=mbf-dash' . $version . '&utm_medium=mbf-plugin&utm_content=click-here&utm_campaign=cart' . $version . '" target="_blank">', '</a>' ) ?> 29 30 31 <?php 26 27 printf(__('Upgrade to MaxButtons Pro today! %sClick Here%s', 'maxbuttons'), '<a class="simple-btn" href="' . esc_attr($url) . '&utm_source=mbf-dash' . $version . '&utm_medium=mbf-plugin&utm_content=click-here&utm_campaign=cart' . esc_attr($version) . '" target="_blank">', '</a>' ); 28 29 32 30 } 33 31 -
maxbuttons/trunk/classes/maxbuttons-class.php
r3361572 r3586921 554 554 'wpColorPickerL10n', 555 555 array( 556 'clear' => __( 'Clear' ),557 'clearAriaLabel' => __( 'Clear color' ),558 'defaultString' => __( 'Default' ),559 'defaultAriaLabel' => __( 'Select default color' ),560 'pick' => __( 'Select Color' ),561 'defaultLabel' => __( 'Color value' ),556 'clear' => __( 'Clear', 'maxbuttons' ), 557 'clearAriaLabel' => __( 'Clear color', 'maxbuttons' ), 558 'defaultString' => __( 'Default', 'maxbuttons' ), 559 'defaultAriaLabel' => __( 'Select default color', 'maxbuttons' ), 560 'pick' => __( 'Select Color', 'maxbuttons' ), 561 'defaultLabel' => __( 'Color value', 'maxbuttons' ), 562 562 ) 563 563 ); -
maxbuttons/trunk/classes/screen.php
r2977449 r3586921 144 144 public function addfield($field, $start = '', $end = '') 145 145 { 146 $field_id = isset($field->id) ? $field->id : $field->template . \ rand(0,1000);146 $field_id = isset($field->id) ? $field->id : $field->template . \wp_rand(0,1000); 147 147 148 148 // don't add if it's not our screen. -
maxbuttons/trunk/classes/upgrader/license.php
r2977942 r3586921 77 77 if ($free_url != '') 78 78 $args["free_url"] = $free_url; 79 80 //$api_url = add_query_arg($args, $this->api_url);81 82 //header('Content-Type: application/json');83 84 if ($error) // errors before the request85 {86 return $error_body;87 //echo json_encode($error_body);88 // exit();89 }90 79 91 80 $data = $this->do_api_post($args); … … 163 152 case 'expired' : 164 153 $message = sprintf( 165 __( 'Your license key expired on %s.', 'maxbuttons -pro' ),154 __( 'Your license key expired on %s.', 'maxbuttons' ), 166 155 date_i18n( get_option( 'date_format' ), strtotime( strval($data->expires), current_time( 'timestamp' ) ) ) 167 156 ); … … 169 158 case 'revoked' : 170 159 case 'disabled' : 171 $message = __( 'Your license key has been disabled.','maxbuttons -pro');160 $message = __( 'Your license key has been disabled.','maxbuttons'); 172 161 break; 173 162 case 'missing' : 174 $message = __( 'Invalid license. Please check the license code. ', 'maxbuttons -pro');163 $message = __( 'Invalid license. Please check the license code. ', 'maxbuttons'); 175 164 break; 176 165 case 'invalid' : 177 166 case 'site_inactive' : 178 $message = __( 'Your license is not active for this URL.', 'maxbuttons -pro' );167 $message = __( 'Your license is not active for this URL.', 'maxbuttons' ); 179 168 break; 180 169 case 'item_name_mismatch' : 181 $message = sprintf( __( 'This appears to be an invalid license key for %s.', 'maxbuttons -pro' ), 'MaxButtons PRO' );170 $message = sprintf( __( 'This appears to be an invalid license key for %s.', 'maxbuttons' ), 'MaxButtons PRO' ); 182 171 break; 183 172 case 'no_activations_left': 184 $message = __( 'Your license key has reached its activation limit.','maxbuttons -pro' );173 $message = __( 'Your license key has reached its activation limit.','maxbuttons' ); 185 174 break; 186 175 default : 187 $message = __( 'An error occurred, please try again.', 'maxbuttons -pro' );176 $message = __( 'An error occurred, please try again.', 'maxbuttons' ); 188 177 break; 189 178 } 190 179 $data->additional_info = $message ; 191 // $result = $new_result;192 193 180 return $data; 194 //echo json_encode($result);195 // exit();196 181 } 197 182 -
maxbuttons/trunk/includes/maxbuttons-list.php
r2977449 r3586921 60 60 <?php endif; ?> 61 61 62 <input type="hidden" name="view" value="<?php echo $view->listView?>" />62 <input type="hidden" name="view" value="<?php echo esc_attr($view->listView) ?>" /> 63 63 <?php wp_nonce_field("mb-list","mb-list-nonce"); ?> 64 64 … … 77 77 78 78 <?php if ($view->listView == 'trash'): ?> 79 <button type="button" class='button alignright' value='empty-trash' data-buttonaction='empty-trash' data-confirm="<?php _e('Permanently delete all buttons in trash. Are you sure?', 'maxbuttons -pro') ?>"><?php _e('Empty Trash', 'maxbuttons'); ?></button>79 <button type="button" class='button alignright' value='empty-trash' data-buttonaction='empty-trash' data-confirm="<?php _e('Permanently delete all buttons in trash. Are you sure?', 'maxbuttons') ?>"><?php _e('Empty Trash', 'maxbuttons'); ?></button> 80 80 <?php endif; ?> 81 81 <?php do_action("mb-display-pagination", $view->pageArgs, 'top'); ?> -
maxbuttons/trunk/includes/maxbuttons-no-simplexml.php
r2716443 r3586921 11 11 12 12 $admin = MB()->getClass('admin'); 13 $page_title = __("Packs","maxbuttons -pro");13 $page_title = __("Packs","maxbuttons"); 14 14 15 15 $admin->get_header(array("title" => $page_title) ); -
maxbuttons/trunk/includes/maxbuttons-support.php
r2171726 r3586921 46 46 echo maxbuttons_system_label('MySQL Version:', $mysql_version, 8) ?> 47 47 48 <?php echo maxbuttons_system_label('Web Server:', $_SERVER['SERVER_SOFTWARE'], 11) ?> 48 <?php 49 $software = isset($_SERVER['SERVER_SOFTWARE']) ? $_SERVER['SERVER_SOFTWARE'] : ''; 50 echo maxbuttons_system_label('Web Server:', esc_html($software) , 11) 51 ?> 49 52 50 53 <?php echo maxbuttons_system_label('WordPress URL:', get_bloginfo('wpurl'), 8) ?> -
maxbuttons/trunk/index.php
r1384110 r3586921 1 <?php 1 2 // silence -
maxbuttons/trunk/maxbuttons.php
r3361572 r3586921 1 1 <?php 2 2 /* 3 Plugin Name: MaxButtons 3 Plugin Name: MaxButtons - Create buttons 4 4 Plugin URI: http://maxbuttons.com 5 5 Description: The best WordPress button generator. This is the free version; the Pro version <a href="http://maxbuttons.com/?ref=mbfree">can be found here</a>. 6 Version: 9.8. 56 Version: 9.8.6 7 7 Author: Max Foundry 8 8 Author URI: http://maxfoundry.com 9 9 Text Domain: maxbuttons 10 10 Domain Path: /languages 11 License: GPL v2 or later 12 11 13 12 14 Copyright 2025 Max Foundry, LLC (http://maxfoundry.com) … … 17 19 define("MAXBUTTONS_ROOT_FILE", __FILE__); 18 20 if (! defined('MAXBUTTONS_VERSION_NUM')) 19 define('MAXBUTTONS_VERSION_NUM', '9.8. 5');21 define('MAXBUTTONS_VERSION_NUM', '9.8.6'); 20 22 21 define('MAXBUTTONS_RELEASE'," 15 September 2025");23 define('MAXBUTTONS_RELEASE',"26 June 2026"); 22 24 23 25 if (! function_exists('MaxButtons\maxbutton_double_load')) -
maxbuttons/trunk/readme.txt
r3361572 r3586921 3 3 Tags: butotn creator, share button, css3 button generator, responsive buttons, css wordpress button 4 4 Requires at least: 5.0 5 Tested up to: 6.85 Tested up to: 7.0 6 6 License: GPL v2 or later 7 7 License URI: https://www.gnu.org/licenses/gpl-2.0.html 8 8 Requires PHP: 7.0 9 Stable tag: 9.8. 59 Stable tag: 9.8.6 10 10 11 11 Maxbuttons is the best and easiest button plugin for WordPress. Within minutes you can create beautiful buttons, share buttons and social icons. … … 279 279 == Changelog == 280 280 281 = 9.8.6 = 282 283 - Maintenance release 284 - Fix - Missing escape on view parameter in maxbutton list 285 - Compatible and tested with latest WordPress (7.0) and PHP (8.3) 286 281 287 = 9.8.5 = 282 288
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)