Changeset 3089462
- Timestamp:
- 05/20/2024 01:32:14 PM (19 months ago)
- Location:
- custom-product-list-table/trunk
- Files:
-
- 11 edited
-
custom-product-list-table.php (modified) (7 diffs)
-
includes/admin/class-ww-clt-admin.php (modified) (9 diffs)
-
includes/admin/forms/ww-clt-add-edit-product.php (modified) (12 diffs)
-
includes/admin/forms/ww-clt-product-list.php (modified) (9 diffs)
-
includes/admin/forms/ww-clt-product-save.php (modified) (1 diff)
-
includes/class-ww-clt-model.php (modified) (7 diffs)
-
includes/class-ww-clt-scripts.php (modified) (6 diffs)
-
includes/css/ww-clt-admin.css (modified) (1 diff)
-
includes/ww-clt-post-types.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
-
uninstall.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
custom-product-list-table/trunk/custom-product-list-table.php
r3025747 r3089462 5 5 * Plugin URI: https://viitorcloud.com/blog/ 6 6 * Description: This plugin handles Product's Add, Edit, and Delete functionalities with Category and product's status. 7 * Version: 2.0.07 * Version: 3.0.0 8 8 * Author: Mitali, Viitorcloud 9 9 * Author URI: https://viitorcloud.com/ 10 10 * 11 11 * @package Custom_Product_List_Table 12 * @since 1.0.012 * @since 3.0.0 13 13 */ 14 14 … … 17 17 * 18 18 * @package Category List Table 19 * @since 1.0.019 * @since 3.0.0 20 20 */ 21 21 … … 57 57 * 58 58 * @package Category List Table 59 * @since 1.0.059 * @since 3.0.0 60 60 */ 61 61 load_plugin_textdomain( 'wwclt', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' ); … … 67 67 * 68 68 * @package Category List Table 69 * @since 1.0.069 * @since 3.0.0 70 70 */ 71 71 register_activation_hook( __FILE__, 'ww_clt_install' ); … … 77 77 * It registers a custom post type and flushes rewrite rules. 78 78 * 79 * @since 1.0.079 * @since 3.0.0 80 80 */ 81 81 function ww_clt_install() { … … 98 98 * 99 99 * @package Category List Table 100 * @since 1.0.0100 * @since 3.0.0 101 101 */ 102 102 function ww_clt_uninstall() { … … 114 114 * 115 115 * @package Category List Table 116 * @since 1.0.0116 * @since 3.0.0 117 117 */ 118 118 global $ww_clt_model, $ww_clt_scripts, $ww_clt_admin; -
custom-product-list-table/trunk/includes/admin/class-ww-clt-admin.php
r3025747 r3089462 12 12 * 13 13 * @packageCategory List Table 14 * @since 1.0.014 * @since 3.0.0 15 15 */ 16 16 class Ww_Clt_Admin_Pages { … … 32 32 * 33 33 * @packageCategory List Table 34 * @since 1.0.034 * @since 3.0.0 35 35 */ 36 36 public function ww_clt_admin_menu() { … … 55 55 * 56 56 * @packageCategory List Table 57 * @since 1.0.057 * @since 3.0.0 58 58 */ 59 59 public function ww_clt_add_submenu_list_table_page() { … … 68 68 * 69 69 * @packageCategory List Table 70 * @since 1.0.070 * @since 3.0.0 71 71 */ 72 72 public function ww_clt_add_submenu_page() { … … 82 82 * 83 83 * @packageCategory List Table 84 * @since 1.0.084 * @since 3.0.0 85 85 */ 86 86 public function ww_clt_admin_init() { … … 94 94 * 95 95 * @packageCategory List Table 96 * @since 1.0.096 * @since 3.0.0 97 97 */ 98 98 public function ww_clt_admin_bulk_delete() { … … 138 138 * 139 139 * @packageCategory List Table 140 * @since 1.0.0140 * @since 3.0.0 141 141 */ 142 142 public function ww_clt_admin_change_status() { … … 168 168 * 169 169 * @packageCategory List Table 170 * @since 1.0.0170 * @since 3.0.0 171 171 */ 172 172 public function ww_clt_category_search( $where ) { … … 189 189 * 190 190 * @packageCategory List Table 191 * @since 1.0.0191 * @since 3.0.0 192 192 */ 193 193 public function add_hooks() { -
custom-product-list-table/trunk/includes/admin/forms/ww-clt-add-edit-product.php
r3025747 r3089462 11 11 * 12 12 * @packageCategory List Table 13 * @since 1.0.013 * @since 3.0.0 14 14 */ 15 15 … … 79 79 80 80 <div class="wrap"> 81 < ?php echo screen_icon( 'options-general' ); ?>81 <span class="dashicons dashicons-admin-generic" style="font-size: 32px; margin-right: 10px;"></span> 82 82 83 <h2> <?php echo __( $product_lable, 'wwclt' ); ?> 83 <h2> <?php echo __( $product_lable, 'wwclt' ); ?> 84 84 <a class="add-new-h2" href="admin.php?page=ww_clt_products"><?php echo __( 'Back to List', 'wwclt' ); ?></a> 85 85 </h2> … … 89 89 <div id="ww-clt-product" class="post-box-container"> 90 90 91 <div class="metabox-holder"> 91 <div class="metabox-holder"> 92 92 93 93 <div class="meta-box-sortables ui-sortable"> 94 94 95 <div id="product" class="postbox"> 95 <div id="product" class="postbox"> 96 96 97 97 <div class="handlediv" title="<?php echo __( 'Click to toggle', 'wwclt' ); ?>"><br /> 98 98 </div> 99 99 100 <!-- product box title --> 101 <h3 class="hndle"> 102 <span style="vertical-align: top;"><?php echo __( $product_lable, 'wwclt' ); ?></span> 100 <!-- product box title --> 101 <h3 class="hndle"> 102 <span style="vertical-align: top;"><?php echo __( $product_lable, 'wwclt' ); ?></span> 103 103 </h3> 104 104 … … 112 112 </div> 113 113 114 <table class="form-table ww-clt-product-box"> 114 <table class="form-table ww-clt-product-box"> 115 115 <tbody> 116 116 … … 132 132 ?> 133 133 </td> 134 </tr> 134 </tr> 135 135 136 136 <tr> … … 141 141 </label> 142 142 </th> 143 <td width="35%">143 <td class="td-width"> 144 144 <textarea id="ww_clt_product_desc" name="ww_clt_product_desc" rows="4" class="large-text"><?php echo $model->ww_clt_escape_attr( $data['ww_clt_product_desc'] ); ?></textarea><br /> 145 145 <span class="description"><?php echo __( 'Enter the product description.', 'wwclt' ); ?></span> … … 152 152 ?> 153 153 </td> 154 </tr> 154 </tr> 155 155 156 156 <tr> … … 160 160 </label> 161 161 </th> 162 <td width="35%">162 <td class="td-width"> 163 163 <select id="ww_clt_product_status" name="ww_clt_product_status"> 164 164 <?php … … 175 175 <span class="description"><?php echo __( 'Select the product category.', 'wwclt' ); ?></span> 176 176 </td> 177 </tr> 177 </tr> 178 178 179 179 <tr> … … 183 183 </label> 184 184 </th> 185 <td width="35%">185 <td class="td-width"> 186 186 <select id="ww_clt_product_cat" name="ww_clt_product_cat"> 187 187 <span class="ww-clt-require"> * </span> … … 226 226 </label> 227 227 </th> 228 <td class="ww-clt-avail-chk " width="35%">228 <td class="ww-clt-avail-chk td-width"> 229 229 <input type="checkbox" name="ww_clt_product_avail[]" value="Client"<?php echo checked( in_array( 'Client', $data['ww_clt_product_avail'] ), true, false ); ?>/> 230 230 <label><?php echo __( ' Client', 'wwclt' ); ?></label> … … 242 242 </label> 243 243 </th> 244 <td width="35%">244 <td class="td-width"> 245 245 <input type="radio" id="ww_clt_featured_product" name="ww_clt_featured_product" value="1"<?php echo checked( '1', $data['ww_clt_featured_product'], false ); ?>/><?php echo __( 'Yes', 'wwclt' ); ?> 246 246 <input type="radio" id="ww_clt_featured_product" name="ww_clt_featured_product" value="0"<?php echo checked( '0', $data['ww_clt_featured_product'], false ); ?>/><?php echo __( 'No', 'wwclt' ); ?> -
custom-product-list-table/trunk/includes/admin/forms/ww-clt-product-list.php
r3025747 r3089462 12 12 * 13 13 * @packageCategory List Table 14 * @since 1.0.014 * @since 3.0.0 15 15 */ 16 16 … … 45 45 * 46 46 * @packageCategory List Table 47 * @since 1.0.047 * @since 3.0.0 48 48 */ 49 49 public function display_products() { … … 96 96 * 97 97 * @packageCategory List Table 98 * @since 1.0.098 * @since 3.0.0 99 99 */ 100 100 public function column_default( $item, $column_name ) { … … 122 122 * 123 123 * @packageCategory List Table 124 * @since 1.0.0124 * @since 3.0.0 125 125 */ 126 126 public function column_post_title( $item ) { … … 186 186 * 187 187 * @packageCategory List Table 188 * @since 1.0.0188 * @since 3.0.0 189 189 */ 190 190 public function get_columns() { … … 207 207 * 208 208 * @packageCategory List Table 209 * @since 1.0.0209 * @since 3.0.0 210 210 */ 211 211 public function get_sortable_columns() { … … 231 231 * 232 232 * @packageCategory List Table 233 * @since 1.0.0233 * @since 3.0.0 234 234 */ 235 235 public function get_bulk_actions() { … … 340 340 * Generates content for a single row of the table 341 341 * 342 * @since 3. 1.0342 * @since 3.0.0 343 343 * @access protected 344 344 * … … 499 499 <div class="wrap"> 500 500 501 <?php echo screen_icon( 'options-general' ); ?>501 <span class="dashicons dashicons-admin-generic" style="font-size: 32px; margin-right: 10px;"></span> 502 502 503 503 <h2> -
custom-product-list-table/trunk/includes/admin/forms/ww-clt-product-save.php
r3025747 r3089462 12 12 * 13 13 * @packageCategory List Table 14 * @since 1.0.014 * @since 3.0.0 15 15 */ 16 16 global $errmsg, $wpdb, $user_ID, $ww_clt_model, $error; -
custom-product-list-table/trunk/includes/class-ww-clt-model.php
r3025747 r3089462 17 17 * 18 18 * @packageCategory List Table 19 * @since 1.0.019 * @since 3.0.0 20 20 */ 21 21 public function ww_clt_get_products( $args = array() ) { … … 66 66 * 67 67 * @packageCategory List Table 68 * @since 1.0.068 * @since 3.0.0 69 69 */ 70 70 public function ww_clt_object_to_array( $result ) { … … 87 87 * 88 88 * @packageCategory List Table 89 * @since 1.0.089 * @since 3.0.0 90 90 */ 91 91 public function ww_clt_escape_attr( $data ) { … … 99 99 * 100 100 * @packageCategory List Table 101 * @since 1.0.0101 * @since 3.0.0 102 102 * @param mixed $data Data to be processed. Can be an array or a string. 103 103 * @param bool $flag Optional. Flag to determine further processing. Default is false. … … 125 125 * 126 126 * @packageCategory List Table 127 * @since 1.0.0127 * @since 3.0.0 128 128 * @param mixed $data Data to be sanitized. Can be an array or a string. 129 129 * @return mixed Sanitized data. … … 149 149 * 150 150 * @packageCategory List Table 151 * @since 1.0.0151 * @since 3.0.0 152 152 * @param array $args { 153 153 * Optional. Array of arguments. … … 170 170 * 171 171 * @packageCategory List Table 172 * @since 1.0.0172 * @since 3.0.0 173 173 */ 174 174 public function ww_clt_text_from_value_status( $value ) { -
custom-product-list-table/trunk/includes/class-ww-clt-scripts.php
r3025747 r3089462 13 13 * 14 14 * @packageCategory List Table 15 * @since 1.0.015 * @since 3.0.0 16 16 */ 17 17 class Ww_Clt_Scripts { … … 26 26 * 27 27 * @packageCategory List Table 28 * @since 1.0.028 * @since 3.0.0 29 29 */ 30 30 public function ww_clt_admin_print_styles() { … … 41 41 * 42 42 * @packageCategory List Table 43 * @since 1.0.043 * @since 3.0.0 44 44 */ 45 45 public function ww_clt_add_product_page_load_scripts() { … … 62 62 * 63 63 * @packageCategory List Table 64 * @since 1.0.064 * @since 3.0.0 65 65 */ 66 66 public function ww_clt_page_print_scripts( $hook_suffix ) { … … 84 84 * 85 85 * @packageCategory List Table 86 * @since 1.0.086 * @since 3.0.0 87 87 */ 88 88 public function ww_select_category_submenu() { … … 137 137 * 138 138 * @packageCategory List Table 139 * @since 1.0.0139 * @since 3.0.0 140 140 */ 141 141 public function add_hooks() { -
custom-product-list-table/trunk/includes/css/ww-clt-admin.css
r1760074 r3089462 19 19 background-color : #FFF0FF; 20 20 } 21 .td-width { 22 width: 35%; 23 } -
custom-product-list-table/trunk/includes/ww-clt-post-types.php
r3025747 r3089462 15 15 * 16 16 * @package Category List Table 17 * @since 1.0.017 * @since 3.0.0 18 18 */ 19 19 function ww_clt_reg_create_post_type() { … … 57 57 * 58 58 * @packageCategory List Table 59 * @since 1.0.059 * @since 3.0.0 60 60 */ 61 61 function ww_clt_reg_taxonomy() { -
custom-product-list-table/trunk/readme.txt
r3025747 r3089462 4 4 Tags: Product, List Table, Product category, without woocomemrce, Product List, Custom product Table 5 5 Requires at least: 3.8 6 Tested up to: 6. 4.26 Tested up to: 6.5.3 7 7 Requires PHP: 5.2.4 8 8 Stable tag: 3.2.0 -
custom-product-list-table/trunk/uninstall.php
r3025747 r3089462 5 5 * 6 6 * @package Custom_Product_List_Table 7 * @since 1.0.07 * @since 3.0.0 8 8 */ 9 9 … … 20 20 * 21 21 * @packageCategory List Table 22 * @since 1.0.022 * @since 3.0.0 23 23 */ 24 24
Note: See TracChangeset
for help on using the changeset viewer.