Skip to content

Instantly share code, notes, and snippets.

/* Default Form Values */
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}('(3(7){7.D.B({5:3(o,h){s l.C(3(){g $2=$(l),5=o||$2.6(\'z\'),i={\'2\':$2};9($2.6(\'v\')==\'w\'){m()}j{n()}3 m(){g $8=p();i.8=$8;$8.y($2);$2.f();$2.k(3(){9($2.4().c<=0){$8.r();$2.f()}})}3 n(){b();$2.J(3(){9($2.4().c>0){b()}}).k(b).e(3(){$2.4()==5&&$2.4(\'\')});$2.I("F").G(3(){$2.4()==5&&$2.4(\'\')})}3 b(){4=7.L($2.4());9(4.c<=0||4==5){$2.4(5);$2.E(\'d\')}j{$2.K(\'d\')}}3 p(){g $a=7("<2 />").6({\'v\':\'H\',\'A\':5,\'t\':$2.6(\'t\')+\' d\',\'u\':$2.6(\'u\'),\'q\':$2.6(\'q\')});$a.e(3(){$a.f();$2.r();x(3(){$2.e()},1)});s $a}9(h){h(i)}})}})})(7);',48,48,'||input|function|val|defaultValue|attr|jQuery|clone|if|el|setState|length|empty|focus|hide|var|callback|callbackAr
elseif(!isset($info['file'])) {
foreach( FLang::instance()->ld()->languageCodes() as $language_code ){
if(isset($info['file-'.$language_code])) {
$value = '<a href="'.$symphonySubdir.'/workspace'.$info['file-'.$language_code].'">';
$value = '<a href="/workspace'.$info['file-'.$language_code].'">';
$a = explode('.', $info['file']);
$ext = trim(strtolower($a[count($a)-1]));
// Check if JIT is enabled:
$('#header ul li a').click(function (){
var anchor = $(this).attr('href');
$('html, body').animate({scrollTop: $(anchor).offset().top}, 300, 'easeInOutCirc');
return false;
});
$(window).scroll(function(){
$('body').removeClass('sticky');
if ($(window).scrollTop() >= 180){
$('body').addClass('sticky');
}
/*$('#header ul li a').removeClass('current').each(function(index) {
var section = $(this).attr('href');
if ($(window).scrollTop() >= $(section).offset().top) {
$('#header ul li a').removeClass('current');
$('#header ul li a[href='+section+']').addClass('current');
/* About */
$("ul.navigation li a[href='#about']").fancybox({
'overlayColor' : '#000',
'overlayOpacity' : 0.5,
'titleShow' : false,
'padding' : 0,
'scrolling' : 'no',
'onStart' : function() {
$("html,body").animate({scrollTop:0}, 100, "easeInCirc");
}
<ul>
{%for item in post.images%}
<li{% if forloop.index == {{post.mobile}} %} class="mobile"{% endif %}>
<img src="/media/images/projects/{{item}}" alt="{% for item in post.alt %}{{item}}{% endfor %}" width="800" height="500" />
</li>
{% endfor %}
</ul>
<body>
<xsl:choose>
<xsl:when test="$current-page 'handle-of-page-name'">
<xsl:attribute name="class">some-class</xsl:attribute>
</xsl:when>
<xsl:when test="$current-page 'handle-of-page-name'">
<xsl:attribute name="class">some-class</xsl:attribute>
</xsl:when>
<xsl:when test="$current-page 'handle-of-page-name'">
<xsl:attribute name="class">some-class</xsl:attribute>
$(document).ready(function() {
$(".page").css('height', 'Xpx');
});
<xsl:with-param name="url" select="'/recipes/search-results/$/?search-category={$url-search-category}&amp;search-meal-time={$url-search-meal-time}&amp;search-meal-type={$url-search-meal-type}&amp;search-diet-restrictions={$url-search-diet-restrictions}&amp;search-button=Search'"/>
<xsl:output method="xml"
doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
omit-xml-declaration="yes"
encoding="UTF-8"
indent="yes" />