%PDF- %PDF-
Direktori : /home1/dimen328/libertysa.com.br/admin/modules/blog/app/views/pjLoad/ |
Current File : //home1/dimen328/libertysa.com.br/admin/modules/blog/app/views/pjLoad/pjActionIndex.php |
<?php switch ($tpl['option_arr']['o_layout']) { case 'layout_1': include_once PJ_VIEWS_PATH . 'pjLoad/elements/layout_1/index.php'; break; case 'layout_2': include_once PJ_VIEWS_PATH . 'pjLoad/elements/layout_2/index.php'; break; case 'layout_3': include_once PJ_VIEWS_PATH . 'pjLoad/elements/layout_3/index.php'; break; default: include_once PJ_VIEWS_PATH . 'pjLoad/elements/layout_1/index.php'; break; } ?> <script type="text/javascript"> var pjQ = pjQ || {}, StivaBlog; (function () { "use strict"; var loadRemote = function(url, type, callback) { var _element, _type, _attr, scr, s, element; switch (type) { case 'css': _element = "link"; _type = "text/css"; _attr = "href"; break; case 'js': _element = "script"; _type = "text/javascript"; _attr = "src"; break; } scr = document.getElementsByTagName(_element); s = scr[scr.length - 1]; element = document.createElement(_element); element.type = _type; if (type == "css") { element.rel = "stylesheet"; } if (element.readyState) { element.onreadystatechange = function () { if (element.readyState == "loaded" || element.readyState == "complete") { element.onreadystatechange = null; callback(); } }; } else { element.onload = function () { callback(); }; } element[_attr] = url; s.parentNode.insertBefore(element, s.nextSibling); }, loadScript = function (url, callback) { loadRemote(url, "js", callback); }, loadCss = function (url, callback) { loadRemote(url, "css", callback); }; var STBObj = { server: "<?php echo PJ_INSTALL_URL; ?>", folder: "<?php echo PJ_INSTALL_FOLDER; ?>", show_category: "<?php echo $tpl['option_arr']['o_show_category'];?>", already_voted: "<?php __('label_already_voted', false, true);?>", thank_vote: "<?php __('label_thank_vote', false, true);?>" }; loadScript("<?php echo PJ_INSTALL_URL . PJ_LIBS_PATH; ?>pjQ/pjQuery.min.js", function () { loadScript("<?php echo PJ_INSTALL_URL . PJ_LIBS_PATH; ?>pjQ/pjQuery.validate.min.js", function () { loadScript("<?php echo PJ_INSTALL_URL . PJ_LIBS_PATH; ?>pjQ/pjQuery.additional-methods.min.js", function () { loadScript("<?php echo PJ_INSTALL_URL . PJ_LIBS_PATH; ?>pjQ/pjQuery-ui-1.9.2.custom.min.js", function () { loadScript("<?php echo PJ_INSTALL_URL . PJ_LIBS_PATH; ?>pjQ/pjQuery-ui.stars.min.js", function () { loadScript("<?php echo PJ_INSTALL_URL . PJ_LIBS_PATH; ?>pjQ/pjQuery.ResizeSensor.js", function () { loadScript("<?php echo PJ_INSTALL_URL . PJ_JS_PATH; ?>pjLoad.js", function () { StivaBlog = new StivaBlog(STBObj); }); }); }); }); }); }); }); })(); </script>