From 43ea6181489947c87a3c622b3c8e52883e7b7a08 Mon Sep 17 00:00:00 2001 From: Daniel Schmitzer Date: Wed, 7 Jun 2017 05:35:00 +0000 Subject: - Title deaktivierbar per Shortcode git-svn-id: https://[internal]/wordpress/plugins/wpsg4@6315 0d5edaf7-2b12-4e95-93f4-047927463d4b --- views/css/frontend.css | 1 + views/js/mce_plugin.js | 3 +++ views/produkt/select.phtml | 15 ++++++++++++++- views/warenkorb/index.phtml | 20 +++++++++++--------- 4 files changed, 29 insertions(+), 10 deletions(-) (limited to 'views') diff --git a/views/css/frontend.css b/views/css/frontend.css index af7cda9..9ec60ef 100644 --- a/views/css/frontend.css +++ b/views/css/frontend.css @@ -169,6 +169,7 @@ input.wpsg_error { border-color:red !important; } .wpsg_basket_widget table .wpsg_cell_name { padding-left:0.2rem; } .wpsg_basket_widget table .wpsg_cell_amount { text-align:right; padding-right:0.2rem; } .wpsg_basket_widget table .wpsg_row_summary .wpsg_cell_amount { font-weight:bold; } +.wpsg_basket_widget .wpsg_tax_note { font-size:0.75em; } /* Modul Kundenverwaltung */ .wpsg_mod_kundenverwaltung_widget input[type="text"], .wpsg_mod_kundenverwaltung_widget input[type="password"] { width:100%; margin-bottom:0.5rem; } diff --git a/views/js/mce_plugin.js b/views/js/mce_plugin.js index b287d13..7aaf6ca 100644 --- a/views/js/mce_plugin.js +++ b/views/js/mce_plugin.js @@ -27,7 +27,9 @@ }, createControl : function(n, cm) { + return null; + }, getInfo : function() { @@ -38,6 +40,7 @@ version : "3.0" }; } + }); tinymce.PluginManager.add('wpsg', tinymce.plugins.wpsgPlugin); diff --git a/views/produkt/select.phtml b/views/produkt/select.phtml index 834476a..0d2ca13 100644 --- a/views/produkt/select.phtml +++ b/views/produkt/select.phtml @@ -58,6 +58,13 @@ } + if (document.getElementById("title") != null && document.getElementById("title").value != "1") + { + + text += " hide_title=\"1\" "; + + } + text += "]"; if (window.tinyMCE) @@ -146,7 +153,13 @@ view['arProdukte'], false); ?> - view['arTemplates'], false); ?> + +
+
view['arTemplates'], false); ?>
+
+
+
__('Ja', 'wpsg'), '0' => __('Nein', 'wpsg')), '1'); ?>
+
diff --git a/views/warenkorb/index.phtml b/views/warenkorb/index.phtml index 45f7bd1..a6a6eb7 100644 --- a/views/warenkorb/index.phtml +++ b/views/warenkorb/index.phtml @@ -67,16 +67,18 @@ view['basket']['sum']['preis'], $this->get_option('wpsg_currency')); ?> - -
+ + + + view['wpsg_versandhinweis']) != '') { ?> + view['wpsg_versandhinweis']; ?>
+ get_option("wpsg_kleinunternehmer") == "1" || $this->getFrontendTaxview() == WPSG_NETTO) { ?> + . + +
+ +
- view['wpsg_versandhinweis']) != '') { ?> - view['wpsg_versandhinweis']; ?>
- get_option("wpsg_kleinunternehmer") == "1" || $this->getFrontendTaxview() == WPSG_NETTO) { ?> - . - -
- get_option('wpsg_page_basket') != get_the_ID() || isset($_REQUEST['produkt_id'])) { ?> " /> -- cgit v1.2.3