當前位置: 首頁>>代碼示例>>PHP>>正文


PHP NTemplateHelpers::escapeJs方法代碼示例

本文整理匯總了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
}}
開發者ID:krecek,項目名稱:nrsn,代碼行數:56,代碼來源:_Zavody.prilohy.latte-bf959290bbc114bb178ebe38bdfe3cf1.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>
開發者ID:ssuhss,項目名稱:Begara,代碼行數:31,代碼來源:_Templates.footer.php-c8b08c4517f6aabe5ff7c3ff5d5106cb.php

示例3:

				if(categories[i].value == <?php 
    echo NTemplateHelpers::escapeJs($_GET["categories"]);
    ?>
) {
					var val = categories[i].label.replace(/&amp;/g, "&");
						val = val.replace(/&nbsp;/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(/&amp;/g, "&");
						val = val.replace(/&nbsp;/g, " ");
					locInput.val(val);
				}
			}
<?php 
}
?>

		});
		</script>

	</head>
開發者ID:kivivuori,項目名稱:jotain,代碼行數:31,代碼來源:_Templates.header.php-c7be931652957f2fec5d4f3448c6f6f3.php


注:本文中的NTemplateHelpers::escapeJs方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。