updated core to 7.54
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Handles integration of Nyan cat templates because we love kittens.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Includes .theme file from themes.
|
||||
*/
|
||||
function nyan_cat_init($template) {
|
||||
$file = dirname($template->filename) . '/template.theme';
|
||||
if (file_exists($file)) {
|
||||
include_once DRUPAL_ROOT . '/' . $file;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_theme().
|
||||
*/
|
||||
function nyan_cat_theme($existing, $type, $theme, $path) {
|
||||
$templates = drupal_find_theme_functions($existing, array($theme));
|
||||
$templates += drupal_find_theme_templates($existing, '.nyan-cat.html', $path);
|
||||
return $templates;
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_extension().
|
||||
*/
|
||||
function nyan_cat_extension() {
|
||||
return '.nyan-cat.html';
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_render_template().
|
||||
*
|
||||
* @param string $template_file
|
||||
* The filename of the template to render.
|
||||
* @param mixed[] $variables
|
||||
* A keyed array of variables that will appear in the output.
|
||||
*
|
||||
* @return string
|
||||
* The output generated by the template.
|
||||
*/
|
||||
function nyan_cat_render_template($template_file, $variables) {
|
||||
$output = str_replace('div', 'nyancat', file_get_contents(DRUPAL_ROOT . '/' . $template_file));
|
||||
foreach ($variables as $key => $variable) {
|
||||
if (strpos($output, '9' . $key) !== FALSE) {
|
||||
$output = str_replace('9' . $key, $variable, $output);
|
||||
}
|
||||
}
|
||||
return $output;
|
||||
}
|
@@ -6,8 +6,8 @@ hidden = TRUE
|
||||
settings[basetheme_only] = base theme value
|
||||
settings[subtheme_override] = base theme value
|
||||
|
||||
; Information added by Drupal.org packaging script on 2016-12-07
|
||||
version = "7.53"
|
||||
; Information added by Drupal.org packaging script on 2017-02-01
|
||||
version = "7.54"
|
||||
project = "drupal"
|
||||
datestamp = "1481152423"
|
||||
datestamp = "1485986921"
|
||||
|
||||
|
@@ -6,8 +6,8 @@ hidden = TRUE
|
||||
|
||||
settings[subtheme_override] = subtheme value
|
||||
|
||||
; Information added by Drupal.org packaging script on 2016-12-07
|
||||
version = "7.53"
|
||||
; Information added by Drupal.org packaging script on 2017-02-01
|
||||
version = "7.54"
|
||||
project = "drupal"
|
||||
datestamp = "1481152423"
|
||||
datestamp = "1485986921"
|
||||
|
||||
|
@@ -17,8 +17,8 @@ stylesheets[all][] = system.base.css
|
||||
|
||||
settings[theme_test_setting] = default value
|
||||
|
||||
; Information added by Drupal.org packaging script on 2016-12-07
|
||||
version = "7.53"
|
||||
; Information added by Drupal.org packaging script on 2017-02-01
|
||||
version = "7.54"
|
||||
project = "drupal"
|
||||
datestamp = "1481152423"
|
||||
datestamp = "1485986921"
|
||||
|
||||
|
@@ -0,0 +1 @@
|
||||
Miaou
|
@@ -0,0 +1,11 @@
|
||||
name = Nyan cat engine based test theme
|
||||
description = Theme for testing the module-provided theme engines.
|
||||
core = 7.x
|
||||
hidden = TRUE
|
||||
engine = nyan_cat
|
||||
|
||||
; Information added by Drupal.org packaging script on 2017-02-01
|
||||
version = "7.54"
|
||||
project = "drupal"
|
||||
datestamp = "1485986921"
|
||||
|
Reference in New Issue
Block a user