Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
valencia
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
9
Issues
9
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gruppo Web
valencia
Commits
936c6815
Commit
936c6815
authored
Nov 22, 2014
by
Mattia Migliorini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add viewport meta tag. Needs testing
parent
137a3c78
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
128 additions
and
1 deletion
+128
-1
.gitignore
.gitignore
+2
-1
composer.lock
composer.lock
+109
-0
template.php
template.php
+17
-0
No files found.
.gitignore
View file @
936c6815
*.sublime*
*.sublime*
.sass-cache
.sass-cache
node_modules/
node_modules/
\ No newline at end of file
vendor/
\ No newline at end of file
composer.lock
0 → 100644
View file @
936c6815
{
"_readme": [
"This file locks the dependencies of your project to a known state",
"Read more about it at http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically"
],
"hash": "38a602dea86ba1719bb5e9fe08d3ebc9",
"packages": [
{
"name": "composer/installers",
"version": "dev-master",
"source": {
"type": "git",
"url": "https://github.com/composer/installers.git",
"reference": "8024be9aa3ee446272937f46a8807fa52b337767"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/composer/installers/zipball/8024be9aa3ee446272937f46a8807fa52b337767",
"reference": "8024be9aa3ee446272937f46a8807fa52b337767",
"shasum": ""
},
"replace": {
"roundcube/plugin-installer": "*",
"shama/baton": "*"
},
"require-dev": {
"composer/composer": "1.0.*@dev",
"phpunit/phpunit": "4.1.*"
},
"type": "composer-installer",
"extra": {
"class": "Composer\\Installers\\Installer",
"branch-alias": {
"dev-master": "1.0-dev"
}
},
"autoload": {
"psr-0": {
"Composer\\Installers\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Kyle Robinson Young",
"email": "kyle@dontkry.com",
"homepage": "https://github.com/shama"
}
],
"description": "A multi-framework Composer library installer",
"homepage": "http://composer.github.com/installers/",
"keywords": [
"Craft",
"Dolibarr",
"Hurad",
"MODX Evo",
"OXID",
"Thelia",
"WolfCMS",
"agl",
"annotatecms",
"bitrix",
"cakephp",
"chef",
"codeigniter",
"concrete5",
"croogo",
"drupal",
"elgg",
"fuelphp",
"grav",
"installer",
"joomla",
"kohana",
"laravel",
"lithium",
"magento",
"mako",
"mediawiki",
"modulework",
"moodle",
"phpbb",
"piwik",
"ppi",
"puppet",
"roundcube",
"shopware",
"silverstripe",
"symfony",
"typo3",
"wordpress",
"zend",
"zikula"
],
"time": "2014-11-01 17:51:50"
}
],
"packages-dev": [],
"aliases": [],
"minimum-stability": "dev",
"stability-flags": [],
"prefer-stable": false,
"platform": [],
"platform-dev": []
}
template.php
View file @
936c6815
...
@@ -17,6 +17,9 @@
...
@@ -17,6 +17,9 @@
* @since 1.0.0
* @since 1.0.0
*/
*/
error_reporting
(
E_ALL
);
ini_set
(
'display_errors'
,
1
);
/**
/**
* Add external scripts and styles.
* Add external scripts and styles.
*
*
...
@@ -177,6 +180,20 @@ function valencia_preprocess_page( &$vars ) {
...
@@ -177,6 +180,20 @@ function valencia_preprocess_page( &$vars ) {
// Add the rendered output to menu
// Add the rendered output to menu
$vars
[
'valencia_menu'
]
=
menu_tree_output
(
$main_menu_tree
);
$vars
[
'valencia_menu'
]
=
menu_tree_output
(
$main_menu_tree
);
/**
* Add meta viewport to page head.
*
* @since 0.1.1
*/
$viewport
=
array
(
'#tag'
=>
'meta'
,
// The HTML tag - <meta />
'#attributes'
=>
array
(
// Array of attributes for the tag.
'name'
=>
'viewport'
,
'content'
=>
'width=device-width, initial-scale=1.0'
)
);
drupal_add_html_head
(
$viewport
,
'viewport'
);
}
}
/**
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment