Changeset 3059542
- Timestamp:
- 03/27/2024 07:52:55 AM (2 years ago)
- Location:
- xtoool-ads-box/trunk
- Files:
-
- 40 added
- 2 edited
-
css (added)
-
css/lwcAdmin.css (added)
-
image (added)
-
image/loading.gif (added)
-
js (added)
-
js/lwcAdmin.js (added)
-
lib (added)
-
lib/AdsbxAdmin.php (added)
-
lib/Shortcode.php (added)
-
lib/layui (added)
-
lib/layui/css (added)
-
lib/layui/css/layui.css (added)
-
lib/layui/css/modules (added)
-
lib/layui/css/modules/code.css (added)
-
lib/layui/css/modules/laydate (added)
-
lib/layui/css/modules/laydate/default (added)
-
lib/layui/css/modules/laydate/default/laydate.css (added)
-
lib/layui/css/modules/layer (added)
-
lib/layui/css/modules/layer/default (added)
-
lib/layui/css/modules/layer/default/icon-ext.png (added)
-
lib/layui/css/modules/layer/default/icon.png (added)
-
lib/layui/css/modules/layer/default/layer.css (added)
-
lib/layui/css/modules/layer/default/loading-0.gif (added)
-
lib/layui/css/modules/layer/default/loading-1.gif (added)
-
lib/layui/css/modules/layer/default/loading-2.gif (added)
-
lib/layui/font (added)
-
lib/layui/font/iconfont.eot (added)
-
lib/layui/font/iconfont.svg (added)
-
lib/layui/font/iconfont.ttf (added)
-
lib/layui/font/iconfont.woff (added)
-
lib/layui/font/iconfont.woff2 (added)
-
lib/layui/layui.js (added)
-
lib/swiper (added)
-
lib/swiper/swiper-bundle.min.css (added)
-
lib/swiper/swiper-bundle.min.js (added)
-
lib/swiper/swiper.min.css (added)
-
lib/swiper/swiper.min.js (added)
-
readme.txt (modified) (2 diffs)
-
template (added)
-
template/add_ads.php (added)
-
template/list_ads.php (added)
-
xtoool-ads-box.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
xtoool-ads-box/trunk/readme.txt
r3045328 r3059542 3 3 Author URI: https://www.xtoool.com 4 4 Donate link: https://www.xtoool.com/wordpress/redirecter/ 5 Tags: ads, htaccess, product, image 5 Tags: ads, htaccess, product, image, apache, nginx, post, admin 6 6 Requires at least: 5.3 7 7 Tested up to: 6.3.2 8 Stable tag: 1.0. 08 Stable tag: 1.0.1 9 9 Requires PHP: 5.4 10 10 License: GPLv3 … … 22 22 Shortcode insertion: copy the ads bar's shortcode, insert it into the page 23 23 Convenient management: you can edit the ads bar of multiple pages at one time 24 25 Effect preview: -
xtoool-ads-box/trunk/xtoool-ads-box.php
r3044940 r3059542 4 4 Plugin URI: https://www.xtoool.com/wordpress/ 5 5 Description: Xtoool Ads Box helps you create High-converting product bars to engage customers and grow sales. 6 Version: 1.0. 06 Version: 1.0.1 7 7 Author: xtoool.com 8 8 Author URI: https://www.xtoool.com … … 24 24 namespace plbProductListForBlog; 25 25 26 use Adsbx\AdsbxAdmin; 27 use Adsbx\Shortcode; 28 26 29 if ( ! defined( 'ABSPATH' ) ) { 27 30 exit; … … 38 41 private static $instance = null; 39 42 public $db; 40 const XTPLB_VERSION = '1.0.0'; 43 const XTPLB_VERSION = '1.0.1'; 44 public $AdsbxAdmin_obj = null; 41 45 42 46 public function __construct(){ … … 56 60 register_activation_hook(XTPLB_PATH, [$this, 'activate']); 57 61 $this->_initScript(); 62 63 require_once 'lib/AdsbxAdmin.php'; 64 require_once 'lib/Shortcode.php'; 65 $this->AdsbxAdmin_obj = new AdsbxAdmin($this); 66 new Shortcode($this); 58 67 } 59 68 … … 91 100 ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4;'; 92 101 $wpdb->query($sql3); 102 103 104 $sql4 = 'CREATE TABLE if not exists `' . $wpdb->prefix . 'products_banner_blog` ( 105 `id` int(11) NOT NULL AUTO_INCREMENT, 106 `name` varchar(255) NOT NULL default "", 107 `image_url` varchar(255) NOT NULL default "", 108 `regular_price` varchar(25) NOT NULL default "", 109 `price` varchar(25) NOT NULL default "", 110 `title` varchar(255) NOT NULL default "", 111 `desc` text default null, 112 `shop_btn_text` varchar(255) NOT NULL default "", 113 `shop_btn_link` varchar(1000) NOT NULL default "", 114 `sub_btn_text` varchar(255) NOT NULL default "", 115 `sub_btn_link` varchar(1000) NOT NULL default "", 116 `added_by` int(11) not null default 0, 117 `added_date` datetime default null, 118 `updated_by` int(11) not null default 0, 119 `updated_date` datetime default null, 120 121 PRIMARY KEY (`id`) 122 ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4;'; 123 $wpdb->query($sql4); 93 124 94 125 } … … 266 297 { 267 298 add_menu_page( 'Xtoool Ads Box', 'Xtoool Ads Box', 'manage_options', 'product_list', [&$this, 'productList'] ); 299 add_submenu_page( 'product_list', 'Add Banner Ad', 'Add Banner Ad', 'manage_options', 'add_bannder_ad', [$this->AdsbxAdmin_obj, 'add_bannder_ad'] ); 300 add_submenu_page( 'product_list', 'Banner Ad List', 'Banner Ad List', 'manage_options', 'bannder_ad_list', [$this->AdsbxAdmin_obj, 'bannder_ad_list'] ); 268 301 add_submenu_page( 'product_list', 'Add product', 'Add product', 'manage_options', 'add_product', [&$this, 'addProduct'] ); 269 302 add_submenu_page( 'product_list', 'products List', 'products List', 'manage_options', 'products_list_show', [&$this, 'productsShowList'] );
Note: See TracChangeset
for help on using the changeset viewer.