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
| <div class="fb-like" data-href="#" data-layout="standard" data-action="like" data-show-faces="false" data-share="true"></div> |
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 | |
| /** | |
| * Implements hook_preprocess_page(). | |
| */ | |
| function mytheme_preprocess_page(&$vars) { | |
| drupal_add_css(drupal_get_path('theme', 'mytheme') . '/css/mytheme_lang_' . $vars['language']->language . '.css'); | |
| } |
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 | |
| /** | |
| * Implements hook_preprocess_panels_pane(). | |
| */ | |
| function hook_preprocess_panels_pane(&$vars) { | |
| // Allow translation before substitution. | |
| if ( | |
| !empty($vars['pane']->configuration['override_title']) | |
| && !empty($vars['pane']->configuration['override_title_text']) |
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
| // Gradients | |
| // Horizontal gradient, from left to right | |
| // | |
| // Creates two color stops, start and end, by specifying a color and position for each color stop. | |
| // Color stops are not available in IE9 and below. | |
| @mixin gradient-horizontal($start-color: #555, $end-color: #333, $start-percent: 0%, $end-percent: 100%) { | |
| background-image: -webkit-linear-gradient(left, color-stop($start-color $start-percent), color-stop($end-color $end-percent)); // Safari 5.1-6, Chrome 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
| /* iCheck plugin Flat skin, ip | |
| ----------------------------------- */ | |
| .icheckbox_flat-ip, | |
| .iradio_flat-ip { | |
| display: inline-block; | |
| *display: inline; | |
| vertical-align: middle; | |
| margin: 0; | |
| padding: 0; | |
| @include iv-sprite-background(); |
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
| (function ($) { | |
| Drupal.behaviors.mytheme_name = { | |
| attach: function (context) { | |
| // Enable Bootstrap 3 Hover Dropdowns. | |
| var width = $(document).width(); | |
| if (width >= 976) { | |
| $('.dropdown-toggle').click(function() { | |
| var location = $(this).attr('href'); | |
| window.location.href = location; return false; | |
| }); |
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 | |
| # base variables | |
| cd $(dirname $0)/../../.. | |
| drupal_root=`pwd` | |
| if [ "$1" == "live" ]; then | |
| drush vset preprocess_css 0 | |
| drush vset preprocess_js 0 | |
| drush vset --exact -y install_profile newprofile |
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
| drush sqlsan --sanitize-email=user+%uid@example.com |
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
| /** | |
| * Implements hook_preprocess_block(). | |
| * | |
| * @see block.tpl.php | |
| */ | |
| function base_theme_preprocess_block(&$variables) { | |
| if ($variables['elements']['#block']->region == 'footer') { | |
| $variables['classes_array'][] = 'col-xs-12 col-sm-6 col-md-3'; | |
| } | |
| } |
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
| mysql -uroot -proot dbname < filename.mysql |