all repos — h3rald @ 342dd6b7ce9fa6dbc1bc9a3e5af6be0b13a12d2b

The sources of https://h3rald.com

Merge branch 'master' of ssh://git@ssh.github.com:443/h3rald/h3rald into journotwit-review
h3rald h3rald@h3rald.com
Thu, 05 Nov 2009 17:09:35 +0100
commit

342dd6b7ce9fa6dbc1bc9a3e5af6be0b13a12d2b

parent

d0b4dbfe203b689e6750de42fcc8b86b38d804b2

167 files changed, 1160 insertions(+), 1278 deletions(-)

jump to
M RulesRules

@@ -27,7 +27,7 @@ compile 'sitemap' do

rep.filter :erb end -compile /\/(js\/.+?|.htaccess|robots)/ do +compile /\/(js\/.+?)/ do # do nothing end

@@ -61,10 +61,6 @@ end

route '/js/*' do item.identifier.gsub(/\/$/, '') + '.js' -end - -route 'robots' do - item.identifier.gsub(/\/$/, '') + '.txt' end route '*' do
M content/.htaccessresources/.htaccess

@@ -1,5 +1,3 @@

------ ------ # Don't show directory listings for URLs which map to a directory. Options -Indexes
A content/articles/getting-started-with-lithium.textile

@@ -0,0 +1,120 @@

+----- +permalink: getting-started-with-lithium +filters_pre: +- erb +- redcloth +title: Getting Started with Lithium +date: 2009-10-27 15:48:00 +01:00 +tags: +- li3 +- php +- tutorial +type: article +toc: true +summary: A quick tutorial on how to get Lithium up and running, in five minutes or less. +----- + +So "Lithium":http://li3.rad-dev.org/ is now officially out, and its 0.1 release can be freely "downloaded":http://rad-dev.org/lithium/versions from the official web site or by cloning the Lithium git repository. The good news is that although not many web hosts offer PHP 5.3, you can try it out youself, locally and with minimum effort. + +h3. Requirements + +According to the "Lithium Wiki":http://rad-dev.org/wiki/guides/setup, to develop applications with Lithium you need: +* A web server, like Apache or IIS +* PHP 5.3.0 or higher +* Git (not required, but all example projects are on git repos, so you may as well have it) + +For this tutorial, more specifically, you need to download (just download, don't install anything!): +* "mongoose":http://code.google.com/p/mongoose/, a tiny, standalone (as _in one single file_), cross-platform web server. +* "PHP 5.3.0":http://www.php.net/downloads.php#v5, not the installer, the zip package. +* "Lithium":http://rad-dev.org/lithium/versions (version 0.1, at the time of writing) +* The "li3_docs plugin":http://rad-dev.org/li3_docs. + +To get the li3_docs plugin you need to "register":http://rad-dev.org/users/add on rad-dev.org, and clone the li3_docs git repository. If you don't have git installed or you don't want to read "another awesome tutorial":http://spheredev.org/wiki/Git_for_the_lazy to install it and learn how to use it, I'll save you the hassle and let you download the plugin from "here":/files/li3_docs.zip, for this time ony. + +**Note:** This tutorial assumes that you are on Windows. If you are not, some things may be a bit different depending on your platform. + +h3. Setting up the environment + +Choose a directory on your sistem (let's call it **D:\lithium_test** from now on). We'll do everything in here, and you can move it anywhere you like afterwards, even on a USB stick, without breaking anything. + +# Unzip Lithium in **D:\lithium_test**, so that it contains the following files and directories: +** app/ +** libraries/ +** .htaccess (it won't actually be used in this tutorial) +# Unzip PHP 5.3.0 somewhere and copy the following files to the **D:\lithium_test** folder: +** php5.dll +** php-cgi.exe +** php.ini (just get php.ini-development from the PHP package and rename it) +# Copy the mongoose-2.8.exe executable in **D:\lithium_test** and rename it to **mongoose.exe** for convenience. +# Create a **mongoose.conf** file containing the following lines: + +<% highlight :text do %> +cgi_interp php-cgi.exe +cgi_ext php +<% end %> + +If you did everything correctly, your **D:\lithium_test** directory should contain the following: +* app\ +* libraries\ +* .htaccess +* mongoose.exe +* mongoose.conf +* php-cgi.exe +* php.ini +* php5.dll + +h3. Running Lithium + +Double click **mongoose.exe** and point your browser of choice to "http://localhost:8080/app/webroot/index.php":http://localhost:8080/app/webroot/index.php. You should see the Lithium temporary homepage (yes, I expected something fancier too): + +!/img/pictures/lithium/temp_homepage.png! + +Now, let's see if we can get the li3_docs plugin running as well: + +# Unzip **li3_docs.zip** and copy the **li3_docs** folder in **D:\lithium_test\app\libraries\plugins**. +# Open **D:\lithium_test\app\config\bootstrap.php** and add the line: @Libraries::add('plugin', 'li3_docs');@ at the end. I actually found this commented out already (line 80). + +Go to "http://localhost:8080/app/webroot/index.php?url=docs":http://localhost:8080/app/webroot/index.php?url=docs, you should see something like this: + +!/img/pictures/lithium/li3_docs.png! + +Congratulation, you're now running your first Lithium application! + +h3. Fixing URLs + +Once the initial excitement wears off you'll notice that none of the links on the docs page works. + +That's because the mongoose web server does not support URL rewriting (and Lithium needs it badly right now), so we have to change the way URLs are created. "@nateabele":http://twitter.com/nateabele gave me "some tips":http://pastium.org/view/3a966c1446fcbd1d4f5a94d882256987 on how to do this; it's very simple: + +# Create a directory called **action** in **D:\lithium_test\app\extensions**. +# Create a file called **Request.php**, containing the following: + +<% highlight :php do %> +<?php +namespace app\extensions\action; + +class Request extends \lithium\action\Request { + + protected function _base() { + return '?url='; + } +} +?> +<% end %> + +We're basically extending the @\lithium\action\Request@ with a custom class, telling Lithium how to create the base URL. + +After doing so, open **D:\lithium_test\app\webroot\index.php** and change: + +@echo lithium\action\Dispatcher::run();@ + +into: + + @echo lithium\action\Dispatcher::run(new app\extensions\action\Request());@ + +In this case, we're instructing the dispatcher to use our custom Request class instead of the default one. + +Now everything should work as expected. Reload the docs page ("http://localhost:8080/app/webroot/index.php?url=docs":http://localhost:8080/app/webroot/index.php?url=docs) and verify that the links work by navigating to @Lithium@, then @action@ and finally @Controller@. + +Now you can use Lithium to display its own API locally (if things didn't work out, there's always "http://li3.rad-dev.org/docs":http://li3.rad-dev.org/docs). +
M content/articles/too-many-cooks-take-2.textilecontent/articles/too-many-cooks-take-2.textile

@@ -32,7 +32,7 @@ - cakephp

- writing - rant type: article -toc: true +toc: false ----- Today I was not going to post on my blog. I have the flu, I don't feel very well so I started reading some news feeds on Google Reader. That lasted for about half an hour, so I decided to check my old Netvibes account where I kept other feeds, including a bunch of CakePHP-related blogs.
A content/articles/too-many-cooks-take-3.textile

@@ -0,0 +1,44 @@

+----- +:type: article +:permalink: too-many-cooks-take-3 +:title: "Too many cooks... take #3" +:toc: false +:date: 2009-10-24 20:26:59.794937 +02:00 +:tags: +- cakephp +- rant +- php +- li3 +:summary: "Yet another rant about CakePHP, this time with a glimpse of hope called 'Lithium'." +----- +Like "its predecessor":http://www.h3rald.com/articles/too-many-cooks-take-2/, this is another rant about the (end of the) "CakePHP framework":http://www.cakephp.org. Not that I particularly enjoy writing about the misfortune of others, but after reading "this official announcement":http://bakery.cakephp.org/articles/view/the-cake-is-still-rising I felt compelled to post. + +It has been two years since my last post on this subject and yes, the cake is still rising, but at what price? Will it still taste sweet now that two of its main ingredients are not part of it anymore? As "Daniel":http://cakebaker.42dh.com/2009/10/23/the-end-of-cakephp/ puts it, _probably the best thing to do now is to drink tea and to wait until the dust settles..._ + +As far as I'm concerned, what really matters is that Garrett Woodworth (former CakePHP Project Manager) and Nate Abele (former CakePHP Lead Developer) are _gone_. They realized they had enough Nuts over the years and they decided to switch to a more "Lithium-rich":http://irc.cakephp.org/logs/link/1110092#message1110102 diet. More helthy and depression-proof, too! + +Stupid metaphors and painful jokes aside, this is probably the best piece of news the CakePHP community received in a long time: the birth of _a fork of the CakePHP framework_, more precisely of the so-called Cake3 branch. + +_Cake3_? I didn't keep up-to-date with the buzz, so I didn't know anything about this until today, when I decided to finally start catching up. + +bq. "Cake 3.0, on the other hand, is pretty different from the existing core code in a few notable ways. Mainly, it's been re-written from the ground up for PHP 5.3." + +p)))))). from "Cake 3 interview with Nate Abele":http://debuggable.com/posts/Cake_3_interview_with_Nate_Abele:4a665a5e-5bfc-4e42-96ee-6d284834cda3, debuggable.com + +Of course, in these three years of my full immersion in the Ruby language, I almost completely forgot about PHP too. PHP 5.3 means namespace and closures, i.e. the Rubyist's daily bread. A more modular CakePHP, properly object-oriented, with an ActiveRecord-like API for models (finally!) is definitely worth a look, especially if it's Nut-free as well. + +The new framework will be called *Lithium* (sounds more professional already), and it's due to launch next monday, here: "http://li3.rad-dev.org/":http://li3.rad-dev.org/ (at the time of writing, this link is password-protected). + +Personally, I am _very_ excited about this new project. It should have happened three years ago, really, but there's no point in being greedy: the time has finally come. I would like to (pre-)thank Garrett and Nate for their (upcoming) amazing work, I'll definitely keep a closer eye on it. + + + + + + + + + + + +
A content/css/_fancybox.sass

@@ -0,0 +1,283 @@

+----- +----- +html, body + height: 100% + +div#fancy_overlay + position: fixed + top: 0 + left: 0 + width: 100% + height: 100% + background-color: #666 + display: none + z-index: 30 + +* html div#fancy_overlay + position: absolute + height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px') + +div + &#fancy_wrap + text-align: left + + &#fancy_loading + position: absolute + height: 40px + width: 40px + cursor: pointer + display: none + overflow: hidden + background: transparent + z-index: 100 + + div + position: absolute + top: 0 + left: 0 + width: 40px + height: 480px + background: transparent url('/images/fancybox/fancy_progress.png') no-repeat + + &#fancy_loading_overlay + position: absolute + background-color: #FFF + z-index: 30 + + &#fancy_loading_icon + position: absolute + background: url('/images/fancybox/fancy_loading.gif') no-repeat + z-index: 35 + width: 16px + height: 16px + + &#fancy_outer + position: absolute + top: 0 + left: 0 + z-index: 90 + padding: 18px 18px 33px 18px + margin: 0 + overflow: hidden + background: transparent + display: none + + &#fancy_inner + position: relative + width: 100% + height: 100% + border: 1px solid #BBB + background: #FFF + + &#fancy_content + margin: 0 + z-index: 100 + position: absolute + + &#fancy_div + background: #000 + color: #FFF + height: 100% + width: 100% + z-index: 100 + + +img#fancy_img + position: absolute + top: 0 + left: 0 + border: 0 + padding: 0 + margin: 0 + z-index: 100 + width: 100% + height: 100% + + +div#fancy_close + position: absolute + top: -12px + right: -15px + height: 30px + width: 30px + background: url('/images/fancybox/fancy_closebox.png') top left no-repeat + cursor: pointer + z-index: 181 + display: none + + +#fancy_frame + position: relative + width: 100% + height: 100% + display: none + +#fancy_ajax + width: 100% + height: 100% + overflow: auto + +a + &#fancy_left, &#fancy_right + position: absolute + bottom: 0px + height: 100% + width: 35% + cursor: pointer + z-index: 111 + display: none + outline: none + + &#fancy_left + left: 0px + + &#fancy_right + right: 0px + + +span + &.fancy_ico + position: absolute + top: 50% + margin-top: -15px + width: 30px + height: 30px + z-index: 112 + cursor: pointer + display: block + + &#fancy_left_ico + left: -9999px + background: transparent url('/images/fancybox/fancy_left.png') no-repeat + + &#fancy_right_ico + right: -9999px + background: transparent url('/images/fancybox/fancy_right.png') no-repeat + + +a + &#fancy_left:hover, &#fancy_right:hover + visibility: visible + + &#fancy_left:hover span + left: 20px + + &#fancy_right:hover span + right: 20px + + +.fancy_bigIframe + position: absolute + top: 0 + left: 0 + width: 100% + height: 100% + background: transparent + + +div + &#fancy_bg + position: absolute + top: 0 + left: 0 + width: 100% + height: 100% + z-index: 70 + border: 0 + padding: 0 + margin: 0 + + &.fancy_bg + position: absolute + display: block + z-index: 70 + border: 0 + padding: 0 + margin: 0 + + &.fancy_bg_n + top: -18px + width: 100% + height: 18px + background: transparent url('/images/fancybox/fancy_shadow_n.png') repeat-x + + &.fancy_bg_ne + top: -18px + right: -13px + width: 13px + height: 18px + background: transparent url('/images/fancybox/fancy_shadow_ne.png') no-repeat + + &.fancy_bg_e + right: -13px + height: 100% + width: 13px + background: transparent url('/images/fancybox/fancy_shadow_e.png') repeat-y + + &.fancy_bg_se + bottom: -18px + right: -13px + width: 13px + height: 18px + background: transparent url('/images/fancybox/fancy_shadow_se.png') no-repeat + + &.fancy_bg_s + bottom: -18px + width: 100% + height: 18px + background: transparent url('/images/fancybox/fancy_shadow_s.png') repeat-x + + &.fancy_bg_sw + bottom: -18px + left: -13px + width: 13px + height: 18px + background: transparent url('/images/fancybox/fancy_shadow_sw.png') no-repeat + + &.fancy_bg_w + left: -13px + height: 100% + width: 13px + background: transparent url('/images/fancybox/fancy_shadow_w.png') repeat-y + + &.fancy_bg_nw + top: -18px + left: -13px + width: 13px + height: 18px + background: transparent url('/images/fancybox/fancy_shadow_nw.png') no-repeat + + &#fancy_title + position: absolute + bottom: -33px + left: 0 + width: 100% + z-index: 100 + display: none + + div + color: #FFF + font: bold 12px Arial + padding-bottom: 3px + + table + margin: 0 auto + + td + padding: 0 + vertical-align: middle + +td + &#fancy_title_left + height: 32px + width: 15px + background: transparent url(/images/fancybox/fancy_title_left.png) repeat-x + + &#fancy_title_main + height: 32px + background: transparent url(/images/fancybox/fancy_title_main.png) repeat-x + + &#fancy_title_right + height: 32px + width: 15px + background: transparent url(/images/fancybox/fancy_title_right.png) repeat-x
M content/css/_layout.sasscontent/css/_layout.sass

@@ -73,7 +73,7 @@ margin-bottom: 5px

font-weight: bold #container - padding: 15px + padding: 5px 15px margin: auto width: 900px height: 100%

@@ -148,13 +148,18 @@ clear: both

margin: auto padding: 5px text-align: center + + table, td, tr + border: none + +#page-links + text-align: right img - vertical-align: middle + vertical-align: text-bottom - table, td, tr - border: none - +#page-links span + padding: 0 5px #comments width: 900px
M content/css/_lightbox-gallery.sasscontent/css/_fancybox-gallery.sass

@@ -3,26 +3,32 @@ -----

#gallery padding: 1em width: 750px - + ul list-style: none - + li float: left margin-left: 2px padding-left: 0 - + img border: 5px solid #dedede - + a:hover color: #fff - + img border: 5px solid #ccc color: #fff a border-bottom: none + +#fancy_content + a + border-bottom: none -#jquery-lightbox a - border-bottom: none +#fancy_title td, #fancy_title tr, #fancy_title table + border: none + +
D content/css/_lightbox.sass

@@ -1,113 +0,0 @@

------ ------ -#jquery-overlay - position: absolute - top: 0 - left: 0 - z-index: 90 - width: 100% - height: 500px - - -#jquery-lightbox - position: absolute - top: 0 - left: 0 - width: 100% - z-index: 100 - text-align: center - line-height: 0 - - a img - border: none - - -#lightbox-container-image-box - position: relative - background-color: #fff - width: 250px - height: 250px - margin: 0 auto - - -#lightbox-container-image - padding: 10px - - -#lightbox-loading - position: absolute - top: 40% - left: 0% - height: 25% - width: 100% - text-align: center - line-height: 0 - - -#lightbox-nav - position: absolute - top: 0 - left: 0 - height: 100% - width: 100% - z-index: 10 - - -#lightbox-container-image-box > #lightbox-nav - left: 0 - - -#lightbox-nav a - outline: none - - -#lightbox-nav-btnPrev, #lightbox-nav-btnNext - width: 49% - height: 100% - display: block - - -#lightbox-nav-btnPrev - left: 0 - float: left - - -#lightbox-nav-btnNext - right: 0 - float: right - - -#lightbox-container-image-data-box - font: 10px Verdana, Helvetica, sans-serif - background-color: #fff - margin: 0 auto - line-height: 1.4em - overflow: auto - width: 100% - padding: 0 10px 0 - - -#lightbox-container-image-data - padding: 0 10px - color: #666 - - #lightbox-image-details - width: 70% - float: left - text-align: left - - -#lightbox-image-details-caption - font-weight: bold - - -#lightbox-image-details-currentNumber - display: block - clear: left - padding-bottom: 1.0em - - -#lightbox-secNav-btnClose - width: 66px - float: right - padding-bottom: 0.7em
M content/css/main.sasscontent/css/main.sass

@@ -4,5 +4,5 @@ @import layout.sass

@import elements.sass @import text.sass @import code.sass -@import lightbox.sass -@import lightbox-gallery.sass +@import fancybox.sass +@import fancybox-gallery.sass
M content/holidays.textilecontent/holidays.textile

@@ -18,47 +18,47 @@

