Changeset 2514743
- Timestamp:
- 04/14/2021 10:33:33 AM (5 years ago)
- Location:
- share-that-cart/trunk
- Files:
-
- 9 edited
-
copy.js (modified) (1 diff)
-
languages/share-that-cart-pl_PL.mo (modified) (previous)
-
languages/share-that-cart-pl_PL.po (modified) (3 diffs)
-
languages/share-that-cart.mo (modified) (previous)
-
readme.txt (modified) (1 diff)
-
share-that-cart.php (modified) (2 diffs)
-
style.css (modified) (1 diff)
-
style.css.map (modified) (1 diff)
-
style.scss (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
share-that-cart/trunk/copy.js
r2287149 r2514743 6 6 } 7 7 if (document.getElementById('sc__button')){ 8 const popup = document.querySelector('#sc__popup'); 8 9 const button = document.getElementById('sc__button'); 9 10 button.addEventListener('click', (e)=>{ 10 11 e.preventDefault(); 11 12 copy(); 13 popup.style.display = "block"; 12 14 }); 15 16 popup.addEventListener('click', ()=>{ 17 popup.style.display = "none"; 18 }); 19 20 13 21 } -
share-that-cart/trunk/languages/share-that-cart-pl_PL.po
r2287149 r2514743 2 2 msgstr "" 3 3 "Project-Id-Version: \n" 4 "POT-Creation-Date: 202 0-04-15 11:36+0200\n"5 "PO-Revision-Date: 202 0-04-15 11:37+0200\n"4 "POT-Creation-Date: 2021-04-14 12:22+0200\n" 5 "PO-Revision-Date: 2021-04-14 12:22+0200\n" 6 6 "Last-Translator: \n" 7 7 "Language-Team: \n" … … 17 17 "X-Poedit-SearchPath-0: share-that-cart.php\n" 18 18 19 #: share-that-cart.php: 2219 #: share-that-cart.php:19 20 20 msgid "" 21 21 "Plugin NOT activated: Share That Cart requires the WooCommerce plugin to be " … … 28 28 msgid "Share That Cart" 29 29 msgstr "Skopiuj link do zawartości koszyka" 30 31 #: share-that-cart.php:61 32 msgid "" 33 "Done! You can now share link to this cart by simply pasting it. It is in " 34 "your clipboard!" 35 msgstr "" 36 "Gotowe! Możesz teraz udostępnić ten koszyk wklejając link, który masz teraz " 37 "w schowku w dowolnym miejscu." -
share-that-cart/trunk/readme.txt
r2514703 r2514743 14 14 == Description == 15 15 This plugin adds "Share this cart" button to the cart page. 16 Want to share items from your cart? Click the "Share That Cart" button (now you have got special URL in clipboard), send a link to a friend and items from your cart will appear in his cart! 16 It's really simple and easy to use. No settings. No additional tables in database. 17 Want to share items from your cart? Just click the "Share That Cart" button (now you have got special URL in clipboard), send a link to a friend and items from your cart will appear in his cart! 17 18 18 19 == Installation == -
share-that-cart/trunk/share-that-cart.php
r2514701 r2514743 10 10 defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); 11 11 12 register_activation_hook(__FILE__, 'sc_active');13 14 12 add_action('woocommerce_after_cart_contents', 'sc_button'); 15 13 add_action('wp_loaded', 'sc_add_products'); 14 register_activation_hook(__FILE__, 'sc_active'); 16 15 17 16 function sc_active() { 18 17 if ( !in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) { 18 deactivate_plugins( basename( __FILE__ ) ); 19 19 die(_e('Plugin NOT activated: Share That Cart requires the WooCommerce plugin to be installed and active.', 'share-that-cart')); 20 return false; 21 } else { 22 return true; 20 23 } 21 24 } … … 54 57 </td> 55 58 </tr> 59 <div class="sc__popup" id="sc__popup"> 60 <?php 61 echo _e('Done! You can now share link to this cart by simply pasting it. It is in your clipboard!', 'share-that-cart'); 62 ?> 63 </div> 56 64 <?php 57 65 } -
share-that-cart/trunk/style.css
r2287149 r2514743 7 7 margin: 0; 8 8 padding: 0; } 9 .sc__popup { 10 display: none; 11 position: fixed; 12 bottom: 0; 13 width: 100%; 14 padding: 15px 0; 15 text-align: center; 16 background: #0073aa; 17 left: 0; 18 color: #fff; 19 z-index: 99999; } 9 20 10 21 /*# sourceMappingURL=style.css.map */ -
share-that-cart/trunk/style.css.map
r2287149 r2514743 1 1 { 2 2 "version": 3, 3 "mappings": "AACC,YAAW;EACV,QAAQ,EAAE,QAAQ;AAGnB,SAAQ;EACP,QAAQ,EAAE,QAAQ;EAClB,IAAI,EAAE,OAAO;EACb,MAAM,EAAE,IAAI;EACZ,MAAM,EAAE,CAAC;EACT,OAAO,EAAE,CAAC ",3 "mappings": "AACC,YAAW;EACV,QAAQ,EAAE,QAAQ;AAGnB,SAAQ;EACP,QAAQ,EAAE,QAAQ;EAClB,IAAI,EAAE,OAAO;EACb,MAAM,EAAE,IAAI;EACZ,MAAM,EAAE,CAAC;EACT,OAAO,EAAE,CAAC;AAOX,UAAS;EACR,OAAO,EAAE,IAAI;EACb,QAAQ,EAAE,KAAK;EACf,MAAM,EAAE,CAAC;EACT,KAAK,EAAE,IAAI;EACX,OAAO,EAAE,MAAM;EACf,UAAU,EAAE,MAAM;EAClB,UAAU,EAAE,OAAO;EACnB,IAAI,EAAE,CAAC;EACP,KAAK,EAAE,IAAI;EACX,OAAO,EAAE,KAAK", 4 4 "sources": ["style.scss"], 5 5 "names": [], -
share-that-cart/trunk/style.scss
r2287149 r2514743 15 15 16 16 } 17 18 &__popup { 19 display: none; 20 position: fixed; 21 bottom: 0; 22 width: 100%; 23 padding: 15px 0; 24 text-align: center; 25 background: #0073aa; 26 left: 0; 27 color: #fff; 28 z-index: 99999; 29 } 17 30 }
Note: See TracChangeset
for help on using the changeset viewer.