Commit d1647027 by Dirk Wildt

7.5.6

parent d1365668
......@@ -2,6 +2,16 @@ TODO
* 161115: Bug in context with variants: In case of update the quantity by caddy, limits won't respected!
* jquery.t3caddy-4.0.0.js: possible lang is en and de only!
7.5.6
17-11-19
Improvement
* #i0168: Optimise labeling
* Configuration/FlexForms/Pi1/locallang_flexform.xml
Bugfix
* #i0170: jsFooterInline wasn't included proper for Powermail 3.11. See
* Configuration/TypoScript/Powermail/3.11/Page/_setup.ts
* #i0169: Labeling TypoScript template: Powermail Foundation. It wasn't deprecated.
7.5.5
17-11-19
Update
......
......@@ -149,7 +149,7 @@
<label index="sdefUpdatewizard">Update Assistent: Du bekommst einen Bericht im Frontend, wenn Deine IP in der Liste der erlaubten IP eingetragen ist.</label>
<label index="sponsors">Sponsoren</label>
<label index="statistic">Statistik</label>
<label index="statistic.value01">Statistik (Feld von Pwermail)</label>
<label index="statistic.value01">Statistik (Feld von Powermail)</label>
</languageKey>
</data>
</T3locallang>
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:caddy/Configuration/TypoScript/Powermail/3.11/Page/includeJSFooter.ts">
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:caddy/Configuration/TypoScript/Powermail/3.11/Page/jsFooterInline.ts">
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:caddy/Configuration/TypoScript/Powermail/3.11/Page/jsFooterInline/_setup.ts">
page {
// empty statement for proper comments only
jsFooterInline {
}
// 10960: caddy delivery address
jsFooterInline =
jsFooterInline {
// caddy: toogle the delivery address, if is true plugin.caddy.deliveryaddress.includescript (here: '{$plugin.caddy.deliveryaddress.includescript}')
10960 = TEXT
10960 {
// if is true plugin.caddy.deliveryaddress.includescript (here: '{$plugin.caddy.deliveryaddress.includescript}')
if =
if {
isTrue = {$plugin.caddy.deliveryaddress.includescript}
}
value(
/**
*
* Copyright (c) 2016-2017 - Dirk Wildt
* http://wildt.at.die-netzmacher.de/
*
* Version 7.2.5
*
* Toogle the delivery address
*/
jQuery( document ).ready( function( )
{
// HTML id of the checkbox for displaying the delivery address
var checkboxDeliveryAddress = "#powermail_field_{$plugin.caddy.deliveryaddress.powermail.variable}_1";
// needed powermail field isn't part of the dom. This is proper in case of a page without the caddy.
if( !$( checkboxDeliveryAddress ).length )
{
// Return without any error prompt
if( '1' != '{$plugin.caddy.deliveryaddress.powermail.debug}' )
{
return;
}
// Return with a prompt
var prompt = "FATAL ERROR:\n"
+ "\n"
+ "HTML id '" + checkboxDeliveryAddress + "' is not defined.\n"
+ "\n"
+ "Please check: \n"
+ "* Constant Editor > Category [CADDY - DELIVERY ADDRESS]\n"
+ "* Powermail field: the name of the variable for the checkbox for displaying the delivery address.\n"
+ " It must correspond with the current value in the Constant Editor: '{$plugin.caddy.deliveryaddress.powermail.variable}'\n"
+ "\n"
+ "If you don\'t need this script, please disable it by the Constant Editor. See above.\n"
;
alert( prompt );
return;
}
// Get the child element of the next fieldset in dom line to top (ascending)
var parentFieldset = $( checkboxDeliveryAddress ).parentsUntil('fieldset');
// Get the grandparent of the fieldset child: this is the parent of the fieldset and should be the current tab
var tabId = parentFieldset.parent().parent().attr('id');
//alert( '68: ' + tabId );
// Return, if the current dom element hasn't any id
if( tabId == undefined )
{
// Return without any error prompt
if( '1' != '{$plugin.caddy.deliveryaddress.powermail.debug}' )
{
return;
}
var prompt = "FATAL ERROR:\n"
+ "\n"
+ "$('" + checkboxDeliveryAddress + "').parent( ).parent( ).parent( ).parent( ) hasn\'t any id."
+ "\n"
+ "Please check: \n"
+ "* Constant Editor > Category [CADDY - DELIVERY ADDRESS]\n"
+ "* Powermail field: the name of the variable for the checkbox for displaying the delivery address.\n"
+ " It must correspond with the current value in the Constant Editor: '{$plugin.caddy.deliveryaddress.powermail.variable}'\n"
+ "\n"
+ "If you don\'t need this script, please disable it by the Constant Editor. See above.\n"
;
alert( prompt );
return;
}
// Selector of the fieldset of the tab
var selectorTabFieldset = $( "#" + tabId + " fieldset:first");
//alert( '99: ' + $( selectorTabFieldset ).attr('class'));
// Method for toogle the display of the delivery address
$( checkboxDeliveryAddress ).bind(
'click',
function( e )
{
if( $( checkboxDeliveryAddress ).is( ':checked' ))
{
// Display all fields (divs) of the fieldset delivery address
$( selectorTabFieldset ).children( 'div' ).slideDown( 'fast' );
}
else
{
// Hide all fields (divs) of the fieldset delivery address
$( selectorTabFieldset ).children( 'div' ).slideUp( 'fast' );
// Display the checkbox and back-/forward-button
$( '.powermail_fieldwrap_toogledeliveryaddress' ).slideDown( 'fast' );
$( '.parentdisplay' ).parent().parent().slideDown( 'fast' );
}
});
// Initial trigger
$( checkboxDeliveryAddress ).prop('checked', true);
$( checkboxDeliveryAddress ).trigger( 'click' );
});
)
}
}
}
\ No newline at end of file
page {
// empty statement for proper comments only
jsFooterInline {
}
// 10961: caddy back- and forward-buttons
jsFooterInline =
jsFooterInline {
// caddy: toogle the delivery address, if is true {$plugin.caddy.powermail.tabs.includescript}
10961 = TEXT
10961 {
// if is true plugin.caddy.powermail.tabs.includescript (here: '{$plugin.caddy.powermail.tabs.includescript}')
if =
if {
isTrue = {$plugin.caddy.powermail.tabs.includescript}
}
value(
/**
* Copyright (c) 2016-2017 - Dirk Wildt
* http://wildt.at.die-netzmacher.de/
*
* Version 7.2.5
*
* Back- and forward-buttons
* BE AWARE: The script is running proper only, if powermail tabs have the used ids from below.
* If powermail forms with tabs are used multiple times within this TYPO3 installation,
* you have to adapt the ids.
* USE: Constant Editor > Category [CADDY - POWERMAIL -TABS]
*/
jQuery( document ).ready( function( )
{
// needed powermail field isn't part of the dom. This is proper in case of a page without the caddy.
if( '1' == '{$plugin.caddy.powermail.tabs.includescript}' )
{
if( '1' == '{$plugin.caddy.powermail.tabs.debug}' )
{
if( !$( "#{$plugin.caddy.powermail.tabs.id.tab01}" ).length )
{
// Return with a prompt
var prompt = "FATAL ERROR:\n"
+ "\n"
+ "HTML id {$plugin.caddy.powermail.tabs.id.tab01} is not defined.\n"
+ "\n"
+ "Please check: \n"
+ "* Constant Editor > Category [CADDY - POWERMAIL - TABS]\n"
+ " Tab ids must correspond with the used tab ids of the powermail form.\n"
+ "\n"
+ "If you don\'t need this script, please disable it by the Constant Editor. See above.\n"
;
alert( prompt );
}
}
}
$( '.toPage01' ).bind(
'click',
function( e )
{
$( "#{$plugin.caddy.powermail.tabs.id.tab01} a" ).trigger('click');
});
$( '.toPage02' ).bind(
'click',
function( e )
{
$( "#{$plugin.caddy.powermail.tabs.id.tab02} a" ).trigger('click');
});
$( '.toPage03' ).bind(
'click',
function( e )
{
$( "#{$plugin.caddy.powermail.tabs.id.tab03} a" ).trigger('click');
});
$( '.toPage04' ).bind(
'click',
function( e )
{
$( "#{$plugin.caddy.powermail.tabs.id.tab04} a" ).trigger('click');
});
});
)
}
}
}
\ No newline at end of file
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:caddy/Configuration/TypoScript/Powermail/3.11/Page/jsFooterInline/10960.ts">
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:caddy/Configuration/TypoScript/Powermail/3.11/Page/jsFooterInline/10961.ts">
\ No newline at end of file
......@@ -5,7 +5,7 @@ $EM_CONF[$_EXTKEY] = array(
'description' => 'http://typo3-caddy.de. Caddy is the TYPO3 responsive Shopping Cart. It is optimised for desktops, tablets and smartphones. Caddy is e-commerce for small budget and small-scale enterprises. You are welcome to install Caddy with one mouse-click - ready-to-use. See: TYPO3 Quick Shop. Caddy provides ready-to-use templates for both responsive frameworks: bootstrap and foundation. You can use caddy for your own needs with your own database and without Quick Shop. Manual at http://typo3-caddy.de/typo3conf/ext/caddy/doc/manual.pdf. ',
'category' => 'plugin',
'shy' => 0,
'version' => '7.5.5',
'version' => '7.5.6',
'dependencies' => '',
'conflicts' => '',
'priority' => '',
......
......@@ -150,7 +150,7 @@ switch( true )
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile( $_EXTKEY, $path2Ts . 'Powermail/2x/css/', 'Caddy [5.1] + Powermail 2.x (veraltet!) CSS fancy' );
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile( $_EXTKEY, $path2Ts . 'Powermail/3x/Bootstrap/3x/', 'Caddy [6] + Powermail Bootstrap' );
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile( $_EXTKEY, $path2Ts . 'Powermail/2x/Bootstrap/3x/', 'Caddy [6] + Powermail 2.x (veraltet!) Bootstrap' );
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile( $_EXTKEY, $path2Ts . 'Powermail/3x/Foundation/5x/', 'Caddy [6] + Powermail Foundation (veraltet!)' );
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile( $_EXTKEY, $path2Ts . 'Powermail/3x/Foundation/5x/', 'Caddy [6] + Powermail Foundation' );
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile( $_EXTKEY, $path2Ts . 'Powermail/2x/Foundation/5x/', 'Caddy [6] + Powermail 2.x (veraltet!) Foundation' );
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile( $_EXTKEY, $path2Ts . 'Properties/ch/', 'Caddy [7] + Einstellungen ch (Schweiz)' );
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile( $_EXTKEY, $path2Ts . 'Properties/de/', 'Caddy [7] + Einstellungen de (Deutschland)' );
......@@ -186,7 +186,7 @@ switch( true )
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile( $_EXTKEY, $path2Ts . 'Powermail/2x/css/', 'Caddy [5.1] + Powermail 2.x (deprecated!) CSS fancy' );
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile( $_EXTKEY, $path2Ts . 'Powermail/3x/Bootstrap/3x/', 'Caddy [6] + Powermail Bootstrap' );
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile( $_EXTKEY, $path2Ts . 'Powermail/2x/Bootstrap/3x/', 'Caddy [6] + Powermail 2.x (deprecated!) Bootstrap' );
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile( $_EXTKEY, $path2Ts . 'Powermail/3x/Foundation/5x/', 'Caddy [6] + Powermail Foundation (deprecated!)' );
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile( $_EXTKEY, $path2Ts . 'Powermail/3x/Foundation/5x/', 'Caddy [6] + Powermail Foundation' );
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile( $_EXTKEY, $path2Ts . 'Powermail/2x/Foundation/5x/', 'Caddy [6] + Powermail 2.x (deprecated!) Foundation' );
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile( $_EXTKEY, $path2Ts . 'Properties/ch/', 'Caddy [7] + Properties ch (Switzerland)' );
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile( $_EXTKEY, $path2Ts . 'Properties/de/', 'Caddy [7] + Properties de (Germany)' );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment