This file contains 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
$(document).ready(function(){ | |
var date = new Date() | |
var is_weekend = '' | |
if(date.getDay() == 1) { | |
is_weekend = "Today is closed"; | |
} else if (date.getDay() == 2 || date.getDay() == 5) { | |
is_weekend = "Ma nyitva 16:00-ig"; | |
} else { | |
is_weekend = "Ma nyitva 18:00-ig"; |
This file contains 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 | |
/** | |
* @file | |
* Code for the My custom module. | |
*/ | |
/** | |
* Implements hook_user_login(). | |
*/ | |
function mymodule_user_login(&$edit, $account) { |
This file contains 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 | |
/** | |
* @file | |
* Preprocessing functions for event nodes. | |
*/ | |
/** | |
* Implements hook_preprocess_node(). | |
*/ | |
function _[yourthemename]_preprocess_field_name__[nodetypename]__[imagefieldname](&$variables) { |
This file contains 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 |
This file contains 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 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+%[email protected] |
This file contains 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 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 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 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+ |
NewerOlder