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 | |
| /* | |
| * 401 Response | |
| * | |
| * Sends a 401 Response Unauthorized | |
| * | |
| * @author Camilo Castro | |
| * | |
| * @date 29/07/2014 |
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
| // ================================================================== | |
| // Flexbox | |
| // | |
| // Implementation based on Chris Coyier's article: | |
| // Using Flexbox: Mixing Old and New for the Best Browser Support || http://css-tricks.com/using-flexbox/ | |
| // ================================================================== | |
| // Flexbox Context (applied to container element of flex items) | |
| @mixin flex-display { | |
| @include experimental-value(display, box, -moz, -webkit, not -o, -ms, not -khtml, official); // Old |
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 | |
| /** | |
| * ProcessWire (2.5) InputfieldFile front-end upload form example | |
| * Various workarounds to get it working with Errors for WireUpload | |
| * and removing files upload after error | |
| */ | |
| $sent = false; | |
| $upload_path = $config->uploadTmpDir; |
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 | |
| // ------------------------------ FORM Processing --------------------------------------- | |
| $errors = null; | |
| $success = false; | |
| // helper function to format form errors | |
| function showError($e){ | |
| return "<p class='error'>$e</p>"; |
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
| /* The Grid ---------------------- */ | |
| .lt-ie9 .row { width: 940px; max-width: 100%; min-width: 768px; margin: 0 auto; } | |
| .lt-ie9 .row .row { width: auto; max-width: none; min-width: 0; margin: 0 -15px; } | |
| .lt-ie9 .row.large-collapse .column, | |
| .lt-ie9 .row.large-collapse .columns { padding: 0; } | |
| .lt-ie9 .row .row { width: auto; max-width: none; min-width: 0; margin: 0 -15px; } | |
| .lt-ie9 .row .row.large-collapse { margin: 0; } | |
| .lt-ie9 .column, .lt-ie9 .columns { float: left; min-height: 1px; padding: 0 15px; position: relative; } | |
| .lt-ie9 .column.large-centered, .columns.large-centered { float: none; margin: 0 auto; } |
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 PaymentGatewayPayPal extends WireData implements Module, ConfigurableModule { | |
| /* | |
| * Module details, defaults and initialisation | |
| * | |
| */ | |
| public static function getModuleInfo() |