srchub-old

srchub-old Commit Details


Date:2014-12-03 22:45:00 (10 years 18 days ago)
Author:Natalie Adams
Branch:default
Commit:23012f799d08
Parents: 5c2b18c35bc6
Message:Adding syntax highlighter to base.html

Pre fix for issue 53
Fixing issue 60
Changes:
Mindefero/src/IDF/templates/idf/base.html (2 diffs)
Mpluf/src/Pluf/HTTP/URL.php (1 diff)
Mpluf/src/Pluf/Translation.php (1 diff)

File differences

indefero/src/IDF/templates/idf/base.html
8282
8383
8484
85
8586
8687
8788
......
208209
209210
210211
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
211240
212241
213242
<h1 class="title" id="title">{block titleicon}{/block}{block title}{$page_title}{/block}</h1>
<br/>
</div>
<div id="bd">
<div id="yui-main">
<div class="yui-b">
});
function lineWrap(){
var wrap = function () {
var elems = document.getElementsByClassName('syntaxhighlighter');
for (var j = 0; j < elems.length; ++j) {
var sh = elems[j];
var gLines = sh.getElementsByClassName('gutter')[0].getElementsByClassName('line');
var cLines = sh.getElementsByClassName('code')[0].getElementsByClassName('line');
var stand = 15;
for (var i = 0; i < gLines.length; ++i) {
var h = $(cLines[i]).height();
if (h != stand) {
console.log(i);
gLines[i].setAttribute('style', 'height: ' + h + 'px !important;');
}
}
}
};
var whenReady = function () {
if ($('.syntaxhighlighter').length === 0) {
setTimeout(whenReady, 800);
} else {
wrap();
}
};
whenReady();
};
lineWrap();
$(window).resize(function(){lineWrap()});
{/literal}
</script>
pluf/src/Pluf/HTTP/URL.php
6262
6363
6464
65
66
65
66
6767
6868
6969
if (isset($_GET['_pluf_action'])) {
return $_GET['_pluf_action'];
}
return (isset($_SERVER['PATH_INFO'])) ?
$_SERVER['PATH_INFO'] : '/';
return (isset($_SERVER['REDIRECT_URL'])) ?
$_SERVER['REDIRECT_URL'] : '/';
}
}
pluf/src/Pluf/Translation.php
7070
7171
7272
73
73
7474
7575
7676
public static function getLocale()
{
return $GLOBALS['_PX_current_locale'];
return (isset($GLOBALS['_PX_current_locale'])) ? $GLOBALS['_PX_current_locale'] : "en";
}
/**

Archive Download the corresponding diff file

Branches

Tags

Page rendered in 0.42977s using 21 queries.