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
# Redirect for VM | |
# Old site | |
RewriteCond %{HTTP_HOST} ^videomind\.ooyala\.com$ [NC] | |
# New site | |
RewriteRule ^(.*)$ http%{ENV:protossl}://www.ooyala.com/videomind%1%{REQUEST_URI} [l,R=301] |
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
$('input#edit-keys-1').blur(function(){ | |
tmpval = $(this).val(); | |
if(tmpval == '') { | |
$(this).addClass('empty'); | |
$(this).removeClass('not-empty'); | |
} else { | |
$(this).addClass('not-empty'); | |
$(this).removeClass('empty'); | |
} | |
}); |
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 hook_views_query_alter(); | |
* | |
*/ | |
function custom_partnerportal_views_query_alter(&$view, &$query) { | |
if ($view->name == 'taxonomy_term') { | |
global $user; | |
$usuario = user_load($user->uid); | |
$categories = $usuario->field_category['und']; |
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 hook_menu(). | |
*/ | |
function mymodule_menu() { | |
$items['mymodule/%ctools_js/add'] = array( | |
'page callback' => 'mymodule_node_add_modal_callback', | |
'page arguments' => array(1), | |
'access arguments' => array('access content'), |
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
.fixedMenu { | |
position:fixed; | |
background:white; | |
z-index:1000; | |
width:100%; | |
top:0; | |
} |
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
App.ArticleSerializer = DS.RESTSerializer.extend({ | |
extractArray: function(store, type, payload) { | |
articles = payload; | |
data = []; | |
articles.forEach(function(article) { | |
tempObj = { | |
id: article.nid, | |
title: article.title, | |
Body: article.Body |
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
App.Person.reopenClass({ | |
FIXTURES: [ | |
{ | |
id: 1, | |
name:'Israel Morales', | |
age: 30, | |
position: 'Web Developer', | |
gender:'Male', | |
},{ | |
id: 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
#block-system-main-menu { | |
ul.menu { | |
li { | |
display: inline-block; | |
padding-bottom: 9px; | |
ul { | |
display: none; | |
padding-left: 0; | |
background: #ffffff; | |
border: 1px solid #000000; |
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
/** | |
* Function | |
*/ | |
function myfunction() { | |
$variables = array( | |
'message' => 'Hi Bitches!', | |
'name' => 'Monk' | |
); | |
return theme('mobile-nav', $variables); | |
} |
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
/** Module **/ | |
var MyModule = (function() { | |
var DEFAULT = { | |
param: 'Hello World' | |
} | |
return { | |
name: 'Israel Morales!', | |
say: 'Because YOLO!', | |
speak: function() { | |
console.log('Hello World'); |
OlderNewer