Skip to content

Instantly share code, notes, and snippets.

View mkorostoff's full-sized avatar

Jersey Len mkorostoff

View GitHub Profile
<?php
/**
* Implements hook_theme_registry_alter()
*/
function radius_settings_theme_registry_alter(&$theme_registry) {
$theme_registry['file_link']['function'] = 'radius_settings_file_link';
}
/**
name: Matthew
description: A simple hello world module.
core: 8.x
package: Custom
type: module
<!DOCTYPE html>
<html{{ html_attributes }}>
<head>
{{ page.head }}
<title>{{ head_title }}</title>
{{ page.styles }}
<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
{{ page.scripts }}
</head>
<body{{ attributes }}>
<?php
/**
* Add custom scripts
*/
function matt_page_alter(&$page) {
$page['#attached']['library'][] = 'matt/matt-corescripts';
}
matt-corescripts:
version: VERSION
js:
js/modernizr.custom.04204.js: {}
<?php
/**
* Add jquery
*/
function matt_page_alter(&$page) {
$page['#attached']['library'][] = 'core/jquery';
}
parameters:
twig.config:
# Twig debugging:
#
# When debugging is enabled:
# - The markup of each Twig template is surrounded by HTML comments that
# contain theming information, such as template file name suggestions.
# - Note that this debugging markup will cause automated tests that directly
# check rendered HTML to fail. When running automated tests, 'twig_debug'
# should be set to FALSE.
name: 'matt'
type: theme
description: 'My first custom drupal 8 theme'
stylesheets:
all:
- css/styles.css
js:
js/modernizr.custom.04204.js: {}
regions:
header: 'Header'
html {
line-height: 1.5;
font-size: 100%;
word-wrap: break-word;
-webkit-text-size-adjust: 100%;
line-height: 1.5;
height: 100%;
overflow-y: scroll;
}
{
"body": "sdds dsf sdf sdfsdf ds\n",
"subtitle": "test aa",
"hero_image": {
"file": {
"uri": "http://localhost:8888/api/v1/file/2853",
"id": "2853",
"resource": "file",
"type": "image",