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 | |
| /* ShowChunk snippet : Credit: Bob Ray */ | |
| $subChunks = explode(',', $scriptProperties['subscriberChunks']); | |
| $otherChunks = explode(',', $scriptProperties['otherChunks']); | |
| if ($modx->user->isMember('paid-members')) { | |
| foreach ($subChunks as $subChunk) { | |
| $output .= $modx->getChunk($subChunk); | |
| } |
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 | |
| $default = realpath(dirname(__FILE__).'/core/lexicon/en').'/'; | |
| $local = realpath(dirname(__FILE__).'/core/lexicon/nl').'/'; | |
| $showSame = false; | |
| // find default files | |
| $theFiles = array(); | |
| if($handle = opendir($default)) { | |
| while(false !== ($file = readdir($handle))) { |
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 | |
| /** | |
| * Magento | |
| * | |
| * NOTICE OF LICENSE | |
| * | |
| * This source file is subject to the Academic Free License (AFL 3.0) | |
| * that is bundled with this package in the file LICENSE_AFL.txt. | |
| * It is also available through the world-wide-web at this URL: | |
| * http://opensource.org/licenses/afl-3.0.php |
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 | |
| /** | |
| * ========================= | |
| * defaultTemplateByParentTv | |
| * ========================= | |
| * | |
| * Plugin for modX Revolution | |
| * Set default template for children of a ressource | |
| * | |
| * Author: |
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
| <html> | |
| <head> | |
| <title>Select styles with CSS only</title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <style> | |
| body { | |
| background-color: #fff; | |
| font-family: helvetica, sans-serif; | |
| margin: 4% 10% | |
| } |
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
| #!/bin/bash | |
| ############## | |
| echo " | |
| ////////////////////////////////////// | |
| // // | |
| // Welcome to MODx autoinstaller. // | |
| // // | |
| ////////////////////////////////////// |
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 | |
| /* Demonstration on how to get product data from at XML file | |
| * Mathias Dannevang <[email protected]> | |
| */ | |
| //Function to call the XML file | |
| function download_page($path){ | |
| $ch = curl_init(); | |
| curl_setopt($ch, CURLOPT_URL,$path); | |
| curl_setopt($ch, CURLOPT_FAILONERROR,1); |
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
| Index: app/code/core/Mage/Admin/Model/Variable.php | |
| IDEA additional info: | |
| Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP | |
| <+>UTF-8 | |
| =================================================================== | |
| --- app/code/core/Mage/Admin/Model/Variable.php (revision 2bd128c1f190cd9ea63269824f09789199565251) | |
| +++ app/code/core/Mage/Admin/Model/Variable.php (revision ) | |
| @@ -30,6 +30,13 @@ | |
| class Mage_Admin_Model_Variable extends Mage_Core_Model_Abstract | |
| { |
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 | |
| /* | |
| * DELETE DUPLICATE GALLERY IMAGES | |
| * 1. Edit ln 9 to match your magento install | |
| * 2. Run from terminal: php /{your_path}/duplicate-delete.php | |
| * | |
| */ | |
| include('app/Mage.php'); | |
| umask(0); |