The popular open-source contract for web professionals by Stuff & Nonsense
- Originally published: 23rd December 2008
- Revised date: March 15th 2016
- Original post
| <nav class="locale-switch"> | |
| <ul class="locale-switch__list"> | |
| {% set locales = craft.i18n.getSiteLocales() %} | |
| {% for locale in locales %} | |
| {% set entryURL = craft.config.siteUrl[locale.id] %} | |
| {% if entry is defined %} | |
| {% set entryLocal = craft.entries.id(entry.id).locale(locale.id).first %} |
| @media | |
| (-webkit-min-device-pixel-ratio: 2), | |
| (min-resolution: 192dpi) { | |
| /* Retina-specific stuff here */ | |
| } | |
| /* 1.25 dpr */ | |
| @media | |
| (-webkit-min-device-pixel-ratio: 1.25), | |
| (min-resolution: 120dpi){ |
| function acDefer(successMethod, failMethod, testMethod, pause, attempts) { | |
| var defTest = function () { | |
| return window.jquery; | |
| }; | |
| var defFail = function () { | |
| console.log('jQuery not load'); | |
| } | |
| var defSuccess = function () { | |
| console.log('jQuery load'); | |
| } |
| <?php | |
| function fl_map_meta_cap($meta_caps){ | |
| $meta_caps = array( | |
| 'flamingo_edit_contact' => 'delete_pages', | |
| 'flamingo_edit_contacts' => 'delete_pages', | |
| 'flamingo_delete_contact' => 'delete_pages', | |
| 'flamingo_delete_contacts' => 'delete_pages', //May not be a thing??? | |
| 'flamingo_edit_inbound_message' => 'delete_pages', | |
| 'flamingo_edit_inbound_messages' => 'delete_pages', |
| <div class="c-contact-form__content" > | |
| <label class="c-contact-form__label" > | |
| <span class="c-contact-form__label-text" > | |
| Your Name <small>(required)</small> | |
| </span> | |
| <span class="c-contact-form__input-wrapper" > | |
| [text* your-name placeholder "Name"] | |
| </span> | |
| </label> | |
| <label class="c-contact-form__label"> |
| /* | |
| BEM BLOCK .bem-template | |
| */ | |
| .bem-template{ | |
| display: block; | |
| } | |
| //BEM BLOCK MODIFIER FALLBACK .bem-template-- |
| vagrant ssh | |
| sudo su | |
| nano /etc/php/7.0/apache2/php.ini | |
| #use the sort cut to find the setting 'memory_limit' and update | |
| [ctrl]+[w]memory_li | |
| memory_limit 1024M | |
| #use the sort cut to find the setting 'post_max_size' and update | |
| [ctrl]+[w]post_max |
| <?php | |
| function wpdocs_dequeue_extras() { | |
| if (current_user_can( 'update_core' )) { | |
| return; | |
| } | |
| wp_deregister_style('dashicons'); | |
| wp_deregister_script( 'admin-bar' ); | |
| wp_deregister_style( 'admin-bar' ); | |
| wp_deregister_script( 'wp-embed' ); |
| <?php | |
| /** | |
| * General Configuration | |
| * | |
| * All of your system's general configuration settings go in here. | |
| * You can see a list of the default settings in craft/app/etc/config/defaults/general.php | |
| */ | |