shlomi-fish-homepage / lib / rest-of-template.wml

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
<define-tag ad_brite_top_proto>
<!-- Begin: AdBrite, Generated: 2009-07-19 17:29:07  -->
<script type="text/javascript">
try{var AdBrite_Iframe=window.top!=window.self?2:1;var AdBrite_Referrer=document.referrer==''?document.location:document.referrer;AdBrite_Referrer=encodeURIComponent(AdBrite_Referrer);}catch(e){var AdBrite_Iframe='';var AdBrite_Referrer='';}
document.write(String.fromCharCode(60,83,67,82,73,80,84));document.write(' src="http://ads.adbrite.com/mb/text_group.php?sid=1266822&amp;br=1&amp;dk=726567697374657220646f6d61696e5f365f325f776562&amp;col=3&amp;ifr='+AdBrite_Iframe+'&amp;ref='+AdBrite_Referrer+'" type="text/javascript"&gt;');document.write(String.fromCharCode(60,47,83,67,82,73,80,84,62));</script>
<div><a class="adHeadline" href="http://www.adbrite.com/mb/commerce/purchase_form.php?opid=1266822&amp;afsid=1">Your Ad Here</a></div>
<!-- End: AdBrite -->
</define-tag>

;;; Contains some non-valid code so we over-ride it below.
<define-tag project_wonderful_top_proto>
<!-- Beginning of Project Wonderful ad code: -->
<!-- Ad box ID: 42457 -->
<script type="text/javascript">
<!--
var pw_d=document;
pw_d.projectwonderful_adbox_id = "42457";
pw_d.projectwonderful_adbox_type = "1";
pw_d.projectwonderful_foreground_color = "";
pw_d.projectwonderful_background_color = "";
//-->
</script>
<script type="text/javascript" src="http://www.projectwonderful.com/ad_display.js"></script>
<noscript><map name="admap42457" id="admap42457"><area href="http://www.projectwonderful.com/out_nojs.php?r=0&amp;c=0&amp;id=42457&amp;type=1" shape="rect" coords="0,0,468,60" title="" alt="" target="_blank" /></map>
<table cellpadding="0" border="0" cellspacing="0" width="468" bgcolor="#ffffff"><tr><td><img src="http://www.projectwonderful.com/nojs.php?id=42457&amp;type=1" width="468" height="60" usemap="#admap42457" border="0" alt="" /></td></tr><tr><td bgcolor="#ffffff" colspan="1"><center><a style="font-size:10px;color:#0000ff;text-decoration:none;line-height:1.2;font-weight:bold;font-family:Tahoma, verdana,arial,helvetica,sans-serif;text-transform: none;letter-spacing:normal;text-shadow:none;white-space:normal;word-spacing:normal;" href="http://www.projectwonderful.com/advertisehere.php?id=42457&amp;type=1" target="_blank">Ads by Project Wonderful!  Your ad here, right now: $0</a></center></td></tr><tr><td colspan="1" valign="top" width="468" bgcolor="#000000" style="height:3px;font-size:1px;padding:0px;max-height:3px;"></td></tr></table>
</noscript>
<!-- End of Project Wonderful ad code. -->
</define-tag>

<define-tag project_wonderful_top_proto>
<!-- Beginning of Project Wonderful ad code: -->
<!-- Ad box ID: 42457 -->
<script type="text/javascript">
<!--
var pw_d=document;
pw_d.projectwonderful_adbox_id = "42457";
pw_d.projectwonderful_adbox_type = "1";
pw_d.projectwonderful_foreground_color = "";
pw_d.projectwonderful_background_color = "";
//-->
</script>
<script type="text/javascript" src="http://www.projectwonderful.com/ad_display.js"></script>
<!-- End of Project Wonderful ad code. -->
</define-tag>

