Changeset 3015331
- Timestamp:
- 12/29/2023 07:03:50 AM (2 years ago)
- Location:
- aikezi-solutions/trunk
- Files:
-
- 7 edited
-
aikezi-solutions.php (modified) (1 diff)
-
assets/css/form.css (modified) (1 diff)
-
database/aikezi-database.php (modified) (1 diff)
-
includes/admin.php (modified) (2 diffs)
-
includes/aikezi-shortcode.php (modified) (1 diff)
-
includes/views/info-form.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
aikezi-solutions/trunk/aikezi-solutions.php
r3015297 r3015331 4 4 * Plugin URI: https://aikezi.com/aikezi-solitions-plugin 5 5 * 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. 26 * Version: 2.3 7 7 * Author: Aikezi 8 8 * Author URI: https://aikezi.com -
aikezi-solutions/trunk/assets/css/form.css
r2827421 r3015331 14 14 width: 300px; 15 15 } 16 .content-logo {17 width: 25%;18 float: left;19 } -
aikezi-solutions/trunk/database/aikezi-database.php
r3015297 r3015331 12 12 //create table on options database when active 13 13 public function aikezi_solutions_active() { 14 add_option('aikezi_solutions_version', '2. 2', '', 'yes');14 add_option('aikezi_solutions_version', '2.3', '', 'yes'); 15 15 global $wpdb; 16 16 $table_name = $wpdb->prefix . "options"; -
aikezi-solutions/trunk/includes/admin.php
r3015297 r3015331 9 9 add_action('admin_menu', array ($this, 'aikeziSolutionsMenuPage')); 10 10 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');14 11 } 15 12 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 }20 13 //Add menu Aikezi Solutions 21 14 public function aikeziSolutionsMenuPage() { … … 58 51 } 59 52 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 }74 53 public function validate_info($data_input) { 75 54 -
aikezi-solutions/trunk/includes/aikezi-shortcode.php
r3015297 r3015331 12 12 public function aikezi_s_scripts() { 13 13 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 );15 14 } 16 15 -
aikezi-solutions/trunk/includes/views/info-form.php
r3015297 r3015331 30 30 <?php 31 31 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>"; 34 34 } 35 35 ?> 36 <img type="text" id="aikezi_solutions_admin_preview" src="" alt="" />36 37 37 <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="" /> 38 39 <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 40 41 <input id="aikezi_solutions_image_alt" name="aikezi_solutions_image_alt" type="hidden" value="" /> 41 42 -
aikezi-solutions/trunk/readme.txt
r3015297 r3015331 5 5 Requires at least: 4.9 6 6 Tested up to: 6.4.2 7 Stable tag: 2. 27 Stable tag: 2.3 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 78 78 79 79 == Changelog == 80 = 2.3 = 81 * update for display setting page 82 80 83 = 2.2 = 81 84 * Get Wordpress Media image to make site logo.
Note: See TracChangeset
for help on using the changeset viewer.