<div id="gallery"> <ul> <li> - <a href="/images/sessarego/outside1.jpg" title="View from the outside"> + <a href="/images/sessarego/outside1.jpg" title="View from the outside" rel="holidays"> <img src="/images/sessarego/thumb_outside1.jpg" /> </a> </li> <li> - <a href="/images/sessarego/inside.jpg" title="Main living area"> + <a href="/images/sessarego/inside.jpg" title="Main living area" rel="holidays"> <img src="/images/sessarego/thumb_inside.jpg" /> </a> </li> <li> - <a href="/images/sessarego/master-bedroom.jpg" title="Master bedroom"> + <a href="/images/sessarego/master-bedroom.jpg" title="Master bedroom" rel="holidays"> <img src="/images/sessarego/thumb_master-bedroom.jpg" /> </a> </li> <li> - <a href="/images/sessarego/bedroom.jpg" title="Spare bedroom"> + <a href="/images/sessarego/bedroom.jpg" title="Spare bedroom" rel="holidays"> <img src="/images/sessarego/thumb_bedroom.jpg" /> </a> </li> <li> - <a href="/images/sessarego/view1.jpg" title="View from the linving room"> + <a href="/images/sessarego/view1.jpg" title="View from the linving room" rel="holidays"> <img src="/images/sessarego/thumb_view1.jpg" /> </a> </li> <li> - <a href="/images/sessarego/view2.jpg" title="View from the bedroom"> + <a href="/images/sessarego/view2.jpg" title="View from the bedroom" rel="holidays"> <img src="/images/sessarego/thumb_view2.jpg" /> </a> </li> <li> - <a href="/images/sessarego/sessarego.jpg" title="A view of Sessarego"> + <a href="/images/sessarego/sessarego.jpg" title="A view of Sessarego" rel="holidays"> <img src="/images/sessarego/thumb_sessarego.jpg" /> </a> </li> <li> - <a href="/images/sessarego/floor1.gif" title="First floor (map)"> + <a href="/images/sessarego/floor1.gif" title="First floor (map)" rel="holidays"> <img src="/images/sessarego/thumb_floor1.gif" /> </a> </li> <li> - <a href="/images/sessarego/floor2.gif" title="Second floor (map)"> + <a href="/images/sessarego/floor2.gif" title="Second floor (map)" rel="holidays"> <img src="/images/sessarego/thumb_floor2.gif" /> </a> </li>
M content/js/compressed.jscontent/js/compressed.js

@@ -1,67 +1,165 @@

