This file contains 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 id="headers"> | |
<h2>Headers</h2> | |
<p>Headers are used to describe such elements as website name, slogan, section titles. HTML and XHTML specifications define 6 levels of headers, where h1 is the most important and h6 is the least important.</p> | |
<h1>Header 1 - This is a really really really long header to see how it looks when it wraps. Testing themes is really challenging. Hopefully this is useful.</h1> | |
<h2>Header 2 - This is a really really really long header to see how it looks when it wraps. Testing themes is really challenging. Hopefully this is useful.</h2> | |
<h3>Header 3 - This is a really really really long header to see how it looks when it wraps. Testing themes is really challenging. Hopefully this is useful.</h3> |
This file contains 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 node_presave to attach the current node's nid as an entity reference in the node being saved in a block form. | |
* This code requires 'journal_entry' form to be embedded on a 'course' with the formblock module and the journal_entry type must | |
* have an entity reference field called 'field_course_reference' | |
*/ | |
function ucg_node_presave($node) { | |
$journal_wrapper = entity_metadata_wrapper('node', $node); | |
if($journal_wrapper->getBundle() == 'journal_entry') { |
This file contains 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 | |
elseif ($image_link) { | |
if (isset($entity->$image_link)) { | |
// Support for field translations. | |
$language = field_language($entity_type, $entity, $field['field_name']); | |
$link_field = $entity->$image_link; | |
if (isset($link_field[$language])) { | |
$link_values = $link_field[$language]; | |
} |
This file contains 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
), | |
- | |
), | |
- | |
'node-course-field_link' => array( | |
- | |
'bundle' => 'course', |
This file contains 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
.views-responsive-grid-vertical { | |
.views-column-1 { | |
@include grid-span(4, 1); | |
@include breakpoint($mobile) { | |
@include float-span(12, 'first'); | |
} | |
} | |
.views-column-2 { | |
@include grid-span(4, 5); | |
@include breakpoint($mobile) { |
This file contains 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 class="field field-name-title"> | |
<h2>Basic Panel</h2> | |
</div> | |
<div class="field field-name-field-image"> | |
<div class="label-above">Image: </div> | |
<a href="/sites/default/files/51b595a0d976ddarkblueLikeGate.jpg" title="Basic Panel" class="colorbox" | |
rel="gallery-node-20"><img typeof="foaf:Image" | |
src="/sites/default/files/51b595a0d976ddarkblueLikeGate.jpg" | |
width="810" height="600" alt="" title="" /></a> | |
</div> |
This file contains 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
* * * * * cd /home/tng/dev.core && /usr/bin/git pull > /home/tng/dev.core.log; /usr/bin/drush -y features-revert-all > /home/tng/dev.core.log 2>&1 | |
* * * * * /bin/bash -c ". /home/tng/.bash_profile > /home/tng/dev.core.log 2>&1; cd /home/tng/dev.core/sites/all/themes/custom/core && /home/tng/.rvm/gems/ruby-1.9.3-p374/bin/bundle exec compass compile > /home/tng/dev.core.log 2>&1" |
This file contains 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
; Packaging information for core | |
name = "core" | |
description = "core" | |
core = "7.x" | |
; ---------- | |
; Dependencies | |
; ---------- | |
; Administration | |
dependencies[] = admin_menu | |
dependencies[] = admin_menu_toolbar |
This file contains 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 | |
//Report all errors | |
ini_set("display_errors", "1"); | |
error_reporting(E_ALL); | |
$image = 'cat.jpg'; | |
//Load image from source provided | |
$image = imagecreatefromjpeg($image); | |
This file contains 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
;variables | |
;Disable core image styles | |
variables[os_base_remove_core_image_styles] = 1 | |
variables[site_default_country] = US | |
variables[site_frontpage] = home | |
variables[api_path] = http://tngdev.com/ | |
variables[moodle_path] = http://moodle.tngdev.com | |
;users |
OlderNewer