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 | |
| $page = $this->_getParam("page"); | |
| $per_page = 5; | |
| $paginator = Zend_Paginator::factory($events); | |
| $paginator->setCurrentPageNumber($page); | |
| $paginator->setPageRange(5); | |
| $paginator->setItemCountPerPage($per_page); | |
| $this->view->paginator = $paginator; |
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->getResponse()->setHeader("X-Robots-Tag", "noindex, follow"); | |
| $this->getResponse()->setHeader("X-Robots-Tag", "unavailable_after: " . $object->getDate()->get(Zend_Date::RFC_850)); | |
| if($object->getDate() instanceof Carbon\Carbon){ | |
| $this->getResponse()->setHeader("X-Robots-Tag", "unavailable_after: " . $object->getDate()->toRfc850String()); | |
| } | |
| ?> |
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
| You need jQuery 1.6 and upper. | |
| Facebook: | |
| For the FB reload you also need a Variable called "lang" in js with the language code (de, en, it, fr...) | |
| For more information show comments in the file facebook.js | |
| Google Plus: | |
| You only need jQuery and edit the selector (id,class) where you would like to show g+ |
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 | |
| protected function getSafeFilename($targetPath, $filename) { | |
| $originalFilename = $filename; | |
| $count = 1; | |
| if ($targetPath == "/") { | |
| $targetPath = ""; | |
| } |
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($_COOKIE["pimcore_admin_sid"]) { | |
| $user = Pimcore_Tool_Authentication::authenticateSession(); | |
| if($user instanceof User) { | |
| // bist eingeloggt | |
| } | |
| } |
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
| <? | |
| $test = array(); | |
| $test[0] = array('trest' => 'hallo', 'rime' => 15); | |
| $test[2] = array('trest' => 'hallo', 'rime' => 15); | |
| $test[3] = array('trest' => 'hallo', 'rime' => 2); | |
| $test[4] = array('trest' => 'hallo', 'rime' => 5); | |
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
| <? | |
| $url = "http://clients.intermaps.com/admin/imgupload/11526_20130131153359_hoehenweg_etappe 6 (11).jpg"; | |
| $url = explode('/', $url); | |
| $base = array_pop($url); | |
| $url = implode('/', $url) . '/' . rawurlencode($base); | |
| Pimcore_Tool::getHttpData($url); | |
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 | |
| $jsFiles = array(....DEINE JS FILES ...); | |
| $failed = array(); | |
| $checksum = ""; | |
| foreach($jsFiles as $file){ | |
| $realPath = PIMCORE_DOCUMENT_ROOT . $file; | |
| if(file_exists($realPath)) { | |
| $checksum .= ($file . "-" . filemtime($realPath) . "~~"); |
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->_helper->json($jsonarray); | |
| ?> |
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
| http://mintchaos.github.io/flippant.js/ | |