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
<?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
<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_entity_info_alter(). | |
*/ | |
function MYMODULE_entity_info_alter(&$entity_info) { | |
$another_teaser = array( | |
'label' => t('Another teaser'), | |
'custom settings' => TRUE, | |
); |
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
// WebKit font-smoothing | |
//------------------------------------------------ | |
// References: | |
// | |
// 1. http://maxvoltar.com/sandbox/fontsmoothing/ | |
// 2. http://maxvoltar.com/archive/-webkit-font-smoothing | |
// | |
// Values: none, antialiased (default), subpixel-antialiased | |
// |
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 basetheme_preprocess_page(&$vars) { | |
$term = taxonomy_term_load($vars['node']->field_name_topic['und']['0']['target_id']); | |
$term_uri = taxonomy_term_uri($term); // get array with path | |
$term_title = taxonomy_term_title($term); | |
$term_path = $term_uri['path']; | |
$link = l($term_title,$term_path); | |
} |
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> | |
<input type="checkbox" name="szeletelve" id="slices"> | |
<label for="slices"> | |
Szeletelve kérem | |
</label> | |
</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
<!DOCTYPE html> | |
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]--> | |
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]--> | |
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]--> | |
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]--> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<title>Drupal Developer Days, Szeged 2014</title> | |
<meta name="description" content=""> |
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
<!-- non-retina iPhone pre iOS 7 --> | |
<link rel="apple-touch-icon" href="icon57.png" sizes="57x57"> | |
<!-- non-retina iPad pre iOS 7 --> | |
<link rel="apple-touch-icon" href="icon72.png" sizes="72x72"> | |
<!-- non-retina iPad iOS 7 --> | |
<link rel="apple-touch-icon" href="icon76.png" sizes="76x76"> | |
<!-- retina iPhone pre iOS 7 --> | |
<link rel="apple-touch-icon" href="icon114.png" sizes="114x114"> | |
<!-- retina iPhone iOS 7 --> | |
<link rel="apple-touch-icon" href="icon120.png" sizes="120x120"> |
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.parallaxScrolling = { | |
attach: function (context) { | |
$('[data-type]').each(function() { | |
$(this).data('offsetY', parseInt($(this).attr('data-offsetY'))); | |
$(this).data('speed', $(this).attr('data-speed')); | |
}); | |
$('div[data-type="background"]').each(function() { |