Plugin Directory

Changeset 3166863


Ignore:
Timestamp:
10/11/2024 02:43:04 AM (18 months ago)
Author:
website366
Message:

#update 1.6

Location:
all-in-one-contact-buttons-wpshare247/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • all-in-one-contact-buttons-wpshare247/trunk/all-in-one-contact-buttons-wpshare247.php

    r3162163 r3166863  
    44 * Plugin URI: https://wpshare247.com/
    55 * Description: Floating click to contact buttons All-In-One
    6  * Version: 1.5
     6 * Version: 1.6
    77 * Author: Wpshare247.com
    88 * Author URI: https://wpshare247.com
  • all-in-one-contact-buttons-wpshare247/trunk/inc/class.setting.page.php

    r3162163 r3166863  
    1313                $this->option_group = self::FIELDS_GROUP;
    1414                $this->setting_page_url = admin_url('admin.php?page='.$this->slug);
     15
    1516                add_action('admin_head', array( $this, 'admin_head' ) );
    1617                add_action('admin_menu',  array( $this, 'add_setting_page' ) );
     
    146147                                            'hide_text_company_telegram','hide_text_icon_google_map',
    147148                                            'text_contact_bottom', 'zalo_oa_id', 'icons_animation',
    148                                             'hide_hotline_number_only'
     149                                            'hide_hotline_number_only',
     150                                            'icon_youtube', 'text_icon_youtube', 'hide_icon_youtube'
    149151                                        );
    150152
     153            //----------------
    151154            $arr_register_fields = apply_filters(
    152155                                            'ws247_aio_register_field',
    153156                                            $arr_register_fields
    154157                                        );
    155            
     158
    156159            if($arr_register_fields){
    157160                foreach($arr_register_fields as $key){
     
    159162                }
    160163            }
     164
     165            //----------------
     166            $arr_cust_sys_fields = array();
     167            $arr_cust_sys_fields = apply_filters(
     168                                            'ws247_aio_register_sys_field',
     169                                            $arr_cust_sys_fields
     170                                        );
     171            if(is_array($arr_cust_sys_fields)){
     172                foreach($arr_cust_sys_fields as $key){
     173                    $this->register_field($key);
     174                    $this->register_field('text_'.$key);
     175                    $this->register_field('hide_'.$key);
     176                }
     177            }
    161178        }
    162179       
     
    206223                                    'dashicons-location', 'Google', 'Địa chỉ công ty', 'Chỉ đường bản đồ',
    207224                                    'ws247-icon-map', '<i class="fas fa-map-marker" aria-hidden="true"></i>'
     225                                ),
     226
     227                            'icon_youtube'
     228                                => array(
     229                                    'dashicons-youtube', 'Youtube', 'https://www.youtube.com/@hocwordpress/videos', 'Kênh Youtube',
     230                                    'ws247-icon-youtube', '<i class="fa-brands fa-youtube"></i>'
    208231                                ),
    209232                        );
     
    248271                        $datakey = $field;
    249272                        $dashicons = $arr_item[0];
     273                        if(!$dashicons && isset($arr_item[5])){
     274                            $font_i = $arr_item[5];
     275                        }
    250276                        $label = $arr_item[1];
    251277                        $placeholder = $arr_item[2];
  • all-in-one-contact-buttons-wpshare247/trunk/readme.txt

    r3162163 r3166863  
    66Tested up to: 6.6.2
    77Requires PHP: 5.6
    8 Stable tag: 1.5
     8Stable tag: 1.6
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    148148* Update: link zalo, email, google
    149149
     150= 1.6 =
     151* Update: link youtube
     152
    150153== Upgrade Notice ==
    151154
Note: See TracChangeset for help on using the changeset viewer.