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
<article data-type="carousel-location" class="wrapper__location contact-page carousel__main"> | |
<ul class="carousel" id="carousel__location"> | |
<li class="item"> | |
<div class="item__image"> | |
<img class="background__image" src="{{ $location->location_image->image }}" alt=""> | |
<div class="container__location"> | |
<div class="content-location"> | |
<div class="location__collum-one"> | |
<div class="container__location-clock"> | |
<h1 class="extra-large-text">{{{ $location->title }}}</h1> |
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
/** | |
* Implements hook_install(). | |
*/ | |
function tsjf_update_7118() { | |
// Populates 'Vocabulary name' vocabulary with taxonomy terms. | |
$vocabulary = taxonomy_vocabulary_machine_name_load('tsjf_filter'); | |
$terms = array(); | |
$terms[] = t('Term 1'); | |
$terms[] = t('Term 2'); |
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 v0.10.2 | |
Geddy v0.10.5 | |
// Snipped of code in my lib | |
keywordTopic = _.find(topics, { 'slug': 'xbox' }); | |
// keywordTopic -> http://pastebin.com/fbPtug5B | |
tweet = geddy.model.Tweet.create({ | |
lookupSlug: _.uniq(lookupSlug, true), | |
keywords: keyword, |
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
tweetModel.save(function(err, tweet) { | |
if (err) { | |
console.log(err); | |
} | |
geddy.model.Topic.first({slug: 'xbox'}, function(err, topic) { | |
if (err) { throw err; } | |
tweetModel.addTopic(keywordTopic); | |
tweetModel.save(function(err, tweet) { | |
console.log('Tweet updated', tweet); | |
}); |