本文整理汇总了PHP中NTemplateHelpers::escapeJs方法的典型用法代码示例。如果您正苦于以下问题:PHP NTemplateHelpers::escapeJs方法的具体用法?PHP NTemplateHelpers::escapeJs怎么用?PHP NTemplateHelpers::escapeJs使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类NTemplateHelpers
的用法示例。
在下文中一共展示了NTemplateHelpers::escapeJs方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
if (!function_exists($_l->blocks['head'][] = '_lb7774bc6c35_head')) { function _lb7774bc6c35_head($_l, $_args) { foreach ($_args as $__k => $__v) $$__k = $__v
?>
<script type="text/javascript">
// Initialize the widget when the DOM is ready
$(document).ready(function() {
// Setup html5 version
$("#uploader").pluploadQueue({
// General settings
runtimes : 'html5,flash,silverlight,html4',
url : '../../upload/<?php echo $id ?>',
chunk_size : '1mb',
rename : true,
dragdrop: true,
filters : {
// Maximum file size
max_file_size : '20mb',
// Specify what files to browse for
mime_types: [
{ title : "Image files", extensions : "jpg,gif,png"},
{ title : "Zip files", extensions : "zip"},
{ title : "Pdf files", extensions : "pdf"},
{ title : "Excel files", extensions : "xls,xlsx,csv"},
{ title : "Word files", extensions : "doc,docx"},
{ title : "Text files", extensions : "txt"},
{ title : "Movie files", extensions : "mov,avi"}
]
},
// // Resize images on clientside if we can
resize: {
width : <?php echo NTemplateHelpers::escapeJs($max_rozmery_obrazku['vyska']) ?>,
height : <?php echo NTemplateHelpers::escapeJs($max_rozmery_obrazku['sirka']) ?>,
quality : 100,
crop: false // crop to exact dimensions
},
// Views to activate
views: {
list: true,
thumbs: true, // Show thumbs
active: 'thumbs'
},
multiple_queues: true,
prevent_duplicates: true,
flash_swf_url : '/js/plupload/Moxie.swf',
silverlight_xap_url : '/js/plupload/Moxie.xap'
});
});
</script>
<?php
}}
示例2: wp_footer
?>
</div>
</aside>
</footer>
<?php
wp_footer();
?>
<?php
if (isset($themeOptions->general->ga_code) && $themeOptions->general->ga_code != "") {
?>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', <?php
echo NTemplateHelpers::escapeJs($themeOptions->general->ga_code);
?>
]);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<?php
}
?>
</div>
示例3:
if(categories[i].value == <?php
echo NTemplateHelpers::escapeJs($_GET["categories"]);
?>
) {
var val = categories[i].label.replace(/&/g, "&");
val = val.replace(/ /g, " ");
catInput.val(val);
}
}
locInputID.val(<?php
echo NTemplateHelpers::escapeJs($_GET["locations"]);
?>
);
for(var i=0;i<locations.length;i++){
if(locations[i].value == <?php
echo NTemplateHelpers::escapeJs($_GET["locations"]);
?>
) {
var val = locations[i].label.replace(/&/g, "&");
val = val.replace(/ /g, " ");
locInput.val(val);
}
}
<?php
}
?>
});
</script>
</head>