-
-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
112 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?xml version="1.0"?> | ||
<project name="Isotope eCommerce" default="list" basedir="."> | ||
<target name="list"> | ||
<echo message="Available commands:" /> | ||
<echo message=" phing tx-pull - Pulls language files from Transifex" /> | ||
<echo message=" phing tx-sync - Syncs language files with Transifex" /> | ||
</target> | ||
|
||
<target name="tx-pull"> | ||
<echo message="Starting Transifex sync" /> | ||
<exec executable="tx" passthru="true"> | ||
<arg value="pull" /> | ||
<arg value="--all" /> | ||
<arg value="--minimum-perc=50" /> | ||
</exec> | ||
</target> | ||
|
||
<target name="tx-sync"> | ||
<echo message="Starting Transifex sync" /> | ||
<exec executable="tx" passthru="true"> | ||
<arg value="push" /> | ||
<arg value="-s" /> | ||
</exec> | ||
<echo message="Waiting 10 seconds for sources to be parsed" /> | ||
<exec executable="sleep"> | ||
<arg value="10" /> | ||
</exec> | ||
<exec executable="tx" passthru="true"> | ||
<arg value="pull" /> | ||
<arg value="--all" /> | ||
<arg value="--minimum-perc=50" /> | ||
</exec> | ||
</target> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,6 +43,7 @@ function() { | |
( | ||
'id' => 'primary', | ||
'pid' => 'index', | ||
'page_id' => 'index', | ||
) | ||
), | ||
), | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
system/modules/isotope/library/Isotope/EventListener/FrontendPreviewListener.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
namespace Isotope\EventListener; | ||
|
||
use Contao\CoreBundle\Event\PreviewUrlCreateEvent; | ||
|
||
class FrontendPreviewListener | ||
{ | ||
public function onPreviewUrlCreate(PreviewUrlCreateEvent $event) | ||
{ | ||
if ($event->getKey() !== 'iso_products' || \Input::get('table') !== 'tl_iso_product_category' || !\Input::get('page_id')) { | ||
return; | ||
} | ||
|
||
$event->setQuery('page=' . \Input::get('page_id')); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters