Skip to content

Commit

Permalink
Release new version 2.6.0
Browse files Browse the repository at this point in the history
= 2.6.0 - 2023/01/03 =
* This feature release removes the fontawesome lib and replaces icons with SVGs plus adds Default Topography option to font controls.
* Feature - Convert icon from font awesome to SVG
* Feature - Update styling for new SVG icons
* Plugin Framework - Update typography control from plugin framework to add support for Default value
* Plugin Framework - Default value will get fonts set in the theme.
* Plugin Framework - Change generate typography style for change on typography control
* Plugin Framework - Remove fontawesome lib
  • Loading branch information
alextuan committed Jan 3, 2023
1 parent de9dd84 commit c19b84e
Show file tree
Hide file tree
Showing 12 changed files with 53 additions and 2,768 deletions.
16 changes: 6 additions & 10 deletions admin/admin-interface.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,11 @@ public function init_styles() {
$admin_pages = $this->admin_pages();

if ( is_admin() && isset( $_REQUEST['page'] ) && in_array( $_REQUEST['page'], $admin_pages ) ) {
add_action( 'admin_enqueue_scripts', array( $this, 'register_fontawesome_style' ), 0 );
add_action( 'admin_enqueue_scripts', array( $this, 'admin_css_load' ) );
do_action( $this->plugin_name . '_init_styles' );
}
}

public function register_fontawesome_style() {
$suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min';
wp_register_style( 'font-awesome-styles', $this->admin_plugin_url() . '/assets/css/font-awesome' . $suffix . '.css', array(), '4.5.0', 'all' );
}

public function register_modal_scripts() {
$suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min';
wp_register_style( 'bootstrap-modal', $this->admin_plugin_url() . '/assets/css/modal' . $suffix . '.css', array(), '4.1.1', 'all' );
Expand Down Expand Up @@ -352,6 +346,7 @@ public function admin_includes() {
/*-----------------------------------------------------------------------------------*/
public function get_font_weights() {
$font_weights = array (
'' => __( 'Default' ),
'300' => __( 'Thin', 'page-views-count' ),
'300 italic' => __( 'Thin/Italic', 'page-views-count' ),
'normal' => __( 'Normal', 'page-views-count' ),
Expand Down Expand Up @@ -1035,7 +1030,7 @@ public function save_settings( $options, $option_name = '' ) {

public function reset_settings( $options, $option_name = '', $reset = false, $free_version = false ) {

if ( $reset ) {
if ( $reset && ! $free_version ) {
check_admin_referer( 'save_settings_' . $this->plugin_name );

if ( ! current_user_can( 'manage_options' ) ) {
Expand Down Expand Up @@ -2187,8 +2182,8 @@ class="a3rev-ui-<?php echo esc_attr( sanitize_title( $value['type'] ) ); ?>-butt
data-confirm_message="<?php echo esc_attr( $confirm_message ); ?>"
<?php } ?>
><?php echo esc_html( $button_name ); ?></button>
<span class="a3rev-ui-<?php echo esc_attr( sanitize_title( $value['type'] ) ); ?>-successed"><?php echo esc_html( $successed_text ); ?></span>
<span class="a3rev-ui-<?php echo esc_attr( sanitize_title( $value['type'] ) ); ?>-errors"><?php echo esc_html( $errors_text ); ?></span>
<span class="a3rev-ui-<?php echo esc_attr( sanitize_title( $value['type'] ) ); ?>-successed"><?php echo wp_kses_post( wptexturize( $successed_text ) ); ?></span>
<span class="a3rev-ui-<?php echo esc_attr( sanitize_title( $value['type'] ) ); ?>-errors"><?php echo wp_kses_post( wptexturize( $errors_text ) ); ?></span>

<!-- Progress Bar -->
<?php if ( ! empty( $notice ) ) { ?>
Expand Down Expand Up @@ -2244,7 +2239,7 @@ class="a3rev-ui-<?php echo esc_attr( sanitize_title( $value['type'] ) ); ?>-butt
<span class="a3rev-ui-statistic-separate">/</span>
<span class="a3rev-ui-statistic-total-item"><?php echo esc_html( $total_items ); ?></span>
<br />
<span class="a3rev-ui-statistic-item-name"><?php echo esc_html( $single_submit['item_name'] ); ?></span>
<span class="a3rev-ui-statistic-item-name"><?php echo wp_kses_post( wptexturize( $single_submit['item_name'] ) ); ?></span>
</div>
</div>
<?php
Expand Down Expand Up @@ -2773,6 +2768,7 @@ class="a3rev-ui-<?php echo esc_attr( sanitize_title( $value['type'] ) ); ?>-size
id="<?php echo esc_attr( $id_attribute ); ?>-line_height"
class="a3rev-ui-<?php echo esc_attr( sanitize_title( $value['type'] ) ); ?>-line_height chzn-select <?php if ( is_rtl() ) { echo 'chzn-rtl'; } ?>"
>
<option value="" selected="selected"><?php esc_html_e( 'Default' ); ?></option>
<?php
for ( $i = 0.6; $i <= 3.1; $i = $i + 0.1 ) {
?>
Expand Down
2 changes: 1 addition & 1 deletion admin/admin-ui.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Admin_UI
* You must change to correct plugin name that you are working
*/

public $framework_version = '2.6.2';
public $framework_version = '2.7.0';
public $plugin_name = A3_PVC_KEY;
public $plugin_path = A3_PVC_PLUGIN_NAME;
public $google_api_key_option = '';
Expand Down
Loading

0 comments on commit c19b84e

Please sign in to comment.