Changeset 3277132
- Timestamp:
- 04/19/2025 09:32:26 AM (11 months ago)
- Location:
- russian-marketplaces-for-woocommerce
- Files:
-
- 6 added
- 26 edited
- 1 copied
-
tags/0.1.3 (copied) (copied from russian-marketplaces-for-woocommerce/trunk)
-
tags/0.1.3/assets/js (added)
-
tags/0.1.3/assets/js/admin.js (added)
-
tags/0.1.3/composer.json (added)
-
tags/0.1.3/readme.txt (modified) (2 diffs)
-
tags/0.1.3/src/Assets.php (modified) (1 diff)
-
tags/0.1.3/src/Main.php (modified) (1 diff)
-
tags/0.1.3/src/Marketplace.php (modified) (9 diffs)
-
tags/0.1.3/src/Marketplaces/Wildberries.php (modified) (2 diffs)
-
tags/0.1.3/src/Metabox.php (modified) (3 diffs)
-
tags/0.1.3/src/Settings.php (modified) (34 diffs)
-
tags/0.1.3/src/Utils.php (modified) (1 diff)
-
tags/0.1.3/src/Widget.php (modified) (4 diffs)
-
tags/0.1.3/vendor/autoload.php (modified) (1 diff)
-
tags/0.1.3/vendor/composer/InstalledVersions.php (modified) (5 diffs)
-
tags/0.1.3/vendor/composer/installed.php (modified) (2 diffs)
-
tags/0.1.3/woo-russian-marketplaces.php (modified) (2 diffs)
-
trunk/assets/js (added)
-
trunk/assets/js/admin.js (added)
-
trunk/composer.json (added)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/src/Assets.php (modified) (1 diff)
-
trunk/src/Main.php (modified) (1 diff)
-
trunk/src/Marketplace.php (modified) (9 diffs)
-
trunk/src/Marketplaces/Wildberries.php (modified) (2 diffs)
-
trunk/src/Metabox.php (modified) (3 diffs)
-
trunk/src/Settings.php (modified) (34 diffs)
-
trunk/src/Utils.php (modified) (1 diff)
-
trunk/src/Widget.php (modified) (4 diffs)
-
trunk/vendor/autoload.php (modified) (1 diff)
-
trunk/vendor/composer/InstalledVersions.php (modified) (5 diffs)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/woo-russian-marketplaces.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
russian-marketplaces-for-woocommerce/tags/0.1.3/readme.txt
r3004283 r3277132 1 1 === Russian marketplaces for WooCommerce === 2 Contributors: mihdan , donatory3 Tags: W ooCommerce,Wildberries,Ozon,Yandex Market,Avito,Lamoda,SberMegaMarket,Aliexpress2 Contributors: mihdan 3 Tags: Wildberries,Ozon,Yandex Market,Avito,SberMegaMarket 4 4 Donate link: https://www.kobzarev.com/donate/ 5 Requires at least: 5.26 Tested up to: 6. 45 Requires at least: 6.5 6 Tested up to: 6.8 7 7 Requires PHP: 7.4 8 Stable tag: 0.1. 28 Stable tag: 0.1.3 9 9 License: GPL-2.0-or-later 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html 10 11 11 12 Link your WooCommerce store to Russian marketplaces and sell more. Adds link-buttons in the card to the same product on marketplaces … … 77 78 == Changelog == 78 79 80 = 0.1.3 (19.04.2025) = 81 - Updated to work with WordPress 6.8+ 82 79 83 = 0.1.2 (01.12.2023) = 80 - Updated to work with WordPress 6.4 .+81 - Updated to work with WordPress 8.3 .+84 - Updated to work with WordPress 6.4+ 85 - Updated to work with WordPress 8.3+ 82 86 83 87 = 0.1.1 (29.09.2023) = -
russian-marketplaces-for-woocommerce/tags/0.1.3/src/Assets.php
r2932681 r3277132 3 3 * Подключает ассеты. 4 4 * 5 * @package w plovers-woo-russian-marketplaces5 * @package woo-russian-marketplaces 6 6 */ 7 7 -
russian-marketplaces-for-woocommerce/tags/0.1.3/src/Main.php
r2932681 r3277132 3 3 * Основной файл плагина. 4 4 * 5 * @package w plovers-woo-russian-marketplaces5 * @package woo-russian-marketplaces 6 6 */ 7 7 -
russian-marketplaces-for-woocommerce/tags/0.1.3/src/Marketplace.php
r2972820 r3277132 3 3 * Абстрактный класс маркетплейса. 4 4 * 5 * @package w plovers-woo-russian-marketplaces5 * @package woo-russian-marketplaces 6 6 */ 7 7 … … 46 46 [ 47 47 'wildberries' => [ 48 'name' => __( 'Wildberries', 'w plovers-woo-russian-marketplaces' ),48 'name' => __( 'Wildberries', 'woo-russian-marketplaces' ), 49 49 'css' => [ 50 50 'background-color' => '#CB11AB', … … 54 54 ], 55 55 'ozon' => [ 56 'name' => __( 'Ozon', 'w plovers-woo-russian-marketplaces' ),56 'name' => __( 'Ozon', 'woo-russian-marketplaces' ), 57 57 'css' => [ 58 58 'background-color' => '#005BFF', … … 62 62 ], 63 63 'yandex_market' => [ 64 'name' => __( 'Yandex Market', 'w plovers-woo-russian-marketplaces' ),64 'name' => __( 'Yandex Market', 'woo-russian-marketplaces' ), 65 65 'css' => [ 66 66 'background-color' => '#FFCC00', … … 70 70 ], 71 71 'avito' => [ 72 'name' => __( 'Avito', 'w plovers-woo-russian-marketplaces' ),72 'name' => __( 'Avito', 'woo-russian-marketplaces' ), 73 73 'css' => [ 74 74 'background-color' => '#00AAFF', … … 78 78 ], 79 79 'lamoda' => [ 80 'name' => __( 'Lamoda', 'w plovers-woo-russian-marketplaces' ),80 'name' => __( 'Lamoda', 'woo-russian-marketplaces' ), 81 81 'css' => [ 82 82 'background-color' => '#000000', … … 86 86 ], 87 87 'sbermegamarket' => [ 88 'name' => __( 'SberMegaMarket', 'w plovers-woo-russian-marketplaces' ),88 'name' => __( 'SberMegaMarket', 'woo-russian-marketplaces' ), 89 89 'css' => [ 90 90 'background-color' => '#9B38DC', … … 94 94 ], 95 95 'livemaster' => [ 96 'name' => __( 'Ярмарка мастеров', 'w plovers-woo-russian-marketplaces' ),96 'name' => __( 'Ярмарка мастеров', 'woo-russian-marketplaces' ), 97 97 'css' => [ 98 98 'background-color' => '#EA7913', … … 102 102 ], 103 103 'aliexpress' => [ 104 'name' => __( 'Aliexpress', 'w plovers-woo-russian-marketplaces' ),104 'name' => __( 'Aliexpress', 'woo-russian-marketplaces' ), 105 105 'css' => [ 106 106 'background-color' => '#CC290A', -
russian-marketplaces-for-woocommerce/tags/0.1.3/src/Marketplaces/Wildberries.php
r2932681 r3277132 3 3 * Класс маркетплейса Wildberries. 4 4 * 5 * @package w plovers-woo-russian-marketplaces5 * @package woo-russian-marketplaces 6 6 */ 7 7 … … 29 29 */ 30 30 public function get_name(): string { 31 return __( 'Wildberries', 'w plovers-woo-russian-marketplaces' );31 return __( 'Wildberries', 'woo-russian-marketplaces' ); 32 32 } 33 33 -
russian-marketplaces-for-woocommerce/tags/0.1.3/src/Metabox.php
r2972820 r3277132 3 3 * Вкладка настроек товара в метабоксе WooCommerce. 4 4 * 5 * @package w plovers-woo-russian-marketplaces5 * @package woo-russian-marketplaces 6 6 * @link https://woocommerce.com/document/editing-product-data-tabs/ 7 7 * @link https://misha.agency/course/nastrojki-tovara-woocommerce … … 85 85 <?php 86 86 echo wp_kses_post( 87 sprintf( __( 'All marketplaces are disabled. Enable at least one in <a href="%s">Settings</a>.', 'wplovers-woo-russian-marketplaces' ), Settings::get_settings_link() ) 87 /* translators: settings URL */ 88 sprintf( __( 'All marketplaces are disabled. Enable at least one in <a href="%s">Settings</a>.', 'woo-russian-marketplaces' ), Settings::get_settings_link() ) 88 89 ); 89 90 ?> 90 91 </p> 91 92 <?php else : ?> 92 <p><?php esc_html_e( 'Insert links for this product on marketplaces into the fields', 'w plovers-woo-russian-marketplaces' ); ?></p>93 <p><?php esc_html_e( 'Insert links for this product on marketplaces into the fields', 'woo-russian-marketplaces' ); ?></p> 93 94 <?php endif; ?> 94 95 <?php … … 109 110 ?> 110 111 <div class="wplovers-gopro"> 111 <p><b><?php esc_html_e( 'Want to automatically fill in product links?', 'w plovers-woo-russian-marketplaces' ); ?></b> <?php esc_html_e( 'Connect integration with marketplaces and get:', 'wplovers-woo-russian-marketplaces' ); ?></p>112 <p><b><?php esc_html_e( 'Want to automatically fill in product links?', 'woo-russian-marketplaces' ); ?></b> <?php esc_html_e( 'Connect integration with marketplaces and get:', 'woo-russian-marketplaces' ); ?></p> 112 113 <ul> 113 <li><?php esc_html_e( 'Automatic download and upload products;', 'w plovers-woo-russian-marketplaces' ); ?></li>114 <li><?php esc_html_e( 'Loading orders;', 'w plovers-woo-russian-marketplaces' ); ?></li>115 <li><?php esc_html_e( 'Exchange of balances;', 'w plovers-woo-russian-marketplaces' ); ?></li>116 <li><?php esc_html_e( 'Flexible pricing.', 'w plovers-woo-russian-marketplaces' ); ?></li>114 <li><?php esc_html_e( 'Automatic download and upload products;', 'woo-russian-marketplaces' ); ?></li> 115 <li><?php esc_html_e( 'Loading orders;', 'woo-russian-marketplaces' ); ?></li> 116 <li><?php esc_html_e( 'Exchange of balances;', 'woo-russian-marketplaces' ); ?></li> 117 <li><?php esc_html_e( 'Flexible pricing.', 'woo-russian-marketplaces' ); ?></li> 117 118 </ul> 118 <p><a href="<?php echo esc_url( Settings::get_gopro_link() ); ?>"><b><?php esc_html_e( 'Yes, I want to automate everything!', 'w plovers-woo-russian-marketplaces' ); ?></b></a></p>119 <p><a href="<?php echo esc_url( Settings::get_gopro_link() ); ?>"><b><?php esc_html_e( 'Yes, I want to automate everything!', 'woo-russian-marketplaces' ); ?></b></a></p> 119 120 </div> 120 121 </div> -
russian-marketplaces-for-woocommerce/tags/0.1.3/src/Settings.php
r2932681 r3277132 3 3 * Настройки плагина. 4 4 * 5 * @package w plovers-woo-russian-marketplaces;5 * @package woo-russian-marketplaces; 6 6 * @link https://woocommerce.com/document/adding-a-section-to-a-settings-tab/ 7 7 * @link https://www.tychesoftwares.com/how-to-add-custom-sections-fields-in-woocommerce-settings/ … … 24 24 * Идентификатор секции. 25 25 */ 26 const SECTION_SLUG = 'w plovers-woo-russian-marketplaces';26 const SECTION_SLUG = 'woo-russian-marketplaces'; 27 27 28 28 /** … … 72 72 73 73 add_action( 74 'admin_ head',74 'admin_enqueue_scripts', 75 75 function () { 76 ?> 77 <script> 78 jQuery( function ( $ ) { 79 const 80 collapsed_class = 'wplovers-spoiler--collapsed', 81 $spoilers = $( '.wplovers-spoiler' ); 82 83 $( '.wplovers-spoiler__name' ).on( 84 'click', 85 function () { 86 //$spoilers.addClass( collapsed_class ); 87 $( this ).parents( '.wplovers-spoiler' ).toggleClass( collapsed_class ); 88 } 89 ); 90 } ); 91 </script> 92 <?php 76 wp_enqueue_script( 77 Utils::get_plugin_slug(), 78 Utils::get_plugin_url() . 'assets/js/admin.js', 79 [ 'jquery' ], 80 filemtime( Utils::get_plugin_path() . 'assets/js/admin.js' ) 81 ); 93 82 } 94 83 ); … … 133 122 '<a href="%s">%s</a>', 134 123 self::get_settings_link(), 135 esc_html__( 'Settings', 'w plovers-woo-russian-marketplaces' )124 esc_html__( 'Settings', 'woo-russian-marketplaces' ) 136 125 ); 137 126 … … 139 128 '<a href="%s" style="font-weight: bold; color: #524cff">%s</a>', 140 129 self::get_gopro_link(), 141 esc_html__( 'Get full integrations!', 'w plovers-woo-russian-marketplaces' )130 esc_html__( 'Get full integrations!', 'woo-russian-marketplaces' ) 142 131 ); 143 132 … … 231 220 'text' => sprintf( 232 221 '<h1>%s</h1>', 233 __( 'Russian marketplaces settings', 'w plovers-woo-russian-marketplaces' )222 __( 'Russian marketplaces settings', 'woo-russian-marketplaces' ) 234 223 ), 235 224 'id' => 'info', … … 239 228 $settings_slider[] = $this->add_field( 240 229 [ 241 'name' => __( 'Buttons block design', 'w plovers-woo-russian-marketplaces' ),230 'name' => __( 'Buttons block design', 'woo-russian-marketplaces' ), 242 231 'type' => 'title', 243 'desc' => __( 'Settings of the main block with buttons-links to marketplaces', 'w plovers-woo-russian-marketplaces' ),232 'desc' => __( 'Settings of the main block with buttons-links to marketplaces', 'woo-russian-marketplaces' ), 244 233 'id' => 'buttons_block_design', 245 234 ] … … 248 237 $settings_slider[] = $this->add_field( 249 238 [ 250 'name' => __( 'Margin top', 'w plovers-woo-russian-marketplaces' ),239 'name' => __( 'Margin top', 'woo-russian-marketplaces' ), 251 240 'type' => 'number', 252 241 'id' => 'buttons_block_design_margin_top', … … 259 248 $settings_slider[] = $this->add_field( 260 249 [ 261 'name' => __( 'Margin bottom', 'w plovers-woo-russian-marketplaces' ),250 'name' => __( 'Margin bottom', 'woo-russian-marketplaces' ), 262 251 'type' => 'number', 263 252 'id' => 'buttons_block_design_margin_bottom', … … 270 259 $settings_slider[] = $this->add_field( 271 260 [ 272 'name' => __( 'Padding', 'w plovers-woo-russian-marketplaces' ),273 'desc' => __( 'Sets padding on all sides of the block', 'w plovers-woo-russian-marketplaces' ),261 'name' => __( 'Padding', 'woo-russian-marketplaces' ), 262 'desc' => __( 'Sets padding on all sides of the block', 'woo-russian-marketplaces' ), 274 263 'type' => 'number', 275 264 'id' => 'buttons_block_design_padding', … … 282 271 $settings_slider[] = $this->add_field( 283 272 [ 284 'name' => __( 'Background color', 'w plovers-woo-russian-marketplaces' ),273 'name' => __( 'Background color', 'woo-russian-marketplaces' ), 285 274 'type' => 'color', 286 275 'id' => 'buttons_block_design_background_color', … … 293 282 $settings_slider[] = $this->add_field( 294 283 [ 295 'name' => __( 'Border width', 'w plovers-woo-russian-marketplaces' ),284 'name' => __( 'Border width', 'woo-russian-marketplaces' ), 296 285 'type' => 'number', 297 286 'id' => 'buttons_block_design_border_width', … … 304 293 $settings_slider[] = $this->add_field( 305 294 [ 306 'name' => __( 'Border radius', 'w plovers-woo-russian-marketplaces' ),295 'name' => __( 'Border radius', 'woo-russian-marketplaces' ), 307 296 'type' => 'number', 308 297 'id' => 'buttons_block_design_border_radius', … … 315 304 $settings_slider[] = $this->add_field( 316 305 [ 317 'name' => __( 'Border color', 'w plovers-woo-russian-marketplaces' ),306 'name' => __( 'Border color', 'woo-russian-marketplaces' ), 318 307 'type' => 'color', 319 308 'id' => 'buttons_block_design_border_color', … … 326 315 $settings_slider[] = $this->add_field( 327 316 [ 328 'name' => __( 'Where to place', 'w plovers-woo-russian-marketplaces' ),317 'name' => __( 'Where to place', 'woo-russian-marketplaces' ), 329 318 'type' => 'radio', 330 319 'id' => 'buttons_block_design_where_to_place', 331 320 'options' => [ 332 'before' => __( 'Before Add to cart block', 'w plovers-woo-russian-marketplaces' ),333 'after' => __( 'After Add to cart block', 'w plovers-woo-russian-marketplaces' ),321 'before' => __( 'Before Add to cart block', 'woo-russian-marketplaces' ), 322 'after' => __( 'After Add to cart block', 'woo-russian-marketplaces' ), 334 323 ], 335 324 'default' => 'after', … … 346 335 $settings_slider[] = $this->add_field( 347 336 [ 348 'name' => __( 'Block title', 'w plovers-woo-russian-marketplaces' ),337 'name' => __( 'Block title', 'woo-russian-marketplaces' ), 349 338 'type' => 'title', 350 'desc' => __( 'Write your call to buy on marketplaces', 'w plovers-woo-russian-marketplaces' ),339 'desc' => __( 'Write your call to buy on marketplaces', 'woo-russian-marketplaces' ), 351 340 'id' => 'block_title', 352 341 ] … … 355 344 $settings_slider[] = $this->add_field( 356 345 [ 357 'name' => __( 'Text', 'w plovers-woo-russian-marketplaces' ),346 'name' => __( 'Text', 'woo-russian-marketplaces' ), 358 347 'type' => 'text', 359 348 'id' => 'block_title_text', 360 'default' => __( 'Buy this product on marketplaces', 'w plovers-woo-russian-marketplaces' ),349 'default' => __( 'Buy this product on marketplaces', 'woo-russian-marketplaces' ), 361 350 'css' => 'width:260px', 362 351 ] … … 365 354 $settings_slider[] = $this->add_field( 366 355 [ 367 'name' => __( 'Margin bottom', 'w plovers-woo-russian-marketplaces' ),356 'name' => __( 'Margin bottom', 'woo-russian-marketplaces' ), 368 357 'type' => 'number', 369 358 'id' => 'block_title_margin_bottom', … … 376 365 $settings_slider[] = $this->add_field( 377 366 [ 378 'name' => __( 'Font size', 'w plovers-woo-russian-marketplaces' ),367 'name' => __( 'Font size', 'woo-russian-marketplaces' ), 379 368 'type' => 'number', 380 369 'id' => 'block_title_font_size', … … 387 376 $settings_slider[] = $this->add_field( 388 377 [ 389 'name' => __( 'Color', 'w plovers-woo-russian-marketplaces' ),378 'name' => __( 'Color', 'woo-russian-marketplaces' ), 390 379 'type' => 'color', 391 380 'id' => 'block_title_color', … … 408 397 $settings_slider[] = $this->add_field( 409 398 [ 410 'name' => __( 'Marketplaces', 'w plovers-woo-russian-marketplaces' ),399 'name' => __( 'Marketplaces', 'woo-russian-marketplaces' ), 411 400 'type' => 'title', 412 401 'id' => 'marketplaces', … … 416 405 $settings_slider[] = $this->add_field( 417 406 [ 418 'name' => __( 'Buttons border width', 'w plovers-woo-russian-marketplaces' ),407 'name' => __( 'Buttons border width', 'woo-russian-marketplaces' ), 419 408 'type' => 'number', 420 409 'id' => 'button_border_width', … … 427 416 $settings_slider[] = $this->add_field( 428 417 [ 429 'name' => __( 'Buttons border radius', 'w plovers-woo-russian-marketplaces' ),418 'name' => __( 'Buttons border radius', 'woo-russian-marketplaces' ), 430 419 'type' => 'number', 431 420 'id' => 'button_border_radius', … … 438 427 $settings_slider[] = $this->add_field( 439 428 [ 440 'name' => __( 'Buttons font size', 'w plovers-woo-russian-marketplaces' ),429 'name' => __( 'Buttons font size', 'woo-russian-marketplaces' ), 441 430 'type' => 'number', 442 431 'id' => 'button_font_size', … … 479 468 $settings_slider[] = $this->add_field( 480 469 [ 481 'name' => __( 'On/Off', 'w plovers-woo-russian-marketplaces' ),470 'name' => __( 'On/Off', 'woo-russian-marketplaces' ), 482 471 'type' => 'checkbox', 483 472 'default' => 'no', … … 488 477 $settings_slider[] = $this->add_field( 489 478 [ 490 'name' => __( 'Button background color', 'w plovers-woo-russian-marketplaces' ),479 'name' => __( 'Button background color', 'woo-russian-marketplaces' ), 491 480 'type' => 'color', 492 481 'default' => $data['css']['background-color'], … … 499 488 $settings_slider[] = $this->add_field( 500 489 [ 501 'name' => __( 'Button border color', 'w plovers-woo-russian-marketplaces' ),490 'name' => __( 'Button border color', 'woo-russian-marketplaces' ), 502 491 'type' => 'color', 503 492 'id' => 'marketplaces_' . $marketplace_id . '_border_color', … … 510 499 $settings_slider[] = $this->add_field( 511 500 [ 512 'name' => __( 'Marketplace name color', 'w plovers-woo-russian-marketplaces' ),501 'name' => __( 'Marketplace name color', 'woo-russian-marketplaces' ), 513 502 'type' => 'color', 514 503 'id' => 'marketplaces_' . $marketplace_id . '_color', … … 521 510 $settings_slider[] = $this->add_field( 522 511 [ 523 'name' => __( 'Go Pro', 'w plovers-woo-russian-marketplaces' ),512 'name' => __( 'Go Pro', 'woo-russian-marketplaces' ), 524 513 'type' => 'html', 525 514 'id' => 'marketplaces_' . $marketplace_id . '_gopro', … … 545 534 $settings_slider[] = $this->add_field( 546 535 [ 547 'name' => __( 'SEO', 'w plovers-woo-russian-marketplaces' ),536 'name' => __( 'SEO', 'woo-russian-marketplaces' ), 548 537 'type' => 'title', 549 538 'id' => 'seo', … … 553 542 $settings_slider[] = $this->add_field( 554 543 [ 555 'name' => __( 'Wrap links with noindex', 'w plovers-woo-russian-marketplaces' ),544 'name' => __( 'Wrap links with noindex', 'woo-russian-marketplaces' ), 556 545 'type' => 'checkbox', 557 546 'default' => 'no', … … 562 551 $settings_slider[] = $this->add_field( 563 552 [ 564 'name' => __( 'Add nofollow attribute to links', 'w plovers-woo-russian-marketplaces' ),553 'name' => __( 'Add nofollow attribute to links', 'woo-russian-marketplaces' ), 565 554 'type' => 'checkbox', 566 555 'default' => 'no', … … 571 560 $settings_slider[] = $this->add_field( 572 561 [ 573 'name' => __( 'Open links in a new tab', 'w plovers-woo-russian-marketplaces' ),562 'name' => __( 'Open links in a new tab', 'woo-russian-marketplaces' ), 574 563 'type' => 'checkbox', 575 564 'default' => 'no', … … 640 629 ?> 641 630 <div class="wplovers-gopro"> 642 <p><b><?php esc_html_e( 'Want to automatically fill in product links?', 'w plovers-woo-russian-marketplaces' ); ?></b> <?php esc_html_e( 'Connect integration with marketplaces and get:', 'wplovers-woo-russian-marketplaces' ); ?></p>631 <p><b><?php esc_html_e( 'Want to automatically fill in product links?', 'woo-russian-marketplaces' ); ?></b> <?php esc_html_e( 'Connect integration with marketplaces and get:', 'woo-russian-marketplaces' ); ?></p> 643 632 <ul> 644 <li><?php esc_html_e( 'Automatic download and upload products;', 'w plovers-woo-russian-marketplaces' ); ?></li>645 <li><?php esc_html_e( 'Loading orders;', 'w plovers-woo-russian-marketplaces' ); ?></li>646 <li><?php esc_html_e( 'Exchange of balances;', 'w plovers-woo-russian-marketplaces' ); ?></li>647 <li><?php esc_html_e( 'Flexible pricing.', 'w plovers-woo-russian-marketplaces' ); ?></li>633 <li><?php esc_html_e( 'Automatic download and upload products;', 'woo-russian-marketplaces' ); ?></li> 634 <li><?php esc_html_e( 'Loading orders;', 'woo-russian-marketplaces' ); ?></li> 635 <li><?php esc_html_e( 'Exchange of balances;', 'woo-russian-marketplaces' ); ?></li> 636 <li><?php esc_html_e( 'Flexible pricing.', 'woo-russian-marketplaces' ); ?></li> 648 637 </ul> 649 <p><a href="<?php echo esc_url( self::get_gopro_link() ); ?>"><b><?php esc_html_e( 'Yes, I want to automate everything!', 'w plovers-woo-russian-marketplaces' ); ?></b></a></p>638 <p><a href="<?php echo esc_url( self::get_gopro_link() ); ?>"><b><?php esc_html_e( 'Yes, I want to automate everything!', 'woo-russian-marketplaces' ); ?></b></a></p> 650 639 </div> 651 640 <?php -
russian-marketplaces-for-woocommerce/tags/0.1.3/src/Utils.php
r2932681 r3277132 3 3 * Полезные утилиты для плагина. 4 4 * 5 * @package w plovers-woo-russian-marketplaces5 * @package woo-russian-marketplaces 6 6 */ 7 7 -
russian-marketplaces-for-woocommerce/tags/0.1.3/src/Widget.php
r2932681 r3277132 3 3 * Вывод виджета во фронтенде. 4 4 * 5 * @package w plovers-woo-russian-marketplaces5 * @package woo-russian-marketplaces 6 6 */ 7 7 … … 23 23 add_action( 'woocommerce_before_add_to_cart_form', [ $this, 'add_block' ] ); 24 24 } 25 26 add_action( 'wp_enqueue_scripts', [ $this, 'enqueue_scripts' ], 11 ); 27 } 28 29 public function enqueue_scripts(): void { 30 $urls = get_post_meta( get_the_ID(), Utils::get_plugin_prefix(), true ); 31 $marketplaces = Marketplace::get_merketplaces(); 32 $settings = Settings::get_options(); 33 ob_start(); 34 ?> 35 .woo-russian-marketplaces { 36 background-color: <?php echo esc_html( $settings['buttons_block_design_background_color'] ); ?>; 37 padding: <?php echo esc_html( $settings['buttons_block_design_padding'] ); ?>px; 38 border-radius: <?php echo esc_html( $settings['buttons_block_design_border_radius'] ); ?>px; 39 margin-top: <?php echo esc_html( $settings['buttons_block_design_margin_top'] ); ?>px; 40 margin-bottom: <?php echo esc_html( $settings['buttons_block_design_margin_bottom'] ); ?>px; 41 border-width: <?php echo esc_html( $settings['buttons_block_design_border_width'] ); ?>px; 42 border-style: solid; 43 border-color: <?php echo esc_html( $settings['buttons_block_design_border_color'] ); ?>; 44 } 45 .woo-russian-marketplaces .woo-russian-marketplaces__header { 46 font-weight: 700; 47 margin-bottom: <?php echo esc_html( $settings['block_title_margin_bottom'] ); ?>px; 48 font-size: <?php echo esc_html( $settings['block_title_font_size'] ); ?>px; 49 color: <?php echo esc_html( $settings['block_title_color'] ); ?>; 50 } 51 .woo-russian-marketplaces .woo-russian-marketplaces__list { 52 display: flex; 53 flex-direction: row; 54 flex-wrap: wrap; 55 gap: 15px; 56 align-items: center; 57 justify-content: flex-start; 58 } 59 .woo-russian-marketplaces .woo-russian-marketplaces__link { 60 text-decoration: none; 61 text-transform: uppercase; 62 padding: 8px 22px; 63 -webkit-transition: all 300ms ease; 64 transition: all 300ms ease; 65 border-style: solid; 66 border-width: <?php echo esc_html( $settings['button_border_width'] ); ?>px; 67 font-size: <?php echo esc_html( $settings['button_font_size'] ); ?>px; 68 border-radius: <?php echo esc_html( $settings['button_border_radius'] ); ?>px; 69 } 70 .woo-russian-marketplaces .woo-russian-marketplaces__link:hover { 71 opacity: 0.8; 72 } 73 <?php foreach ( $urls as $marketplace => $url ) : ?> 74 <?php 75 if ( empty( $url ) ) { 76 continue; 77 } 78 ?> 79 .woo-russian-marketplaces .woo-russian-marketplaces__link--<?php echo esc_html( $marketplace ); ?> { 80 background-color: <?php echo esc_html( $settings[ 'marketplaces_' . $marketplace . '_background_color' ] ); ?>; 81 border-color: <?php echo esc_html( $settings[ 'marketplaces_' . $marketplace . '_border_color' ] ); ?>; 82 color: <?php echo esc_html( $settings[ 'marketplaces_' . $marketplace . '_color' ] ); ?>; 83 } 84 <?php endforeach; ?> 85 <?php 86 wp_add_inline_style( 'photoswipe', ob_get_clean() ); 25 87 } 26 88 … … 40 102 sprintf( 41 103 /* translators: plugin name, settings link */ 42 __( 'Плагин "%1$s" активирован, но не настроен! <a href="%2$s">Настроить плагин.</a>', 'w plovers-woo-russian-marketplaces' ),104 __( 'Плагин "%1$s" активирован, но не настроен! <a href="%2$s">Настроить плагин.</a>', 'woo-russian-marketplaces' ), 43 105 Utils::get_plugin_name(), 44 106 Settings::get_settings_link() … … 91 153 </div> 92 154 </div> 93 <style>94 .wplovers-woo-russian-marketplaces {95 background-color: <?php echo esc_html( $settings['buttons_block_design_background_color'] ); ?>;96 padding: <?php echo esc_html( $settings['buttons_block_design_padding'] ); ?>px;97 border-radius: <?php echo esc_html( $settings['buttons_block_design_border_radius'] ); ?>px;98 margin-top: <?php echo esc_html( $settings['buttons_block_design_margin_top'] ); ?>px;99 margin-bottom: <?php echo esc_html( $settings['buttons_block_design_margin_bottom'] ); ?>px;100 border-width: <?php echo esc_html( $settings['buttons_block_design_border_width'] ); ?>px;101 border-style: solid;102 border-color: <?php echo esc_html( $settings['buttons_block_design_border_color'] ); ?>;103 }104 .wplovers-woo-russian-marketplaces .wplovers-woo-russian-marketplaces__header {105 font-weight: 700;106 margin-bottom: <?php echo esc_html( $settings['block_title_margin_bottom'] ); ?>px;107 font-size: <?php echo esc_html( $settings['block_title_font_size'] ); ?>px;108 color: <?php echo esc_html( $settings['block_title_color'] ); ?>;109 }110 .wplovers-woo-russian-marketplaces .wplovers-woo-russian-marketplaces__list {111 display: flex;112 flex-direction: row;113 flex-wrap: wrap;114 gap: 15px;115 align-items: center;116 justify-content: flex-start;117 }118 .wplovers-woo-russian-marketplaces .wplovers-woo-russian-marketplaces__link {119 text-decoration: none;120 text-transform: uppercase;121 padding: 8px 22px;122 -webkit-transition: all 300ms ease;123 transition: all 300ms ease;124 border-style: solid;125 border-width: <?php echo esc_html( $settings['button_border_width'] ); ?>px;126 font-size: <?php echo esc_html( $settings['button_font_size'] ); ?>px;127 border-radius: <?php echo esc_html( $settings['button_border_radius'] ); ?>px;128 }129 .wplovers-woo-russian-marketplaces .wplovers-woo-russian-marketplaces__link:hover {130 opacity: 0.8;131 }132 <?php foreach ( $urls as $marketplace => $url ) : ?>133 <?php134 if ( empty( $url ) ) {135 continue;136 }137 ?>138 .wplovers-woo-russian-marketplaces .wplovers-woo-russian-marketplaces__link--<?php echo esc_html( $marketplace ); ?> {139 background-color: <?php echo esc_html( $settings[ 'marketplaces_' . $marketplace . '_background_color' ] ); ?>;140 border-color: <?php echo esc_html( $settings[ 'marketplaces_' . $marketplace . '_border_color' ] ); ?>;141 color: <?php echo esc_html( $settings[ 'marketplaces_' . $marketplace . '_color' ] ); ?>;142 }143 <?php endforeach; ?>144 </style>145 155 <?php endif; ?> 146 156 <?php -
russian-marketplaces-for-woocommerce/tags/0.1.3/vendor/autoload.php
r3004283 r3277132 15 15 } 16 16 } 17 trigger_error( 18 $err, 19 E_USER_ERROR 20 ); 17 throw new RuntimeException($err); 21 18 } 22 19 -
russian-marketplaces-for-woocommerce/tags/0.1.3/vendor/composer/InstalledVersions.php
r2932681 r3277132 28 28 { 29 29 /** 30 * @var string|null if set (by reflection by Composer), this should be set to the path where this class is being copied to 31 * @internal 32 */ 33 private static $selfDir = null; 34 35 /** 30 36 * @var mixed[]|null 31 37 * @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}|array{}|null 32 38 */ 33 39 private static $installed; 40 41 /** 42 * @var bool 43 */ 44 private static $installedIsLocalDir; 34 45 35 46 /** … … 310 321 self::$installed = $data; 311 322 self::$installedByVendor = array(); 323 324 // when using reload, we disable the duplicate protection to ensure that self::$installed data is 325 // always returned, but we cannot know whether it comes from the installed.php in __DIR__ or not, 326 // so we have to assume it does not, and that may result in duplicate data being returned when listing 327 // all installed packages for example 328 self::$installedIsLocalDir = false; 329 } 330 331 /** 332 * @return string 333 */ 334 private static function getSelfDir() 335 { 336 if (self::$selfDir === null) { 337 self::$selfDir = strtr(__DIR__, '\\', '/'); 338 } 339 340 return self::$selfDir; 312 341 } 313 342 … … 323 352 324 353 $installed = array(); 354 $copiedLocalDir = false; 325 355 326 356 if (self::$canGetVendors) { 357 $selfDir = self::getSelfDir(); 327 358 foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) { 359 $vendorDir = strtr($vendorDir, '\\', '/'); 328 360 if (isset(self::$installedByVendor[$vendorDir])) { 329 361 $installed[] = self::$installedByVendor[$vendorDir]; … … 331 363 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 332 364 $required = require $vendorDir.'/composer/installed.php'; 333 $installed[] = self::$installedByVendor[$vendorDir] = $required; 334 if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { 335 self::$installed = $installed[count($installed) - 1]; 365 self::$installedByVendor[$vendorDir] = $required; 366 $installed[] = $required; 367 if (self::$installed === null && $vendorDir.'/composer' === $selfDir) { 368 self::$installed = $required; 369 self::$installedIsLocalDir = true; 336 370 } 371 } 372 if (self::$installedIsLocalDir && $vendorDir.'/composer' === $selfDir) { 373 $copiedLocalDir = true; 337 374 } 338 375 } … … 351 388 } 352 389 353 if (self::$installed !== array() ) {390 if (self::$installed !== array() && !$copiedLocalDir) { 354 391 $installed[] = self::$installed; 355 392 } -
russian-marketplaces-for-woocommerce/tags/0.1.3/vendor/composer/installed.php
r3004283 r3277132 2 2 'root' => array( 3 3 'name' => 'wplovers/woo-russian-marketplace', 4 'pretty_version' => '0.1. 2',5 'version' => '0.1. 2.0',6 'reference' => ' 18261b156a42845dcb29afb3a51c4cf8e2e58dcb',4 'pretty_version' => '0.1.3', 5 'version' => '0.1.3.0', 6 'reference' => '038513384485353994c96b39898b927d96fc33d8', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 'wplovers/woo-russian-marketplace' => array( 14 'pretty_version' => '0.1. 2',15 'version' => '0.1. 2.0',16 'reference' => ' 18261b156a42845dcb29afb3a51c4cf8e2e58dcb',14 'pretty_version' => '0.1.3', 15 'version' => '0.1.3.0', 16 'reference' => '038513384485353994c96b39898b927d96fc33d8', 17 17 'type' => 'wordpress-plugin', 18 18 'install_path' => __DIR__ . '/../../', -
russian-marketplaces-for-woocommerce/tags/0.1.3/woo-russian-marketplaces.php
r3004283 r3277132 2 2 /** 3 3 * Plugin Name: Russian marketplaces for WooCommerce 4 * Plugin URI:https://www.kobzarev.com/ 4 5 * Description: Добавьте ссылки на свои товары в Российских маркетплейсах. 5 * Author: WPlovers 6 * Author URI: https://wplovers.pro/ 7 * Version: 0.1.2 6 * Author: mihdan 7 * Author URI: https://www.kobzarev.com/ 8 * Version: 0.1.3 9 * Requires at least: 6.5 10 * Requires PHP: 7.4 11 * License: GPLv2 or later 12 * License URI: https://www.gnu.org/licenses/gpl-2.0.html 13 * Text Domain: woo-russian-marketplaces 14 * Requires Plugins: woocommerce 8 15 * 9 * @package w plovers-woo-russian-marketplaces16 * @package woo-russian-marketplaces 10 17 */ 11 18 … … 13 20 14 21 define( 'WPL_WOO_RUSSIAN_MARKETPLACES_NAME', 'Russian marketplaces for WooCommerce' ); 15 define( 'WPL_WOO_RUSSIAN_MARKETPLACES_SLUG', 'w plovers-woo-russian-marketplaces' );16 define( 'WPL_WOO_RUSSIAN_MARKETPLACES_PREFIX', 'w plovers_woo_russian_marketplaces' );22 define( 'WPL_WOO_RUSSIAN_MARKETPLACES_SLUG', 'woo-russian-marketplaces' ); 23 define( 'WPL_WOO_RUSSIAN_MARKETPLACES_PREFIX', 'woo_russian_marketplaces' ); 17 24 define( 'WPL_WOO_RUSSIAN_MARKETPLACES_BASENAME', plugin_basename( __FILE__ ) ); 18 25 define( 'WPL_WOO_RUSSIAN_MARKETPLACES_URL', plugin_dir_url( __FILE__ ) ); -
russian-marketplaces-for-woocommerce/trunk/readme.txt
r3004283 r3277132 1 1 === Russian marketplaces for WooCommerce === 2 Contributors: mihdan , donatory3 Tags: W ooCommerce,Wildberries,Ozon,Yandex Market,Avito,Lamoda,SberMegaMarket,Aliexpress2 Contributors: mihdan 3 Tags: Wildberries,Ozon,Yandex Market,Avito,SberMegaMarket 4 4 Donate link: https://www.kobzarev.com/donate/ 5 Requires at least: 5.26 Tested up to: 6. 45 Requires at least: 6.5 6 Tested up to: 6.8 7 7 Requires PHP: 7.4 8 Stable tag: 0.1. 28 Stable tag: 0.1.3 9 9 License: GPL-2.0-or-later 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html 10 11 11 12 Link your WooCommerce store to Russian marketplaces and sell more. Adds link-buttons in the card to the same product on marketplaces … … 77 78 == Changelog == 78 79 80 = 0.1.3 (19.04.2025) = 81 - Updated to work with WordPress 6.8+ 82 79 83 = 0.1.2 (01.12.2023) = 80 - Updated to work with WordPress 6.4 .+81 - Updated to work with WordPress 8.3 .+84 - Updated to work with WordPress 6.4+ 85 - Updated to work with WordPress 8.3+ 82 86 83 87 = 0.1.1 (29.09.2023) = -
russian-marketplaces-for-woocommerce/trunk/src/Assets.php
r2932681 r3277132 3 3 * Подключает ассеты. 4 4 * 5 * @package w plovers-woo-russian-marketplaces5 * @package woo-russian-marketplaces 6 6 */ 7 7 -
russian-marketplaces-for-woocommerce/trunk/src/Main.php
r2932681 r3277132 3 3 * Основной файл плагина. 4 4 * 5 * @package w plovers-woo-russian-marketplaces5 * @package woo-russian-marketplaces 6 6 */ 7 7 -
russian-marketplaces-for-woocommerce/trunk/src/Marketplace.php
r2972820 r3277132 3 3 * Абстрактный класс маркетплейса. 4 4 * 5 * @package w plovers-woo-russian-marketplaces5 * @package woo-russian-marketplaces 6 6 */ 7 7 … … 46 46 [ 47 47 'wildberries' => [ 48 'name' => __( 'Wildberries', 'w plovers-woo-russian-marketplaces' ),48 'name' => __( 'Wildberries', 'woo-russian-marketplaces' ), 49 49 'css' => [ 50 50 'background-color' => '#CB11AB', … … 54 54 ], 55 55 'ozon' => [ 56 'name' => __( 'Ozon', 'w plovers-woo-russian-marketplaces' ),56 'name' => __( 'Ozon', 'woo-russian-marketplaces' ), 57 57 'css' => [ 58 58 'background-color' => '#005BFF', … … 62 62 ], 63 63 'yandex_market' => [ 64 'name' => __( 'Yandex Market', 'w plovers-woo-russian-marketplaces' ),64 'name' => __( 'Yandex Market', 'woo-russian-marketplaces' ), 65 65 'css' => [ 66 66 'background-color' => '#FFCC00', … … 70 70 ], 71 71 'avito' => [ 72 'name' => __( 'Avito', 'w plovers-woo-russian-marketplaces' ),72 'name' => __( 'Avito', 'woo-russian-marketplaces' ), 73 73 'css' => [ 74 74 'background-color' => '#00AAFF', … … 78 78 ], 79 79 'lamoda' => [ 80 'name' => __( 'Lamoda', 'w plovers-woo-russian-marketplaces' ),80 'name' => __( 'Lamoda', 'woo-russian-marketplaces' ), 81 81 'css' => [ 82 82 'background-color' => '#000000', … … 86 86 ], 87 87 'sbermegamarket' => [ 88 'name' => __( 'SberMegaMarket', 'w plovers-woo-russian-marketplaces' ),88 'name' => __( 'SberMegaMarket', 'woo-russian-marketplaces' ), 89 89 'css' => [ 90 90 'background-color' => '#9B38DC', … … 94 94 ], 95 95 'livemaster' => [ 96 'name' => __( 'Ярмарка мастеров', 'w plovers-woo-russian-marketplaces' ),96 'name' => __( 'Ярмарка мастеров', 'woo-russian-marketplaces' ), 97 97 'css' => [ 98 98 'background-color' => '#EA7913', … … 102 102 ], 103 103 'aliexpress' => [ 104 'name' => __( 'Aliexpress', 'w plovers-woo-russian-marketplaces' ),104 'name' => __( 'Aliexpress', 'woo-russian-marketplaces' ), 105 105 'css' => [ 106 106 'background-color' => '#CC290A', -
russian-marketplaces-for-woocommerce/trunk/src/Marketplaces/Wildberries.php
r2932681 r3277132 3 3 * Класс маркетплейса Wildberries. 4 4 * 5 * @package w plovers-woo-russian-marketplaces5 * @package woo-russian-marketplaces 6 6 */ 7 7 … … 29 29 */ 30 30 public function get_name(): string { 31 return __( 'Wildberries', 'w plovers-woo-russian-marketplaces' );31 return __( 'Wildberries', 'woo-russian-marketplaces' ); 32 32 } 33 33 -
russian-marketplaces-for-woocommerce/trunk/src/Metabox.php
r2972820 r3277132 3 3 * Вкладка настроек товара в метабоксе WooCommerce. 4 4 * 5 * @package w plovers-woo-russian-marketplaces5 * @package woo-russian-marketplaces 6 6 * @link https://woocommerce.com/document/editing-product-data-tabs/ 7 7 * @link https://misha.agency/course/nastrojki-tovara-woocommerce … … 85 85 <?php 86 86 echo wp_kses_post( 87 sprintf( __( 'All marketplaces are disabled. Enable at least one in <a href="%s">Settings</a>.', 'wplovers-woo-russian-marketplaces' ), Settings::get_settings_link() ) 87 /* translators: settings URL */ 88 sprintf( __( 'All marketplaces are disabled. Enable at least one in <a href="%s">Settings</a>.', 'woo-russian-marketplaces' ), Settings::get_settings_link() ) 88 89 ); 89 90 ?> 90 91 </p> 91 92 <?php else : ?> 92 <p><?php esc_html_e( 'Insert links for this product on marketplaces into the fields', 'w plovers-woo-russian-marketplaces' ); ?></p>93 <p><?php esc_html_e( 'Insert links for this product on marketplaces into the fields', 'woo-russian-marketplaces' ); ?></p> 93 94 <?php endif; ?> 94 95 <?php … … 109 110 ?> 110 111 <div class="wplovers-gopro"> 111 <p><b><?php esc_html_e( 'Want to automatically fill in product links?', 'w plovers-woo-russian-marketplaces' ); ?></b> <?php esc_html_e( 'Connect integration with marketplaces and get:', 'wplovers-woo-russian-marketplaces' ); ?></p>112 <p><b><?php esc_html_e( 'Want to automatically fill in product links?', 'woo-russian-marketplaces' ); ?></b> <?php esc_html_e( 'Connect integration with marketplaces and get:', 'woo-russian-marketplaces' ); ?></p> 112 113 <ul> 113 <li><?php esc_html_e( 'Automatic download and upload products;', 'w plovers-woo-russian-marketplaces' ); ?></li>114 <li><?php esc_html_e( 'Loading orders;', 'w plovers-woo-russian-marketplaces' ); ?></li>115 <li><?php esc_html_e( 'Exchange of balances;', 'w plovers-woo-russian-marketplaces' ); ?></li>116 <li><?php esc_html_e( 'Flexible pricing.', 'w plovers-woo-russian-marketplaces' ); ?></li>114 <li><?php esc_html_e( 'Automatic download and upload products;', 'woo-russian-marketplaces' ); ?></li> 115 <li><?php esc_html_e( 'Loading orders;', 'woo-russian-marketplaces' ); ?></li> 116 <li><?php esc_html_e( 'Exchange of balances;', 'woo-russian-marketplaces' ); ?></li> 117 <li><?php esc_html_e( 'Flexible pricing.', 'woo-russian-marketplaces' ); ?></li> 117 118 </ul> 118 <p><a href="<?php echo esc_url( Settings::get_gopro_link() ); ?>"><b><?php esc_html_e( 'Yes, I want to automate everything!', 'w plovers-woo-russian-marketplaces' ); ?></b></a></p>119 <p><a href="<?php echo esc_url( Settings::get_gopro_link() ); ?>"><b><?php esc_html_e( 'Yes, I want to automate everything!', 'woo-russian-marketplaces' ); ?></b></a></p> 119 120 </div> 120 121 </div> -
russian-marketplaces-for-woocommerce/trunk/src/Settings.php
r2932681 r3277132 3 3 * Настройки плагина. 4 4 * 5 * @package w plovers-woo-russian-marketplaces;5 * @package woo-russian-marketplaces; 6 6 * @link https://woocommerce.com/document/adding-a-section-to-a-settings-tab/ 7 7 * @link https://www.tychesoftwares.com/how-to-add-custom-sections-fields-in-woocommerce-settings/ … … 24 24 * Идентификатор секции. 25 25 */ 26 const SECTION_SLUG = 'w plovers-woo-russian-marketplaces';26 const SECTION_SLUG = 'woo-russian-marketplaces'; 27 27 28 28 /** … … 72 72 73 73 add_action( 74 'admin_ head',74 'admin_enqueue_scripts', 75 75 function () { 76 ?> 77 <script> 78 jQuery( function ( $ ) { 79 const 80 collapsed_class = 'wplovers-spoiler--collapsed', 81 $spoilers = $( '.wplovers-spoiler' ); 82 83 $( '.wplovers-spoiler__name' ).on( 84 'click', 85 function () { 86 //$spoilers.addClass( collapsed_class ); 87 $( this ).parents( '.wplovers-spoiler' ).toggleClass( collapsed_class ); 88 } 89 ); 90 } ); 91 </script> 92 <?php 76 wp_enqueue_script( 77 Utils::get_plugin_slug(), 78 Utils::get_plugin_url() . 'assets/js/admin.js', 79 [ 'jquery' ], 80 filemtime( Utils::get_plugin_path() . 'assets/js/admin.js' ) 81 ); 93 82 } 94 83 ); … … 133 122 '<a href="%s">%s</a>', 134 123 self::get_settings_link(), 135 esc_html__( 'Settings', 'w plovers-woo-russian-marketplaces' )124 esc_html__( 'Settings', 'woo-russian-marketplaces' ) 136 125 ); 137 126 … … 139 128 '<a href="%s" style="font-weight: bold; color: #524cff">%s</a>', 140 129 self::get_gopro_link(), 141 esc_html__( 'Get full integrations!', 'w plovers-woo-russian-marketplaces' )130 esc_html__( 'Get full integrations!', 'woo-russian-marketplaces' ) 142 131 ); 143 132 … … 231 220 'text' => sprintf( 232 221 '<h1>%s</h1>', 233 __( 'Russian marketplaces settings', 'w plovers-woo-russian-marketplaces' )222 __( 'Russian marketplaces settings', 'woo-russian-marketplaces' ) 234 223 ), 235 224 'id' => 'info', … … 239 228 $settings_slider[] = $this->add_field( 240 229 [ 241 'name' => __( 'Buttons block design', 'w plovers-woo-russian-marketplaces' ),230 'name' => __( 'Buttons block design', 'woo-russian-marketplaces' ), 242 231 'type' => 'title', 243 'desc' => __( 'Settings of the main block with buttons-links to marketplaces', 'w plovers-woo-russian-marketplaces' ),232 'desc' => __( 'Settings of the main block with buttons-links to marketplaces', 'woo-russian-marketplaces' ), 244 233 'id' => 'buttons_block_design', 245 234 ] … … 248 237 $settings_slider[] = $this->add_field( 249 238 [ 250 'name' => __( 'Margin top', 'w plovers-woo-russian-marketplaces' ),239 'name' => __( 'Margin top', 'woo-russian-marketplaces' ), 251 240 'type' => 'number', 252 241 'id' => 'buttons_block_design_margin_top', … … 259 248 $settings_slider[] = $this->add_field( 260 249 [ 261 'name' => __( 'Margin bottom', 'w plovers-woo-russian-marketplaces' ),250 'name' => __( 'Margin bottom', 'woo-russian-marketplaces' ), 262 251 'type' => 'number', 263 252 'id' => 'buttons_block_design_margin_bottom', … … 270 259 $settings_slider[] = $this->add_field( 271 260 [ 272 'name' => __( 'Padding', 'w plovers-woo-russian-marketplaces' ),273 'desc' => __( 'Sets padding on all sides of the block', 'w plovers-woo-russian-marketplaces' ),261 'name' => __( 'Padding', 'woo-russian-marketplaces' ), 262 'desc' => __( 'Sets padding on all sides of the block', 'woo-russian-marketplaces' ), 274 263 'type' => 'number', 275 264 'id' => 'buttons_block_design_padding', … … 282 271 $settings_slider[] = $this->add_field( 283 272 [ 284 'name' => __( 'Background color', 'w plovers-woo-russian-marketplaces' ),273 'name' => __( 'Background color', 'woo-russian-marketplaces' ), 285 274 'type' => 'color', 286 275 'id' => 'buttons_block_design_background_color', … … 293 282 $settings_slider[] = $this->add_field( 294 283 [ 295 'name' => __( 'Border width', 'w plovers-woo-russian-marketplaces' ),284 'name' => __( 'Border width', 'woo-russian-marketplaces' ), 296 285 'type' => 'number', 297 286 'id' => 'buttons_block_design_border_width', … … 304 293 $settings_slider[] = $this->add_field( 305 294 [ 306 'name' => __( 'Border radius', 'w plovers-woo-russian-marketplaces' ),295 'name' => __( 'Border radius', 'woo-russian-marketplaces' ), 307 296 'type' => 'number', 308 297 'id' => 'buttons_block_design_border_radius', … … 315 304 $settings_slider[] = $this->add_field( 316 305 [ 317 'name' => __( 'Border color', 'w plovers-woo-russian-marketplaces' ),306 'name' => __( 'Border color', 'woo-russian-marketplaces' ), 318 307 'type' => 'color', 319 308 'id' => 'buttons_block_design_border_color', … … 326 315 $settings_slider[] = $this->add_field( 327 316 [ 328 'name' => __( 'Where to place', 'w plovers-woo-russian-marketplaces' ),317 'name' => __( 'Where to place', 'woo-russian-marketplaces' ), 329 318 'type' => 'radio', 330 319 'id' => 'buttons_block_design_where_to_place', 331 320 'options' => [ 332 'before' => __( 'Before Add to cart block', 'w plovers-woo-russian-marketplaces' ),333 'after' => __( 'After Add to cart block', 'w plovers-woo-russian-marketplaces' ),321 'before' => __( 'Before Add to cart block', 'woo-russian-marketplaces' ), 322 'after' => __( 'After Add to cart block', 'woo-russian-marketplaces' ), 334 323 ], 335 324 'default' => 'after', … … 346 335 $settings_slider[] = $this->add_field( 347 336 [ 348 'name' => __( 'Block title', 'w plovers-woo-russian-marketplaces' ),337 'name' => __( 'Block title', 'woo-russian-marketplaces' ), 349 338 'type' => 'title', 350 'desc' => __( 'Write your call to buy on marketplaces', 'w plovers-woo-russian-marketplaces' ),339 'desc' => __( 'Write your call to buy on marketplaces', 'woo-russian-marketplaces' ), 351 340 'id' => 'block_title', 352 341 ] … … 355 344 $settings_slider[] = $this->add_field( 356 345 [ 357 'name' => __( 'Text', 'w plovers-woo-russian-marketplaces' ),346 'name' => __( 'Text', 'woo-russian-marketplaces' ), 358 347 'type' => 'text', 359 348 'id' => 'block_title_text', 360 'default' => __( 'Buy this product on marketplaces', 'w plovers-woo-russian-marketplaces' ),349 'default' => __( 'Buy this product on marketplaces', 'woo-russian-marketplaces' ), 361 350 'css' => 'width:260px', 362 351 ] … … 365 354 $settings_slider[] = $this->add_field( 366 355 [ 367 'name' => __( 'Margin bottom', 'w plovers-woo-russian-marketplaces' ),356 'name' => __( 'Margin bottom', 'woo-russian-marketplaces' ), 368 357 'type' => 'number', 369 358 'id' => 'block_title_margin_bottom', … … 376 365 $settings_slider[] = $this->add_field( 377 366 [ 378 'name' => __( 'Font size', 'w plovers-woo-russian-marketplaces' ),367 'name' => __( 'Font size', 'woo-russian-marketplaces' ), 379 368 'type' => 'number', 380 369 'id' => 'block_title_font_size', … … 387 376 $settings_slider[] = $this->add_field( 388 377 [ 389 'name' => __( 'Color', 'w plovers-woo-russian-marketplaces' ),378 'name' => __( 'Color', 'woo-russian-marketplaces' ), 390 379 'type' => 'color', 391 380 'id' => 'block_title_color', … … 408 397 $settings_slider[] = $this->add_field( 409 398 [ 410 'name' => __( 'Marketplaces', 'w plovers-woo-russian-marketplaces' ),399 'name' => __( 'Marketplaces', 'woo-russian-marketplaces' ), 411 400 'type' => 'title', 412 401 'id' => 'marketplaces', … … 416 405 $settings_slider[] = $this->add_field( 417 406 [ 418 'name' => __( 'Buttons border width', 'w plovers-woo-russian-marketplaces' ),407 'name' => __( 'Buttons border width', 'woo-russian-marketplaces' ), 419 408 'type' => 'number', 420 409 'id' => 'button_border_width', … … 427 416 $settings_slider[] = $this->add_field( 428 417 [ 429 'name' => __( 'Buttons border radius', 'w plovers-woo-russian-marketplaces' ),418 'name' => __( 'Buttons border radius', 'woo-russian-marketplaces' ), 430 419 'type' => 'number', 431 420 'id' => 'button_border_radius', … … 438 427 $settings_slider[] = $this->add_field( 439 428 [ 440 'name' => __( 'Buttons font size', 'w plovers-woo-russian-marketplaces' ),429 'name' => __( 'Buttons font size', 'woo-russian-marketplaces' ), 441 430 'type' => 'number', 442 431 'id' => 'button_font_size', … … 479 468 $settings_slider[] = $this->add_field( 480 469 [ 481 'name' => __( 'On/Off', 'w plovers-woo-russian-marketplaces' ),470 'name' => __( 'On/Off', 'woo-russian-marketplaces' ), 482 471 'type' => 'checkbox', 483 472 'default' => 'no', … … 488 477 $settings_slider[] = $this->add_field( 489 478 [ 490 'name' => __( 'Button background color', 'w plovers-woo-russian-marketplaces' ),479 'name' => __( 'Button background color', 'woo-russian-marketplaces' ), 491 480 'type' => 'color', 492 481 'default' => $data['css']['background-color'], … … 499 488 $settings_slider[] = $this->add_field( 500 489 [ 501 'name' => __( 'Button border color', 'w plovers-woo-russian-marketplaces' ),490 'name' => __( 'Button border color', 'woo-russian-marketplaces' ), 502 491 'type' => 'color', 503 492 'id' => 'marketplaces_' . $marketplace_id . '_border_color', … … 510 499 $settings_slider[] = $this->add_field( 511 500 [ 512 'name' => __( 'Marketplace name color', 'w plovers-woo-russian-marketplaces' ),501 'name' => __( 'Marketplace name color', 'woo-russian-marketplaces' ), 513 502 'type' => 'color', 514 503 'id' => 'marketplaces_' . $marketplace_id . '_color', … … 521 510 $settings_slider[] = $this->add_field( 522 511 [ 523 'name' => __( 'Go Pro', 'w plovers-woo-russian-marketplaces' ),512 'name' => __( 'Go Pro', 'woo-russian-marketplaces' ), 524 513 'type' => 'html', 525 514 'id' => 'marketplaces_' . $marketplace_id . '_gopro', … … 545 534 $settings_slider[] = $this->add_field( 546 535 [ 547 'name' => __( 'SEO', 'w plovers-woo-russian-marketplaces' ),536 'name' => __( 'SEO', 'woo-russian-marketplaces' ), 548 537 'type' => 'title', 549 538 'id' => 'seo', … … 553 542 $settings_slider[] = $this->add_field( 554 543 [ 555 'name' => __( 'Wrap links with noindex', 'w plovers-woo-russian-marketplaces' ),544 'name' => __( 'Wrap links with noindex', 'woo-russian-marketplaces' ), 556 545 'type' => 'checkbox', 557 546 'default' => 'no', … … 562 551 $settings_slider[] = $this->add_field( 563 552 [ 564 'name' => __( 'Add nofollow attribute to links', 'w plovers-woo-russian-marketplaces' ),553 'name' => __( 'Add nofollow attribute to links', 'woo-russian-marketplaces' ), 565 554 'type' => 'checkbox', 566 555 'default' => 'no', … … 571 560 $settings_slider[] = $this->add_field( 572 561 [ 573 'name' => __( 'Open links in a new tab', 'w plovers-woo-russian-marketplaces' ),562 'name' => __( 'Open links in a new tab', 'woo-russian-marketplaces' ), 574 563 'type' => 'checkbox', 575 564 'default' => 'no', … … 640 629 ?> 641 630 <div class="wplovers-gopro"> 642 <p><b><?php esc_html_e( 'Want to automatically fill in product links?', 'w plovers-woo-russian-marketplaces' ); ?></b> <?php esc_html_e( 'Connect integration with marketplaces and get:', 'wplovers-woo-russian-marketplaces' ); ?></p>631 <p><b><?php esc_html_e( 'Want to automatically fill in product links?', 'woo-russian-marketplaces' ); ?></b> <?php esc_html_e( 'Connect integration with marketplaces and get:', 'woo-russian-marketplaces' ); ?></p> 643 632 <ul> 644 <li><?php esc_html_e( 'Automatic download and upload products;', 'w plovers-woo-russian-marketplaces' ); ?></li>645 <li><?php esc_html_e( 'Loading orders;', 'w plovers-woo-russian-marketplaces' ); ?></li>646 <li><?php esc_html_e( 'Exchange of balances;', 'w plovers-woo-russian-marketplaces' ); ?></li>647 <li><?php esc_html_e( 'Flexible pricing.', 'w plovers-woo-russian-marketplaces' ); ?></li>633 <li><?php esc_html_e( 'Automatic download and upload products;', 'woo-russian-marketplaces' ); ?></li> 634 <li><?php esc_html_e( 'Loading orders;', 'woo-russian-marketplaces' ); ?></li> 635 <li><?php esc_html_e( 'Exchange of balances;', 'woo-russian-marketplaces' ); ?></li> 636 <li><?php esc_html_e( 'Flexible pricing.', 'woo-russian-marketplaces' ); ?></li> 648 637 </ul> 649 <p><a href="<?php echo esc_url( self::get_gopro_link() ); ?>"><b><?php esc_html_e( 'Yes, I want to automate everything!', 'w plovers-woo-russian-marketplaces' ); ?></b></a></p>638 <p><a href="<?php echo esc_url( self::get_gopro_link() ); ?>"><b><?php esc_html_e( 'Yes, I want to automate everything!', 'woo-russian-marketplaces' ); ?></b></a></p> 650 639 </div> 651 640 <?php -
russian-marketplaces-for-woocommerce/trunk/src/Utils.php
r2932681 r3277132 3 3 * Полезные утилиты для плагина. 4 4 * 5 * @package w plovers-woo-russian-marketplaces5 * @package woo-russian-marketplaces 6 6 */ 7 7 -
russian-marketplaces-for-woocommerce/trunk/src/Widget.php
r2932681 r3277132 3 3 * Вывод виджета во фронтенде. 4 4 * 5 * @package w plovers-woo-russian-marketplaces5 * @package woo-russian-marketplaces 6 6 */ 7 7 … … 23 23 add_action( 'woocommerce_before_add_to_cart_form', [ $this, 'add_block' ] ); 24 24 } 25 26 add_action( 'wp_enqueue_scripts', [ $this, 'enqueue_scripts' ], 11 ); 27 } 28 29 public function enqueue_scripts(): void { 30 $urls = get_post_meta( get_the_ID(), Utils::get_plugin_prefix(), true ); 31 $marketplaces = Marketplace::get_merketplaces(); 32 $settings = Settings::get_options(); 33 ob_start(); 34 ?> 35 .woo-russian-marketplaces { 36 background-color: <?php echo esc_html( $settings['buttons_block_design_background_color'] ); ?>; 37 padding: <?php echo esc_html( $settings['buttons_block_design_padding'] ); ?>px; 38 border-radius: <?php echo esc_html( $settings['buttons_block_design_border_radius'] ); ?>px; 39 margin-top: <?php echo esc_html( $settings['buttons_block_design_margin_top'] ); ?>px; 40 margin-bottom: <?php echo esc_html( $settings['buttons_block_design_margin_bottom'] ); ?>px; 41 border-width: <?php echo esc_html( $settings['buttons_block_design_border_width'] ); ?>px; 42 border-style: solid; 43 border-color: <?php echo esc_html( $settings['buttons_block_design_border_color'] ); ?>; 44 } 45 .woo-russian-marketplaces .woo-russian-marketplaces__header { 46 font-weight: 700; 47 margin-bottom: <?php echo esc_html( $settings['block_title_margin_bottom'] ); ?>px; 48 font-size: <?php echo esc_html( $settings['block_title_font_size'] ); ?>px; 49 color: <?php echo esc_html( $settings['block_title_color'] ); ?>; 50 } 51 .woo-russian-marketplaces .woo-russian-marketplaces__list { 52 display: flex; 53 flex-direction: row; 54 flex-wrap: wrap; 55 gap: 15px; 56 align-items: center; 57 justify-content: flex-start; 58 } 59 .woo-russian-marketplaces .woo-russian-marketplaces__link { 60 text-decoration: none; 61 text-transform: uppercase; 62 padding: 8px 22px; 63 -webkit-transition: all 300ms ease; 64 transition: all 300ms ease; 65 border-style: solid; 66 border-width: <?php echo esc_html( $settings['button_border_width'] ); ?>px; 67 font-size: <?php echo esc_html( $settings['button_font_size'] ); ?>px; 68 border-radius: <?php echo esc_html( $settings['button_border_radius'] ); ?>px; 69 } 70 .woo-russian-marketplaces .woo-russian-marketplaces__link:hover { 71 opacity: 0.8; 72 } 73 <?php foreach ( $urls as $marketplace => $url ) : ?> 74 <?php 75 if ( empty( $url ) ) { 76 continue; 77 } 78 ?> 79 .woo-russian-marketplaces .woo-russian-marketplaces__link--<?php echo esc_html( $marketplace ); ?> { 80 background-color: <?php echo esc_html( $settings[ 'marketplaces_' . $marketplace . '_background_color' ] ); ?>; 81 border-color: <?php echo esc_html( $settings[ 'marketplaces_' . $marketplace . '_border_color' ] ); ?>; 82 color: <?php echo esc_html( $settings[ 'marketplaces_' . $marketplace . '_color' ] ); ?>; 83 } 84 <?php endforeach; ?> 85 <?php 86 wp_add_inline_style( 'photoswipe', ob_get_clean() ); 25 87 } 26 88 … … 40 102 sprintf( 41 103 /* translators: plugin name, settings link */ 42 __( 'Плагин "%1$s" активирован, но не настроен! <a href="%2$s">Настроить плагин.</a>', 'w plovers-woo-russian-marketplaces' ),104 __( 'Плагин "%1$s" активирован, но не настроен! <a href="%2$s">Настроить плагин.</a>', 'woo-russian-marketplaces' ), 43 105 Utils::get_plugin_name(), 44 106 Settings::get_settings_link() … … 91 153 </div> 92 154 </div> 93 <style>94 .wplovers-woo-russian-marketplaces {95 background-color: <?php echo esc_html( $settings['buttons_block_design_background_color'] ); ?>;96 padding: <?php echo esc_html( $settings['buttons_block_design_padding'] ); ?>px;97 border-radius: <?php echo esc_html( $settings['buttons_block_design_border_radius'] ); ?>px;98 margin-top: <?php echo esc_html( $settings['buttons_block_design_margin_top'] ); ?>px;99 margin-bottom: <?php echo esc_html( $settings['buttons_block_design_margin_bottom'] ); ?>px;100 border-width: <?php echo esc_html( $settings['buttons_block_design_border_width'] ); ?>px;101 border-style: solid;102 border-color: <?php echo esc_html( $settings['buttons_block_design_border_color'] ); ?>;103 }104 .wplovers-woo-russian-marketplaces .wplovers-woo-russian-marketplaces__header {105 font-weight: 700;106 margin-bottom: <?php echo esc_html( $settings['block_title_margin_bottom'] ); ?>px;107 font-size: <?php echo esc_html( $settings['block_title_font_size'] ); ?>px;108 color: <?php echo esc_html( $settings['block_title_color'] ); ?>;109 }110 .wplovers-woo-russian-marketplaces .wplovers-woo-russian-marketplaces__list {111 display: flex;112 flex-direction: row;113 flex-wrap: wrap;114 gap: 15px;115 align-items: center;116 justify-content: flex-start;117 }118 .wplovers-woo-russian-marketplaces .wplovers-woo-russian-marketplaces__link {119 text-decoration: none;120 text-transform: uppercase;121 padding: 8px 22px;122 -webkit-transition: all 300ms ease;123 transition: all 300ms ease;124 border-style: solid;125 border-width: <?php echo esc_html( $settings['button_border_width'] ); ?>px;126 font-size: <?php echo esc_html( $settings['button_font_size'] ); ?>px;127 border-radius: <?php echo esc_html( $settings['button_border_radius'] ); ?>px;128 }129 .wplovers-woo-russian-marketplaces .wplovers-woo-russian-marketplaces__link:hover {130 opacity: 0.8;131 }132 <?php foreach ( $urls as $marketplace => $url ) : ?>133 <?php134 if ( empty( $url ) ) {135 continue;136 }137 ?>138 .wplovers-woo-russian-marketplaces .wplovers-woo-russian-marketplaces__link--<?php echo esc_html( $marketplace ); ?> {139 background-color: <?php echo esc_html( $settings[ 'marketplaces_' . $marketplace . '_background_color' ] ); ?>;140 border-color: <?php echo esc_html( $settings[ 'marketplaces_' . $marketplace . '_border_color' ] ); ?>;141 color: <?php echo esc_html( $settings[ 'marketplaces_' . $marketplace . '_color' ] ); ?>;142 }143 <?php endforeach; ?>144 </style>145 155 <?php endif; ?> 146 156 <?php -
russian-marketplaces-for-woocommerce/trunk/vendor/autoload.php
r3004283 r3277132 15 15 } 16 16 } 17 trigger_error( 18 $err, 19 E_USER_ERROR 20 ); 17 throw new RuntimeException($err); 21 18 } 22 19 -
russian-marketplaces-for-woocommerce/trunk/vendor/composer/InstalledVersions.php
r2932681 r3277132 28 28 { 29 29 /** 30 * @var string|null if set (by reflection by Composer), this should be set to the path where this class is being copied to 31 * @internal 32 */ 33 private static $selfDir = null; 34 35 /** 30 36 * @var mixed[]|null 31 37 * @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}|array{}|null 32 38 */ 33 39 private static $installed; 40 41 /** 42 * @var bool 43 */ 44 private static $installedIsLocalDir; 34 45 35 46 /** … … 310 321 self::$installed = $data; 311 322 self::$installedByVendor = array(); 323 324 // when using reload, we disable the duplicate protection to ensure that self::$installed data is 325 // always returned, but we cannot know whether it comes from the installed.php in __DIR__ or not, 326 // so we have to assume it does not, and that may result in duplicate data being returned when listing 327 // all installed packages for example 328 self::$installedIsLocalDir = false; 329 } 330 331 /** 332 * @return string 333 */ 334 private static function getSelfDir() 335 { 336 if (self::$selfDir === null) { 337 self::$selfDir = strtr(__DIR__, '\\', '/'); 338 } 339 340 return self::$selfDir; 312 341 } 313 342 … … 323 352 324 353 $installed = array(); 354 $copiedLocalDir = false; 325 355 326 356 if (self::$canGetVendors) { 357 $selfDir = self::getSelfDir(); 327 358 foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) { 359 $vendorDir = strtr($vendorDir, '\\', '/'); 328 360 if (isset(self::$installedByVendor[$vendorDir])) { 329 361 $installed[] = self::$installedByVendor[$vendorDir]; … … 331 363 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 332 364 $required = require $vendorDir.'/composer/installed.php'; 333 $installed[] = self::$installedByVendor[$vendorDir] = $required; 334 if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { 335 self::$installed = $installed[count($installed) - 1]; 365 self::$installedByVendor[$vendorDir] = $required; 366 $installed[] = $required; 367 if (self::$installed === null && $vendorDir.'/composer' === $selfDir) { 368 self::$installed = $required; 369 self::$installedIsLocalDir = true; 336 370 } 371 } 372 if (self::$installedIsLocalDir && $vendorDir.'/composer' === $selfDir) { 373 $copiedLocalDir = true; 337 374 } 338 375 } … … 351 388 } 352 389 353 if (self::$installed !== array() ) {390 if (self::$installed !== array() && !$copiedLocalDir) { 354 391 $installed[] = self::$installed; 355 392 } -
russian-marketplaces-for-woocommerce/trunk/vendor/composer/installed.php
r3004283 r3277132 2 2 'root' => array( 3 3 'name' => 'wplovers/woo-russian-marketplace', 4 'pretty_version' => '0.1. 2',5 'version' => '0.1. 2.0',6 'reference' => ' 18261b156a42845dcb29afb3a51c4cf8e2e58dcb',4 'pretty_version' => '0.1.3', 5 'version' => '0.1.3.0', 6 'reference' => '038513384485353994c96b39898b927d96fc33d8', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 12 12 'versions' => array( 13 13 'wplovers/woo-russian-marketplace' => array( 14 'pretty_version' => '0.1. 2',15 'version' => '0.1. 2.0',16 'reference' => ' 18261b156a42845dcb29afb3a51c4cf8e2e58dcb',14 'pretty_version' => '0.1.3', 15 'version' => '0.1.3.0', 16 'reference' => '038513384485353994c96b39898b927d96fc33d8', 17 17 'type' => 'wordpress-plugin', 18 18 'install_path' => __DIR__ . '/../../', -
russian-marketplaces-for-woocommerce/trunk/woo-russian-marketplaces.php
r3004283 r3277132 2 2 /** 3 3 * Plugin Name: Russian marketplaces for WooCommerce 4 * Plugin URI:https://www.kobzarev.com/ 4 5 * Description: Добавьте ссылки на свои товары в Российских маркетплейсах. 5 * Author: WPlovers 6 * Author URI: https://wplovers.pro/ 7 * Version: 0.1.2 6 * Author: mihdan 7 * Author URI: https://www.kobzarev.com/ 8 * Version: 0.1.3 9 * Requires at least: 6.5 10 * Requires PHP: 7.4 11 * License: GPLv2 or later 12 * License URI: https://www.gnu.org/licenses/gpl-2.0.html 13 * Text Domain: woo-russian-marketplaces 14 * Requires Plugins: woocommerce 8 15 * 9 * @package w plovers-woo-russian-marketplaces16 * @package woo-russian-marketplaces 10 17 */ 11 18 … … 13 20 14 21 define( 'WPL_WOO_RUSSIAN_MARKETPLACES_NAME', 'Russian marketplaces for WooCommerce' ); 15 define( 'WPL_WOO_RUSSIAN_MARKETPLACES_SLUG', 'w plovers-woo-russian-marketplaces' );16 define( 'WPL_WOO_RUSSIAN_MARKETPLACES_PREFIX', 'w plovers_woo_russian_marketplaces' );22 define( 'WPL_WOO_RUSSIAN_MARKETPLACES_SLUG', 'woo-russian-marketplaces' ); 23 define( 'WPL_WOO_RUSSIAN_MARKETPLACES_PREFIX', 'woo_russian_marketplaces' ); 17 24 define( 'WPL_WOO_RUSSIAN_MARKETPLACES_BASENAME', plugin_basename( __FILE__ ) ); 18 25 define( 'WPL_WOO_RUSSIAN_MARKETPLACES_URL', plugin_dir_url( __FILE__ ) );
Note: See TracChangeset
for help on using the changeset viewer.