Changeset 2572600
- Timestamp:
- 07/26/2021 08:17:46 PM (5 years ago)
- Location:
- rays-grid
- Files:
-
- 87 added
- 7 edited
-
tags/1.2.3 (added)
-
tags/1.2.3/assets (added)
-
tags/1.2.3/assets/admin (added)
-
tags/1.2.3/assets/admin/css (added)
-
tags/1.2.3/assets/admin/css/admin.css (added)
-
tags/1.2.3/assets/admin/images (added)
-
tags/1.2.3/assets/admin/images/ico.png (added)
-
tags/1.2.3/assets/admin/images/logo.png (added)
-
tags/1.2.3/assets/admin/images/port-img-2.jpg (added)
-
tags/1.2.3/assets/admin/images/port-img-3.jpg (added)
-
tags/1.2.3/assets/admin/images/port-img-4.jpg (added)
-
tags/1.2.3/assets/admin/images/port-img.jpg (added)
-
tags/1.2.3/assets/admin/images/short-logo.png (added)
-
tags/1.2.3/assets/admin/js (added)
-
tags/1.2.3/assets/admin/js/alpha-color.js (added)
-
tags/1.2.3/assets/admin/js/assets.js (added)
-
tags/1.2.3/assets/admin/js/script.js (added)
-
tags/1.2.3/assets/public (added)
-
tags/1.2.3/assets/public/css (added)
-
tags/1.2.3/assets/public/css/assets.css (added)
-
tags/1.2.3/assets/public/css/custom-style.css (added)
-
tags/1.2.3/assets/public/css/images (added)
-
tags/1.2.3/assets/public/css/images/border.png (added)
-
tags/1.2.3/assets/public/css/images/controls.png (added)
-
tags/1.2.3/assets/public/css/images/loading.gif (added)
-
tags/1.2.3/assets/public/css/images/loading_background.png (added)
-
tags/1.2.3/assets/public/css/images/overlay.png (added)
-
tags/1.2.3/assets/public/css/style.css (added)
-
tags/1.2.3/assets/public/css/vendor (added)
-
tags/1.2.3/assets/public/css/vendor/font.awesome.css (added)
-
tags/1.2.3/assets/public/css/vendor/icomoon.css (added)
-
tags/1.2.3/assets/public/css/vendor/linea-icons.css (added)
-
tags/1.2.3/assets/public/css/vendor/magnific-popup.css (added)
-
tags/1.2.3/assets/public/css/vendor/slick.slider.css (added)
-
tags/1.2.3/assets/public/fonts (added)
-
tags/1.2.3/assets/public/fonts/fontAwesome.otf (added)
-
tags/1.2.3/assets/public/fonts/fontawesome-webfont.eot (added)
-
tags/1.2.3/assets/public/fonts/fontawesome-webfont.svg (added)
-
tags/1.2.3/assets/public/fonts/fontawesome-webfont.ttf (added)
-
tags/1.2.3/assets/public/fonts/fontawesome-webfont.woff (added)
-
tags/1.2.3/assets/public/fonts/fontawesome-webfont.woff2 (added)
-
tags/1.2.3/assets/public/fonts/icomoon.eot (added)
-
tags/1.2.3/assets/public/fonts/icomoon.svg (added)
-
tags/1.2.3/assets/public/fonts/icomoon.ttf (added)
-
tags/1.2.3/assets/public/fonts/icomoon.woff (added)
-
tags/1.2.3/assets/public/fonts/linea-icons.eot (added)
-
tags/1.2.3/assets/public/fonts/linea-icons.svg (added)
-
tags/1.2.3/assets/public/fonts/linea-icons.ttf (added)
-
tags/1.2.3/assets/public/fonts/linea-icons.woff (added)
-
tags/1.2.3/assets/public/images (added)
-
tags/1.2.3/assets/public/js (added)
-
tags/1.2.3/assets/public/js/assets.js (added)
-
tags/1.2.3/assets/public/js/script.js (added)
-
tags/1.2.3/assets/public/js/vendor (added)
-
tags/1.2.3/assets/public/js/vendor/colorbox.js (added)
-
tags/1.2.3/assets/public/js/vendor/hoverdir.js (added)
-
tags/1.2.3/assets/public/js/vendor/imagesloaded.js (added)
-
tags/1.2.3/assets/public/js/vendor/isotope.js (added)
-
tags/1.2.3/assets/public/js/vendor/magnific.popup.js (added)
-
tags/1.2.3/assets/public/js/vendor/modernizr.js (added)
-
tags/1.2.3/assets/public/js/vendor/slick.slider.js (added)
-
tags/1.2.3/includes (added)
-
tags/1.2.3/includes/admin (added)
-
tags/1.2.3/includes/admin/vc (added)
-
tags/1.2.3/includes/admin/vc/raysgrid.php (added)
-
tags/1.2.3/includes/admin/vc/shortcode-portfolio.php (added)
-
tags/1.2.3/includes/admin/vc/vc_portfolio.php (added)
-
tags/1.2.3/includes/admin/views (added)
-
tags/1.2.3/includes/admin/views/footer.php (added)
-
tags/1.2.3/includes/admin/views/grids-list.php (added)
-
tags/1.2.3/includes/admin/views/header.php (added)
-
tags/1.2.3/includes/admin/views/import_export.php (added)
-
tags/1.2.3/includes/admin/views/main-form.php (added)
-
tags/1.2.3/includes/array_column.php (added)
-
tags/1.2.3/includes/class-base.php (added)
-
tags/1.2.3/includes/class-db.php (added)
-
tags/1.2.3/includes/config.php (added)
-
tags/1.2.3/includes/display-field.php (added)
-
tags/1.2.3/includes/form.php (added)
-
tags/1.2.3/includes/global-functions.php (added)
-
tags/1.2.3/includes/public (added)
-
tags/1.2.3/includes/public/shortcode.php (added)
-
tags/1.2.3/index.php (added)
-
tags/1.2.3/languages (added)
-
tags/1.2.3/languages/raysgrid.pot (added)
-
tags/1.2.3/rays-grid.php (added)
-
tags/1.2.3/readme.txt (added)
-
trunk/assets/admin/js/script.js (modified) (2 diffs)
-
trunk/includes/array_column.php (modified) (1 diff)
-
trunk/includes/class-base.php (modified) (1 diff)
-
trunk/includes/class-db.php (modified) (4 diffs)
-
trunk/includes/display-field.php (modified) (2 diffs)
-
trunk/rays-grid.php (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
rays-grid/trunk/assets/admin/js/script.js
r2361557 r2572600 409 409 } 410 410 411 that.click(function () { 411 that.on('click', function () { 412 413 let vl = that.find('input[type="radio"]').val(); 412 414 413 415 $('.portfolio-item input[type="radio"]').removeAttr('checked'); … … 416 418 $('.portfolio-item').removeClass('selected-skin'); 417 419 that.addClass('selected-skin'); 420 421 $('.rsgd-choose-skin').attr('value', vl); 418 422 419 423 }); -
rays-grid/trunk/includes/array_column.php
r1792096 r2572600 1 1 <?php 2 /**3 * This file is part of the array_column library4 *5 * For the full copyright and license information, please view the LICENSE6 * file that was distributed with this source code.7 *8 * @copyright Copyright (c) Ben Ramsey (http://benramsey.com)9 * @license http://opensource.org/licenses/MIT MIT10 */11 2 12 3 if (!function_exists('array_column')) { 13 /**14 * Returns the values from a single column of the input array, identified by15 * the $columnKey.16 *17 * Optionally, you may provide an $indexKey to index the values in the returned18 * array by the values from the $indexKey column in the input array.19 *20 * @param array $input A multi-dimensional array (record set) from which to pull21 * a column of values.22 * @param mixed $columnKey The column of values to return. This value may be the23 * integer key of the column you wish to retrieve, or it24 * may be the string key name for an associative array.25 * @param mixed $indexKey (Optional.) The column to use as the index/keys for26 * the returned array. This value may be the integer key27 * of the column, or it may be the string key name.28 * @return array29 */30 function array_column($input = null, $columnKey = null, $indexKey = null)31 {32 // Using func_get_args() in order to check for proper number of33 // parameters and trigger errors exactly as the built-in array_column()34 // does in PHP 5.5.35 $argc = func_num_args();36 $params = func_get_args();37 4 38 if ($argc < 2) { 39 trigger_error("array_column() expects at least 2 parameters, {$argc} given", E_USER_WARNING); 40 return null; 41 } 42 43 if (!is_array($params[0])) { 44 trigger_error( 45 'array_column() expects parameter 1 to be array, ' . gettype($params[0]) . ' given', 46 E_USER_WARNING 47 ); 48 return null; 49 } 50 51 if (!is_int($params[1]) 52 && !is_float($params[1]) 53 && !is_string($params[1]) 54 && $params[1] !== null 55 && !(is_object($params[1]) && method_exists($params[1], '__toString')) 56 ) { 57 trigger_error('array_column(): The column key should be either a string or an integer', E_USER_WARNING); 58 return false; 59 } 60 61 if (isset($params[2]) 62 && !is_int($params[2]) 63 && !is_float($params[2]) 64 && !is_string($params[2]) 65 && !(is_object($params[2]) && method_exists($params[2], '__toString')) 66 ) { 67 trigger_error('array_column(): The index key should be either a string or an integer', E_USER_WARNING); 68 return false; 69 } 70 71 $paramsInput = $params[0]; 72 $paramsColumnKey = ($params[1] !== null) ? (string) $params[1] : null; 73 74 $paramsIndexKey = null; 75 if (isset($params[2])) { 76 if (is_float($params[2]) || is_int($params[2])) { 77 $paramsIndexKey = (int) $params[2]; 78 } else { 79 $paramsIndexKey = (string) $params[2]; 80 } 81 } 82 83 $resultArray = array(); 84 85 foreach ($paramsInput as $row) { 86 $key = $value = null; 87 $keySet = $valueSet = false; 88 89 if ($paramsIndexKey !== null && array_key_exists($paramsIndexKey, $row)) { 90 $keySet = true; 91 $key = (string) $row[$paramsIndexKey]; 92 } 93 94 if ($paramsColumnKey === null) { 95 $valueSet = true; 96 $value = $row; 97 } elseif (is_array($row) && array_key_exists($paramsColumnKey, $row)) { 98 $valueSet = true; 99 $value = $row[$paramsColumnKey]; 100 } 101 102 if ($valueSet) { 103 if ($keySet) { 104 $resultArray[$key] = $value; 105 } else { 106 $resultArray[] = $value; 107 } 108 } 109 110 } 111 112 return $resultArray; 5 function array_column(array $input, $columnKey, $indexKey = null) { 6 $array = array(); 7 foreach ($input as $value) { 8 if ( !array_key_exists($columnKey, $value)) { 9 trigger_error("Key \"$columnKey\" does not exist in array"); 10 return false; 11 } 12 if (is_null($indexKey)) { 13 $array[] = $value[$columnKey]; 14 } 15 else { 16 if ( !array_key_exists($indexKey, $value)) { 17 trigger_error("Key \"$indexKey\" does not exist in array"); 18 return false; 19 } 20 if ( ! is_scalar($value[$indexKey])) { 21 trigger_error("Key \"$indexKey\" does not contain scalar value"); 22 return false; 23 } 24 $array[$value[$indexKey]] = $value[$columnKey]; 25 } 26 } 27 return $array; 113 28 } 114 29 -
rays-grid/trunk/includes/class-base.php
r2362412 r2572600 207 207 'publicly_queryable' => true, 208 208 'rewrite' => array('slug' => $post_type_name ), 209 'show_in_rest' => true, 209 210 'capability_type' => 'post', 210 211 'hierarchical' => false, -
rays-grid/trunk/includes/class-db.php
r2057751 r2572600 34 34 } 35 35 36 public function rsgd_AddSQL() {36 public static function rsgd_AddSQL() { 37 37 38 38 global $wpdb; … … 48 48 } 49 49 50 public function rsgd_forLoop() {50 public static function rsgd_forLoop() { 51 51 52 52 $configs = new raysgrid_Config(); … … 65 65 } 66 66 67 public function rsgd_defult_args() {67 public static function rsgd_defult_args() { 68 68 69 69 $defults = array ( … … 130 130 global $wpdb; 131 131 132 if ( isset( $_POST['rsgd_nonce_fields'] ) && ! wp_verify_nonce( $_POST['rsgd_nonce_fields'], 'rsgd_nonce_fields' ) && !current_user_can( 'edit_others_posts' ) ) { return; } 132 if ( ( isset( $_POST['rsgd_nonce_fields'] ) || ! wp_verify_nonce( $_POST['rsgd_nonce_fields'], 'rsgd_nonce_fields' ) ) && !current_user_can( 'edit_others_posts' ) ) { 133 return; 134 } 133 135 134 136 $rsgd_title = ( isset($_POST['rsgd_data']['title']) ) ? $_POST['rsgd_data']['title'] : ""; -
rays-grid/trunk/includes/display-field.php
r2057751 r2572600 98 98 99 99 foreach ($choices as $key => $value) { 100 $output .= ' <div class="' . $class . '"><input id="' . $name . '" data-name="' . esc_attr($value) . '" type="radio" name=" rsgd_data[' . $name . ']" value="' . esc_attr($key) . '"';100 $output .= ' <div class="' . $class . '"><input id="' . $name . '" data-name="' . esc_attr($value) . '" type="radio" name="' . $key . '" value="' . esc_attr($key) . '"'; 101 101 if ($key == $val) { 102 102 $output .= 'checked="checked"'; … … 104 104 $output .= '><label class="radio-lbl">'.esc_attr($value).'</label></div>'; 105 105 } 106 $output .= '<input class="rsgd-choose-skin" id="' . $name . '" data-name="' . esc_attr($value) . '" type="hidden" name="rsgd_data[' . $name . ']" value="' . esc_attr($value) . '" />'; 106 107 break; 107 108 -
rays-grid/trunk/rays-grid.php
r2362418 r2572600 4 4 Plugin URI: https://www.it-rays.org/raysgrid 5 5 Description: WordPress Plugin for showing Grids with Custom Styles. 6 Version: 1.2. 26 Version: 1.2.3 7 7 Author: IT-RAYS 8 8 Author URI: https://themeforest.net/user/it-rays/portfolio -
rays-grid/trunk/readme.txt
r2362418 r2572600 3 3 Donate link: https://themeforest.net/user/it-rays/portfolio 4 4 Tags: rays grid, grid, custom post grid, post type grid, portfolio grid, portfolio masonry, grid display, category filter, custom post, isotope, filter, filtering, grid, layout, list, masonry, post, post filter, post layout 5 Requires at least: 5. 16 Tested up to: 5. 55 Requires at least: 5.7 6 Tested up to: 5.8 7 7 Requires PHP: 5.6 or later 8 Stable tag: 1.2. 28 Stable tag: 1.2.3 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset
for help on using the changeset viewer.