@@ -78,17 +78,11 @@ public function init_styles() {
7878 $ admin_pages = $ this ->admin_pages ();
7979
8080 if ( is_admin () && isset ( $ _REQUEST ['page ' ] ) && in_array ( $ _REQUEST ['page ' ], $ admin_pages ) ) {
81- add_action ( 'admin_enqueue_scripts ' , array ( $ this , 'register_fontawesome_style ' ), 0 );
8281 add_action ( 'admin_enqueue_scripts ' , array ( $ this , 'admin_css_load ' ) );
8382 do_action ( $ this ->plugin_name . '_init_styles ' );
8483 }
8584 }
8685
87- public function register_fontawesome_style () {
88- $ suffix = defined ('SCRIPT_DEBUG ' ) && SCRIPT_DEBUG ? '' : '.min ' ;
89- wp_register_style ( 'font-awesome-styles ' , $ this ->admin_plugin_url () . '/assets/css/font-awesome ' . $ suffix . '.css ' , array (), '4.5.0 ' , 'all ' );
90- }
91-
9286 public function register_modal_scripts () {
9387 $ suffix = defined ('SCRIPT_DEBUG ' ) && SCRIPT_DEBUG ? '' : '.min ' ;
9488 wp_register_style ( 'bootstrap-modal ' , $ this ->admin_plugin_url () . '/assets/css/modal ' . $ suffix . '.css ' , array (), '4.1.1 ' , 'all ' );
@@ -352,6 +346,7 @@ public function admin_includes() {
352346 /*-----------------------------------------------------------------------------------*/
353347 public function get_font_weights () {
354348 $ font_weights = array (
349+ '' => __ ( 'Default ' ),
355350 '300 ' => __ ( 'Thin ' , 'a3-lazy-load ' ),
356351 '300 italic ' => __ ( 'Thin/Italic ' , 'a3-lazy-load ' ),
357352 'normal ' => __ ( 'Normal ' , 'a3-lazy-load ' ),
@@ -1035,7 +1030,7 @@ public function save_settings( $options, $option_name = '' ) {
10351030
10361031 public function reset_settings ( $ options , $ option_name = '' , $ reset = false , $ free_version = false ) {
10371032
1038- if ( $ reset ) {
1033+ if ( $ reset && ! $ free_version ) {
10391034 check_admin_referer ( 'save_settings_ ' . $ this ->plugin_name );
10401035
10411036 if ( ! current_user_can ( 'manage_options ' ) ) {
@@ -2187,8 +2182,8 @@ class="a3rev-ui-<?php echo esc_attr( sanitize_title( $value['type'] ) ); ?>-butt
21872182 data-confirm_message="<?php echo esc_attr ( $ confirm_message ); ?> "
21882183 <?php } ?>
21892184 ><?php echo esc_html ( $ button_name ); ?> </button>
2190- <span class="a3rev-ui-<?php echo esc_attr ( sanitize_title ( $ value ['type ' ] ) ); ?> -successed"><?php echo esc_html ( $ successed_text ); ?> </span>
2191- <span class="a3rev-ui-<?php echo esc_attr ( sanitize_title ( $ value ['type ' ] ) ); ?> -errors"><?php echo esc_html ( $ errors_text ); ?> </span>
2185+ <span class="a3rev-ui-<?php echo esc_attr ( sanitize_title ( $ value ['type ' ] ) ); ?> -successed"><?php echo wp_kses_post ( wptexturize ( $ successed_text ) ); ?> </span>
2186+ <span class="a3rev-ui-<?php echo esc_attr ( sanitize_title ( $ value ['type ' ] ) ); ?> -errors"><?php echo wp_kses_post ( wptexturize ( $ errors_text ) ); ?> </span>
21922187
21932188 <!-- Progress Bar -->
21942189 <?php if ( ! empty ( $ notice ) ) { ?>
@@ -2244,7 +2239,7 @@ class="a3rev-ui-<?php echo esc_attr( sanitize_title( $value['type'] ) ); ?>-butt
22442239 <span class="a3rev-ui-statistic-separate">/</span>
22452240 <span class="a3rev-ui-statistic-total-item"><?php echo esc_html ( $ total_items ); ?> </span>
22462241 <br />
2247- <span class="a3rev-ui-statistic-item-name"><?php echo esc_html ( $ single_submit ['item_name ' ] ); ?> </span>
2242+ <span class="a3rev-ui-statistic-item-name"><?php echo wp_kses_post ( wptexturize ( $ single_submit ['item_name ' ] ) ); ?> </span>
22482243 </div>
22492244 </div>
22502245 <?php
@@ -2773,6 +2768,7 @@ class="a3rev-ui-<?php echo esc_attr( sanitize_title( $value['type'] ) ); ?>-size
27732768 id="<?php echo esc_attr ( $ id_attribute ); ?> -line_height"
27742769 class="a3rev-ui-<?php echo esc_attr ( sanitize_title ( $ value ['type ' ] ) ); ?> -line_height chzn-select <?php if ( is_rtl () ) { echo 'chzn-rtl ' ; } ?> "
27752770 >
2771+ <option value="" selected="selected"><?php esc_html_e ( 'Default ' ); ?> </option>
27762772 <?php
27772773 for ( $ i = 0.6 ; $ i <= 3.1 ; $ i = $ i + 0.1 ) {
27782774 ?>
0 commit comments