<define-tag hebrew_open_div>
{#HEBREW_XML_LANG_SCRIPT#:<script src="$(ROOT)/js/moz-lang.js" type="text/javascript"></script>:##}
{#BODY_PARAMS#: onload="lang_load()":##}
<div class="hebrew" xml:lang="he-IL">
</define-tag>

<define-tag shlomif_web_ads_code_top_proto>
<if "<match "$(LATEMP_FILENAME)" "\.xhtml$" action="report" />"
    "  <object class="ads_top_wide" data="$(ROOT)/images/ads/ads-top.html" type="text/html"></object>"
    "<google_adsense_code_top_proto />"
    />
</define-tag>

<define-tag shlomif_web_ads_code_top_proto>
<if "<match "$(LATEMP_FILENAME)" "\.xhtml$" action="report" />"
    "  <object class="ads_top_wide" data="$(ROOT)/images/ads/ads-top.html" type="text/html"></object>"
    "<project_wonderful_top_proto />"
    />
</define-tag>

;;; Temporarily adding to disable AdBrite which messes up the look of
;;; the page in MSIE 7, MSIE 8 and Opera.
;;; <define-tag shlomif_web_ads_code_top_proto>
;;; </define-tag>

<define-tag project_wonderful_code_side_proto>
<!-- Beginning of Project Wonderful ad code: -->
<!-- Ad box ID: 42545 -->
<script type="text/javascript">
<!--
var pw_d=document;
pw_d.projectwonderful_adbox_id = "42545";
pw_d.projectwonderful_adbox_type = "3";
pw_d.projectwonderful_foreground_color = "";
pw_d.projectwonderful_background_color = "";
//-->
</script>
<script type="text/javascript" src="http://www.projectwonderful.com/ad_display.js"></script>
<!-- End of Project Wonderful ad code. -->
</define-tag>

<define-tag shlomif_web_ads_code_side>
<if "<match "$(LATEMP_FILENAME)" "\.xhtml$" action="report" />"
    "  <object class="ads_side" data="$(ROOT)/images/ads/ads-side.html" type="text/html"></object>"
    "<project_wonderful_code_side_proto />"
    />
</define-tag>

<define-tag w2l_notice>
<a href="http://welcome.linux.org.il/2007/" title="ברוכים הבאים ללינוקס 2007 - הכירו את הסביבה היציבה, החזקה והמגוונת"><img
     src="$(ROOT)/images/welcome-to-linux-2004-banner-256.png" 
     style="border-width:0" alt="Welcome to Linux 2007 in Israel"
     /></a>
</define-tag>

<define-tag ap5_notice>
<a href="http://ap5.israel.net/" title="August Penguin 5 - The Annual Israeli Community Conference for Free and Open Source Software"><img
     src="$(ROOT)/images/ap5-banner.png" class="bless" 
     alt="August Penguin 5 - Israeli Community FOSS Con" /></a>
</define-tag>

<set-var with_banner="" />

<define-tag top_with_banner>
<w2l_notice />
<shlomif_web_ads_code_top_proto />
</define-tag>

<define-tag top_without_banner>
<shlomif_web_ads_code_top_proto />
</define-tag>

<latemp_top_banner>
<div class="banner">
<if "<get-var with_banner />"
    "<top_with_banner />"
    "<top_without_banner />"
    />
</div>
</latemp_top_banner>

<latemp_top_left_corner_logo>
<div class="center">
<a href="<rellink url="" host="t2" />" 
    title="Shlomi Fish's Homepage"><img 
    src="$(ROOT)/images/evilphish.png" 
    alt="EvilPHish by Illiad" class="highlight" 
    style="border:0;margin-bottom:0.5em;" 
    /></a>
</div>
</latemp_top_left_corner_logo>

<define-tag google_search>

<h2 id="site-google-search">Google Search</h2>

<form method="get" action="http://www.google.com/search">
<div class="search">
<input type="hidden" name="ie" value="UTF-8" />
<input type="hidden" name="oe" value="UTF-8" />
<input type="text" name="q" size="15" maxlength="255" alt="Search Query" 
value="" />
<input type="hidden" name="domains" value="www.shlomifish.org" />
<br />
<input type="radio" name="sitesearch" alt="Search the Web" value="" /> WWW <br />
<input type="radio" name="sitesearch" alt="Search My Site" value="www.shlomifish.org" checked="checked" />
shlomifish.org
<br />
<input type="submit" name="btnG" value="Google Search" />
</div>
</form>
</define-tag>

<define-tag no_ie_link endtag="required">
<a href="<rellink url="no-ie/" host="t2" />" title="Stop Using Internet Explorer!">%body</a>
</define-tag>

<latemp_lang "en-US" />
<latemp_encoding "utf-8" />
<latemp_author "Shlomi Fish" />
<latemp_common_keywords "Shlomi Fish, Shlomi, Fish, Perl, Humour, Israel, Programming, Open Source, Free Software, Presentations, Philosophy, Freecell, Freecell Solver, GIMP, Subversion, version control, Web, Web Design, DeCSS, Software" />
<latemp_meta_desc "Shlomi Fish's Homepage" />
# Nullify the affil_wml
<define-tag affil_wml>
</define-tag>
<define-tag affil_valid_xhtml11>
<p>
<a href="http://validator.w3.org/check/referer" title="Valid XHTML 1.1!"
class="bless"><img 
    class="highlight bless"
    src="$(ROOT)/images/xh11-btn.png" 
    alt="Valid XHTML 1.1!"
    /></a>
</p>
</define-tag>
<define-tag affil_valid_css>
<p>
<a href="http://jigsaw.w3.org/css-validator/" title="Valid CSS!"
class="bless"><img 
    class="highlight bless"
    src="$(ROOT)/images/css-btn.png" 
    alt="Valid CSS!" /></a>
</p>
</define-tag>

<latemp_affiliations_buttons>

<shlomif_sponsored_ad_text />

<div class="search">

<div class="center">
<img src="$(ROOT)/images/shlomif-photo-small-180.jpg"
    alt="Photo of Shlomi Fish"
    title="Shlomi Fish sitting next to the computer"
    />
</div>

<p>
<a href="$(ROOT)/#about_site">Shlomi Fish</a> is an Israeli programmer,
essayist, and humorist.
</p>

<p>
He is passionate about open source, open content, and freedom and openness
in general.
</p>

</div>

<google_search />



<affil_collection_shlomif />

{#PAGE_EXTRA_AFFIL#}

<p>
<a href="http://www.livejournal.com/community/shlomif_hsite/data/rss" class="bless"><img 
    src="$(ROOT)/images/rss-feed-sticker.png"
    alt="RSS Feed" title="RSS Feed for Easy Notification on Update"
    class="bless"
    /></a>
</p>
<p>
<a href="http://www.livejournal.com/community/shlomif_hsite/data/atom" 
    class="bless"><img 
    src="$(ROOT)/images/atom-feed-sticker.png"
    alt="Atom Feed" title="Atom Feed for Easy Notification on Update"
    class="bless"
    /></a>
</p>


<div id="noie">
<no_ie_link><img src="$(ROOT)/images/noIE.png" 
class="highlight" style="border:0" 
alt="Stop Using Internet Explorer!" /></no_ie_link><br />
<no_ie_link>Stop Using Internet Explorer!</no_ie_link>
</div>
<div class="center">
<shlomif_web_ads_code_side />
</div>
</latemp_affiliations_buttons>



<latemp_webmaster>

<ul class="bt_nav">
<li>
<a href="$(ROOT)/">Home</a>
</li>
<li>
<a href="$(ROOT)/me/">About</a>
</li>
<li>
<a href="$(ROOT)/me/contact-me/">Contact Us</a>
</li>
<li>
<a href="$(ROOT)/meta/privacy-policy/">Privacy Policy</a>
</li>
<li>
<a href="$(ROOT)/meta/FAQ/" title="Frequently asked questions list">FAQ</a>
</li>
<li>
<a href="$(ROOT)/me/blogs/">RSS/Atom Feeds</a>
</li>
</ul>

<p>
Written, designed and maintained by Shlomi Fish, <a href="mailto:shlomif@iglu.org.il">shlomif@iglu.org.il</a>. 
</p>
<p>
If you like what you see here, or have any comments, suggestions or
corrections, feel free to E-mail me about it. I'd love to hear from you. If
you have found what I did helpful or entertaining, please consider
<a href="<rellink host="t2" url="meta/how-to-help/" />">helping</a>.
</p>
<p>
Style and look based on the
<a href="http://wordpress.org/extend/themes/smoked">Smoked WordPress Theme</a>
by <a href="http://wordpress.org/extend/themes/profile/iconstantin">iconstantin</a>.
</p>
<script type="text/javascript" src="$(ROOT)/js/selfl.js"></script>
</latemp_webmaster>

<define-tag hosting_link>
<div class="rightalign">
<a href="$(ROOT)/meta/hosting/#eonspace"><img src="images/eonspace1.png" 
   alt="Hosted at Eonspace" class="highlight" style="border : 0"
   title="Hosted at Eonspace" /></a>
</div>
</define-tag>

<define-tag backtomyhp>
<div>
<a href="<rellink url="" host="t2" />"><img src="$(ROOT)/images/bk2hp.png" class="highlight" style="border : 0" alt="Back to my Homepage" /></a>
</div>
</define-tag>

;;; If it is the t2 index than display the <hosting_link> macro
;;; Else - display the back to my homepage image
<latemp_foot_image>
<if <ifeq "$(LATEMP_FILENAME)" "index.html" 
        <ifeq "$(LATEMP_SERVER)" "t2" "t2" "" /> "" /> 
    <hosting_link />
    <backtomyhp />
    />
</latemp_foot_image>

<define-tag section_nav_menu_elements endtag="required" whitespace="delete"> 
{#SECTION_NAV_MENU_ELEMS#:%body:##}
</define-tag>


<latemp_before_main_title>
{#SECTION_NAV_MENU_ELEMS#}
<div class="wishlist_notice">
<p>If you like this site, I would appreciate a gift from <a href="<amazon_wishlist_link />">my wishlist</a>.</p>
</div>
<news_sites_buttons />
</latemp_before_main_title>

<section_nav_menu_elements>
<:{
    use MySectNavData;


    use vars (qw($section_nav_menu));

    sub init_section_nav_menu
    {
        my $ads_side = <<"EOF_ADS_CODE";
<shlomif_web_ads_code_side />
EOF_ADS_CODE

        # Adding to disable the google ads since they're not
        # operational.
        $ads_side = "";
    
        if (defined($section_nav_menu))
        {
            return;
        }
    my $filename = "<latemp_default_val "<get-var latemp_filename />" "$(LATEMP_FILENAME)" />";
    $filename =~ s{index\.html$}{};
    $filename = "/$filename";

    $section_nav_menu = MySectNavData::get_nav_menu(
        'path_info' => $filename,
        'current_host' => "<latemp_default_val "<get-var latemp_server />" "$(LATEMP_SERVER)" />",
        'root' => "$(ROOT)",
        'bottom_code' => $ads_side,
        );

return;
    }

    init_section_nav_menu();
    print $section_nav_menu->get_html();
}:>
</section_nav_menu_elements>
<define-tag page_extra_head_elements endtag="required" whitespace="delete">
{#PAGE_EXTRA_HEAD_ELEMENTS#:%body:##}
</define-tag>

<define-tag page_extra_affil endtag="required" whitespace="delete">
{#PAGE_EXTRA_AFFIL#:%body:##}
</define-tag>

<define-tag my_extra_head_elements>
<link rel="alternate stylesheet" type="text/css" href="$(ROOT)/style-2008.css" media="screen, projection" title="Old 2008 Style" />
<link rel="stylesheet" type="text/css" href="$(ROOT)/js/treeview/jquery.treeview.css" />
<script type="text/javascript" src="$(ROOT)/js/jq.js"></script>
<script type="text/javascript" src="$(ROOT)/js/jquery.treeview.pack.js"></script>
<script type="text/javascript" src="$(ROOT)/js/toggle_sect.js"></script>
<link rel="alternate" type="application/rss+xml" title="Shlomi Fish's Homepage RSS Feed" href="http://www.livejournal.com/community/shlomif_hsite/data/rss" />
<link rel="alternate" type="application/atom+xml" title="Shlomi Fish's Atom Feed" href="http://www.livejournal.com/community/shlomif_hsite/data/atom" />
{#PAGE_EXTRA_HEAD_ELEMENTS#}
</define-tag>

<define-tag my_printable_head_elements>
<style type="text/css">
body { background-color : white; color: black; }
td { vertical-align : top; }
</style>
</define-tag>
<latemp_extra_head_elements>
<if "$(PRINTABLE)" 
    "<my_printable_head_elements />"
    "<my_extra_head_elements />"
    />
</latemp_extra_head_elements>

<define-tag disqus_javascript>
<script type="text/javascript">
//<![CDATA[
(function() {
	var links = document.getElementsByTagName('a');
	var query = '?';
	for(var i = 0; i < links.length; i++) {
	if(links[i].href.indexOf('#disqus_thread') >= 0) {
		query += 'url' + i + '=' + encodeURIComponent(links[i].href) + '&';
	}
	}
	document.write('<script charset="utf-8" type="text/javascript" src="http://disqus.com/forums/shlomifish/get_num_replies.js' + query + '"></' + 'script>');
})();
//]]>
</script>
</define-tag>

<define-tag disqus_thread>
<div id="disqus_thread"></div><script type="text/javascript" src="http://disqus.com/forums/shlomifish/embed.js"></script><noscript><p><a href="http://shlomifish.disqus.com/?url=ref">View the discussion thread.</a></p></noscript><p><a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a></p>
<br />
<br />
</define-tag>

<latemp_before_main_title>

;;; For the Hebrew layout.
<if "<get-var rtl_layout />" "<hebrew_open_div />" />
</latemp_before_main_title>

<latemp_after_body>
# <if "<get-var disable_disqus />" "" "<disqus_thread />" />
<share_this_button /><br />
# <google_adsense_code_after_text />
;;; For the div class=hebrew.
<if "<get-var rtl_layout />" "</div>" />
{#HEBREW_XML_LANG_SCRIPT#}
# <if "<latemp_mynot "<get-var disable_disqus />" />" "<disqus_javascript />" />
</latemp_after_body>


<define-tag hebrew_div endtag="required">
<hebrew_open_div />
%body
</div>
</define-tag>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.