@@ -78,17 +78,11 @@ public function init_styles() {
78
78
$ admin_pages = $ this ->admin_pages ();
79
79
80
80
if ( is_admin () && isset ( $ _REQUEST ['page ' ] ) && in_array ( $ _REQUEST ['page ' ], $ admin_pages ) ) {
81
- add_action ( 'admin_enqueue_scripts ' , array ( $ this , 'register_fontawesome_style ' ), 0 );
82
81
add_action ( 'admin_enqueue_scripts ' , array ( $ this , 'admin_css_load ' ) );
83
82
do_action ( $ this ->plugin_name . '_init_styles ' );
84
83
}
85
84
}
86
85
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
-
92
86
public function register_modal_scripts () {
93
87
$ suffix = defined ('SCRIPT_DEBUG ' ) && SCRIPT_DEBUG ? '' : '.min ' ;
94
88
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() {
352
346
/*-----------------------------------------------------------------------------------*/
353
347
public function get_font_weights () {
354
348
$ font_weights = array (
349
+ '' => __ ( 'Default ' ),
355
350
'300 ' => __ ( 'Thin ' , 'a3-lazy-load ' ),
356
351
'300 italic ' => __ ( 'Thin/Italic ' , 'a3-lazy-load ' ),
357
352
'normal ' => __ ( 'Normal ' , 'a3-lazy-load ' ),
@@ -1035,7 +1030,7 @@ public function save_settings( $options, $option_name = '' ) {
1035
1030
1036
1031
public function reset_settings ( $ options , $ option_name = '' , $ reset = false , $ free_version = false ) {
1037
1032
1038
- if ( $ reset ) {
1033
+ if ( $ reset && ! $ free_version ) {
1039
1034
check_admin_referer ( 'save_settings_ ' . $ this ->plugin_name );
1040
1035
1041
1036
if ( ! current_user_can ( 'manage_options ' ) ) {
@@ -2187,8 +2182,8 @@ class="a3rev-ui-<?php echo esc_attr( sanitize_title( $value['type'] ) ); ?>-butt
2187
2182
data-confirm_message="<?php echo esc_attr ( $ confirm_message ); ?> "
2188
2183
<?php } ?>
2189
2184
><?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>
2192
2187
2193
2188
<!-- Progress Bar -->
2194
2189
<?php if ( ! empty ( $ notice ) ) { ?>
@@ -2244,7 +2239,7 @@ class="a3rev-ui-<?php echo esc_attr( sanitize_title( $value['type'] ) ); ?>-butt
2244
2239
<span class="a3rev-ui-statistic-separate">/</span>
2245
2240
<span class="a3rev-ui-statistic-total-item"><?php echo esc_html ( $ total_items ); ?> </span>
2246
2241
<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>
2248
2243
</div>
2249
2244
</div>
2250
2245
<?php
@@ -2773,6 +2768,7 @@ class="a3rev-ui-<?php echo esc_attr( sanitize_title( $value['type'] ) ); ?>-size
2773
2768
id="<?php echo esc_attr ( $ id_attribute ); ?> -line_height"
2774
2769
class="a3rev-ui-<?php echo esc_attr ( sanitize_title ( $ value ['type ' ] ) ); ?> -line_height chzn-select <?php if ( is_rtl () ) { echo 'chzn-rtl ' ; } ?> "
2775
2770
>
2771
+ <option value="" selected="selected"><?php esc_html_e ( 'Default ' ); ?> </option>
2776
2772
<?php
2777
2773
for ( $ i = 0.6 ; $ i <= 3.1 ; $ i = $ i + 0.1 ) {
2778
2774
?>
0 commit comments