Great speech at the end by Charlie Chaplin from “The Great Dictator” Continue reading Merry #LulzXmas
All posts by Henry Koren
Sugarloaf Mountain
Got to the top of this great little peak. 1Hr Hike, 1.4 miles, 500 feet elevation gain/loss, Max elevation 8912 ft
It’s an easy climb, south facing so there is plenty of sunlight to make it pleasant. Continue reading Sugarloaf Mountain
Repetitive Anti-Antibiotic Poster Is Repetitive
Ueli Steck’s Eiger north face ascent
Amazing mountaineering paired with amazing ariel photography:
/via E.Ravitz
WordPress Tip: Custom shortcode for including CSS & HTML
If you want to include HTML and/or CSS in your blog post, try adding this to your theme’s functions.php:
[php]function include_func($atts) {
extract(shortcode_atts(array(
‘html’ => ”,
‘css’ => ”,
), $atts));
if ($css!=”) {
global $stylenum;
if (!isset($stylenum)) $stylenum=0;
$thisstylename=’externalStyle’.$stylenum;
wp_register_style($thisstylename,’/’.$css);
wp_enqueue_style($thisstylename);
$stylenum++;
}
if ($html!=”) {
ob_start();
$filename=getcwd()."/".$html;
include($filename);
$output=ob_get_contents();
ob_end_clean();
return $output;
}
}
add_shortcode(‘include’,’include_func’);[/php]
Usage in a wordpress post:
Continue reading WordPress Tip: Custom shortcode for including CSS & HTML
WordPress Tip: Use Chrome’s Code Inspector to Edit HTML Inside Visual Editor
Using WordPress’ visual editor is nice, the TinyMCE Advanced Plugin makes it even more powerful. But it’s nice to be able to go back and change the HTML. Using the HTML tab in WordPress is not necessarily the best way to edit HTML, especially if you are interested in switching back and forth between Visual and HTML. If you are working with a large document, the HTML tab will always start you at the top. So every time you switch to HTML you have to search (either visually or with find) to find where you were at in the HTML. There is a better way… Continue reading WordPress Tip: Use Chrome’s Code Inspector to Edit HTML Inside Visual Editor