Plugin Directory

Changeset 3015331


Ignore:
Timestamp:
12/29/2023 07:03:50 AM (2 years ago)
Author:
aikezi
Message:

nang cap plugin len phien ban moi

Location:
aikezi-solutions/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • aikezi-solutions/trunk/aikezi-solutions.php

    r3015297 r3015331  
    44 * Plugin URI: https://aikezi.com/aikezi-solitions-plugin
    55 * Description: This is the main plugin of the Wordpress website design and marketing toolkit. This plugin is required when using other Aikezi plugins. (Đây là plugin chính và bắt buộc trước khi sử dụng các plugin hỗ trợ thiết hế web hoặc marketing khác của Aikezi.)
    6  * Version: 2.2
     6 * Version: 2.3
    77 * Author: Aikezi
    88 * Author URI: https://aikezi.com
  • aikezi-solutions/trunk/assets/css/form.css

    r2827421 r3015331  
    1414    width: 300px;
    1515}
    16 .content-logo {
    17   width: 25%;
    18   float: left;
    19 }
  • aikezi-solutions/trunk/database/aikezi-database.php

    r3015297 r3015331  
    1212    //create table on options database when active
    1313    public function aikezi_solutions_active() {
    14         add_option('aikezi_solutions_version', '2.2', '', 'yes');
     14        add_option('aikezi_solutions_version', '2.3', '', 'yes');
    1515        global $wpdb;
    1616        $table_name = $wpdb->prefix . "options";
  • aikezi-solutions/trunk/includes/admin.php

    r3015297 r3015331  
    99        add_action('admin_menu', array ($this, 'aikeziSolutionsMenuPage'));
    1010        add_action('admin_init', array ($this, 'aikeziSolutionsAddField'));
    11         add_action( 'admin_enqueue_scripts', 'enqueue_custom_scripts' );
    12         add_action('wp_ajax_check_image_format', 'check_image_format');
    13         add_action('wp_ajax_nopriv_check_image_format', 'check_image_format');
    1411    }
    1512   
    16     public function enqueue_custom_scripts() {
    17         wp_enqueue_media();
    18         wp_enqueue_script( 'custom-js', AIKEZI_S_ASSETS_URL . 'js/getImage.js', array('jquery'), '1.0', true );
    19     }
    2013    //Add menu Aikezi Solutions
    2114    public function aikeziSolutionsMenuPage() {
     
    5851    }
    5952   
    60     public function check_image_format() {
    61         if (isset($_POST['image_url'])){
    62             $url = $_POST['image_url'];
    63             $extension = strtolower(pathinfo($url, PATHINFO_EXTENSION));
    64             $allowed_formats = array('jpg', 'jpeg', 'png', 'gif');
    65    
    66             if (in_array($extension, $allowed_formats)) {
    67                 echo 'Định dạng hợp lệ!';
    68             } else {
    69                 echo 'Vui lòng chọn định dạng file: jpg, jpeg, png hoặc gif.';
    70             }
    71             exit;
    72         }
    73     }
    7453    public function validate_info($data_input) {
    7554       
  • aikezi-solutions/trunk/includes/aikezi-shortcode.php

    r3015297 r3015331  
    1212    public function aikezi_s_scripts() {
    1313        wp_enqueue_style('aikezi-css-label', AIKEZI_S_ASSETS_URL . 'css/info-label.css');
    14         wp_enqueue_script( 'custom-js', AIKEZI_S_ASSETS_URL . 'js/getImage.js', array('jquery'), '1.0', true );
    1514    }
    1615   
  • aikezi-solutions/trunk/includes/views/info-form.php

    r3015297 r3015331  
    3030            <?php
    3131                if ( !empty($this -> _setting_options) ) {
    32                     echo "<img src='" . $this -> _setting_options['aikezi_solutions_logo_url'] . "'
    33                           width='200' />";
     32                    echo "<div class='aikezi_solution_image_visible'><img src='" . $this -> _setting_options['aikezi_solutions_logo_url'] . "'
     33                          width='200' /></div>";
    3434                }
    3535            ?>
    36             <img type="text" id="aikezi_solutions_admin_preview" src="" alt="" />
     36           
    3737             <input id="aikezi_solutions_image_button" type="button" value="<?php echo esc_html("Browse Photos"); ?>" class="button-secondary" />
     38             <input id="aikezi_solutions_logo_fullName" name="aikezi_solutions_image_fullName" type="text" value="" />
    3839            <input id="aikezi_solutions_logo_image" class="regular-text code" type="hidden" name="aikezi_solutions_option_name" value="">
    39             <input id="aikezi_solutions_logo_fullName" name="aikezi_solutions_image_fullName" type="hidden" value="" />
     40           
    4041            <input id="aikezi_solutions_image_alt" name="aikezi_solutions_image_alt" type="hidden" value="" />
    4142
  • aikezi-solutions/trunk/readme.txt

    r3015297 r3015331  
    55Requires at least: 4.9
    66Tested up to: 6.4.2
    7 Stable tag: 2.2
     7Stable tag: 2.3
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7878
    7979== Changelog ==
     80= 2.3 =
     81* update for display setting page
     82
    8083= 2.2 =
    8184* Get Wordpress Media image to make site logo.
Note: See TracChangeset for help on using the changeset viewer.