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
/** | |
* Messages | |
* | |
* | |
*/ | |
#console { | |
border: 0; | |
font-size: 12px; | |
margin: 14px 0 0; | |
.messages { |
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
/** | |
* Global Reset of all HTML Elements | |
* | |
* Resetting all of our HTML Elements ensures a smoother | |
* visual transition between browsers. If you don't believe me, | |
* try temporarily commenting out this block of code, then go | |
* and look at Mozilla versus Safari, both good browsers with | |
* a good implementation of CSS. The thing is, all browser CSS | |
* defaults are different and at the end of the day if visual | |
* consistency is what we're shooting for, then we need to |
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 | |
/** | |
* Automated Cache Clearing | |
* | |
* For development purpose only, this cannot be enabled on a live | |
* website or else it will make everyone that uses the site sad. | |
*/ | |
/* Clear all Drupal core caches */ |
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 | |
/** | |
* Implementation of hook_preprocess_page(). | |
*/ | |
function MYTHEME_preprocess_page(&$variables, $hook) { | |
// Allow for page templates, based on node type | |
if (isset($variables['node'])) { | |
$variables['theme_hook_suggestions'][] = 'page__node__' . str_replace('_', '--', $variables['node']->type); |
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 | |
/** | |
* Implementation of hook_preprocess_html(). | |
*/ | |
function MYTHEME_preprocess_html(&$variables, $hook) { | |
if ($node = menu_get_object()) { | |
if (isset($node->type)) { | |
$variables['theme_hook_suggestions'][] = 'html__' . str_replace('_', '--', $node->type); |
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 | |
/** | |
* Implementation of hook_css_alter(). | |
*/ | |
function MYTHEME_css_alter(&$css) { | |
// Remove core block stylesheet(s) | |
unset($css[drupal_get_path('module', 'block') . '/block.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 | |
/** | |
* Implementation of theme_menu_tree(). | |
*/ | |
function MYTHEME_menu_tree(&$variables) { | |
return '<nav><ul class="menu">' . $variables['tree'] . '</ul></nav>'; | |
} |
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 | |
/** | |
* Implementation of hook_html_head_alter(). | |
*/ | |
function THEMENAME_html_head_alter(&$head_elements) { | |
// Update the charset to use HTML5 format | |
$head_elements['system_meta_content_type'] = array( | |
'#type' => 'html_tag', |
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 | |
/** | |
* Class SM | |
* | |
* Define a generic wrapper class with some system | |
* wide functionality. In this case we'll give it | |
* the ability to fetch a social media feed from | |
* another server for parsing and possibly caching. | |
* |
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
name = "MY MODULE" | |
description = "Custom Views specific to a website" | |
package = "MY WEBSITE" | |
core = 7.x | |
dependencies[] = views |