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.theme_name = { | |
| attach: function (context) { | |
| } | |
| }; | |
| })(jQuery); |
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
| Drupal 6 | |
| <?php print views_embed_view('banner', 'page_1', 'co_profile', $language->language); ?> | |
| Drupa 7 | |
| template.php ban a preprocess_page-ben | |
| $variables['front_slideshow'] = views_embed_view('front_slideshow', 'block'); | |
| page.tpl.php-ban pedig: |
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
| _ |
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() { |
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
| <!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
| <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
| 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
| // 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
| <?php | |
| /** | |
| * Implements hook_entity_info_alter(). | |
| */ | |
| function MYMODULE_entity_info_alter(&$entity_info) { | |
| $another_teaser = array( | |
| 'label' => t('Another teaser'), | |
| 'custom settings' => TRUE, | |
| ); |