This file contains hidden or 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
| <?php | |
| $myselect = Object_Service::getOptionsForSelectField($this->object, "kategorie"); | |
| echo $myselect[$this->object->getKategorie()]; | |
| ?> |
This file contains hidden or 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
| <?php if($this->editmode){ ?> | |
| <?= $this->translate('Auswahl') ?>: | |
| <?php echo $this->select("mymode",array( | |
| "store" => array( | |
| array("myselect", $this->translate('Länder vorselektierung')), | |
| array("myauswahl", $this->translate('Länder auswählen')) | |
| ),"reload" => true | |
| )); ?> |
This file contains hidden or 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
| <?php | |
| class Website_View_Helper_ElementsHeadMeta extends Zend_View_Helper_Placeholder_Container_Standalone | |
| { | |
| private $built; | |
| public function elementsHeadMeta() | |
| { | |
| return $this; | |
| } |
This file contains hidden or 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
| <?php | |
| public function preDispatch() { | |
| $cdn = new Pimcore_Controller_Plugin_CDN(); | |
| $cdn->setCdnhostnames(array('http://cloudfront.net')); | |
| $cdn->setCdnpatterns(array('/^\/website/', '/^\/static/')); | |
| Zend_Controller_Front::getInstance()->registerPlugin($cdn); | |
| } | |
| ?> |
This file contains hidden or 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
| for i in `ipcs -s | awk '/www-data/ {print $2}'`; do (ipcrm -s $i); done | |
| killall -9 apache2 |
This file contains hidden or 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
| Object.keys = Object.keys || (function () { | |
| var hasOwnProperty = Object.prototype.hasOwnProperty, | |
| hasDontEnumBug = !{toString:null}.propertyIsEnumerable("toString"), | |
| DontEnums = [ | |
| 'toString', | |
| 'toLocaleString', | |
| 'valueOf', | |
| 'hasOwnProperty', | |
| 'isPrototypeOf', | |
| 'propertyIsEnumerable', |
This file contains hidden or 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
| <script src="https://connect.facebook.net/en_US/all.js"></script> | |
| <script> | |
| window.fbAsyncInit = function() { | |
| FB.init({ | |
| appId : 'XXX-XXXX', //Your facebook APP here | |
| cookie : true // enable cookies to allow the server to access the session | |
| }); | |
| } | |
| window.onload = function() { |
This file contains hidden or 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
| <?php | |
| $this->getRequest()->getPost('id', null); | |
| $this->headScript()->appendFile('/static/js/parsley.js','text/javascript'); | |
| $this->headLink()->appendStylesheet('/static/css/themenuebersicht.css'); | |
| // get snippet path | |
| $this->snippet("xyz")->getSnippet()->getFullPath() | |
This file contains hidden or 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
| <?php | |
| // redirect site | |
| if(!Pimcore_Tool::isFrontentRequestByAdmin()){ | |
| $d = preg_match('/region\/(.*)/', $this->_request->getPathInfo(), $matches); | |
| if($d){ | |
| $this->redirect('http://www.newdomain.at/' . $matches[1], array('code' => 301)); | |
| } | |
| } |