diff options
| author | Daniel Schmitzer <noreply@maennchen1.de> | 2019-02-06 07:57:50 +0000 |
|---|---|---|
| committer | Daniel Schmitzer <noreply@maennchen1.de> | 2019-02-06 07:57:50 +0000 |
| commit | 4bb920b778122188ca914686c7e5830449524720 (patch) | |
| tree | 74e8015430b2400b9a4fe0a55c80a2e2ac3725f1 /views | |
| parent | 1336e14ea02c765cc245d0f1ee46cae258de65cb (diff) | |
- Warnung
- Platzhalter in Text Anschreiben
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@7286 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views')
| -rw-r--r-- | views/css/admin.css | 28 | ||||
| -rw-r--r-- | views/mods/mod_legaltexts/Logo_150.png | bin | 0 -> 17763 bytes | |||
| -rw-r--r-- | views/mods/mod_legaltexts/form_itrecht.phtml | 31 | ||||
| -rw-r--r-- | views/mods/mod_legaltexts/settings_edit.phtml | 78 |
4 files changed, 95 insertions, 42 deletions
diff --git a/views/css/admin.css b/views/css/admin.css index 53c536e..da21c71 100644 --- a/views/css/admin.css +++ b/views/css/admin.css @@ -94,6 +94,27 @@ .wpsg_mod_legaltexts_protectedshops_table th { width:58%; text-align:right; font-size:12px; }
.wpsg_mod_legaltexts_protectedshops_table th label { margin-right:30px; }
.wpsg_mod_legaltexts_protectedshops_table #wpshopgermany_ts_shopid { }
+.itrechtlogo { float:right; margin-left:15px; }
+.wpsg_mod_legaltext_select > label { width:100%; font-size:18px; font-weight:normal; padding:15px; display:flex; flex-direction:row; justify-content:flex-start; align-items:center; border:1px solid #31708f; }
+.wpsg_mod_legaltext_select > label.mark { border-width:3px; }
+.wpsg_mod_legaltext_select > label.open { border-bottom:0px; }
+.wpsg_mod_legaltext_select > label > * { flex-grow:0; flex-shrink:0; }
+.wpsg_mod_legaltext_select > label > .grow { flex-grow:1; flex-shrink:1; }
+.wpsg_mod_legaltext_select > label > .glyphicon { font-size:2em; }
+.wpsg_mod_legaltext_select > label input { margin:0px 15px 0px 0px; }
+.wpsg_provider_target { display:none; padding:15px; border:1px solid #31708f; border-top:0px; margin-top:-5px; margin-bottom:15px; }
+.wpsg_provider_target .wpsgitrecht_form_field { width:100%; display:flex; flex-direction:row; justify-content:flex-start; align-items:center; }
+.wpsg_provider_target .wpsgitrecht_form_field .wpsgitrecht_form_left { width:50%; flex-grow:0; flex-shrink:0; }
+.wpsg_provider_target .wpsgitrecht_form_field .wpsgitrecht_form_right { width:50%; flex-grow:0; flex-shrink:0; }
+.wpsg_provider_target .wpsgitrecht_form_field .wpsgitrecht_form_right input { width:100%; }
+.wpsg_provider_target .wpsgitrecht_table { width:100%; border-spacing:0px; border-collapse:collapse; }
+.wpsg_provider_target .wpsgitrecht_table .col0 { width:50%; }
+.wpsg_provider_target .wpsgitrecht_table .col1 { width:50%; }
+.wpsg_provider_target .wpsgitrecht_table select { margin-bottom:5px; width:100%; }
+.wpsg_provider_target .wpsgitrecht_table p { padding:0px 0px 0px 8px; }
+.wpsg_provider_target_3 { border-width:3px; margin-top:-8px; }
+.wpsg_provider_target_3 .button_agb { float:right; }
+.wpsg_provider_target_3 ul li { list-style:initial; margin-left:20px; }
.wphb_form_left { width:30% !important; }
.wphb_form_right { width:68% !important; }
@@ -101,13 +122,6 @@ .wphb_form_right input.checkbox { margin-left:20px !important; }
.wphb_clear { clear:none !important; }
-.wpsgitrecht_form_left { float:left; width:50%; }
-table.wpsgitrecht_table { width:100%; }
-.wpsgitrecht_table td { float:left; width:50%; }
-.wpsgitrecht_table td p { float:left; margin-left:20px; margin-top:5px; }
-.wpsgitrecht_table td br { display:none; }
-.wpsgitrecht_table td select { float:left; }
-
/* Datepicker */
#ui-datepicker-div { z-index:3 !important; }
diff --git a/views/mods/mod_legaltexts/Logo_150.png b/views/mods/mod_legaltexts/Logo_150.png Binary files differnew file mode 100644 index 0000000..8698cb1 --- /dev/null +++ b/views/mods/mod_legaltexts/Logo_150.png diff --git a/views/mods/mod_legaltexts/form_itrecht.phtml b/views/mods/mod_legaltexts/form_itrecht.phtml index 3764df0..af3f7d4 100644 --- a/views/mods/mod_legaltexts/form_itrecht.phtml +++ b/views/mods/mod_legaltexts/form_itrecht.phtml @@ -8,26 +8,31 @@ <?php if ($this->view['wpsg_mod_legaltexts']['form'] == false) { ?>
- <p><?php echo __('wpShopGermany bietet eine AGB-Schnittstelle zur <a href="http://www.it-recht-kanzlei.de/Service/rechtstexte_fuer_onlineshops.php?partner_id=150">IT-Recht Kanzlei</a> an.', 'wpsg'); ?></p>
+ <a href="https://www.it-recht-kanzlei.de/Service/wpShopGermany-agb.php?partner_id=150">
+ <img class="itrechtlogo" src="<?php echo $this->getRessourceURL('mods/mod_legaltexts/Logo_150.png'); ?>" alt="it-recht Kanzlei München" />
+ </a>
- <p><?php echo __('Die IT-Recht Kanzlei bietet für monatlich nur 9,99 Euro abmahnsichere Rechtstexte an - natürlich inkl. Haftung. Dazu gehören die AGB, die Widerrufsbelehrung, die Datenschutzerklärung sowie das Impressum. Mit dem wpShopGermany-IT-Recht Kanzlei Plugin (ab Version 1.0) werden die angebotenen Rechtstexte auf Ihre Blog-Seiten mittels Mausklick automatisch übernommen und künftig auch automatisch aktualisiert - inklusive permanenter AGB-Überwachung.', 'wpsg'); ?></p>
+ <p><?php echo __('wpShopGermany bietet eine AGB-Schnittstelle zur <a href="https://www.it-recht-kanzlei.de/Service/wpShopGermany-agb.php?partner_id=150">IT-Recht Kanzlei</a> an.', 'wpsg'); ?></p>
- <p>
+ <ul>
+ <li><?php echo wpsg_translate(__('Kostenloses Plugin zur automatisierten Nutzung des AGB-Service der <a href="#1#">IT-Recht-Kanzlei</a>', 'wpsg'), 'https://www.it-recht-kanzlei.de/Service/wpShopGermany-agb.php?partner_id=150'); ?></li>
+ <li><?php echo wpsg_translate(__('abmahnsichere Rechtstexte (AGB, Datenschutzerklärung, Widerrufsbelehrung & Co) von der <a href="#1#">IT-Recht Kanzlei</a> ab nur 8,90 €/mtl.', 'wpsg'), 'https://www.it-recht-kanzlei.de/Service/wpShopGermany-agb.php?partner_id=150'); ?></li>
+ <li><?php echo __('Einfache Integration von aktuellen & abmahnsicheren Rechtstexten in den wpShopGermany-Shop', 'wpsg'); ?></li>
+ <li><?php echo __('Automatische Überwachung und Aktualisierung der Rechtstexte', 'wpsg'); ?></li>
+ <li><?php echo __('Selbstverständlich: Anwaltliche Haftung', 'wpsg'); ?></li>
+ <li><?php echo __('Flexibles Vertragsmodell für den AGB-Service: Bei Bedarf Jederzeit monatlich kündbar', 'wpsg'); ?></li>
+ </ul>
- <?php echo __('Jetzt AGB Service buchen', 'wpsg'); ?>:<br />
- <a href="http://www.it-recht-kanzlei.de/Service/rechtstexte_fuer_onlineshops.php?partner_id=150">http://www.it-recht-kanzlei.de/Service/rechtstexte_fuer_onlineshops.php</a>
-
- <br /><br />
-
- <?php echo __('Rechtstexte im günstigen Paketpreis finden Sie hier', 'wpsg'); ?>:<br />
- <a href="http://www.agb-pakete.de/?partner_id=150">http://www.agb-pakete.de</a>
-
- </p>
+ <br />
+ <p>
+ <a class="button" href="https://www.it-recht-kanzlei.de/Service/wpShopGermany-agb.php?partner_id=150"><?php echo __('Jetzt absichern', 'wpsg'); ?></a>
+ </p>
+
<?php if (file_exists(WP_PLUGIN_DIR."/wpshopgermany-itrecht/wpshopgermany-itrecht.php")) { ?>
<p style="color:red;"><?php echo __('Das Plugin wurde bereits gefunden aber noch nicht aktiviert. Bitte aktivieren sie das Plugin in der <a href="plugins.php">Pluginverwaltung</a>.', 'wpsg'); ?></p>
<?php } ?>
-
+
<?php } else { ?>
<?php echo $this->view['wpsg_mod_legaltexts']['form']; ?>
diff --git a/views/mods/mod_legaltexts/settings_edit.phtml b/views/mods/mod_legaltexts/settings_edit.phtml index 25cf8a6..d3565f1 100644 --- a/views/mods/mod_legaltexts/settings_edit.phtml +++ b/views/mods/mod_legaltexts/settings_edit.phtml @@ -3,38 +3,72 @@ /**
* Template für das Modul "Rechtstexte"
*/
-
+
?>
-<?php echo wpsg_drawForm_Select('wpsg_mod_legaltexts_provider', __('Anbieter', 'wpsg'), array(
- wpsg_mod_legaltexts::PROVIDER_PROTECTEDSHOPS => __('Protected Shops', 'wpsg'),
- wpsg_mod_legaltexts::PROVIDER_HAENDLERBUND => __('Händlerbund', 'wpsg'),
- wpsg_mod_legaltexts::PROVIDER_ITRECHT => __('IT-Recht Kanzlei München', 'wpsg')
-), $this->get_option('wpsg_mod_legaltexts_provider'), array('help' => 'wpsg_mod_legaltexts_provider')); ?>
+<div class="wpsg_mod_legaltext_select">
+
+ <label class="bg-info mark <?php echo (($this->view['wpsg_mod_legaltexts_provider'] == wpsg_mod_legaltexts::PROVIDER_ITRECHT)?'open':''); ?>" title="<?php echo __('Premiumpartner', 'itrecht'); ?>">
+
+ <input type="radio" <?php echo (($this->view['wpsg_mod_legaltexts_provider'] == wpsg_mod_legaltexts::PROVIDER_ITRECHT)?'checked="checked"':''); ?> name="wpsg_mod_legaltexts_provider" class="wpsg_mod_legaltexts_provider" value="<?php echo wpsg_mod_legaltexts::PROVIDER_ITRECHT; ?>" />
+ <span class="name"><?php echo __('IT-Recht Kanzlei München') ?></span>
+ <span class="grow"></span>
+ <span class="text-info glyphicon glyphicon-star-empty" aria-hidden="true"></span>
+
+ </label>
+
+ <div class="wpsg_provider_target wpsg_provider_target_<?php echo wpsg_mod_legaltexts::PROVIDER_ITRECHT; ?>"></div>
+
+ <label class="<?php echo (($this->view['wpsg_mod_legaltexts_provider'] == wpsg_mod_legaltexts::PROVIDER_PROTECTEDSHOPS)?'open':''); ?>">
+
+ <input type="radio" <?php echo (($this->view['wpsg_mod_legaltexts_provider'] == wpsg_mod_legaltexts::PROVIDER_PROTECTEDSHOPS)?'checked="checked"':''); ?> name="wpsg_mod_legaltexts_provider" class="wpsg_mod_legaltexts_provider" value="<?php echo wpsg_mod_legaltexts::PROVIDER_PROTECTEDSHOPS; ?>" />
+ <span class="name"><?php echo __('Protected Shops') ?></span>
-<br />
+ </label>
-<div id="wpsg_provider_target"></div>
+ <div class="wpsg_provider_target wpsg_provider_target_<?php echo wpsg_mod_legaltexts::PROVIDER_PROTECTEDSHOPS; ?>"></div>
+ <label class="<?php echo (($this->view['wpsg_mod_legaltexts_provider'] == wpsg_mod_legaltexts::PROVIDER_HAENDLERBUND)?'open':''); ?>">
+
+ <input type="radio" <?php echo (($this->view['wpsg_mod_legaltexts_provider'] == wpsg_mod_legaltexts::PROVIDER_HAENDLERBUND)?'checked="checked"':''); ?> name="wpsg_mod_legaltexts_provider" class="wpsg_mod_legaltexts_provider" value="<?php echo wpsg_mod_legaltexts::PROVIDER_HAENDLERBUND; ?>" />
+ <span class="name"><?php echo __('Händlerbund') ?></span>
+
+ </label>
+
+ <div class="wpsg_provider_target wpsg_provider_target_<?php echo wpsg_mod_legaltexts::PROVIDER_HAENDLERBUND; ?>"></div>
+
+</div>
+
<script type="text/javascript">/* <![CDATA[ */
jQuery(document).ready(function() {
- jQuery('#wpsg_mod_legaltexts_provider').bind('change', function() {
+ jQuery('.wpsg_mod_legaltexts_provider').bind('change', function() {
- jQuery('#wpsg_provider_target').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
-
- jQuery.ajax( {
- url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_legaltexts&noheader=1&do=add',
- data: {
- 'provider': jQuery('#wpsg_mod_legaltexts_provider').val()
- },
- success: function(data) {
-
- jQuery('#wpsg_provider_target').html(data);
-
- }
- } );
+ if (parseInt(jQuery('input[name=wpsg_mod_legaltexts_provider]:checked').val()) > 0) {
+
+ jQuery('.wpsg_mod_legaltext_select > label').removeClass('open');
+ jQuery('.wpsg_provider_target').slideUp(125);
+
+ var target = '.wpsg_provider_target_' + jQuery('input[name=wpsg_mod_legaltexts_provider]:checked').val();
+
+ jQuery(target).html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
+
+ jQuery.ajax( {
+ url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_legaltexts&noheader=1&do=add',
+ data: {
+ 'provider': jQuery('input[name=wpsg_mod_legaltexts_provider]:checked').val()
+ },
+ success: function(data) {
+
+ jQuery(target).prev().addClass('open');
+ jQuery(target).html(data);
+ jQuery(target).slideDown(125);
+
+ }
+ } );
+
+ }
} ).change();
|