----- ----- -(function($){$.timeago=function(timestamp){if (timestamp instanceof Date) return inWords(timestamp);else if (typeof timestamp== -"string" -) return inWords($.timeago.parse(timestamp));else return inWords($.timeago.parse($(timestamp).attr( -"title" -)));};var $t=$.timeago;$.extend($.timeago,{settings:{refreshMillis:60000,allowFuture:false,strings:{prefixAgo:null,prefixFromNow:null,suffixAgo: -"ago" -,suffixFromNow: -"from now" -,ago:null, -fromNow:null, -seconds: -"less than a minute" -,minute: -"about a minute" -,minutes: -"%d minutes" -,hour: -"about an hour" -,hours: -"about %d hours" -,day: -"a day" -,days: -"%d days" -,month: -"about a month" -,months: -"%d months" -,year: -"about a year" -,years: -"%d years" -}},inWords:function(distanceMillis){var $l=this.settings.strings;var prefix=$l.prefixAgo;var suffix=$l.suffixAgo||$l.ago;if (this.settings.allowFuture){if (distanceMillis<0){prefix=$l.prefixFromNow;suffix=$l.suffixFromNow||$l.fromNow;} -distanceMillis=Math.abs(distanceMillis);} -var seconds=distanceMillis / 1000;var minutes=seconds / 60;var hours=minutes / 60;var days=hours / 24;var years=days / 365;var words=seconds<45&&substitute($l.seconds,Math.round(seconds))||seconds<90&&substitute($l.minute,1)||minutes<45&&substitute($l.minutes,Math.round(minutes))||minutes<90&&substitute($l.hour,1)||hours<24&&substitute($l.hours,Math.round(hours))||hours<48&&substitute($l.day,1)||days<30&&substitute($l.days,Math.floor(days))||days<60&&substitute($l.month,1)||days<365&&substitute($l.months,Math.floor(days / 30))||years<2&&substitute($l.year,1)||substitute($l.years,Math.floor(years));return $.trim([prefix,words,suffix].join( -" " -));},parse:function(iso8601){var s=$.trim(iso8601);s=s.replace( -/-/, -"/" -).replace( -/-/, -"/" -);s=s.replace( -/T/, -" " +google.load( +'search' +, +'1' +,{nocss:1});function OnLoad(){ +var searchControl=new google.search.SearchControl(); +var draw_options=new google.search.DrawOptions();draw_options.setSearchFormRoot(document.getElementById( +"search_form" +)); +var webSearch=new google.search.WebSearch();webSearch.setSiteRestriction( +'h3rald.com' +);var search_options=new google.search.SearcherOptions();search_options.setExpandMode(google.search.SearchControl.EXPAND_MODE_OPEN);searchControl.addSearcher(webSearch,search_options);searchControl.setResultSetSize(google.search.Search.LARGE_RESULTSET);searchControl.draw(document.getElementById( +"search_results" +),draw_options);} +google.setOnLoadCallback(OnLoad);---------- +(function($){$.TableOfContents=function(el,scope,options){var base=this;base.$el=$(el);base.el=el;base.toc= +"" +;base.listStyle=null;base.tags=[ +"h1" +, +"h2" +, +"h3" +, +"h4" +, +"h5" +, +"h6" +];base.init=function(){base.options=$.extend({},$.TableOfContents.defaultOptions,options);if(typeof(scope)== +"undefined" +||scope==null)scope=document.body;base.$scope=$(scope);var $first=base.$scope.find(base.tags.join( +', ' +)).filter( +':first' +);if($first.length!=1)return;base.starting_depth=base.options.startLevel;if(base.options.depth<1)base.options.depth=1;var filtered_tags=base.tags.splice(base.options.startLevel-1,base.options.depth);base.$headings=base.$scope.find(filtered_tags.join( +', ' +));if(base.options.topLinks!==false){var id=$(document.body).attr( +'id' +);if(id== +"" +){id=base.options.topBodyId;document.body.id=id};base.topLinkId=id};if(base.$el.is( +'ul' +)){base.listStyle= +'ul' +}else if(base.$el.is( +'ol' +)){base.listStyle= +'ol' +};base.buildTOC();if(base.options.proportionateSpacing===true&&!base.tieredList()){base.addSpacing()};return base};base.tieredList=function(){return(base.listStyle== +'ul' +||base.listStyle== +'ol' +)};base.buildTOC=function(){base.current_depth=base.starting_depth;base.$headings.each(function(i,element){var depth=this.nodeName.toLowerCase().substr(1,1);if(i>0||(i==0&&depth!=base.current_depth)){base.changeDepth(depth)};base.toc+=base.formatLink(this,depth,i)+ +"\n" +;if(base.options.topLinks!==false)base.addTopLink(this)});base.changeDepth(base.starting_depth,true);if(base.tieredList())base.toc= +"<li>\n" ++base.toc+ +"</li>\n" +;base.$el.html(base.toc)};base.addTopLink=function(element){var text=(base.options.topLinks===true? +"Top" +:base.options.topLinks);var $a=$( +"<a href='#" ++base.topLinkId+ +"' class='" ++base.options.topLinkClass+ +"'></a>" +).html(text);$(element).append($a)};base.formatLink=function(element,depth,index){var id=element.id;if(id== +"" +){id=base.buildSlug($(element).text());element.id=id};var a= +"<a href='#" ++id+ +"'" +;if(!base.tieredList())a+= +" class='" ++base.depthClass(depth)+ +"'" +;a+= +">" ++base.options.levelText.replace( +'%' +,$(element).text())+ +'</a>' +;return a};base.changeDepth=function(new_depth,last){if(last!==true)last=false;if(!base.tieredList()){base.current_depth=new_depth;return true};if(new_depth>base.current_depth){var opening_tags=[];for(var i=base.current_depth;i<new_depth;i++){opening_tags.push( +'<' ++base.listStyle+ +'>' ++ +"\n" +)};var li= +"<li>\n" +;base.toc+=opening_tags.join(li)+li}else if(new_depth<base.current_depth){var closing_tags=[];for(var i=base.current_depth;i>new_depth;i--){closing_tags.push( +'</' ++base.listStyle+ +'>' ++ +"\n" +)};base.toc+= +"</li>\n" ++closing_tags.join( +'</li>' ++ +"\n" +);if(!last){base.toc+= +"</li>\n<li>\n" +}}else{if(!last){base.toc+= +"</li>\n<li>\n" +}};base.current_depth=new_depth};base.buildSlug=function(text){text=text.toLowerCase().replace( +/[^a-z0-9 -]/gi, +'' ).replace( -/Z/, -" UTC" -);s=s.replace( -/([\+-]\d\d)\:?(\d\d)/, -" $1$2" -); -return new Date(s);}});$.fn.timeago=function(){var self=this;self.each(refresh);var $s=$t.settings;if ($s.refreshMillis>0){setInterval(function(){self.each(refresh);},$s.refreshMillis);} -return self;};function refresh(){var date=$t.parse(this.title);if (!isNaN(date)){$(this).text(inWords(date));} -return this;} -function inWords(date){return $t.inWords(distance(date));} -function distance(date){return (new Date().getTime()-date.getTime());} -function substitute(stringOrFunction,value){var string=$.isFunction(stringOrFunction)?stringOrFunction(value):stringOrFunction;return string.replace( -/%d/i,value);} -document.createElement( -'abbr' -);})(jQuery);---------- +/ /gi, +'-' +);text=text.substr(0,50);return text};base.depthClass=function(depth){return base.options.levelClass.replace( +'%' +,(depth-(base.starting_depth-1)))};base.addSpacing=function(){var start=base.$headings.filter( +':first' +).position().top;base.$headings.each(function(i,el){var $a=base.$el.find( +'a:eq(' ++i+ +')' +);var pos=(($(this).position().top-start)/(base.$scope.height()-start))*base.$el.height();$a.css({position: +"absolute" +,top:pos})})};return base.init()};$.TableOfContents.defaultOptions={startLevel:1,depth:3,levelClass: +"toc-depth-%" +,levelText: +"%" +,topLinks:false,topLinkClass: +"toc-top-link" +,topBodyId: +"toc-top" +,proportionateSpacing:false};$.fn.tableOfContents=function(scope,options){return this.each(function(){var toc=new $.TableOfContents(this,scope,options);delete toc})}})(jQuery);----------$(function(){$( +'#gallery a' +).fancybox();$( +'.fancybox' +).fancybox({frameWidth:850,frameHeight:450});});function delicious_counter(data){var posts=data[0].total_posts;if (!posts) return;var text=posts+ +" bookmarks" +;if (posts==1){text=posts+ +" bookmark" +};$( +'#delcounter' +).text(text);} +$(document).ready(function(){$( +'.timeago' +).timeago(); +$( +"#toc ol" +).tableOfContents( +"#content-body" +,{startLevel:3,depth:6,topLinks: +"[top]" +}); +var first_paragraph=$( +'#content-body p:first' +);if (!first_paragraph) return false;var t=first_paragraph.html();var first_letter=t.substr(0,1);if (first_letter.match( +/[a-z]/i)){first_paragraph.html(t.slice(1,t.length));$( +'<span></span>' +).addClass( +'dropcap' +).html(first_letter).prependTo(first_paragraph);}});---------- Date.CultureInfo={name: "en-US" ,englishName:

@@ -771,6 +869,95 @@ "$1"

));}catch(e){return null;} return((r[1].length===0)?r[0]:null);};$D.getParseFunction=function(fx){var fn=$D.Grammar.formats(fx);return function(s){var r=null;try{r=fn.call({},s);}catch(e){return null;} return((r[1].length===0)?r[0]:null);};};$D.parseExact=function(s,fx){return $D.getParseFunction(fx)(s);};}());---------- +(function($){$.timeago=function(timestamp){if (timestamp instanceof Date) return inWords(timestamp);else if (typeof timestamp== +"string" +) return inWords($.timeago.parse(timestamp));else return inWords($.timeago.parse($(timestamp).attr( +"title" +)));};var $t=$.timeago;$.extend($.timeago,{settings:{refreshMillis:60000,allowFuture:false,strings:{prefixAgo:null,prefixFromNow:null,suffixAgo: +"ago" +,suffixFromNow: +"from now" +,ago:null, +fromNow:null, +seconds: +"less than a minute" +,minute: +"about a minute" +,minutes: +"%d minutes" +,hour: +"about an hour" +,hours: +"about %d hours" +,day: +"a day" +,days: +"%d days" +,month: +"about a month" +,months: +"%d months" +,year: +"about a year" +,years: +"%d years" +}},inWords:function(distanceMillis){var $l=this.settings.strings;var prefix=$l.prefixAgo;var suffix=$l.suffixAgo||$l.ago;if (this.settings.allowFuture){if (distanceMillis<0){prefix=$l.prefixFromNow;suffix=$l.suffixFromNow||$l.fromNow;} +distanceMillis=Math.abs(distanceMillis);} +var seconds=distanceMillis / 1000;var minutes=seconds / 60;var hours=minutes / 60;var days=hours / 24;var years=days / 365;var words=seconds<45&&substitute($l.seconds,Math.round(seconds))||seconds<90&&substitute($l.minute,1)||minutes<45&&substitute($l.minutes,Math.round(minutes))||minutes<90&&substitute($l.hour,1)||hours<24&&substitute($l.hours,Math.round(hours))||hours<48&&substitute($l.day,1)||days<30&&substitute($l.days,Math.floor(days))||days<60&&substitute($l.month,1)||days<365&&substitute($l.months,Math.floor(days / 30))||years<2&&substitute($l.year,1)||substitute($l.years,Math.floor(years));return $.trim([prefix,words,suffix].join( +" " +));},parse:function(iso8601){var s=$.trim(iso8601);s=s.replace( +/-/, +"/" +).replace( +/-/, +"/" +);s=s.replace( +/T/, +" " +).replace( +/Z/, +" UTC" +);s=s.replace( +/([\+-]\d\d)\:?(\d\d)/, +" $1$2" +); +return new Date(s);}});$.fn.timeago=function(){var self=this;self.each(refresh);var $s=$t.settings;if ($s.refreshMillis>0){setInterval(function(){self.each(refresh);},$s.refreshMillis);} +return self;};function refresh(){var date=$t.parse(this.title);if (!isNaN(date)){$(this).text(inWords(date));} +return this;} +function inWords(date){return $t.inWords(distance(date));} +function distance(date){return (new Date().getTime()-date.getTime());} +function substitute(stringOrFunction,value){var string=$.isFunction(stringOrFunction)?stringOrFunction(value):stringOrFunction;return string.replace( +/%d/i,value);} +document.createElement( +'abbr' +);})(jQuery);---------- +jQuery.easing[ +'jswing' +]=jQuery.easing[ +'swing' +];jQuery.extend(jQuery.easing,{def: +'easeOutQuad' +,swing:function (x,t,b,c,d){ +return jQuery.easing[jQuery.easing.def](x,t,b,c,d);},easeInQuad:function (x,t,b,c,d){return c*(t/=d)*t+b;},easeOutQuad:function (x,t,b,c,d){return-c *(t/=d)*(t-2)+b;},easeInOutQuad:function (x,t,b,c,d){if ((t +/=d/2)<1) return c/2*t*t+b;return-c/2 * ((--t)*(t-2)-1)+b;},easeInCubic:function (x,t,b,c,d){return c*(t/=d)*t*t+b;},easeOutCubic:function (x,t,b,c,d){return c*((t=t/d-1)*t*t+1)+b;},easeInOutCubic:function (x,t,b,c,d){if ((t +/=d/2)<1) return c/2*t*t*t+b;return c/2*((t-=2)*t*t+2)+b;},easeInQuart:function (x,t,b,c,d){return c*(t/=d)*t*t*t+b;},easeOutQuart:function (x,t,b,c,d){return-c * ((t=t/d-1)*t*t*t-1)+b;},easeInOutQuart:function (x,t,b,c,d){if ((t +/=d/2)<1) return c/2*t*t*t*t+b;return-c/2 * ((t-=2)*t*t*t-2)+b;},easeInQuint:function (x,t,b,c,d){return c*(t/=d)*t*t*t*t+b;},easeOutQuint:function (x,t,b,c,d){return c*((t=t/d-1)*t*t*t*t+1)+b;},easeInOutQuint:function (x,t,b,c,d){if ((t +/=d/2)<1) return c/2*t*t*t*t*t+b;return c/2*((t-=2)*t*t*t*t+2)+b;},easeInSine:function (x,t,b,c,d){return-c * Math.cos(t +/d * (Math.PI/2))+c+b;},easeOutSine:function (x,t,b,c,d){return c * Math.sin(t +/d * (Math.PI/2))+b;},easeInOutSine:function (x,t,b,c,d){return-c +/2 * (Math.cos(Math.PI*t/d)-1)+b;},easeInExpo:function (x,t,b,c,d){return (t==0)?b:c * Math.pow(2,10 * (t/d-1))+b;},easeOutExpo:function (x,t,b,c,d){return (t==d)?b+c:c * (-Math.pow(2,-10 * t/d)+1)+b;},easeInOutExpo:function (x,t,b,c,d){if (t==0) return b;if (t==d) return b+c;if ((t +/=d/2)<1) return c/2 * Math.pow(2,10 * (t-1))+b;return c/2 * (-Math.pow(2,-10 *--t)+2)+b;},easeInCirc:function (x,t,b,c,d){return-c * (Math.sqrt(1-(t/=d)*t)-1)+b;},easeOutCirc:function (x,t,b,c,d){return c * Math.sqrt(1-(t=t/d-1)*t)+b;},easeInOutCirc:function (x,t,b,c,d){if ((t +/=d/2)<1) return-c/2 * (Math.sqrt(1-t*t)-1)+b;return c/2 * (Math.sqrt(1-(t-=2)*t)+1)+b;},easeInElastic:function (x,t,b,c,d){var s=1.70158;var p=0;var a=c;if (t==0) return b;if ((t/=d)==1) return b+c;if (!p) p=d*.3;if (a<Math.abs(c)){a=c;var s=p/4;} +else var s=p +/(2*Math.PI) * Math.asin (c/a);return-(a*Math.pow(2,10*(t-=1)) * Math.sin((t*d-s)*(2*Math.PI)/p))+b;},easeOutElastic:function (x,t,b,c,d){var s=1.70158;var p=0;var a=c;if (t==0) return b;if ((t/=d)==1) return b+c;if (!p) p=d*.3;if (a<Math.abs(c)){a=c;var s=p/4;} +else var s=p +/(2*Math.PI) * Math.asin (c/a);return a*Math.pow(2,-10*t) * Math.sin((t*d-s)*(2*Math.PI)/p)+c+b;},easeInOutElastic:function (x,t,b,c,d){var s=1.70158;var p=0;var a=c;if (t==0) return b;if ((t +/=d/2)==2) return b+c;if (!p) p=d*(.3*1.5);if (a<Math.abs(c)){a=c;var s=p/4;} +else var s=p +/(2*Math.PI) * Math.asin (c/a);if (t<1) return-.5*(a*Math.pow(2,10*(t-=1)) * Math.sin((t*d-s)*(2*Math.PI)/p))+b;return a*Math.pow(2,-10*(t-=1)) * Math.sin((t*d-s)*(2*Math.PI)/p)*.5+c+b;},easeInBack:function (x,t,b,c,d,s){if (s==undefined) s=1.70158;return c*(t/=d)*t*((s+1)*t-s)+b;},easeOutBack:function (x,t,b,c,d,s){if (s==undefined) s=1.70158;return c*((t=t/d-1)*t*((s+1)*t+s)+1)+b;},easeInOutBack:function (x,t,b,c,d,s){if (s==undefined) s=1.70158;if ((t +/=d/2)<1) return c/2*(t*t*(((s*=(1.525))+1)*t-s))+b;return c/2*((t-=2)*t*(((s*=(1.525))+1)*t+s)+2)+b;},easeInBounce:function (x,t,b,c,d){return c-jQuery.easing.easeOutBounce (x,d-t,0,c,d)+b;},easeOutBounce:function (x,t,b,c,d){if ((t +/=d) < (1/2.75)){return c*(7.5625*t*t)+b;} else if (t<(2/2.75)){return c*(7.5625*(t-=(1.5/2.75))*t+.75)+b;} else if (t<(2.5/2.75)){return c*(7.5625*(t-=(2.25/2.75))*t+.9375)+b;} else {return c*(7.5625*(t-=(2.625/2.75))*t+.984375)+b;}},easeInOutBounce:function (x,t,b,c,d){if (t<d/2) return jQuery.easing.easeInBounce (x,t*2,0,c,d) * .5+b;return jQuery.easing.easeOutBounce (x,t*2-d,0,c,d) * .5+c*.5+b;}}); +---------- (function(){var window=this, undefined,

@@ -2933,124 +3120,7 @@ this.css(type,typeof size===

"string" ?size:size+ "px" -);};});})();---------- -(function($){$.TableOfContents=function(el,scope,options){var base=this;base.$el=$(el);base.el=el;base.toc= -"" -;base.listStyle=null;base.tags=[ -"h1" -, -"h2" -, -"h3" -, -"h4" -, -"h5" -, -"h6" -];base.init=function(){base.options=$.extend({},$.TableOfContents.defaultOptions,options);if(typeof(scope)== -"undefined" -||scope==null)scope=document.body;base.$scope=$(scope);var $first=base.$scope.find(base.tags.join( -', ' -)).filter( -':first' -);if($first.length!=1)return;base.starting_depth=base.options.startLevel;if(base.options.depth<1)base.options.depth=1;var filtered_tags=base.tags.splice(base.options.startLevel-1,base.options.depth);base.$headings=base.$scope.find(filtered_tags.join( -', ' -));if(base.options.topLinks!==false){var id=$(document.body).attr( -'id' -);if(id== -"" -){id=base.options.topBodyId;document.body.id=id};base.topLinkId=id};if(base.$el.is( -'ul' -)){base.listStyle= -'ul' -}else if(base.$el.is( -'ol' -)){base.listStyle= -'ol' -};base.buildTOC();if(base.options.proportionateSpacing===true&&!base.tieredList()){base.addSpacing()};return base};base.tieredList=function(){return(base.listStyle== -'ul' -||base.listStyle== -'ol' -)};base.buildTOC=function(){base.current_depth=base.starting_depth;base.$headings.each(function(i,element){var depth=this.nodeName.toLowerCase().substr(1,1);if(i>0||(i==0&&depth!=base.current_depth)){base.changeDepth(depth)};base.toc+=base.formatLink(this,depth,i)+ -"\n" -;if(base.options.topLinks!==false)base.addTopLink(this)});base.changeDepth(base.starting_depth,true);if(base.tieredList())base.toc= -"<li>\n" -+base.toc+ -"</li>\n" -;base.$el.html(base.toc)};base.addTopLink=function(element){var text=(base.options.topLinks===true? -"Top" -:base.options.topLinks);var $a=$( -"<a href='#" -+base.topLinkId+ -"' class='" -+base.options.topLinkClass+ -"'></a>" -).html(text);$(element).append($a)};base.formatLink=function(element,depth,index){var id=element.id;if(id== -"" -){id=base.buildSlug($(element).text());element.id=id};var a= -"<a href='#" -+id+ -"'" -;if(!base.tieredList())a+= -" class='" -+base.depthClass(depth)+ -"'" -;a+= -">" -+base.options.levelText.replace( -'%' -,$(element).text())+ -'</a>' -;return a};base.changeDepth=function(new_depth,last){if(last!==true)last=false;if(!base.tieredList()){base.current_depth=new_depth;return true};if(new_depth>base.current_depth){var opening_tags=[];for(var i=base.current_depth;i<new_depth;i++){opening_tags.push( -'<' -+base.listStyle+ -'>' -+ -"\n" -)};var li= -"<li>\n" -;base.toc+=opening_tags.join(li)+li}else if(new_depth<base.current_depth){var closing_tags=[];for(var i=base.current_depth;i>new_depth;i--){closing_tags.push( -'</' -+base.listStyle+ -'>' -+ -"\n" -)};base.toc+= -"</li>\n" -+closing_tags.join( -'</li>' -+ -"\n" -);if(!last){base.toc+= -"</li>\n<li>\n" -}}else{if(!last){base.toc+= -"</li>\n<li>\n" -}};base.current_depth=new_depth};base.buildSlug=function(text){text=text.toLowerCase().replace( -/[^a-z0-9 -]/gi, -'' -).replace( -/ /gi, -'-' -);text=text.substr(0,50);return text};base.depthClass=function(depth){return base.options.levelClass.replace( -'%' -,(depth-(base.starting_depth-1)))};base.addSpacing=function(){var start=base.$headings.filter( -':first' -).position().top;base.$headings.each(function(i,el){var $a=base.$el.find( -'a:eq(' -+i+ -')' -);var pos=(($(this).position().top-start)/(base.$scope.height()-start))*base.$el.height();$a.css({position: -"absolute" -,top:pos})})};return base.init()};$.TableOfContents.defaultOptions={startLevel:1,depth:3,levelClass: -"toc-depth-%" -,levelText: -"%" -,topLinks:false,topLinkClass: -"toc-top-link" -,topBodyId: -"toc-top" -,proportionateSpacing:false};$.fn.tableOfContents=function(scope,options){return this.each(function(){var toc=new $.TableOfContents(this,scope,options);delete toc})}})(jQuery);----------function format_date(d){return $.timeago(Date.parse(d));} +);};});})();----------function format_date(d){return $.timeago(Date.parse(d));} function get_json_data(uri,options){$.getJSON(uri,function(data){var list=$( "<ul></ul>" );for (var i=0;i<options.max;i++){switch(options.element){case

@@ -3211,325 +3281,17 @@ +repo+

".json" ,{max:max,element: '#github' -,repo:repo})}----------google.load( -'search' -, -'1' -,{nocss:1});function OnLoad(){ -var searchControl=new google.search.SearchControl(); -var draw_options=new google.search.DrawOptions();draw_options.setSearchFormRoot(document.getElementById( -"search_form" -)); -var webSearch=new google.search.WebSearch();webSearch.setSiteRestriction( -'h3rald.com' -);var search_options=new google.search.SearcherOptions();search_options.setExpandMode(google.search.SearchControl.EXPAND_MODE_OPEN);searchControl.addSearcher(webSearch,search_options);searchControl.setResultSetSize(google.search.Search.LARGE_RESULTSET);searchControl.draw(document.getElementById( -"search_results" -),draw_options);} -google.setOnLoadCallback(OnLoad);----------$(function(){$( -'#gallery a' -).lightBox();});function delicious_counter(data){var posts=data[0].total_posts;if (!posts) return;var text=posts+ -" bookmarks" -;if (posts==1){text=posts+ -" bookmark" -};$( -'#delcounter' -).text(text);} -$(document).ready(function(){$( -'.timeago' -).timeago(); -$( -"#toc ol" -).tableOfContents( -"#content-body" -,{startLevel:3,depth:6,topLinks: -"[top]" -}); -var first_paragraph=$( -'#content-body p:first' -);if (!first_paragraph) return false;var t=first_paragraph.html();var first_letter=t.substr(0,1);if (first_letter.match( -/[a-z]/i)){first_paragraph.html(t.slice(1,t.length));$( -'<span></span>' -).addClass( -'dropcap' -).html(first_letter).prependTo(first_paragraph);}});---------- -(function($){ -$.fn.lightBox=function(settings){ -settings=jQuery.extend({ -overlayBgColor: -'#000' -, -overlayOpacity:0.8, -fixedNavigation:false, -imageLoading: -'/images/lightbox-ico-loading.gif' -, -imageBtnPrev: -'/images/lightbox-btn-prev.gif' -, -imageBtnNext: -'/images/lightbox-btn-next.gif' -, -imageBtnClose: -'/images/lightbox-btn-close.gif' -, -imageBlank: -'/images/lightbox-blank.gif' -, -containerBorderSize:10, -containerResizeSpeed:400, -txtImage: -'Image' -, -txtOf: -'of' -, -keyToClose: -'c' -, -keyToPrev: -'p' -, -keyToNext: -'n' -, -imageArray:[],activeImage:0},settings); -var jQueryMatchedObj=this; -function _initialize(){_start(this,jQueryMatchedObj); -return false; -} -function _start(objClicked,jQueryMatchedObj){ -$( -'embed, object, select' -).css({ -'visibility' -: -'hidden' -}); -_set_interface(); -settings.imageArray.length=0; -settings.activeImage=0; -if (jQueryMatchedObj.length==1){settings.imageArray.push(new Array(objClicked.getAttribute( -'href' -),objClicked.getAttribute( -'title' -)));} else { -for (var i=0;i<jQueryMatchedObj.length;i++){settings.imageArray.push(new Array(jQueryMatchedObj[i].getAttribute( -'href' -),jQueryMatchedObj[i].getAttribute( -'title' -)));}} -while (settings.imageArray[settings.activeImage][0] !=objClicked.getAttribute( -'href' -)){settings.activeImage++;} -_set_image_to_view();} -function _set_interface(){ -$( -'body' -).append( -'<div id="jquery-overlay"></div><div id="jquery-lightbox"><div id="lightbox-container-image-box"><div id="lightbox-container-image"><img id="lightbox-image"><div style="" id="lightbox-nav"><a href="#" id="lightbox-nav-btnPrev"></a><a href="#" id="lightbox-nav-btnNext"></a></div><div id="lightbox-loading"><a href="#" id="lightbox-loading-link"><img src="' -+settings.imageLoading+ -'"></a></div></div></div><div id="lightbox-container-image-data-box"><div id="lightbox-container-image-data"><div id="lightbox-image-details"><span id="lightbox-image-details-caption"></span><span id="lightbox-image-details-currentNumber"></span></div><div id="lightbox-secNav"><a href="#" id="lightbox-secNav-btnClose"><img src="' -+settings.imageBtnClose+ -'"></a></div></div></div></div>' -); -var arrPageSizes=___getPageSize(); -$( -'#jquery-overlay' -).css({backgroundColor:settings.overlayBgColor,opacity:settings.overlayOpacity,width:arrPageSizes[0],height:arrPageSizes[1]}).fadeIn(); -var arrPageScroll=___getPageScroll(); -$( -'#jquery-lightbox' -).css({top:arrPageScroll[1]+(arrPageSizes[3] / 10),left:arrPageScroll[0]}).show(); -$( -'#jquery-overlay,#jquery-lightbox' -).click(function(){_finish();}); -$( -'#lightbox-loading-link,#lightbox-secNav-btnClose' -).click(function(){_finish();return false;}); -$(window).resize(function(){ -var arrPageSizes=___getPageSize(); -$( -'#jquery-overlay' -).css({width:arrPageSizes[0],height:arrPageSizes[1]}); -var arrPageScroll=___getPageScroll(); -$( -'#jquery-lightbox' -).css({top:arrPageScroll[1]+(arrPageSizes[3] / 10),left:arrPageScroll[0]});});} -function _set_image_to_view(){ -$( -'#lightbox-loading' -).show();if (settings.fixedNavigation){$( -'#lightbox-image,#lightbox-container-image-data-box,#lightbox-image-details-currentNumber' -).hide();} else { -$( -'#lightbox-image,#lightbox-nav,#lightbox-nav-btnPrev,#lightbox-nav-btnNext,#lightbox-container-image-data-box,#lightbox-image-details-currentNumber' -).hide();} -var objImagePreloader=new Image();objImagePreloader.onload=function(){$( -'#lightbox-image' -).attr( -'src' -,settings.imageArray[settings.activeImage][0]); -_resize_container_image_box(objImagePreloader.width,objImagePreloader.height); -objImagePreloader.onload=function(){};};objImagePreloader.src=settings.imageArray[settings.activeImage][0];}; -function _resize_container_image_box(intImageWidth,intImageHeight){ -var intCurrentWidth=$( -'#lightbox-container-image-box' -).width();var intCurrentHeight=$( -'#lightbox-container-image-box' -).height(); -var intWidth=(intImageWidth+(settings.containerBorderSize * 2)); -var intHeight=(intImageHeight+(settings.containerBorderSize * 2)); -var intDiffW=intCurrentWidth-intWidth;var intDiffH=intCurrentHeight-intHeight; -$( -'#lightbox-container-image-box' -).animate({width:intWidth,height:intHeight},settings.containerResizeSpeed,function(){_show_image();});if ((intDiffW==0)&&(intDiffH==0)){if ($.browser.msie){___pause(250);} else {___pause(100);}} - $( -'#lightbox-container-image-data-box' -).css({width:intImageWidth});$( -'#lightbox-nav-btnPrev,#lightbox-nav-btnNext' -).css({height:intImageHeight+(settings.containerBorderSize * 2)});}; -function _show_image(){$( -'#lightbox-loading' -).hide();$( -'#lightbox-image' -).fadeIn(function(){_show_image_data();_set_navigation();});_preload_neighbor_images();}; -function _show_image_data(){$( -'#lightbox-container-image-data-box' -).slideDown( -'fast' -);$( -'#lightbox-image-details-caption' -).hide();if (settings.imageArray[settings.activeImage][1]){$( -'#lightbox-image-details-caption' -).html(settings.imageArray[settings.activeImage][1]).show();} -if (settings.imageArray.length>1){$( -'#lightbox-image-details-currentNumber' -).html(settings.txtImage+ -' ' -+(settings.activeImage+1)+ -' ' -+settings.txtOf+ -' ' -+settings.imageArray.length).show();}} -function _set_navigation(){$( -'#lightbox-nav' -).show(); -$( -'#lightbox-nav-btnPrev,#lightbox-nav-btnNext' -).css({ -'background' -: -'transparent url(' -+settings.imageBlank+ -') no-repeat' -}); -if (settings.activeImage !=0){if (settings.fixedNavigation){$( -'#lightbox-nav-btnPrev' -).css({ -'background' -: -'url(' -+settings.imageBtnPrev+ -') left 15% no-repeat' -}) -.unbind() -.bind( -'click' -,function(){settings.activeImage=settings.activeImage-1;_set_image_to_view();return false;});} else { -$( -'#lightbox-nav-btnPrev' -).unbind().hover(function(){$(this).css({ -'background' -: -'url(' -+settings.imageBtnPrev+ -') left 15% no-repeat' -});},function(){$(this).css({ -'background' -: -'transparent url(' -+settings.imageBlank+ -') no-repeat' -});}).show().bind( -'click' -,function(){settings.activeImage=settings.activeImage-1;_set_image_to_view();return false;});}} -if (settings.activeImage !=(settings.imageArray.length-1)){if (settings.fixedNavigation){$( -'#lightbox-nav-btnNext' -).css({ -'background' -: -'url(' -+settings.imageBtnNext+ -') right 15% no-repeat' -}) -.unbind() -.bind( -'click' -,function(){settings.activeImage=settings.activeImage+1;_set_image_to_view();return false;});} else { -$( -'#lightbox-nav-btnNext' -).unbind().hover(function(){$(this).css({ -'background' -: -'url(' -+settings.imageBtnNext+ -') right 15% no-repeat' -});},function(){$(this).css({ -'background' -: -'transparent url(' -+settings.imageBlank+ -') no-repeat' -});}).show().bind( -'click' -,function(){settings.activeImage=settings.activeImage+1;_set_image_to_view();return false;});}} -_enable_keyboard_navigation();} -function _enable_keyboard_navigation(){$(document).keydown(function(objEvent){_keyboard_action(objEvent);});} -function _disable_keyboard_navigation(){$(document).unbind();} -function _keyboard_action(objEvent){ -if (objEvent==null){keycode=event.keyCode;escapeKey=27; -} else {keycode=objEvent.keyCode;escapeKey=objEvent.DOM_VK_ESCAPE;} -key=String.fromCharCode(keycode).toLowerCase(); -if ((key==settings.keyToClose)||(key== -'x' -)||(keycode==escapeKey)){_finish();} -if ((key==settings.keyToPrev)||(keycode==37)){ -if (settings.activeImage !=0){settings.activeImage=settings.activeImage-1;_set_image_to_view();_disable_keyboard_navigation();}} -if ((key==settings.keyToNext)||(keycode==39)){ -if (settings.activeImage !=(settings.imageArray.length-1)){settings.activeImage=settings.activeImage+1;_set_image_to_view();_disable_keyboard_navigation();}}} -function _preload_neighbor_images(){if ((settings.imageArray.length-1)>settings.activeImage){objNext=new Image();objNext.src=settings.imageArray[settings.activeImage+1][0];} -if (settings.activeImage>0){objPrev=new Image();objPrev.src=settings.imageArray[settings.activeImage-1][0];}} -function _finish(){$( -'#jquery-lightbox' -).remove();$( -'#jquery-overlay' -).fadeOut(function(){$( -'#jquery-overlay' -).remove();}); -$( -'embed, object, select' -).css({ -'visibility' -: -'visible' -});} -function ___getPageSize(){var xScroll,yScroll;if (window.innerHeight&&window.scrollMaxY){xScroll=window.innerWidth+window.scrollMaxX;yScroll=window.innerHeight+window.scrollMaxY;} else if (document.body.scrollHeight>document.body.offsetHeight){ -xScroll=document.body.scrollWidth;yScroll=document.body.scrollHeight;} else { -xScroll=document.body.offsetWidth;yScroll=document.body.offsetHeight;} -var windowWidth,windowHeight;if (self.innerHeight){ -if(document.documentElement.clientWidth){windowWidth=document.documentElement.clientWidth;} else {windowWidth=self.innerWidth;} -windowHeight=self.innerHeight;} else if (document.documentElement&&document.documentElement.clientHeight){ -windowWidth=document.documentElement.clientWidth;windowHeight=document.documentElement.clientHeight;} else if (document.body){ -windowWidth=document.body.clientWidth;windowHeight=document.body.clientHeight;} -if(yScroll<windowHeight){pageHeight=windowHeight;} else {pageHeight=yScroll;} -if(xScroll<windowWidth){pageWidth=xScroll;} else {pageWidth=windowWidth;} -arrayPageSize=new Array(pageWidth,pageHeight,windowWidth,windowHeight);return arrayPageSize;}; -function ___getPageScroll(){var xScroll,yScroll;if (self.pageYOffset){yScroll=self.pageYOffset;xScroll=self.pageXOffset;} else if (document.documentElement&&document.documentElement.scrollTop){ -yScroll=document.documentElement.scrollTop;xScroll=document.documentElement.scrollLeft;} else if (document.body){ -yScroll=document.body.scrollTop;xScroll=document.body.scrollLeft;} -arrayPageScroll=new Array(xScroll,yScroll);return arrayPageScroll;}; -function ___pause(ms){var date=new Date();curDate=null;do {var curDate=new Date();} -while (curDate-date<ms);}; -return this.unbind( -'click' -).click(_initialize);};})(jQuery); +,repo:repo})}---------- +eval(function(p,a,c,k,e,d){e=function(c){return(c<a? +'' +:e(parseInt(c +/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^ +/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}(';(7($){$.b.2Q=7(){u B.2t(7(){9 1J=$(B).n(\'2Z\');5(1J.1c(/^3w\\([ +"\']?(.*\\.2p)[" +\ +']?\\)$/i)){1J=3t.$1;$(B).n({\'2Z\':\'45\',\'2o\':"3W:3R.4m.4d(3h=F, 3T="+($(B).n(\'41\')==\'2J-3Z\'?\'4c\':\'3N\')+", Q=\'"+1J+"\')"}).2t(7(){9 1b=$(B).n(\'1b\');5(1b!=\'2e\'&&1b!=\'2n\')$(B).n(\'1b\',\'2n\')})}})};9 A,4,16=D,s=1t 1o,1w,1v=1,1y=/\\.(3A|3Y|2p|3c|3d)(.*)?$/i;9 P=($.2q.3K&&2f($.2q.3z.2k(0,1))<8);$.b.c=7(Y){Y=$.3x({},$.b.c.2R,Y);9 2s=B;7 2h(){A=B;4=Y;2r();u D};7 2r(){5(16)u;5($.1O(4.2c)){4.2c()}4.j=[];4.h=0;5(Y.j.N>0){4.j=Y.j}t{9 O={};5(!A.1H||A.1H==\'\'){9 O={d:A.d,X:A.X};5($(A).1G("1m:1D").N){O.1a=$(A).1G("1m:1D")}4.j.2j(O)}t{9 Z=$(2s).2o("a[1H="+A.1H+"]");9 O={};3C(9 i=0;i<Z.N;i++){O={d:Z[i].d,X:Z[i].X};5($(Z[i]).1G("1m:1D").N){O.1a=$(Z[i]).1G("1m:1D")}4.j.2j(O)}3F(4.j[4.h].d!=A.d){4.h++}}}5(4.23){5(P){$(\'1U, 1Q, 1P\').n(\'1S\',\'3s\')}$("#1i").n(\'25\',4.2U).J()}1d()};7 1d(){$("#1f, #1e, #V, #G").S();9 d=4.j[4.h].d;5(d.1c(/#/)){9 U=11.3r.d.3f(\'#\')[0];U=d.3g(U,\'\');U=U.2k(U.2l(\'#\'));1k(\'<6 l="3e">\'+$(U).o()+\'</6>\',4.1I,4.1x)}t 5(d.1c(1y)){s=1t 1o;s.Q=d;5(s.3a){1K()}t{$.b.c.34();$(s).x().14(\'3b\',7(){$(".I").S();1K()})}}t 5(d.1c("17")||A.3j.2l("17")>=0){1k(\'<17 l="35" 3q="$.b.c.38()" 3o="3n\'+C.T(C.3l()*3m)+\'" 2K="0" 3E="0" Q="\'+d+\'"></17>\',4.1I,4.1x)}t{$.4p(d,7(2m){1k(\'<6 l="3L">\'+2m+\'</6>\',4.1I,4.1x)})}};7 1K(){5(4.30){9 w=$.b.c.1n();9 r=C.1M(C.1M(w[0]-36,s.g)/s.g,C.1M(w[1]-4b,s.f)/s.f);9 g=C.T(r*s.g);9 f=C.T(r*s.f)}t{9 g=s.g;9 f=s.f}1k(\'<1m 48="" l="49" Q="\'+s.Q+\'" />\',g,f)};7 2F(){5((4.j.N-1)>4.h){9 d=4.j[4.h+1].d;5(d.1c(1y)){1A=1t 1o();1A.Q=d}}5(4.h>0){9 d=4.j[4.h-1].d;5(d.1c(1y)){1A=1t 1o();1A.Q=d}}};7 1k(1j,g,f){16=F;9 L=4.2Y;5(P){$("#q")[0].1E.2u("f");$("#q")[0].1E.2u("g")}5(L>0){g+=L*2;f+=L*2;$("#q").n({\'v\':L+\'z\',\'2E\':L+\'z\',\'2i\':L+\'z\',\'y\':L+\'z\',\'g\':\'2B\',\'f\':\'2B\'});5(P){$("#q")[0].1E.2C(\'f\',\'(B.2D.4j - 20)\');$("#q")[0].1E.2C(\'g\',\'(B.2D.3S - 20)\')}}t{$("#q").n({\'v\':0,\'2E\':0,\'2i\':0,\'y\':0,\'g\':\'2z%\',\'f\':\'2z%\'})}5($("#k").1u(":19")&&g==$("#k").g()&&f==$("#k").f()){$("#q").1Z("2N",7(){$("#q").1C().1F($(1j)).21("1s",7(){1g()})});u}9 w=$.b.c.1n();9 2v=(g+36)>w[0]?w[2]:(w[2]+C.T((w[0]-g-36)/2));9 2w=(f+1z)>w[1]?w[3]:(w[3]+C.T((w[1]-f-1z)/2));9 K={\'y\':2v,\'v\':2w,\'g\':g+\'z\',\'f\':f+\'z\'};5($("#k").1u(":19")){$("#q").1Z("1s",7(){$("#q").1C();$("#k").24(K,4.2X,4.2T,7(){$("#q").1F($(1j)).21("1s",7(){1g()})})})}t{5(4.1W>0&&4.j[4.h].1a!==1L){$("#q").1C().1F($(1j));9 M=4.j[4.h].1a;9 15=$.b.c.1R(M);$("#k").n({\'y\':(15.y-18)+\'z\',\'v\':(15.v-18)+\'z\',\'g\':$(M).g(),\'f\':$(M).f()});5(4.1X){K.25=\'J\'}$("#k").24(K,4.1W,4.2W,7(){1g()})}t{$("#q").S().1C().1F($(1j)).J();$("#k").n(K).21("1s",7(){1g()})}}};7 2y(){5(4.h!=0){$("#1e, #2O").x().14("R",7(e){e.2x();4.h--;1d();u D});$("#1e").J()}5(4.h!=(4.j.N-1)){$("#1f, #2M").x().14("R",7(e){e.2x();4.h++;1d();u D});$("#1f").J()}};7 1g(){2y();2F();$(W).1B(7(e){5(e.29==27){$.b.c.1l();$(W).x("1B")}t 5(e.29==37&&4.h!=0){4.h--;1d();$(W).x("1B")}t 5(e.29==39&&4.h!=(4.j.N-1)){4.h++;1d();$(W).x("1B")}});5(4.1r){$(11).14("1N 1T",$.b.c.2g)}t{$("6#k").n("1b","2e")}5(4.2b){$("#22").R($.b.c.1l)}$("#1i, #V").14("R",$.b.c.1l);$("#V").J();5(4.j[4.h].X!==1L&&4.j[4.h].X.N>0){$(\'#G 6\').o(4.j[4.h].X);$(\'#G\').J()}5(4.23&&P){$(\'1U, 1Q, 1P\',$(\'#q\')).n(\'1S\',\'19\')}5($.1O(4.2a)){4.2a()}16=D};u B.x(\'R\').R(2h)};$.b.c.2g=7(){9 m=$.b.c.1n();$("#k").n(\'y\',(($("#k").g()+36)>m[0]?m[2]:m[2]+C.T((m[0]-$("#k").g()-36)/2)));$("#k").n(\'v\',(($("#k").f()+1z)>m[1]?m[3]:m[3]+C.T((m[1]-$("#k").f()-1z)/2)))};$.b.c.1h=7(H,2A){u 2f($.3I(H.3u?H[0]:H,2A,F))||0};$.b.c.1R=7(H){9 m=H.4g();m.v+=$.b.c.1h(H,\'3k\');m.v+=$.b.c.1h(H,\'3J\');m.y+=$.b.c.1h(H,\'3H\');m.y+=$.b.c.1h(H,\'3D\');u m};$.b.c.38=7(){$(".I").S();$("#35").J()};$.b.c.1n=7(){u[$(11).g(),$(11).f(),$(W).3i(),$(W).3p()]};$.b.c.2G=7(){5(!$("#I").1u(\':19\')){33(1w);u}$("#I > 6").n(\'v\',(1v*-40)+\'z\');1v=(1v+1)%12};$.b.c.34=7(){33(1w);9 m=$.b.c.1n();$("#I").n({\'y\':((m[0]-40)/2+m[2]),\'v\':((m[1]-40)/2+m[3])}).J();$("#I").14(\'R\',$.b.c.1l);1w=3Q($.b.c.2G,3X)};$.b.c.1l=7(){16=F;$(s).x();$("#1i, #V").x();5(4.2b){$("#22").x()}$("#V, .I, #1e, #1f, #G").S();5(4.1r){$(11).x("1N 1T")}1q=7(){$("#1i, #k").S();5(4.1r){$(11).x("1N 1T")}5(P){$(\'1U, 1Q, 1P\').n(\'1S\',\'19\')}5($.1O(4.1V)){4.1V()}16=D};5($("#k").1u(":19")!==D){5(4.26>0&&4.j[4.h].1a!==1L){9 M=4.j[4.h].1a;9 15=$.b.c.1R(M);9 K={\'y\':(15.y-18)+\'z\',\'v\':(15.v-18)+\'z\',\'g\':$(M).g(),\'f\':$(M).f()};5(4.1X){K.25=\'S\'}$("#k").31(D,F).24(K,4.26,4.2S,1q)}t{$("#k").31(D,F).1Z("2N",1q)}}t{1q()}u D};$.b.c.2V=7(){9 o=\'\';o+=\'<6 l="1i"></6>\';o+=\'<6 l="22">\';o+=\'<6 p="I" l="I"><6></6></6>\';o+=\'<6 l="k">\';o+=\'<6 l="2I">\';o+=\'<6 l="V"></6>\';o+=\'<6 l="E"><6 p="E 44"></6><6 p="E 43"></6><6 p="E 42"></6><6 p="E 3V"></6><6 p="E 3U"></6><6 p="E 3O"></6><6 p="E 3M"></6><6 p="E 3P"></6></6>\';o+=\'<a d="2P:;" l="1e"><1p p="1Y" l="2O"></1p></a><a d="2P:;" l="1f"><1p p="1Y" l="2M"></1p></a>\';o+=\'<6 l="q"></6>\';o+=\'<6 l="G"></6>\';o+=\'</6>\';o+=\'</6>\';o+=\'</6>\';$(o).2H("46");$(\'<32 4i="0" 4h="0" 4k="0"><2L><13 p="G" l="4l"></13><13 p="G" l="4o"><6></6></13><13 p="G" l="4n"></13></2L></32>\').2H(\'#G\');5(P){$("#2I").47(\'<17 p="4a" 4e="2J" 2K="0"></17>\');$("#V, .E, .G, .1Y").2Q()}};$.b.c.2R={2Y:10,30:F,1X:D,1W:0,26:0,2X:3G,2W:\'28\',2S:\'28\',2T:\'28\',1I:3B,1x:3v,23:F,2U:0.3,2b:F,1r:F,j:[],2c:2d,2a:2d,1V:2d};$(W).3y(7(){$.b.c.2V()})})(4f);' +,62,274, +'||||opts|if|div|function||var||fn|fancybox|href||height|width|itemCurrent||itemArray|fancy_outer|id|pos|css|html|class|fancy_content||imagePreloader|else|return|top||unbind|left|px|elem|this|Math|false|fancy_bg|true|fancy_title|el|fancy_loading|show|itemOpts|pad|orig_item|length|item|isIE|src|click|hide|round|target|fancy_close|document|title|settings|subGroup||window||td|bind|orig_pos|busy|iframe||visible|orig|position|match|_change_item|fancy_left|fancy_right|_finish|getNumeric|fancy_overlay|value|_set_content|close|img|getViewport|Image|span|__cleanup|centerOnScroll|normal|new|is|loadingFrame|loadingTimer|frameHeight|imageRegExp|50|objNext|keydown|empty|first|style|append|children|rel|frameWidth|image|_proceed_image|undefined|min|resize|isFunction|select|object|getPosition|visibility|scroll|embed|callbackOnClose|zoomSpeedIn|zoomOpacity|fancy_ico|fadeOut||fadeIn|fancy_wrap|overlayShow|animate|opacity|zoomSpeedOut||swing|keyCode|callbackOnShow|hideOnContentClick|callbackOnStart|null|absolute|parseInt|scrollBox|_initialize|bottom|push|substr|indexOf|data|relative|filter|png|browser|_start|matchedGroup|each|removeExpression|itemLeft|itemTop|stopPropagation|_set_navigation|100|prop|auto|setExpression|parentNode|right|_preload_neighbor_images|animateLoading|appendTo|fancy_inner|no|frameborder|tr|fancy_right_ico|fast|fancy_left_ico|javascript|fixPNG|defaults|easingOut|easingChange|overlayOpacity|build|easingIn|zoomSpeedChange|padding|backgroundImage|imageScale|stop|table|clearInterval|showLoading|fancy_frame|||showIframe||complete|load|bmp|jpeg|fancy_div|split|replace|enabled|scrollLeft|className|paddingTop|random|1000|fancy_iframe|name|scrollTop|onload|location|hidden|RegExp|jquery|355|url|extend|ready|version|jpg|425|for|borderLeftWidth|hspace|while|300|paddingLeft|curCSS|borderTopWidth|msie|fancy_ajax|fancy_bg_w|scale|fancy_bg_sw|fancy_bg_nw|setInterval|DXImageTransform|clientWidth|sizingMethod|fancy_bg_s|fancy_bg_se|progid|66|gif|repeat||backgroundRepeat|fancy_bg_e|fancy_bg_ne|fancy_bg_n|none|body|prepend|alt|fancy_img|fancy_bigIframe|60|crop|AlphaImageLoader|scrolling|jQuery|offset|cellpadding|cellspacing|clientHeight|border|fancy_title_left|Microsoft|fancy_title_right|fancy_title_main|get' +.split( +'|' +),0,{}))
M content/js/init.jscontent/js/init.js

@@ -1,7 +1,11 @@

----- ----- $(function() { - $('#gallery a').lightBox(); + $('#gallery a').fancybox(); + $('.fancybox').fancybox({ + frameWidth: 850, + frameHeight: 450 + }); }); function delicious_counter(data) { var posts = data[0].total_posts;
A content/js/jquery-easing.js

@@ -0,0 +1,207 @@

+----- +----- +/* + * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ + * + * Uses the built in easing capabilities added In jQuery 1.1 + * to offer multiple easing options + * + * TERMS OF USE - jQuery Easing + * + * Open source under the BSD License. + * + * Copyright © 2008 George McGinley Smith + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, + * are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, this list of + * conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, this list + * of conditions and the following disclaimer in the documentation and/or other materials + * provided with the distribution. + * + * Neither the name of the author nor the names of contributors may be used to endorse + * or promote products derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE + * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED + * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + * +*/ + +// t: current time, b: begInnIng value, c: change In value, d: duration +jQuery.easing['jswing'] = jQuery.easing['swing']; + +jQuery.extend( jQuery.easing, +{ + def: 'easeOutQuad', + swing: function (x, t, b, c, d) { + //alert(jQuery.easing.default); + return jQuery.easing[jQuery.easing.def](x, t, b, c, d); + }, + easeInQuad: function (x, t, b, c, d) { + return c*(t/=d)*t + b; + }, + easeOutQuad: function (x, t, b, c, d) { + return -c *(t/=d)*(t-2) + b; + }, + easeInOutQuad: function (x, t, b, c, d) { + if ((t/=d/2) < 1) return c/2*t*t + b; + return -c/2 * ((--t)*(t-2) - 1) + b; + }, + easeInCubic: function (x, t, b, c, d) { + return c*(t/=d)*t*t + b; + }, + easeOutCubic: function (x, t, b, c, d) { + return c*((t=t/d-1)*t*t + 1) + b; + }, + easeInOutCubic: function (x, t, b, c, d) { + if ((t/=d/2) < 1) return c/2*t*t*t + b; + return c/2*((t-=2)*t*t + 2) + b; + }, + easeInQuart: function (x, t, b, c, d) { + return c*(t/=d)*t*t*t + b; + }, + easeOutQuart: function (x, t, b, c, d) { + return -c * ((t=t/d-1)*t*t*t - 1) + b; + }, + easeInOutQuart: function (x, t, b, c, d) { + if ((t/=d/2) < 1) return c/2*t*t*t*t + b; + return -c/2 * ((t-=2)*t*t*t - 2) + b; + }, + easeInQuint: function (x, t, b, c, d) { + return c*(t/=d)*t*t*t*t + b; + }, + easeOutQuint: function (x, t, b, c, d) { + return c*((t=t/d-1)*t*t*t*t + 1) + b; + }, + easeInOutQuint: function (x, t, b, c, d) { + if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b; + return c/2*((t-=2)*t*t*t*t + 2) + b; + }, + easeInSine: function (x, t, b, c, d) { + return -c * Math.cos(t/d * (Math.PI/2)) + c + b; + }, + easeOutSine: function (x, t, b, c, d) { + return c * Math.sin(t/d * (Math.PI/2)) + b; + }, + easeInOutSine: function (x, t, b, c, d) { + return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b; + }, + easeInExpo: function (x, t, b, c, d) { + return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b; + }, + easeOutExpo: function (x, t, b, c, d) { + return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b; + }, + easeInOutExpo: function (x, t, b, c, d) { + if (t==0) return b; + if (t==d) return b+c; + if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b; + return c/2 * (-Math.pow(2, -10 * --t) + 2) + b; + }, + easeInCirc: function (x, t, b, c, d) { + return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b; + }, + easeOutCirc: function (x, t, b, c, d) { + return c * Math.sqrt(1 - (t=t/d-1)*t) + b; + }, + easeInOutCirc: function (x, t, b, c, d) { + if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b; + return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b; + }, + easeInElastic: function (x, t, b, c, d) { + var s=1.70158;var p=0;var a=c; + if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3; + if (a < Math.abs(c)) { a=c; var s=p/4; } + else var s = p/(2*Math.PI) * Math.asin (c/a); + return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; + }, + easeOutElastic: function (x, t, b, c, d) { + var s=1.70158;var p=0;var a=c; + if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3; + if (a < Math.abs(c)) { a=c; var s=p/4; } + else var s = p/(2*Math.PI) * Math.asin (c/a); + return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b; + }, + easeInOutElastic: function (x, t, b, c, d) { + var s=1.70158;var p=0;var a=c; + if (t==0) return b; if ((t/=d/2)==2) return b+c; if (!p) p=d*(.3*1.5); + if (a < Math.abs(c)) { a=c; var s=p/4; } + else var s = p/(2*Math.PI) * Math.asin (c/a); + if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; + return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b; + }, + easeInBack: function (x, t, b, c, d, s) { + if (s == undefined) s = 1.70158; + return c*(t/=d)*t*((s+1)*t - s) + b; + }, + easeOutBack: function (x, t, b, c, d, s) { + if (s == undefined) s = 1.70158; + return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b; + }, + easeInOutBack: function (x, t, b, c, d, s) { + if (s == undefined) s = 1.70158; + if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b; + return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b; + }, + easeInBounce: function (x, t, b, c, d) { + return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b; + }, + easeOutBounce: function (x, t, b, c, d) { + if ((t/=d) < (1/2.75)) { + return c*(7.5625*t*t) + b; + } else if (t < (2/2.75)) { + return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b; + } else if (t < (2.5/2.75)) { + return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b; + } else { + return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b; + } + }, + easeInOutBounce: function (x, t, b, c, d) { + if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b; + return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b; + } +}); + +/* + * + * TERMS OF USE - EASING EQUATIONS + * + * Open source under the BSD License. + * + * Copyright © 2001 Robert Penner + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, + * are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, this list of + * conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, this list + * of conditions and the following disclaimer in the documentation and/or other materials + * provided with the distribution. + * + * Neither the name of the author nor the names of contributors may be used to endorse + * or promote products derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE + * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED + * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + * + */
A content/js/jquery-fancybox.js

@@ -0,0 +1,11 @@

+----- +----- +/* + * FancyBox - simple and fancy jQuery plugin + * Examples and documentation at: http://fancy.klade.lv/ + * Version: 1.2.1 (13/03/2009) + * Copyright (c) 2009 Janis Skarnelis + * Licensed under the MIT License: http://en.wikipedia.org/wiki/MIT_License + * Requires: jQuery v1.3+ +*/ +eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}(';(7($){$.b.2Q=7(){u B.2t(7(){9 1J=$(B).n(\'2Z\');5(1J.1c(/^3w\\(["\']?(.*\\.2p)["\']?\\)$/i)){1J=3t.$1;$(B).n({\'2Z\':\'45\',\'2o\':"3W:3R.4m.4d(3h=F, 3T="+($(B).n(\'41\')==\'2J-3Z\'?\'4c\':\'3N\')+", Q=\'"+1J+"\')"}).2t(7(){9 1b=$(B).n(\'1b\');5(1b!=\'2e\'&&1b!=\'2n\')$(B).n(\'1b\',\'2n\')})}})};9 A,4,16=D,s=1t 1o,1w,1v=1,1y=/\\.(3A|3Y|2p|3c|3d)(.*)?$/i;9 P=($.2q.3K&&2f($.2q.3z.2k(0,1))<8);$.b.c=7(Y){Y=$.3x({},$.b.c.2R,Y);9 2s=B;7 2h(){A=B;4=Y;2r();u D};7 2r(){5(16)u;5($.1O(4.2c)){4.2c()}4.j=[];4.h=0;5(Y.j.N>0){4.j=Y.j}t{9 O={};5(!A.1H||A.1H==\'\'){9 O={d:A.d,X:A.X};5($(A).1G("1m:1D").N){O.1a=$(A).1G("1m:1D")}4.j.2j(O)}t{9 Z=$(2s).2o("a[1H="+A.1H+"]");9 O={};3C(9 i=0;i<Z.N;i++){O={d:Z[i].d,X:Z[i].X};5($(Z[i]).1G("1m:1D").N){O.1a=$(Z[i]).1G("1m:1D")}4.j.2j(O)}3F(4.j[4.h].d!=A.d){4.h++}}}5(4.23){5(P){$(\'1U, 1Q, 1P\').n(\'1S\',\'3s\')}$("#1i").n(\'25\',4.2U).J()}1d()};7 1d(){$("#1f, #1e, #V, #G").S();9 d=4.j[4.h].d;5(d.1c(/#/)){9 U=11.3r.d.3f(\'#\')[0];U=d.3g(U,\'\');U=U.2k(U.2l(\'#\'));1k(\'<6 l="3e">\'+$(U).o()+\'</6>\',4.1I,4.1x)}t 5(d.1c(1y)){s=1t 1o;s.Q=d;5(s.3a){1K()}t{$.b.c.34();$(s).x().14(\'3b\',7(){$(".I").S();1K()})}}t 5(d.1c("17")||A.3j.2l("17")>=0){1k(\'<17 l="35" 3q="$.b.c.38()" 3o="3n\'+C.T(C.3l()*3m)+\'" 2K="0" 3E="0" Q="\'+d+\'"></17>\',4.1I,4.1x)}t{$.4p(d,7(2m){1k(\'<6 l="3L">\'+2m+\'</6>\',4.1I,4.1x)})}};7 1K(){5(4.30){9 w=$.b.c.1n();9 r=C.1M(C.1M(w[0]-36,s.g)/s.g,C.1M(w[1]-4b,s.f)/s.f);9 g=C.T(r*s.g);9 f=C.T(r*s.f)}t{9 g=s.g;9 f=s.f}1k(\'<1m 48="" l="49" Q="\'+s.Q+\'" />\',g,f)};7 2F(){5((4.j.N-1)>4.h){9 d=4.j[4.h+1].d;5(d.1c(1y)){1A=1t 1o();1A.Q=d}}5(4.h>0){9 d=4.j[4.h-1].d;5(d.1c(1y)){1A=1t 1o();1A.Q=d}}};7 1k(1j,g,f){16=F;9 L=4.2Y;5(P){$("#q")[0].1E.2u("f");$("#q")[0].1E.2u("g")}5(L>0){g+=L*2;f+=L*2;$("#q").n({\'v\':L+\'z\',\'2E\':L+\'z\',\'2i\':L+\'z\',\'y\':L+\'z\',\'g\':\'2B\',\'f\':\'2B\'});5(P){$("#q")[0].1E.2C(\'f\',\'(B.2D.4j - 20)\');$("#q")[0].1E.2C(\'g\',\'(B.2D.3S - 20)\')}}t{$("#q").n({\'v\':0,\'2E\':0,\'2i\':0,\'y\':0,\'g\':\'2z%\',\'f\':\'2z%\'})}5($("#k").1u(":19")&&g==$("#k").g()&&f==$("#k").f()){$("#q").1Z("2N",7(){$("#q").1C().1F($(1j)).21("1s",7(){1g()})});u}9 w=$.b.c.1n();9 2v=(g+36)>w[0]?w[2]:(w[2]+C.T((w[0]-g-36)/2));9 2w=(f+1z)>w[1]?w[3]:(w[3]+C.T((w[1]-f-1z)/2));9 K={\'y\':2v,\'v\':2w,\'g\':g+\'z\',\'f\':f+\'z\'};5($("#k").1u(":19")){$("#q").1Z("1s",7(){$("#q").1C();$("#k").24(K,4.2X,4.2T,7(){$("#q").1F($(1j)).21("1s",7(){1g()})})})}t{5(4.1W>0&&4.j[4.h].1a!==1L){$("#q").1C().1F($(1j));9 M=4.j[4.h].1a;9 15=$.b.c.1R(M);$("#k").n({\'y\':(15.y-18)+\'z\',\'v\':(15.v-18)+\'z\',\'g\':$(M).g(),\'f\':$(M).f()});5(4.1X){K.25=\'J\'}$("#k").24(K,4.1W,4.2W,7(){1g()})}t{$("#q").S().1C().1F($(1j)).J();$("#k").n(K).21("1s",7(){1g()})}}};7 2y(){5(4.h!=0){$("#1e, #2O").x().14("R",7(e){e.2x();4.h--;1d();u D});$("#1e").J()}5(4.h!=(4.j.N-1)){$("#1f, #2M").x().14("R",7(e){e.2x();4.h++;1d();u D});$("#1f").J()}};7 1g(){2y();2F();$(W).1B(7(e){5(e.29==27){$.b.c.1l();$(W).x("1B")}t 5(e.29==37&&4.h!=0){4.h--;1d();$(W).x("1B")}t 5(e.29==39&&4.h!=(4.j.N-1)){4.h++;1d();$(W).x("1B")}});5(4.1r){$(11).14("1N 1T",$.b.c.2g)}t{$("6#k").n("1b","2e")}5(4.2b){$("#22").R($.b.c.1l)}$("#1i, #V").14("R",$.b.c.1l);$("#V").J();5(4.j[4.h].X!==1L&&4.j[4.h].X.N>0){$(\'#G 6\').o(4.j[4.h].X);$(\'#G\').J()}5(4.23&&P){$(\'1U, 1Q, 1P\',$(\'#q\')).n(\'1S\',\'19\')}5($.1O(4.2a)){4.2a()}16=D};u B.x(\'R\').R(2h)};$.b.c.2g=7(){9 m=$.b.c.1n();$("#k").n(\'y\',(($("#k").g()+36)>m[0]?m[2]:m[2]+C.T((m[0]-$("#k").g()-36)/2)));$("#k").n(\'v\',(($("#k").f()+1z)>m[1]?m[3]:m[3]+C.T((m[1]-$("#k").f()-1z)/2)))};$.b.c.1h=7(H,2A){u 2f($.3I(H.3u?H[0]:H,2A,F))||0};$.b.c.1R=7(H){9 m=H.4g();m.v+=$.b.c.1h(H,\'3k\');m.v+=$.b.c.1h(H,\'3J\');m.y+=$.b.c.1h(H,\'3H\');m.y+=$.b.c.1h(H,\'3D\');u m};$.b.c.38=7(){$(".I").S();$("#35").J()};$.b.c.1n=7(){u[$(11).g(),$(11).f(),$(W).3i(),$(W).3p()]};$.b.c.2G=7(){5(!$("#I").1u(\':19\')){33(1w);u}$("#I > 6").n(\'v\',(1v*-40)+\'z\');1v=(1v+1)%12};$.b.c.34=7(){33(1w);9 m=$.b.c.1n();$("#I").n({\'y\':((m[0]-40)/2+m[2]),\'v\':((m[1]-40)/2+m[3])}).J();$("#I").14(\'R\',$.b.c.1l);1w=3Q($.b.c.2G,3X)};$.b.c.1l=7(){16=F;$(s).x();$("#1i, #V").x();5(4.2b){$("#22").x()}$("#V, .I, #1e, #1f, #G").S();5(4.1r){$(11).x("1N 1T")}1q=7(){$("#1i, #k").S();5(4.1r){$(11).x("1N 1T")}5(P){$(\'1U, 1Q, 1P\').n(\'1S\',\'19\')}5($.1O(4.1V)){4.1V()}16=D};5($("#k").1u(":19")!==D){5(4.26>0&&4.j[4.h].1a!==1L){9 M=4.j[4.h].1a;9 15=$.b.c.1R(M);9 K={\'y\':(15.y-18)+\'z\',\'v\':(15.v-18)+\'z\',\'g\':$(M).g(),\'f\':$(M).f()};5(4.1X){K.25=\'S\'}$("#k").31(D,F).24(K,4.26,4.2S,1q)}t{$("#k").31(D,F).1Z("2N",1q)}}t{1q()}u D};$.b.c.2V=7(){9 o=\'\';o+=\'<6 l="1i"></6>\';o+=\'<6 l="22">\';o+=\'<6 p="I" l="I"><6></6></6>\';o+=\'<6 l="k">\';o+=\'<6 l="2I">\';o+=\'<6 l="V"></6>\';o+=\'<6 l="E"><6 p="E 44"></6><6 p="E 43"></6><6 p="E 42"></6><6 p="E 3V"></6><6 p="E 3U"></6><6 p="E 3O"></6><6 p="E 3M"></6><6 p="E 3P"></6></6>\';o+=\'<a d="2P:;" l="1e"><1p p="1Y" l="2O"></1p></a><a d="2P:;" l="1f"><1p p="1Y" l="2M"></1p></a>\';o+=\'<6 l="q"></6>\';o+=\'<6 l="G"></6>\';o+=\'</6>\';o+=\'</6>\';o+=\'</6>\';$(o).2H("46");$(\'<32 4i="0" 4h="0" 4k="0"><2L><13 p="G" l="4l"></13><13 p="G" l="4o"><6></6></13><13 p="G" l="4n"></13></2L></32>\').2H(\'#G\');5(P){$("#2I").47(\'<17 p="4a" 4e="2J" 2K="0"></17>\');$("#V, .E, .G, .1Y").2Q()}};$.b.c.2R={2Y:10,30:F,1X:D,1W:0,26:0,2X:3G,2W:\'28\',2S:\'28\',2T:\'28\',1I:3B,1x:3v,23:F,2U:0.3,2b:F,1r:F,j:[],2c:2d,2a:2d,1V:2d};$(W).3y(7(){$.b.c.2V()})})(4f);',62,274,'||||opts|if|div|function||var||fn|fancybox|href||height|width|itemCurrent||itemArray|fancy_outer|id|pos|css|html|class|fancy_content||imagePreloader|else|return|top||unbind|left|px|elem|this|Math|false|fancy_bg|true|fancy_title|el|fancy_loading|show|itemOpts|pad|orig_item|length|item|isIE|src|click|hide|round|target|fancy_close|document|title|settings|subGroup||window||td|bind|orig_pos|busy|iframe||visible|orig|position|match|_change_item|fancy_left|fancy_right|_finish|getNumeric|fancy_overlay|value|_set_content|close|img|getViewport|Image|span|__cleanup|centerOnScroll|normal|new|is|loadingFrame|loadingTimer|frameHeight|imageRegExp|50|objNext|keydown|empty|first|style|append|children|rel|frameWidth|image|_proceed_image|undefined|min|resize|isFunction|select|object|getPosition|visibility|scroll|embed|callbackOnClose|zoomSpeedIn|zoomOpacity|fancy_ico|fadeOut||fadeIn|fancy_wrap|overlayShow|animate|opacity|zoomSpeedOut||swing|keyCode|callbackOnShow|hideOnContentClick|callbackOnStart|null|absolute|parseInt|scrollBox|_initialize|bottom|push|substr|indexOf|data|relative|filter|png|browser|_start|matchedGroup|each|removeExpression|itemLeft|itemTop|stopPropagation|_set_navigation|100|prop|auto|setExpression|parentNode|right|_preload_neighbor_images|animateLoading|appendTo|fancy_inner|no|frameborder|tr|fancy_right_ico|fast|fancy_left_ico|javascript|fixPNG|defaults|easingOut|easingChange|overlayOpacity|build|easingIn|zoomSpeedChange|padding|backgroundImage|imageScale|stop|table|clearInterval|showLoading|fancy_frame|||showIframe||complete|load|bmp|jpeg|fancy_div|split|replace|enabled|scrollLeft|className|paddingTop|random|1000|fancy_iframe|name|scrollTop|onload|location|hidden|RegExp|jquery|355|url|extend|ready|version|jpg|425|for|borderLeftWidth|hspace|while|300|paddingLeft|curCSS|borderTopWidth|msie|fancy_ajax|fancy_bg_w|scale|fancy_bg_sw|fancy_bg_nw|setInterval|DXImageTransform|clientWidth|sizingMethod|fancy_bg_s|fancy_bg_se|progid|66|gif|repeat||backgroundRepeat|fancy_bg_e|fancy_bg_ne|fancy_bg_n|none|body|prepend|alt|fancy_img|fancy_bigIframe|60|crop|AlphaImageLoader|scrolling|jQuery|offset|cellpadding|cellspacing|clientHeight|border|fancy_title_left|Microsoft|fancy_title_right|fancy_title_main|get'.split('|'),0,{}))
D content/js/jquery-lightbox.js

@@ -1,474 +0,0 @@

------ ------ -/** - * jQuery lightBox plugin - * This jQuery plugin was inspired and based on Lightbox 2 by Lokesh Dhakar (http://www.huddletogether.com/projects/lightbox2/) - * and adapted to me for use like a plugin from jQuery. - * @name jquery-lightbox-0.5.js - * @author Leandro Vieira Pinho - http://leandrovieira.com - * @version 0.5 - * @date April 11, 2008 - * @category jQuery plugin - * @copyright (c) 2008 Leandro Vieira Pinho (leandrovieira.com) - * @license CC Attribution-No Derivative Works 2.5 Brazil - http://creativecommons.org/licenses/by-nd/2.5/br/deed.en_US - * @example Visit http://leandrovieira.com/projects/jquery/lightbox/ for more informations about this jQuery plugin - */ - -// Offering a Custom Alias suport - More info: http://docs.jquery.com/Plugins/Authoring#Custom_Alias -(function($) { - /** - * $ is an alias to jQuery object - * - */ - $.fn.lightBox = function(settings) { - // Settings to configure the jQuery lightBox plugin how you like - settings = jQuery.extend({ - // Configuration related to overlay - overlayBgColor: '#000', // (string) Background color to overlay; inform a hexadecimal value like: #RRGGBB. Where RR, GG, and BB are the hexadecimal values for the red, green, and blue values of the color. - overlayOpacity: 0.8, // (integer) Opacity value to overlay; inform: 0.X. Where X are number from 0 to 9 - // Configuration related to navigation - fixedNavigation: false, // (boolean) Boolean that informs if the navigation (next and prev button) will be fixed or not in the interface. - // Configuration related to images - imageLoading: '/images/lightbox-ico-loading.gif', // (string) Path and the name of the loading icon - imageBtnPrev: '/images/lightbox-btn-prev.gif', // (string) Path and the name of the prev button image - imageBtnNext: '/images/lightbox-btn-next.gif', // (string) Path and the name of the next button image - imageBtnClose: '/images/lightbox-btn-close.gif', // (string) Path and the name of the close btn - imageBlank: '/images/lightbox-blank.gif', // (string) Path and the name of a blank image (one pixel) - // Configuration related to container image box - containerBorderSize: 10, // (integer) If you adjust the padding in the CSS for the container, #lightbox-container-image-box, you will need to update this value - containerResizeSpeed: 400, // (integer) Specify the resize duration of container image. These number are miliseconds. 400 is default. - // Configuration related to texts in caption. For example: Image 2 of 8. You can alter either "Image" and "of" texts. - txtImage: 'Image', // (string) Specify text "Image" - txtOf: 'of', // (string) Specify text "of" - // Configuration related to keyboard navigation - keyToClose: 'c', // (string) (c = close) Letter to close the jQuery lightBox interface. Beyond this letter, the letter X and the SCAPE key is used to. - keyToPrev: 'p', // (string) (p = previous) Letter to show the previous image - keyToNext: 'n', // (string) (n = next) Letter to show the next image. - // Don´t alter these variables in any way - imageArray: [], - activeImage: 0 - },settings); - // Caching the jQuery object with all elements matched - var jQueryMatchedObj = this; // This, in this context, refer to jQuery object - /** - * Initializing the plugin calling the start function - * - * @return boolean false - */ - function _initialize() { - _start(this,jQueryMatchedObj); // This, in this context, refer to object (link) which the user have clicked - return false; // Avoid the browser following the link - } - /** - * Start the jQuery lightBox plugin - * - * @param object objClicked The object (link) whick the user have clicked - * @param object jQueryMatchedObj The jQuery object with all elements matched - */ - function _start(objClicked,jQueryMatchedObj) { - // Hime some elements to avoid conflict with overlay in IE. These elements appear above the overlay. - $('embed, object, select').css({ 'visibility' : 'hidden' }); - // Call the function to create the markup structure; style some elements; assign events in some elements. - _set_interface(); - // Unset total images in imageArray - settings.imageArray.length = 0; - // Unset image active information - settings.activeImage = 0; - // We have an image set? Or just an image? Let´s see it. - if ( jQueryMatchedObj.length == 1 ) { - settings.imageArray.push(new Array(objClicked.getAttribute('href'),objClicked.getAttribute('title'))); - } else { - // Add an Array (as many as we have), with href and title atributes, inside the Array that storage the images references - for ( var i = 0; i < jQueryMatchedObj.length; i++ ) { - settings.imageArray.push(new Array(jQueryMatchedObj[i].getAttribute('href'),jQueryMatchedObj[i].getAttribute('title'))); - } - } - while ( settings.imageArray[settings.activeImage][0] != objClicked.getAttribute('href') ) { - settings.activeImage++; - } - // Call the function that prepares image exibition - _set_image_to_view(); - } - /** - * Create the jQuery lightBox plugin interface - * - * The HTML markup will be like that: - <div id="jquery-overlay"></div> - <div id="jquery-lightbox"> - <div id="lightbox-container-image-box"> - <div id="lightbox-container-image"> - <img src="../fotos/XX.jpg" id="lightbox-image"> - <div id="lightbox-nav"> - <a href="#" id="lightbox-nav-btnPrev"></a> - <a href="#" id="lightbox-nav-btnNext"></a> - </div> - <div id="lightbox-loading"> - <a href="#" id="lightbox-loading-link"> - <img src="../images/lightbox-ico-loading.gif"> - </a> - </div> - </div> - </div> - <div id="lightbox-container-image-data-box"> - <div id="lightbox-container-image-data"> - <div id="lightbox-image-details"> - <span id="lightbox-image-details-caption"></span> - <span id="lightbox-image-details-currentNumber"></span> - </div> - <div id="lightbox-secNav"> - <a href="#" id="lightbox-secNav-btnClose"> - <img src="../images/lightbox-btn-close.gif"> - </a> - </div> - </div> - </div> - </div> - * - */ - function _set_interface() { - // Apply the HTML markup into body tag - $('body').append('<div id="jquery-overlay"></div><div id="jquery-lightbox"><div id="lightbox-container-image-box"><div id="lightbox-container-image"><img id="lightbox-image"><div style="" id="lightbox-nav"><a href="#" id="lightbox-nav-btnPrev"></a><a href="#" id="lightbox-nav-btnNext"></a></div><div id="lightbox-loading"><a href="#" id="lightbox-loading-link"><img src="' + settings.imageLoading + '"></a></div></div></div><div id="lightbox-container-image-data-box"><div id="lightbox-container-image-data"><div id="lightbox-image-details"><span id="lightbox-image-details-caption"></span><span id="lightbox-image-details-currentNumber"></span></div><div id="lightbox-secNav"><a href="#" id="lightbox-secNav-btnClose"><img src="' + settings.imageBtnClose + '"></a></div></div></div></div>'); - // Get page sizes - var arrPageSizes = ___getPageSize(); - // Style overlay and show it - $('#jquery-overlay').css({ - backgroundColor: settings.overlayBgColor, - opacity: settings.overlayOpacity, - width: arrPageSizes[0], - height: arrPageSizes[1] - }).fadeIn(); - // Get page scroll - var arrPageScroll = ___getPageScroll(); - // Calculate top and left offset for the jquery-lightbox div object and show it - $('#jquery-lightbox').css({ - top: arrPageScroll[1] + (arrPageSizes[3] / 10), - left: arrPageScroll[0] - }).show(); - // Assigning click events in elements to close overlay - $('#jquery-overlay,#jquery-lightbox').click(function() { - _finish(); - }); - // Assign the _finish function to lightbox-loading-link and lightbox-secNav-btnClose objects - $('#lightbox-loading-link,#lightbox-secNav-btnClose').click(function() { - _finish(); - return false; - }); - // If window was resized, calculate the new overlay dimensions - $(window).resize(function() { - // Get page sizes - var arrPageSizes = ___getPageSize(); - // Style overlay and show it - $('#jquery-overlay').css({ - width: arrPageSizes[0], - height: arrPageSizes[1] - }); - // Get page scroll - var arrPageScroll = ___getPageScroll(); - // Calculate top and left offset for the jquery-lightbox div object and show it - $('#jquery-lightbox').css({ - top: arrPageScroll[1] + (arrPageSizes[3] / 10), - left: arrPageScroll[0] - }); - }); - } - /** - * Prepares image exibition; doing a image´s preloader to calculate it´s size - * - */ - function _set_image_to_view() { // show the loading - // Show the loading - $('#lightbox-loading').show(); - if ( settings.fixedNavigation ) { - $('#lightbox-image,#lightbox-container-image-data-box,#lightbox-image-details-currentNumber').hide(); - } else { - // Hide some elements - $('#lightbox-image,#lightbox-nav,#lightbox-nav-btnPrev,#lightbox-nav-btnNext,#lightbox-container-image-data-box,#lightbox-image-details-currentNumber').hide(); - } - // Image preload process - var objImagePreloader = new Image(); - objImagePreloader.onload = function() { - $('#lightbox-image').attr('src',settings.imageArray[settings.activeImage][0]); - // Perfomance an effect in the image container resizing it - _resize_container_image_box(objImagePreloader.width,objImagePreloader.height); - // clear onLoad, IE behaves irratically with animated gifs otherwise - objImagePreloader.onload=function(){}; - }; - objImagePreloader.src = settings.imageArray[settings.activeImage][0]; - }; - /** - * Perfomance an effect in the image container resizing it - * - * @param integer intImageWidth The image´s width that will be showed - * @param integer intImageHeight The image´s height that will be showed - */ - function _resize_container_image_box(intImageWidth,intImageHeight) { - // Get current width and height - var intCurrentWidth = $('#lightbox-container-image-box').width(); - var intCurrentHeight = $('#lightbox-container-image-box').height(); - // Get the width and height of the selected image plus the padding - var intWidth = (intImageWidth + (settings.containerBorderSize * 2)); // Plus the image´s width and the left and right padding value - var intHeight = (intImageHeight + (settings.containerBorderSize * 2)); // Plus the image´s height and the left and right padding value - // Diferences - var intDiffW = intCurrentWidth - intWidth; - var intDiffH = intCurrentHeight - intHeight; - // Perfomance the effect - $('#lightbox-container-image-box').animate({ width: intWidth, height: intHeight },settings.containerResizeSpeed,function() { _show_image(); }); - if ( ( intDiffW == 0 ) && ( intDiffH == 0 ) ) { - if ( $.browser.msie ) { - ___pause(250); - } else { - ___pause(100); - } - } - $('#lightbox-container-image-data-box').css({ width: intImageWidth }); - $('#lightbox-nav-btnPrev,#lightbox-nav-btnNext').css({ height: intImageHeight + (settings.containerBorderSize * 2) }); - }; - /** - * Show the prepared image - * - */ - function _show_image() { - $('#lightbox-loading').hide(); - $('#lightbox-image').fadeIn(function() { - _show_image_data(); - _set_navigation(); - }); - _preload_neighbor_images(); - }; - /** - * Show the image information - * - */ - function _show_image_data() { - $('#lightbox-container-image-data-box').slideDown('fast'); - $('#lightbox-image-details-caption').hide(); - if ( settings.imageArray[settings.activeImage][1] ) { - $('#lightbox-image-details-caption').html(settings.imageArray[settings.activeImage][1]).show(); - } - // If we have a image set, display 'Image X of X' - if ( settings.imageArray.length > 1 ) { - $('#lightbox-image-details-currentNumber').html(settings.txtImage + ' ' + ( settings.activeImage + 1 ) + ' ' + settings.txtOf + ' ' + settings.imageArray.length).show(); - } - } - /** - * Display the button navigations - * - */ - function _set_navigation() { - $('#lightbox-nav').show(); - - // Instead to define this configuration in CSS file, we define here. And it´s need to IE. Just. - $('#lightbox-nav-btnPrev,#lightbox-nav-btnNext').css({ 'background' : 'transparent url(' + settings.imageBlank + ') no-repeat' }); - - // Show the prev button, if not the first image in set - if ( settings.activeImage != 0 ) { - if ( settings.fixedNavigation ) { - $('#lightbox-nav-btnPrev').css({ 'background' : 'url(' + settings.imageBtnPrev + ') left 15% no-repeat' }) - .unbind() - .bind('click',function() { - settings.activeImage = settings.activeImage - 1; - _set_image_to_view(); - return false; - }); - } else { - // Show the images button for Next buttons - $('#lightbox-nav-btnPrev').unbind().hover(function() { - $(this).css({ 'background' : 'url(' + settings.imageBtnPrev + ') left 15% no-repeat' }); - },function() { - $(this).css({ 'background' : 'transparent url(' + settings.imageBlank + ') no-repeat' }); - }).show().bind('click',function() { - settings.activeImage = settings.activeImage - 1; - _set_image_to_view(); - return false; - }); - } - } - - // Show the next button, if not the last image in set - if ( settings.activeImage != ( settings.imageArray.length -1 ) ) { - if ( settings.fixedNavigation ) { - $('#lightbox-nav-btnNext').css({ 'background' : 'url(' + settings.imageBtnNext + ') right 15% no-repeat' }) - .unbind() - .bind('click',function() { - settings.activeImage = settings.activeImage + 1; - _set_image_to_view(); - return false; - }); - } else { - // Show the images button for Next buttons - $('#lightbox-nav-btnNext').unbind().hover(function() { - $(this).css({ 'background' : 'url(' + settings.imageBtnNext + ') right 15% no-repeat' }); - },function() { - $(this).css({ 'background' : 'transparent url(' + settings.imageBlank + ') no-repeat' }); - }).show().bind('click',function() { - settings.activeImage = settings.activeImage + 1; - _set_image_to_view(); - return false; - }); - } - } - // Enable keyboard navigation - _enable_keyboard_navigation(); - } - /** - * Enable a support to keyboard navigation - * - */ - function _enable_keyboard_navigation() { - $(document).keydown(function(objEvent) { - _keyboard_action(objEvent); - }); - } - /** - * Disable the support to keyboard navigation - * - */ - function _disable_keyboard_navigation() { - $(document).unbind(); - } - /** - * Perform the keyboard actions - * - */ - function _keyboard_action(objEvent) { - // To ie - if ( objEvent == null ) { - keycode = event.keyCode; - escapeKey = 27; - // To Mozilla - } else { - keycode = objEvent.keyCode; - escapeKey = objEvent.DOM_VK_ESCAPE; - } - // Get the key in lower case form - key = String.fromCharCode(keycode).toLowerCase(); - // Verify the keys to close the ligthBox - if ( ( key == settings.keyToClose ) || ( key == 'x' ) || ( keycode == escapeKey ) ) { - _finish(); - } - // Verify the key to show the previous image - if ( ( key == settings.keyToPrev ) || ( keycode == 37 ) ) { - // If we´re not showing the first image, call the previous - if ( settings.activeImage != 0 ) { - settings.activeImage = settings.activeImage - 1; - _set_image_to_view(); - _disable_keyboard_navigation(); - } - } - // Verify the key to show the next image - if ( ( key == settings.keyToNext ) || ( keycode == 39 ) ) { - // If we´re not showing the last image, call the next - if ( settings.activeImage != ( settings.imageArray.length - 1 ) ) { - settings.activeImage = settings.activeImage + 1; - _set_image_to_view(); - _disable_keyboard_navigation(); - } - } - } - /** - * Preload prev and next images being showed - * - */ - function _preload_neighbor_images() { - if ( (settings.imageArray.length -1) > settings.activeImage ) { - objNext = new Image(); - objNext.src = settings.imageArray[settings.activeImage + 1][0]; - } - if ( settings.activeImage > 0 ) { - objPrev = new Image(); - objPrev.src = settings.imageArray[settings.activeImage -1][0]; - } - } - /** - * Remove jQuery lightBox plugin HTML markup - * - */ - function _finish() { - $('#jquery-lightbox').remove(); - $('#jquery-overlay').fadeOut(function() { $('#jquery-overlay').remove(); }); - // Show some elements to avoid conflict with overlay in IE. These elements appear above the overlay. - $('embed, object, select').css({ 'visibility' : 'visible' }); - } - /** - / THIRD FUNCTION - * getPageSize() by quirksmode.com - * - * @return Array Return an array with page width, height and window width, height - */ - function ___getPageSize() { - var xScroll, yScroll; - if (window.innerHeight && window.scrollMaxY) { - xScroll = window.innerWidth + window.scrollMaxX; - yScroll = window.innerHeight + window.scrollMaxY; - } else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac - xScroll = document.body.scrollWidth; - yScroll = document.body.scrollHeight; - } else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari - xScroll = document.body.offsetWidth; - yScroll = document.body.offsetHeight; - } - var windowWidth, windowHeight; - if (self.innerHeight) { // all except Explorer - if(document.documentElement.clientWidth){ - windowWidth = document.documentElement.clientWidth; - } else { - windowWidth = self.innerWidth; - } - windowHeight = self.innerHeight; - } else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode - windowWidth = document.documentElement.clientWidth; - windowHeight = document.documentElement.clientHeight; - } else if (document.body) { // other Explorers - windowWidth = document.body.clientWidth; - windowHeight = document.body.clientHeight; - } - // for small pages with total height less then height of the viewport - if(yScroll < windowHeight){ - pageHeight = windowHeight; - } else { - pageHeight = yScroll; - } - // for small pages with total width less then width of the viewport - if(xScroll < windowWidth){ - pageWidth = xScroll; - } else { - pageWidth = windowWidth; - } - arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight); - return arrayPageSize; - }; - /** - / THIRD FUNCTION - * getPageScroll() by quirksmode.com - * - * @return Array Return an array with x,y page scroll values. - */ - function ___getPageScroll() { - var xScroll, yScroll; - if (self.pageYOffset) { - yScroll = self.pageYOffset; - xScroll = self.pageXOffset; - } else if (document.documentElement && document.documentElement.scrollTop) { // Explorer 6 Strict - yScroll = document.documentElement.scrollTop; - xScroll = document.documentElement.scrollLeft; - } else if (document.body) {// all other Explorers - yScroll = document.body.scrollTop; - xScroll = document.body.scrollLeft; - } - arrayPageScroll = new Array(xScroll,yScroll); - return arrayPageScroll; - }; - /** - * Stop the code execution from a escified time in milisecond - * - */ - function ___pause(ms) { - var date = new Date(); - curDate = null; - do { var curDate = new Date(); } - while ( curDate - date < ms); - }; - // Return the jQuery object for chaining. The unbind method is used to avoid click conflict when the plugin is called more than once - return this.unbind('click').click(_initialize); - }; -})(jQuery); // Call and execute the function immediately passing the jQuery object
M content/robots.txtresources/robots.txt

@@ -1,5 +1,3 @@

------ ------ User-agent: * Disallow: /data Disallow: /images
M content/tags/ajax-atom.xmlcontent/tags/ajax-atom.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'ajax' (Atom Feed) :permalink: tags/ajax/atom +:title: H3RALD - Tag 'ajax' (Atom Feed) ----- <%= atom_feed(:articles => articles_tagged_with('ajax'))%>
M content/tags/ajax-rss.xmlcontent/tags/ajax-rss.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'ajax' (RSS Feed) :permalink: tags/ajax/rss +:title: H3RALD - Tag 'ajax' (RSS Feed) ----- <%= rss_feed(:articles => articles_tagged_with('ajax'))%>
M content/tags/ajax.textilecontent/tags/ajax.textile

@@ -1,11 +1,11 @@

----- :type: page +:permalink: ajax :title: "Tag: ajax" :filters_pre: - erb :feed: /tags/ajax/ :feed_title: Tag 'ajax' -:permalink: ajax ----- <p>3 items are tagged with <em>ajax</em>:</p>
M content/tags/books-atom.xmlcontent/tags/books-atom.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'books' (Atom Feed) :permalink: tags/books/atom +:title: H3RALD - Tag 'books' (Atom Feed) ----- <%= atom_feed(:articles => articles_tagged_with('books'))%>
M content/tags/books-rss.xmlcontent/tags/books-rss.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'books' (RSS Feed) :permalink: tags/books/rss +:title: H3RALD - Tag 'books' (RSS Feed) ----- <%= rss_feed(:articles => articles_tagged_with('books'))%>
M content/tags/books.textilecontent/tags/books.textile

@@ -1,11 +1,11 @@

----- :type: page +:permalink: books :title: "Tag: books" :filters_pre: - erb :feed: /tags/books/ :feed_title: Tag 'books' -:permalink: books ----- <p>8 items are tagged with <em>books</em>:</p>
M content/tags/browsers-atom.xmlcontent/tags/browsers-atom.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'browsers' (Atom Feed) :permalink: tags/browsers/atom +:title: H3RALD - Tag 'browsers' (Atom Feed) ----- <%= atom_feed(:articles => articles_tagged_with('browsers'))%>
M content/tags/browsers-rss.xmlcontent/tags/browsers-rss.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'browsers' (RSS Feed) :permalink: tags/browsers/rss +:title: H3RALD - Tag 'browsers' (RSS Feed) ----- <%= rss_feed(:articles => articles_tagged_with('browsers'))%>
M content/tags/browsers.textilecontent/tags/browsers.textile

@@ -1,11 +1,11 @@

----- :type: page +:permalink: browsers :title: "Tag: browsers" :filters_pre: - erb :feed: /tags/browsers/ :feed_title: Tag 'browsers' -:permalink: browsers ----- <p>7 items are tagged with <em>browsers</em>:</p>
M content/tags/cakephp-atom.xmlcontent/tags/cakephp-atom.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'cakephp' (Atom Feed) :permalink: tags/cakephp/atom +:title: H3RALD - Tag 'cakephp' (Atom Feed) ----- <%= atom_feed(:articles => articles_tagged_with('cakephp'))%>
M content/tags/cakephp-rss.xmlcontent/tags/cakephp-rss.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'cakephp' (RSS Feed) :permalink: tags/cakephp/rss +:title: H3RALD - Tag 'cakephp' (RSS Feed) ----- <%= rss_feed(:articles => articles_tagged_with('cakephp'))%>
M content/tags/cakephp.textilecontent/tags/cakephp.textile

@@ -1,14 +1,14 @@

----- :type: page +:permalink: cakephp :title: "Tag: cakephp" :filters_pre: - erb :feed: /tags/cakephp/ :feed_title: Tag 'cakephp' -:permalink: cakephp ----- -<p>23 items are tagged with <em>cakephp</em>:</p> +<p>24 items are tagged with <em>cakephp</em>:</p> <ul> <% articles_tagged_with('cakephp').each do |a| %> <%= render 'dated_article', :article => a %>
M content/tags/concatenative-atom.xmlcontent/tags/concatenative-atom.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'concatenative' (Atom Feed) :permalink: tags/concatenative/atom +:title: H3RALD - Tag 'concatenative' (Atom Feed) ----- <%= atom_feed(:articles => articles_tagged_with('concatenative'))%>
M content/tags/concatenative-rss.xmlcontent/tags/concatenative-rss.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'concatenative' (RSS Feed) :permalink: tags/concatenative/rss +:title: H3RALD - Tag 'concatenative' (RSS Feed) ----- <%= rss_feed(:articles => articles_tagged_with('concatenative'))%>
M content/tags/concatenative.textilecontent/tags/concatenative.textile

@@ -1,11 +1,11 @@

----- :type: page +:permalink: concatenative :title: "Tag: concatenative" :filters_pre: - erb :feed: /tags/concatenative/ :feed_title: Tag 'concatenative' -:permalink: concatenative ----- <p>2 items are tagged with <em>concatenative</em>:</p>
M content/tags/databases-atom.xmlcontent/tags/databases-atom.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'databases' (Atom Feed) :permalink: tags/databases/atom +:title: H3RALD - Tag 'databases' (Atom Feed) ----- <%= atom_feed(:articles => articles_tagged_with('databases'))%>
M content/tags/databases-rss.xmlcontent/tags/databases-rss.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'databases' (RSS Feed) :permalink: tags/databases/rss +:title: H3RALD - Tag 'databases' (RSS Feed) ----- <%= rss_feed(:articles => articles_tagged_with('databases'))%>
M content/tags/databases.textilecontent/tags/databases.textile

@@ -1,11 +1,11 @@

----- :type: page +:permalink: databases :title: "Tag: databases" :filters_pre: - erb :feed: /tags/databases/ :feed_title: Tag 'databases' -:permalink: databases ----- <p>6 items are tagged with <em>databases</em>:</p>
M content/tags/firefox-atom.xmlcontent/tags/firefox-atom.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'firefox' (Atom Feed) :permalink: tags/firefox/atom +:title: H3RALD - Tag 'firefox' (Atom Feed) ----- <%= atom_feed(:articles => articles_tagged_with('firefox'))%>
M content/tags/firefox-rss.xmlcontent/tags/firefox-rss.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'firefox' (RSS Feed) :permalink: tags/firefox/rss +:title: H3RALD - Tag 'firefox' (RSS Feed) ----- <%= rss_feed(:articles => articles_tagged_with('firefox'))%>
M content/tags/firefox.textilecontent/tags/firefox.textile

@@ -1,11 +1,11 @@

----- :type: page +:permalink: firefox :title: "Tag: firefox" :filters_pre: - erb :feed: /tags/firefox/ :feed_title: Tag 'firefox' -:permalink: firefox ----- <p>6 items are tagged with <em>firefox</em>:</p>
M content/tags/frameworks-atom.xmlcontent/tags/frameworks-atom.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'frameworks' (Atom Feed) :permalink: tags/frameworks/atom +:title: H3RALD - Tag 'frameworks' (Atom Feed) ----- <%= atom_feed(:articles => articles_tagged_with('frameworks'))%>
M content/tags/frameworks-rss.xmlcontent/tags/frameworks-rss.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'frameworks' (RSS Feed) :permalink: tags/frameworks/rss +:title: H3RALD - Tag 'frameworks' (RSS Feed) ----- <%= rss_feed(:articles => articles_tagged_with('frameworks'))%>
M content/tags/frameworks.textilecontent/tags/frameworks.textile

@@ -1,11 +1,11 @@

----- :type: page +:permalink: frameworks :title: "Tag: frameworks" :filters_pre: - erb :feed: /tags/frameworks/ :feed_title: Tag 'frameworks' -:permalink: frameworks ----- <p>6 items are tagged with <em>frameworks</em>:</p>
M content/tags/google-atom.xmlcontent/tags/google-atom.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'google' (Atom Feed) :permalink: tags/google/atom +:title: H3RALD - Tag 'google' (Atom Feed) ----- <%= atom_feed(:articles => articles_tagged_with('google'))%>
M content/tags/google-rss.xmlcontent/tags/google-rss.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'google' (RSS Feed) :permalink: tags/google/rss +:title: H3RALD - Tag 'google' (RSS Feed) ----- <%= rss_feed(:articles => articles_tagged_with('google'))%>
M content/tags/google.textilecontent/tags/google.textile

@@ -1,11 +1,11 @@

----- :type: page +:permalink: google :title: "Tag: google" :filters_pre: - erb :feed: /tags/google/ :feed_title: Tag 'google' -:permalink: google ----- <p>5 items are tagged with <em>google</em>:</p>
M content/tags/ie-atom.xmlcontent/tags/ie-atom.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'ie' (Atom Feed) :permalink: tags/ie/atom +:title: H3RALD - Tag 'ie' (Atom Feed) ----- <%= atom_feed(:articles => articles_tagged_with('ie'))%>
M content/tags/ie-rss.xmlcontent/tags/ie-rss.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'ie' (RSS Feed) :permalink: tags/ie/rss +:title: H3RALD - Tag 'ie' (RSS Feed) ----- <%= rss_feed(:articles => articles_tagged_with('ie'))%>
M content/tags/ie.textilecontent/tags/ie.textile

@@ -1,11 +1,11 @@

----- :type: page +:permalink: ie :title: "Tag: ie" :filters_pre: - erb :feed: /tags/ie/ :feed_title: Tag 'ie' -:permalink: ie ----- <p>2 items are tagged with <em>ie</em>:</p>
M content/tags/internet-atom.xmlcontent/tags/internet-atom.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'internet' (Atom Feed) :permalink: tags/internet/atom +:title: H3RALD - Tag 'internet' (Atom Feed) ----- <%= atom_feed(:articles => articles_tagged_with('internet'))%>
M content/tags/internet-rss.xmlcontent/tags/internet-rss.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'internet' (RSS Feed) :permalink: tags/internet/rss +:title: H3RALD - Tag 'internet' (RSS Feed) ----- <%= rss_feed(:articles => articles_tagged_with('internet'))%>
M content/tags/internet.textilecontent/tags/internet.textile

@@ -1,11 +1,11 @@

----- :type: page +:permalink: internet :title: "Tag: internet" :filters_pre: - erb :feed: /tags/internet/ :feed_title: Tag 'internet' -:permalink: internet ----- <p>12 items are tagged with <em>internet</em>:</p>
M content/tags/italy-atom.xmlcontent/tags/italy-atom.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'italy' (Atom Feed) :permalink: tags/italy/atom +:title: H3RALD - Tag 'italy' (Atom Feed) ----- <%= atom_feed(:articles => articles_tagged_with('italy'))%>
M content/tags/italy-rss.xmlcontent/tags/italy-rss.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'italy' (RSS Feed) :permalink: tags/italy/rss +:title: H3RALD - Tag 'italy' (RSS Feed) ----- <%= rss_feed(:articles => articles_tagged_with('italy'))%>
M content/tags/italy.textilecontent/tags/italy.textile

@@ -1,11 +1,11 @@

----- :type: page +:permalink: italy :title: "Tag: italy" :filters_pre: - erb :feed: /tags/italy/ :feed_title: Tag 'italy' -:permalink: italy ----- <p>3 items are tagged with <em>italy</em>:</p>
A content/tags/li3-atom.xml

@@ -0,0 +1,6 @@

+----- +:type: feed +:permalink: tags/li3/atom +:title: H3RALD - Tag 'li3' (Atom Feed) +----- +<%= atom_feed(:articles => articles_tagged_with('li3'))%>
A content/tags/li3-rss.xml

@@ -0,0 +1,6 @@

+----- +:type: feed +:permalink: tags/li3/rss +:title: H3RALD - Tag 'li3' (RSS Feed) +----- +<%= rss_feed(:articles => articles_tagged_with('li3'))%>
A content/tags/li3.textile

@@ -0,0 +1,17 @@

+----- +:type: page +:permalink: li3 +:title: "Tag: li3" +:filters_pre: +- erb +:feed: /tags/li3/ +:feed_title: Tag 'li3' +----- + +<p>1 item is tagged with <em>li3</em>:</p> +<ul> + <% articles_tagged_with('li3').each do |a| %> + <%= render 'dated_article', :article => a %> + <% end %> +</ul> +
M content/tags/microsoft-atom.xmlcontent/tags/microsoft-atom.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'microsoft' (Atom Feed) :permalink: tags/microsoft/atom +:title: H3RALD - Tag 'microsoft' (Atom Feed) ----- <%= atom_feed(:articles => articles_tagged_with('microsoft'))%>
M content/tags/microsoft-rss.xmlcontent/tags/microsoft-rss.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'microsoft' (RSS Feed) :permalink: tags/microsoft/rss +:title: H3RALD - Tag 'microsoft' (RSS Feed) ----- <%= rss_feed(:articles => articles_tagged_with('microsoft'))%>
M content/tags/microsoft.textilecontent/tags/microsoft.textile

@@ -1,11 +1,11 @@

----- :type: page +:permalink: microsoft :title: "Tag: microsoft" :filters_pre: - erb :feed: /tags/microsoft/ :feed_title: Tag 'microsoft' -:permalink: microsoft ----- <p>2 items are tagged with <em>microsoft</em>:</p>
M content/tags/opensource-atom.xmlcontent/tags/opensource-atom.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'opensource' (Atom Feed) :permalink: tags/opensource/atom +:title: H3RALD - Tag 'opensource' (Atom Feed) ----- <%= atom_feed(:articles => articles_tagged_with('opensource'))%>
M content/tags/opensource-rss.xmlcontent/tags/opensource-rss.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'opensource' (RSS Feed) :permalink: tags/opensource/rss +:title: H3RALD - Tag 'opensource' (RSS Feed) ----- <%= rss_feed(:articles => articles_tagged_with('opensource'))%>
M content/tags/opensource.textilecontent/tags/opensource.textile

@@ -1,11 +1,11 @@

----- :type: page +:permalink: opensource :title: "Tag: opensource" :filters_pre: - erb :feed: /tags/opensource/ :feed_title: Tag 'opensource' -:permalink: opensource ----- <p>10 items are tagged with <em>opensource</em>:</p>
M content/tags/opera-atom.xmlcontent/tags/opera-atom.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'opera' (Atom Feed) :permalink: tags/opera/atom +:title: H3RALD - Tag 'opera' (Atom Feed) ----- <%= atom_feed(:articles => articles_tagged_with('opera'))%>
M content/tags/opera-rss.xmlcontent/tags/opera-rss.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'opera' (RSS Feed) :permalink: tags/opera/rss +:title: H3RALD - Tag 'opera' (RSS Feed) ----- <%= rss_feed(:articles => articles_tagged_with('opera'))%>
M content/tags/opera.textilecontent/tags/opera.textile

@@ -1,11 +1,11 @@

----- :type: page +:permalink: opera :title: "Tag: opera" :filters_pre: - erb :feed: /tags/opera/ :feed_title: Tag 'opera' -:permalink: opera ----- <p>2 items are tagged with <em>opera</em>:</p>
M content/tags/personal-atom.xmlcontent/tags/personal-atom.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'personal' (Atom Feed) :permalink: tags/personal/atom +:title: H3RALD - Tag 'personal' (Atom Feed) ----- <%= atom_feed(:articles => articles_tagged_with('personal'))%>
M content/tags/personal-rss.xmlcontent/tags/personal-rss.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'personal' (RSS Feed) :permalink: tags/personal/rss +:title: H3RALD - Tag 'personal' (RSS Feed) ----- <%= rss_feed(:articles => articles_tagged_with('personal'))%>
M content/tags/personal.textilecontent/tags/personal.textile

@@ -1,11 +1,11 @@

----- :type: page +:permalink: personal :title: "Tag: personal" :filters_pre: - erb :feed: /tags/personal/ :feed_title: Tag 'personal' -:permalink: personal ----- <p>6 items are tagged with <em>personal</em>:</p>
M content/tags/personal_log-atom.xmlcontent/tags/personal_log-atom.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'personal_log' (Atom Feed) :permalink: tags/personal_log/atom +:title: H3RALD - Tag 'personal_log' (Atom Feed) ----- <%= atom_feed(:articles => articles_tagged_with('personal_log'))%>
M content/tags/personal_log-rss.xmlcontent/tags/personal_log-rss.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'personal_log' (RSS Feed) :permalink: tags/personal_log/rss +:title: H3RALD - Tag 'personal_log' (RSS Feed) ----- <%= rss_feed(:articles => articles_tagged_with('personal_log'))%>
M content/tags/personal_log.textilecontent/tags/personal_log.textile

@@ -1,11 +1,11 @@

----- :type: page +:permalink: personal_log :title: "Tag: personal_log" :filters_pre: - erb :feed: /tags/personal_log/ :feed_title: Tag 'personal_log' -:permalink: personal_log ----- <p>6 items are tagged with <em>personal_log</em>:</p>
M content/tags/php-atom.xmlcontent/tags/php-atom.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'php' (Atom Feed) :permalink: tags/php/atom +:title: H3RALD - Tag 'php' (Atom Feed) ----- <%= atom_feed(:articles => articles_tagged_with('php'))%>
M content/tags/php-rss.xmlcontent/tags/php-rss.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'php' (RSS Feed) :permalink: tags/php/rss +:title: H3RALD - Tag 'php' (RSS Feed) ----- <%= rss_feed(:articles => articles_tagged_with('php'))%>
M content/tags/php.textilecontent/tags/php.textile

@@ -1,14 +1,14 @@

----- :type: page +:permalink: php :title: "Tag: php" :filters_pre: - erb :feed: /tags/php/ :feed_title: Tag 'php' -:permalink: php ----- -<p>6 items are tagged with <em>php</em>:</p> +<p>7 items are tagged with <em>php</em>:</p> <ul> <% articles_tagged_with('php').each do |a| %> <%= render 'dated_article', :article => a %>
M content/tags/politics-atom.xmlcontent/tags/politics-atom.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'politics' (Atom Feed) :permalink: tags/politics/atom +:title: H3RALD - Tag 'politics' (Atom Feed) ----- <%= atom_feed(:articles => articles_tagged_with('politics'))%>
M content/tags/politics-rss.xmlcontent/tags/politics-rss.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'politics' (RSS Feed) :permalink: tags/politics/rss +:title: H3RALD - Tag 'politics' (RSS Feed) ----- <%= rss_feed(:articles => articles_tagged_with('politics'))%>
M content/tags/politics.textilecontent/tags/politics.textile

@@ -1,11 +1,11 @@

----- :type: page +:permalink: politics :title: "Tag: politics" :filters_pre: - erb :feed: /tags/politics/ :feed_title: Tag 'politics' -:permalink: politics ----- <p>2 items are tagged with <em>politics</em>:</p>
M content/tags/productivity-atom.xmlcontent/tags/productivity-atom.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'productivity' (Atom Feed) :permalink: tags/productivity/atom +:title: H3RALD - Tag 'productivity' (Atom Feed) ----- <%= atom_feed(:articles => articles_tagged_with('productivity'))%>
M content/tags/productivity-rss.xmlcontent/tags/productivity-rss.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'productivity' (RSS Feed) :permalink: tags/productivity/rss +:title: H3RALD - Tag 'productivity' (RSS Feed) ----- <%= rss_feed(:articles => articles_tagged_with('productivity'))%>
M content/tags/productivity.textilecontent/tags/productivity.textile

@@ -1,11 +1,11 @@

----- :type: page +:permalink: productivity :title: "Tag: productivity" :filters_pre: - erb :feed: /tags/productivity/ :feed_title: Tag 'productivity' -:permalink: productivity ----- <p>7 items are tagged with <em>productivity</em>:</p>
M content/tags/programming-atom.xmlcontent/tags/programming-atom.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'programming' (Atom Feed) :permalink: tags/programming/atom +:title: H3RALD - Tag 'programming' (Atom Feed) ----- <%= atom_feed(:articles => articles_tagged_with('programming'))%>
M content/tags/programming-rss.xmlcontent/tags/programming-rss.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'programming' (RSS Feed) :permalink: tags/programming/rss +:title: H3RALD - Tag 'programming' (RSS Feed) ----- <%= rss_feed(:articles => articles_tagged_with('programming'))%>
M content/tags/programming.textilecontent/tags/programming.textile

@@ -1,14 +1,14 @@

----- :type: page +:permalink: programming :title: "Tag: programming" :filters_pre: - erb :feed: /tags/programming/ :feed_title: Tag 'programming' -:permalink: programming ----- -<p>11 items are tagged with <em>programming</em>:</p> +<p>12 items are tagged with <em>programming</em>:</p> <ul> <% articles_tagged_with('programming').each do |a| %> <%= render 'dated_article', :article => a %>
M content/tags/rails-atom.xmlcontent/tags/rails-atom.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'rails' (Atom Feed) :permalink: tags/rails/atom +:title: H3RALD - Tag 'rails' (Atom Feed) ----- <%= atom_feed(:articles => articles_tagged_with('rails'))%>
M content/tags/rails-rss.xmlcontent/tags/rails-rss.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'rails' (RSS Feed) :permalink: tags/rails/rss +:title: H3RALD - Tag 'rails' (RSS Feed) ----- <%= rss_feed(:articles => articles_tagged_with('rails'))%>
M content/tags/rails.textilecontent/tags/rails.textile

@@ -1,11 +1,11 @@

----- :type: page +:permalink: rails :title: "Tag: rails" :filters_pre: - erb :feed: /tags/rails/ :feed_title: Tag 'rails' -:permalink: rails ----- <p>19 items are tagged with <em>rails</em>:</p>
M content/tags/rant-atom.xmlcontent/tags/rant-atom.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'rant' (Atom Feed) :permalink: tags/rant/atom +:title: H3RALD - Tag 'rant' (Atom Feed) ----- <%= atom_feed(:articles => articles_tagged_with('rant'))%>
M content/tags/rant-rss.xmlcontent/tags/rant-rss.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'rant' (RSS Feed) :permalink: tags/rant/rss +:title: H3RALD - Tag 'rant' (RSS Feed) ----- <%= rss_feed(:articles => articles_tagged_with('rant'))%>
M content/tags/rant.textilecontent/tags/rant.textile

@@ -1,14 +1,14 @@

----- :type: page +:permalink: rant :title: "Tag: rant" :filters_pre: - erb :feed: /tags/rant/ :feed_title: Tag 'rant' -:permalink: rant ----- -<p>4 items are tagged with <em>rant</em>:</p> +<p>5 items are tagged with <em>rant</em>:</p> <ul> <% articles_tagged_with('rant').each do |a| %> <%= render 'dated_article', :article => a %>
M content/tags/rawline-atom.xmlcontent/tags/rawline-atom.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'rawline' (Atom Feed) :permalink: tags/rawline/atom +:title: H3RALD - Tag 'rawline' (Atom Feed) ----- <%= atom_feed(:articles => articles_tagged_with('rawline'))%>
M content/tags/rawline-rss.xmlcontent/tags/rawline-rss.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'rawline' (RSS Feed) :permalink: tags/rawline/rss +:title: H3RALD - Tag 'rawline' (RSS Feed) ----- <%= rss_feed(:articles => articles_tagged_with('rawline'))%>
M content/tags/rawline.textilecontent/tags/rawline.textile

@@ -1,11 +1,11 @@

----- :type: page +:permalink: rawline :title: "Tag: rawline" :filters_pre: - erb :feed: /tags/rawline/ :feed_title: Tag 'rawline' -:permalink: rawline ----- <p>5 items are tagged with <em>rawline</em>:</p>
M content/tags/redbook-atom.xmlcontent/tags/redbook-atom.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'redbook' (Atom Feed) :permalink: tags/redbook/atom +:title: H3RALD - Tag 'redbook' (Atom Feed) ----- <%= atom_feed(:articles => articles_tagged_with('redbook'))%>
M content/tags/redbook-rss.xmlcontent/tags/redbook-rss.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'redbook' (RSS Feed) :permalink: tags/redbook/rss +:title: H3RALD - Tag 'redbook' (RSS Feed) ----- <%= rss_feed(:articles => articles_tagged_with('redbook'))%>
M content/tags/redbook.textilecontent/tags/redbook.textile

@@ -1,11 +1,11 @@

----- :type: page +:permalink: redbook :title: "Tag: redbook" :filters_pre: - erb :feed: /tags/redbook/ :feed_title: Tag 'redbook' -:permalink: redbook ----- <p>6 items are tagged with <em>redbook</em>:</p>
M content/tags/review-atom.xmlcontent/tags/review-atom.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'review' (Atom Feed) :permalink: tags/review/atom +:title: H3RALD - Tag 'review' (Atom Feed) ----- <%= atom_feed(:articles => articles_tagged_with('review'))%>
M content/tags/review-rss.xmlcontent/tags/review-rss.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'review' (RSS Feed) :permalink: tags/review/rss +:title: H3RALD - Tag 'review' (RSS Feed) ----- <%= rss_feed(:articles => articles_tagged_with('review'))%>
M content/tags/review.textilecontent/tags/review.textile

@@ -1,11 +1,11 @@

----- :type: page +:permalink: review :title: "Tag: review" :filters_pre: - erb :feed: /tags/review/ :feed_title: Tag 'review' -:permalink: review ----- <p>33 items are tagged with <em>review</em>:</p>
M content/tags/ruby-atom.xmlcontent/tags/ruby-atom.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'ruby' (Atom Feed) :permalink: tags/ruby/atom +:title: H3RALD - Tag 'ruby' (Atom Feed) ----- <%= atom_feed(:articles => articles_tagged_with('ruby'))%>
M content/tags/ruby-rss.xmlcontent/tags/ruby-rss.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'ruby' (RSS Feed) :permalink: tags/ruby/rss +:title: H3RALD - Tag 'ruby' (RSS Feed) ----- <%= rss_feed(:articles => articles_tagged_with('ruby'))%>
M content/tags/ruby.textilecontent/tags/ruby.textile

@@ -1,14 +1,14 @@

----- :type: page +:permalink: ruby :title: "Tag: ruby" :filters_pre: - erb :feed: /tags/ruby/ :feed_title: Tag 'ruby' -:permalink: ruby ----- -<p>27 items are tagged with <em>ruby</em>:</p> +<p>28 items are tagged with <em>ruby</em>:</p> <ul> <% articles_tagged_with('ruby').each do |a| %> <%= render 'dated_article', :article => a %>
M content/tags/software-atom.xmlcontent/tags/software-atom.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'software' (Atom Feed) :permalink: tags/software/atom +:title: H3RALD - Tag 'software' (Atom Feed) ----- <%= atom_feed(:articles => articles_tagged_with('software'))%>
M content/tags/software-rss.xmlcontent/tags/software-rss.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'software' (RSS Feed) :permalink: tags/software/rss +:title: H3RALD - Tag 'software' (RSS Feed) ----- <%= rss_feed(:articles => articles_tagged_with('software'))%>
M content/tags/software.textilecontent/tags/software.textile

@@ -1,11 +1,11 @@

----- :type: page +:permalink: software :title: "Tag: software" :filters_pre: - erb :feed: /tags/software/ :feed_title: Tag 'software' -:permalink: software ----- <p>4 items are tagged with <em>software</em>:</p>
M content/tags/tools-atom.xmlcontent/tags/tools-atom.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'tools' (Atom Feed) :permalink: tags/tools/atom +:title: H3RALD - Tag 'tools' (Atom Feed) ----- <%= atom_feed(:articles => articles_tagged_with('tools'))%>
M content/tags/tools-rss.xmlcontent/tags/tools-rss.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'tools' (RSS Feed) :permalink: tags/tools/rss +:title: H3RALD - Tag 'tools' (RSS Feed) ----- <%= rss_feed(:articles => articles_tagged_with('tools'))%>
M content/tags/tools.textilecontent/tags/tools.textile

@@ -1,11 +1,11 @@

----- :type: page +:permalink: tools :title: "Tag: tools" :filters_pre: - erb :feed: /tags/tools/ :feed_title: Tag 'tools' -:permalink: tools ----- <p>4 items are tagged with <em>tools</em>:</p>
M content/tags/travelling-atom.xmlcontent/tags/travelling-atom.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'travelling' (Atom Feed) :permalink: tags/travelling/atom +:title: H3RALD - Tag 'travelling' (Atom Feed) ----- <%= atom_feed(:articles => articles_tagged_with('travelling'))%>
M content/tags/travelling-rss.xmlcontent/tags/travelling-rss.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'travelling' (RSS Feed) :permalink: tags/travelling/rss +:title: H3RALD - Tag 'travelling' (RSS Feed) ----- <%= rss_feed(:articles => articles_tagged_with('travelling'))%>
M content/tags/travelling.textilecontent/tags/travelling.textile

@@ -1,11 +1,11 @@

----- :type: page +:permalink: travelling :title: "Tag: travelling" :filters_pre: - erb :feed: /tags/travelling/ :feed_title: Tag 'travelling' -:permalink: travelling ----- <p>2 items are tagged with <em>travelling</em>:</p>
M content/tags/tutorial-atom.xmlcontent/tags/tutorial-atom.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'tutorial' (Atom Feed) :permalink: tags/tutorial/atom +:title: H3RALD - Tag 'tutorial' (Atom Feed) ----- <%= atom_feed(:articles => articles_tagged_with('tutorial'))%>
M content/tags/tutorial-rss.xmlcontent/tags/tutorial-rss.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'tutorial' (RSS Feed) :permalink: tags/tutorial/rss +:title: H3RALD - Tag 'tutorial' (RSS Feed) ----- <%= rss_feed(:articles => articles_tagged_with('tutorial'))%>
M content/tags/tutorial.textilecontent/tags/tutorial.textile

@@ -1,11 +1,11 @@

----- :type: page +:permalink: tutorial :title: "Tag: tutorial" :filters_pre: - erb :feed: /tags/tutorial/ :feed_title: Tag 'tutorial' -:permalink: tutorial ----- <p>4 items are tagged with <em>tutorial</em>:</p>
M content/tags/vim-atom.xmlcontent/tags/vim-atom.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'vim' (Atom Feed) :permalink: tags/vim/atom +:title: H3RALD - Tag 'vim' (Atom Feed) ----- <%= atom_feed(:articles => articles_tagged_with('vim'))%>
M content/tags/vim-rss.xmlcontent/tags/vim-rss.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'vim' (RSS Feed) :permalink: tags/vim/rss +:title: H3RALD - Tag 'vim' (RSS Feed) ----- <%= rss_feed(:articles => articles_tagged_with('vim'))%>
M content/tags/vim.textilecontent/tags/vim.textile

@@ -1,11 +1,11 @@

----- :type: page +:permalink: vim :title: "Tag: vim" :filters_pre: - erb :feed: /tags/vim/ :feed_title: Tag 'vim' -:permalink: vim ----- <p>2 items are tagged with <em>vim</em>:</p>
M content/tags/web-development-atom.xmlcontent/tags/web-development-atom.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'web-development' (Atom Feed) :permalink: tags/web-development/atom +:title: H3RALD - Tag 'web-development' (Atom Feed) ----- <%= atom_feed(:articles => articles_tagged_with('web-development'))%>
M content/tags/web-development-rss.xmlcontent/tags/web-development-rss.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'web-development' (RSS Feed) :permalink: tags/web-development/rss +:title: H3RALD - Tag 'web-development' (RSS Feed) ----- <%= rss_feed(:articles => articles_tagged_with('web-development'))%>
M content/tags/web-development.textilecontent/tags/web-development.textile

@@ -1,11 +1,11 @@

----- :type: page +:permalink: web-development :title: "Tag: web-development" :filters_pre: - erb :feed: /tags/web-development/ :feed_title: Tag 'web-development' -:permalink: web-development ----- <p>2 items are tagged with <em>web-development</em>:</p>
M content/tags/web20-atom.xmlcontent/tags/web20-atom.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'web20' (Atom Feed) :permalink: tags/web20/atom +:title: H3RALD - Tag 'web20' (Atom Feed) ----- <%= atom_feed(:articles => articles_tagged_with('web20'))%>
M content/tags/web20-rss.xmlcontent/tags/web20-rss.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'web20' (RSS Feed) :permalink: tags/web20/rss +:title: H3RALD - Tag 'web20' (RSS Feed) ----- <%= rss_feed(:articles => articles_tagged_with('web20'))%>
M content/tags/web20.textilecontent/tags/web20.textile

@@ -1,11 +1,11 @@

----- :type: page +:permalink: web20 :title: "Tag: web20" :filters_pre: - erb :feed: /tags/web20/ :feed_title: Tag 'web20' -:permalink: web20 ----- <p>8 items are tagged with <em>web20</em>:</p>
M content/tags/webdevelopment-atom.xmlcontent/tags/webdevelopment-atom.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'webdevelopment' (Atom Feed) :permalink: tags/webdevelopment/atom +:title: H3RALD - Tag 'webdevelopment' (Atom Feed) ----- <%= atom_feed(:articles => articles_tagged_with('webdevelopment'))%>
M content/tags/webdevelopment-rss.xmlcontent/tags/webdevelopment-rss.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'webdevelopment' (RSS Feed) :permalink: tags/webdevelopment/rss +:title: H3RALD - Tag 'webdevelopment' (RSS Feed) ----- <%= rss_feed(:articles => articles_tagged_with('webdevelopment'))%>
M content/tags/webdevelopment.textilecontent/tags/webdevelopment.textile

@@ -1,11 +1,11 @@

----- :type: page +:permalink: webdevelopment :title: "Tag: webdevelopment" :filters_pre: - erb :feed: /tags/webdevelopment/ :feed_title: Tag 'webdevelopment' -:permalink: webdevelopment ----- <p>12 items are tagged with <em>webdevelopment</em>:</p>
M content/tags/website-atom.xmlcontent/tags/website-atom.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'website' (Atom Feed) :permalink: tags/website/atom +:title: H3RALD - Tag 'website' (Atom Feed) ----- <%= atom_feed(:articles => articles_tagged_with('website'))%>
M content/tags/website-rss.xmlcontent/tags/website-rss.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'website' (RSS Feed) :permalink: tags/website/rss +:title: H3RALD - Tag 'website' (RSS Feed) ----- <%= rss_feed(:articles => articles_tagged_with('website'))%>
M content/tags/website.textilecontent/tags/website.textile

@@ -1,14 +1,14 @@

----- :type: page +:permalink: website :title: "Tag: website" :filters_pre: - erb :feed: /tags/website/ :feed_title: Tag 'website' -:permalink: website ----- -<p>11 items are tagged with <em>website</em>:</p> +<p>12 items are tagged with <em>website</em>:</p> <ul> <% articles_tagged_with('website').each do |a| %> <%= render 'dated_article', :article => a %>
M content/tags/wedding-atom.xmlcontent/tags/wedding-atom.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'wedding' (Atom Feed) :permalink: tags/wedding/atom +:title: H3RALD - Tag 'wedding' (Atom Feed) ----- <%= atom_feed(:articles => articles_tagged_with('wedding'))%>
M content/tags/wedding-rss.xmlcontent/tags/wedding-rss.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'wedding' (RSS Feed) :permalink: tags/wedding/rss +:title: H3RALD - Tag 'wedding' (RSS Feed) ----- <%= rss_feed(:articles => articles_tagged_with('wedding'))%>
M content/tags/wedding.textilecontent/tags/wedding.textile

@@ -1,11 +1,11 @@

----- :type: page +:permalink: wedding :title: "Tag: wedding" :filters_pre: - erb :feed: /tags/wedding/ :feed_title: Tag 'wedding' -:permalink: wedding ----- <p>6 items are tagged with <em>wedding</em>:</p>
M content/tags/writing-atom.xmlcontent/tags/writing-atom.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'writing' (Atom Feed) :permalink: tags/writing/atom +:title: H3RALD - Tag 'writing' (Atom Feed) ----- <%= atom_feed(:articles => articles_tagged_with('writing'))%>
M content/tags/writing-rss.xmlcontent/tags/writing-rss.xml

@@ -1,6 +1,6 @@

----- :type: feed -:title: H3RALD - Tag 'writing' (RSS Feed) :permalink: tags/writing/rss +:title: H3RALD - Tag 'writing' (RSS Feed) ----- <%= rss_feed(:articles => articles_tagged_with('writing'))%>
M content/tags/writing.textilecontent/tags/writing.textile

@@ -1,14 +1,14 @@

----- :type: page +:permalink: writing :title: "Tag: writing" :filters_pre: - erb :feed: /tags/writing/ :feed_title: Tag 'writing' -:permalink: writing ----- -<p>15 items are tagged with <em>writing</em>:</p> +<p>16 items are tagged with <em>writing</em>:</p> <ul> <% articles_tagged_with('writing').each do |a| %> <%= render 'dated_article', :article => a %>
M layouts/default.erblayouts/default.erb

@@ -44,7 +44,7 @@

</head> <body> <div id="wrapper"> - <a href="http://github.com/h3rald/h3rald"><img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" /></a> + <a href="http://github.com/h3rald/h3rald"><img style="position: absolute; top: 0; right: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png" alt="Fork me on GitHub" /></a> <div id="header"> <!--[if lte IE 6]> <div id="ie-warning">

@@ -66,13 +66,22 @@ </div>

</div> </div> <!-- HEADER END --> - <div class="ribbon"></div> + <div class="ribbon"> + </div> <!-- MAIN START --> <div id="main"> <!-- CONTAINER START --> <div id="container"> <!-- CONTENT START --> <div id="content" class="clearfix<%= (@item[:permalink] == 'home') ? ' home' : ' standard' %>"> +<div id="page-links"> + <span><script type="text/javascript" src="http://w.sharethis.com/button/sharethis.js#publisher=6e34d60c-b14e-4c19-9b2f-7c35a9f0ab09&amp;type=website&amp;linkfg=%23a4282d"></script></span> + <% if @item[:feed] then %> + <spab><a href="<%= @item[:feed_url] || @item[:feed]+"rss/" %>" type="application/rss+xml" rel="alternate"><img src="/images/theme/feed.png" alt="#"/>RSS Feed</a></span> + <% end %> + <span><a href="http://github.com/h3rald/h3rald/raw/master/<%= @item[:file].path %>?iframe" class="fancybox"><img src="/images/theme/source.png" alt="#"/>View Source</a></span> + </div> + <h2><%= @item[:title] %></h2> <% case @item[:type] when 'article' then%>

@@ -92,15 +101,7 @@ <%= yield %>

</div> <div id="content-footer"> <div class="share"> - <script type="text/javascript" src="http://w.sharethis.com/button/sharethis.js#publisher=6e34d60c-b14e-4c19-9b2f-7c35a9f0ab09&amp;type=website&amp;linkfg=%23a4282d"></script> - <% if @item[:feed] then %> - <a href="<%= @item[:feed_url] || @item[:feed]+"rss/" %>" type="application/rss+xml" rel="alternate"><img src="/images/theme/feed-icon-14x14.png" alt="#"/>H3RALD - <%= @item[:feed_title]%></a> - <% end %> -<script language="javascript"> - zoneIdentifier="75F7945A08B626A8"; - var varCheckURL = (("https:" == document.location.protocol) ? "https://" : "http://"); - document.write(unescape("%3Cscript src='" + varCheckURL + "adcode.technoratimedia.com/bootstrap/tti.js' type='text/javascript'%3E%3C/script%3E")); -</script> + <script language="javascript" type="text/javascript" src="http://ads.sixapart.com/custom?id=1000000897107&width=728&height=90&js=1"></script> </div> <%= render 'article_buttons' if @item[:type] == 'article' %> </div>

@@ -133,29 +134,30 @@ var lloogg_clientid = "2830021149dc1a04";

var pageTracker = _gat._getTracker("UA-287139-1"); pageTracker._setAllowLinker(true); pageTracker._trackPageview(); - </script> - <script type="text/javascript" src="http://lloogg.com/l.js?c=2830021149dc1a04"></script> - <script src="http://www.google.com/jsapi?key=ABQIAAAA6h3j8Jri5D_da53UPbEbThRlq2n1sm52B5HDRR5tm6o8XM18FhTKn3v155RpPeD0kWnWG81QEhhifQ" type="text/javascript"></script> - <% if @site.config[:dev] = true then %> - <script src="/js/jquery.js" type="text/javascript"></script> - <script src="/js/jquery-timeago.js" type="text/javascript"></script> - <script src="/js/jquery-lightbox.js" type="text/javascript"></script> - <script src="/js/jquery-toc.js" type="text/javascript"></script> - <script src="/js/date.js" type="text/javascript"></script> - <script src="/js/feeds.js" type="text/javascript"></script> - <script src="/js/search.js" type="text/javascript"></script> - <script src="/js/init.js" type="text/javascript"></script> - <% else %> - <script src="/js/compressed.js" type="text/javascript"></script> - <% end %> - <% if @item[:type] != 'article' then %> - <script type="text/javascript"> - $(document).ready(function() { - display_opinions(7); - display_tweets(7); - display_bookmarks(7); - }); - </script> + </script> + <script type="text/javascript" src="http://lloogg.com/l.js?c=2830021149dc1a04"></script> + <script src="http://www.google.com/jsapi?key=ABQIAAAA6h3j8Jri5D_da53UPbEbThRlq2n1sm52B5HDRR5tm6o8XM18FhTKn3v155RpPeD0kWnWG81QEhhifQ" type="text/javascript"></script> + <% if @site.config[:dev] = true then %> + <script src="/js/jquery.js" type="text/javascript"></script> + <script src="/js/jquery-timeago.js" type="text/javascript"></script> + <script src="/js/jquery-easing.js" type="text/javascript"></script> + <script src="/js/jquery-fancybox.js" type="text/javascript"></script> + <script src="/js/jquery-toc.js" type="text/javascript"></script> + <script src="/js/date.js" type="text/javascript"></script> + <script src="/js/feeds.js" type="text/javascript"></script> + <script src="/js/search.js" type="text/javascript"></script> + <script src="/js/init.js" type="text/javascript"></script> + <% else %> + <script src="/js/compressed.js" type="text/javascript"></script> + <% end %> + <% if @item[:type] != 'article' then %> + <script type="text/javascript"> + $(document).ready(function() { + display_opinions(7); + display_tweets(7); + display_bookmarks(7); + }); +</script> <% end %> <% if @item[:type] == 'article' then %> <script src="http://badges.del.icio.us/feeds/json/url/data?url=<%= url_for @item %>&amp;callback=delicious_counter"></script>

@@ -165,7 +167,7 @@ <script type="text/javascript">

$(document).ready(function() { display_commits(5, '<%= @item[:github] %>'); }); - </script> +</script> <% end %> </body> </html>
M lib/helpers.rblib/helpers.rb

@@ -21,6 +21,10 @@ def tags_for(article)

article.attributes[:tags].map{|t| %{<a class="tag" href="/tags/#{t}/">#{t}</a>}}.join " &middot; " end + def link_for_tag(tag, base_url) + %[<a href="#{base_url}#{tag}/" rel="tag">#{tag}</a>] + end + def tag_link_with_count(tag, count) %{#{link_for_tag(tag, '/tags/')} (#{count})} end