blocks
4 years ago
options
4 years ago
template
4 years ago
google.php
4 years ago
index.php
4 years ago
options.php
4 years ago
process.php
4 years ago
success_page.php
4 years ago
template.php
4 years ago
variation_options.php
4 years ago
variation_options_common.php
4 years ago
google.php
37 lines
| 1 | <?php |
| 2 | wp_enqueue_script('pmxe-angular-app', PMXE_ROOT_URL . '/dist/app.min.js', array('jquery'), PMXE_VERSION); |
| 3 | wp_enqueue_style('pmxe-angular-scss', PMXE_ROOT_URL . '/dist/styles.css', array(), PMXE_VERSION); |
| 4 | |
| 5 | $productAttributesJson = empty(XmlExportEngine::$globalAvailableSections['product_data']['additional']['attributes']['meta']) ? '' : json_encode(XmlExportEngine::$globalAvailableSections['product_data']['additional']['attributes']['meta']); |
| 6 | |
| 7 | if(getenv('WPAE_DEV')) { |
| 8 | wp_enqueue_script('pmxe-livereload', '//localhost:35729/livereload.js', array(), '3', true); |
| 9 | } |
| 10 | ?> |
| 11 | <script type="text/javascript"> |
| 12 | var wpae_product_attributes = <?php echo empty($productAttributesJson) ? '""' : $productAttributesJson; ?>; |
| 13 | </script> |
| 14 | |
| 15 | <div ng-app="GoogleMerchants" |
| 16 | ng-controller="mainController" |
| 17 | ng-init="init('<?php if (class_exists("WooCommerce")) echo get_woocommerce_currency_symbol(); ?>', |
| 18 | '<?php if (class_exists("WooCommerce")) echo get_woocommerce_currency();?>', |
| 19 | <?php $is_template_loaded = PMXE_Plugin::$session->get('is_loaded_template'); if(!empty($is_template_loaded)) { echo PMXE_Plugin::$session->get('is_loaded_template'); } else { echo "false"; } ?>)" |
| 20 | class="googleMerchants" id="googleMerchants"> |
| 21 | <?php |
| 22 | if ($post['xml_template_type'] == XmlExportEngine::EXPORT_TYPE_GOOLE_MERCHANTS && $post['export_to'] == XmlExportEngine::EXPORT_TYPE_XML) { |
| 23 | ?> |
| 24 | <span ng-init="selectGoogleMerchantsInitially()"></span> |
| 25 | <?php |
| 26 | } |
| 27 | ?> |
| 28 | <div ng-slide-down="isGoogleMerchantExport" duration="0.5"> |
| 29 | <basic-information information="merchantsFeedData.basicInformation"></basic-information> |
| 30 | <availability-price information="merchantsFeedData.availabilityPrice"></availability-price> |
| 31 | <product-categories information="merchantsFeedData.productCategories"></product-categories> |
| 32 | <unique-identifiers information="merchantsFeedData.uniqueIdentifiers"></unique-identifiers> |
| 33 | <detailed-information information="merchantsFeedData.detailedInformation"></detailed-information> |
| 34 | <shipping information="merchantsFeedData.shipping"></shipping> |
| 35 | <advanced-attributes information="merchantsFeedData.advancedAttributes"></advanced-attributes> |
| 36 | </div> |
| 37 | </div> |