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
index.html coming |
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_node_view_alter(). | |
*/ | |
function yourawesomemodule_node_view_alter(&$build){ | |
// remove so and so's blog link from the blog links | |
if ($build['links']['blog']) { | |
$build['links']['blog'] = NULL; | |
} | |
} |
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 ninsixty_spw_preprocess_page(&$vars) { | |
global $user; | |
if ($user->uid != 0) { | |
// code for the logout button | |
$vars['loginout'] = "<a href=\"/user/logout\">Log out</a>"; | |
} else { $vars['loginout'] = NULL; } | |
} |
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="views-slideshow-cycle-main-frame-row-item views-row views-row-0 views-row-first views-row-odd"> | |
<span class="views-field views-field-field-image"> | |
<span class="field-content"><img typeof="foaf:Image" src="http://victoryfoam.sey.gr/sites/default/files/styles/medium/public/victory-foam-specialty-tool-case-4.jpg" width="192" height="220" alt=""> | |
</span> | |
</span> | |
<div id="title-body-wrapper"> | |
<span class="views-field views-field-title"> | |
<h2 class="field-content"><a href="/node/8">Tool Control</a></h2> | |
</span> | |
<div class="views-field views-field-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
(function($){ | |
$(document).ready(function(){ | |
// build an awesome tag cloud | |
function rowobject(param1, param2){ | |
this.name=param1; | |
this.countresult=param2; | |
} | |
// create array that will be filled with objects | |
var rows = Array(); | |
// grab a tag count for each tag |
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
<Location /server-status> | |
SetHandler server-status | |
Order deny,allow | |
Deny from all | |
## Allow from localhost | |
# Allow from 131.216.134.76 | |
Allow from all | |
</Location> |
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
/* video button/link styles */ | |
div.field-name-field-video-link a, | |
a.video-button-new { display: inline-block; position: relative; } | |
div.field-name-field-video-link a div.video-button-overlay, | |
a.video-button-new div.video-button-overlay { | |
background-image: url('../images/play.png'); | |
width: 93px; | |
height: 91px; | |
background-repeat: no-repeat; | |
position: absolute; |
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
#!/bin/sh | |
siteResponse=`curl -s -I $1 | grep HTTP/1.1 | awk {'print $2'}` | |
if [ $siteResponse = 200 ]; then | |
echo "Looks like your site responded with a" $siteResponse "and is fine, be happy!" | |
else | |
echo "rut ro! Looks like your site responded with a" $siteResponse "and that's not right, go fix it!" | |
case $siteResponse in | |
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
NOTE: version numbers are at the time of this writing | |
1. Download and install Virtualbox (4.2.16) | |
2. Download and install Vagrant (1.2.3) | |
3. Check ruby and rubygems versions | |
4. Install berkshelf gem | |
gem install berkshelf --version '>= 1.4.0' --no-ri --no-rdoc | |
5. Install berkshelf vagrant plugin | |
vagrant plugin install vagrant-berkshelf --plugin-version '1.2.0' | |
6. Add vagrant basebox provided in Crifkin Training package (precise64_chef11.box) |
OlderNewer