Changeset 3372929
- Timestamp:
- 10/04/2025 05:52:42 PM (6 months ago)
- Location:
- universam-demo/trunk
- Files:
-
- 11 added
- 93 deleted
- 3 edited
-
admin/assets/css/arrows.png (deleted)
-
admin/assets/css/dashboard.css (deleted)
-
admin/assets/images/favicon.png (added)
-
admin/assets/js/selecting_locations.js (deleted)
-
admin/db/db-upgrades/401.php (deleted)
-
admin/db/db-upgrades/402.php (deleted)
-
admin/db/db-upgrades/403.php (deleted)
-
admin/db/db-upgrades/405.php (deleted)
-
admin/db/db-upgrades/406.php (deleted)
-
admin/db/db-upgrades/407.php (deleted)
-
admin/db/db-upgrades/409.php (deleted)
-
admin/db/db-upgrades/410.php (deleted)
-
admin/db/db-upgrades/411.php (deleted)
-
admin/db/db-upgrades/415.php (deleted)
-
admin/db/db-upgrades/416.php (deleted)
-
admin/db/db-upgrades/417.php (deleted)
-
admin/db/db-upgrades/419.php (deleted)
-
admin/db/db-upgrades/422.php (deleted)
-
admin/db/db-upgrades/425.php (deleted)
-
admin/db/db-upgrades/428.php (deleted)
-
admin/db/db-upgrades/429.php (deleted)
-
admin/db/db-upgrades/430.php (deleted)
-
admin/db/db-upgrades/431.php (deleted)
-
admin/db/db-upgrades/432.php (deleted)
-
admin/db/db-upgrades/433.php (deleted)
-
admin/db/db-upgrades/434.php (deleted)
-
admin/db/db-upgrades/436.php (deleted)
-
admin/db/db-upgrades/438.php (deleted)
-
admin/db/db-upgrades/439.php (deleted)
-
admin/db/db-upgrades/440.php (deleted)
-
admin/db/db-upgrades/441.php (deleted)
-
admin/db/db-upgrades/442.php (deleted)
-
admin/db/db-upgrades/443.php (deleted)
-
admin/db/db-upgrades/445.php (deleted)
-
admin/db/db-upgrades/446.php (deleted)
-
admin/db/db-upgrades/447.php (deleted)
-
admin/db/db-upgrades/448.php (deleted)
-
admin/db/db-upgrades/449.php (deleted)
-
admin/db/db-upgrades/500.php (deleted)
-
admin/db/db-upgrades/501.php (deleted)
-
admin/db/db-upgrades/502.php (deleted)
-
admin/db/db-upgrades/503.php (deleted)
-
admin/db/db-upgrades/504.php (deleted)
-
admin/db/db-upgrades/505.php (deleted)
-
admin/db/db-upgrades/508.php (deleted)
-
admin/db/db-upgrades/509.php (deleted)
-
admin/db/db-upgrades/510.php (deleted)
-
admin/db/db-upgrades/511.php (deleted)
-
admin/db/db-upgrades/512.php (deleted)
-
admin/db/db-upgrades/513.php (deleted)
-
admin/db/db-upgrades/514.php (deleted)
-
admin/db/db-upgrades/515.php (deleted)
-
admin/db/db-upgrades/516.php (deleted)
-
admin/db/db-upgrades/517.php (deleted)
-
admin/db/db-upgrades/518.php (deleted)
-
admin/db/db-upgrades/519.php (deleted)
-
admin/db/db-upgrades/520.php (deleted)
-
admin/db/db-upgrades/521.php (deleted)
-
admin/db/db-upgrades/522.php (deleted)
-
admin/db/db-upgrades/523.php (deleted)
-
admin/db/db-upgrades/524.php (deleted)
-
admin/db/db-upgrades/525.php (deleted)
-
admin/db/db-upgrades/526.php (deleted)
-
admin/db/db-upgrades/527.php (deleted)
-
admin/db/db-upgrades/528.php (deleted)
-
admin/db/db-upgrades/529.php (deleted)
-
admin/db/db-upgrades/536.php (deleted)
-
admin/db/db-upgrades/537.php (deleted)
-
admin/db/db-upgrades/548.php (deleted)
-
admin/db/db-upgrades/551.php (deleted)
-
admin/db/templates/newsletter/change-order-status.json (added)
-
admin/db/templates/newsletter/change-order-status.xml (deleted)
-
admin/db/templates/newsletter/trackingid.json (added)
-
admin/db/templates/newsletter/trackingid.xml (deleted)
-
admin/db/templates/newsletter/waiting-order-payment.json (added)
-
admin/db/templates/newsletter/waiting-order-payment.xml (deleted)
-
admin/db/templates/slider.json (added)
-
admin/images (deleted)
-
admin/includes/admin-form-functions.php (deleted)
-
admin/includes/events_reminder.php (deleted)
-
admin/includes/lists/company_personal_account_list_table.php (deleted)
-
admin/includes/lists/contract_list_table.php (deleted)
-
admin/includes/lists/display_table/customer_display_table.php (deleted)
-
admin/includes/lists/display_table/personal_area_display_table.php (deleted)
-
admin/includes/lists/invoice_list_table.php (deleted)
-
admin/includes/lists/products_list_table.php (deleted)
-
admin/includes/lists/suggestion_list_table.php (deleted)
-
admin/includes/message (deleted)
-
admin/includes/table_form.php (deleted)
-
admin/includes/template.php (deleted)
-
admin/interface-filters/products_min_interface_filters.class.php (added)
-
admin/table-form (deleted)
-
admin/tabs/prices.php (added)
-
admin/templates/template-parts/events_reminder.php (added)
-
assets/images/slider (deleted)
-
assets/swiper-bundle.min.css (added)
-
assets/swiper-bundle.min.js (added)
-
includes/integration/merchants/cloudpayments.php (added)
-
includes/integration/trading-platforms/domclick.php (deleted)
-
includes/media/media_gallery.class.php (modified) (6 diffs)
-
readme.txt (modified) (1 diff)
-
resources/PhpSpreadsheet/README.md (deleted)
-
resources/dompdf/lib/php-css-parser/.gitignore (deleted)
-
resources/dompdf/lib/php-css-parser/CHANGELOG.md (deleted)
-
resources/phpoffice_phpword (deleted)
-
theme/products (deleted)
-
universam.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
universam-demo/trunk/includes/media/media_gallery.class.php
r3371969 r3372929 6 6 { 7 7 private $post_attacment; 8 private $image_format = 'webp';8 private static $image_format = 'webp'; 9 9 function __construct( ) 10 10 { … … 32 32 public static function process_file_after_upload( $file ) 33 33 { 34 if( $this->image_format == 'webp' )34 if( self::$image_format == 'webp' ) 35 35 $result = usam_create_image_webp( $file['tmp_name'] ); 36 36 else … … 39 39 { 40 40 $file['size'] = filesize( $file['tmp_name'] ); 41 $file['type'] = 'image/'. $this->image_format;41 $file['type'] = 'image/'.self::$image_format; 42 42 } 43 43 return $file; … … 180 180 if ( !$new_file_name ) 181 181 $new_file_name = $path_parts['filename']; 182 $new_ext = $path_parts['extension'] != $this->image_format ? $this->image_format : $path_parts['extension'];182 $new_ext = $path_parts['extension'] != self::$image_format ? self::$image_format : $path_parts['extension']; 183 183 // Проверим, имя файла на соответствие желаемому стандарту 184 184 if ( stripos($path_parts['filename'], $new_file_name) !== false && $new_ext == $path_parts['extension'] ) … … 204 204 elseif ( !file_exists($new_filepath) ) 205 205 { 206 if( $this->image_format == 'webp' )206 if( self::$image_format == 'webp' ) 207 207 $result = usam_create_image_webp($old_filepath, $new_filepath); 208 208 else … … 240 240 $meta_new_filename = str_replace( $noext_old_filename, $noext_sanitized_media_title, $meta_size['file'] ); 241 241 $meta_new_filepath = $directory . '/' . $meta_new_filename; 242 $new_filepath = substr_replace($meta_new_filepath , $this->image_format, strrpos($meta_new_filepath , '.') +1);243 if( $this->image_format == 'webp' )242 $new_filepath = substr_replace($meta_new_filepath , self::$image_format, strrpos($meta_new_filepath , '.') +1); 243 if( self::$image_format == 'webp' ) 244 244 $result = usam_create_image_webp($old_filepath, $new_filepath); 245 245 else 246 246 $result = usam_create_image_avif($old_filepath, $new_filepath); 247 247 if ( $result ) 248 $meta_new_filename = substr_replace($meta_new_filename , $this->image_format, strrpos($meta_new_filename , '.') +1);248 $meta_new_filename = substr_replace($meta_new_filename , self::$image_format, strrpos($meta_new_filename , '.') +1); 249 249 elseif ( !file_exists($meta_new_filepath) || is_writable($meta_new_filepath) ) 250 250 rename($old_filepath, $meta_new_filepath); 251 $sizes[$size]['mime-type'] = 'image/'. $this->image_format;251 $sizes[$size]['mime-type'] = 'image/'.self::$image_format; 252 252 $sizes[$size]['file'] = $meta_new_filename; 253 253 } -
universam-demo/trunk/readme.txt
r3371969 r3372929 4 4 Requires at least: 6.6 5 5 Tested up to: 6.8 6 Stable tag: 8.72.2 66 Stable tag: 8.72.27 7 7 Requires PHP: 7.4 8 8 License: GPLv1 -
universam-demo/trunk/universam.php
r3371969 r3372929 4 4 * Plugin URI: https://wp-universam.ru 5 5 * Description: Платформа для управления бизнесом и интернет-магазином. Встроенный парсинг, CRM, соц. сети, мессенджеры, карты, план продаж, управление остатками, контакт-центр, коммерческие предложения, счета, акты, инструменты для продвижения сайта, конструктор отчетов, файлы, рассылки, СМС. 6 * Version: 8.72.2 66 * Version: 8.72.27 7 7 * Author: universam 8 8 * Author URI: https://wp-universam.ru … … 14 14 { 15 15 protected static $_instance = null; 16 private $version = '8.72.2 6';16 private $version = '8.72.27'; 17 17 public function __construct() 18 18 {
Note: See TracChangeset
for help on using the changeset viewer.