wordpress/wp-content/plugins/cms-tree-page-view/functions.php
/**
 * Output and add hooks in head
 */
Output and add hooks in head
Output and add hooks in head
function cms_tpv_admin_head() {
	if (!cms_tpv_is_one_of_our_pages()) return;
	cms_tpv_setup_postsoverview();
	global $cms_tpv_view;
	if (isset($_GET["cms_tpv_view"])) {
		$cms_tpv_view = htmlspecialchars($_GET["cms_tpv_view"]);
	} else {
		$cms_tpv_view = "all";
	}
	?>
	<script type="text/javascript">
		/* <![CDATA[ */
		var CMS_TPV_URL = "<?php echo CMS_TPV_URL ?>";
		var CMS_TPV_AJAXURL = "action=cms_tpv_get_childs&view=";
		CMS_TPV_AJAXURL = ((window.ajaxurl.indexOf("admin-ajax.php?") !== -1) ? "&" : "?") + CMS_TPV_AJAXURL;
		var CMS_TPV_VIEW = <?php echo wp_json_encode($cms_tpv_view); ?>
		?>";
		var CMS_TPV_CAN_DND = "dnd";
		var cms_tpv_jsondata = {};
		var CMS_TPV_NONCE = <?php echo wp_json_encode(wp_create_nonce('cms-tpv-ajax')) ?>
		/* ]]> */
	</script>
	<!--[if IE 6]>
		<style>
			.cms_tree_view_search_form {
				display: none !important;
			}
			.cms_tpv_dashboard_widget .subsubsub li {
			}
		</style>
	<![endif]-->
	<?php
}
function cms_tpv_admin_head ( ) { if ( ! cms_tpv_is_one_of_our_pages ( ) ) return ; cms_tpv_setup_postsoverview ( ) ; global $ cms_tpv_view ; if ( isset ( $ _GET [ " cms_tpv_view " ] ) ) { $ cms_tpv_view = htmlspecialchars ( $ _GET [ " cms_tpv_view " ] ) ; } else { $ cms_tpv_view = " all " ; } ?> <script type="text/javascript">
		/* <![CDATA[ */
		var CMS_TPV_URL = " <?php echo CMS_TPV_URL ?> ";
		var CMS_TPV_AJAXURL = "action=cms_tpv_get_childs&view=";
		CMS_TPV_AJAXURL = ((window.ajaxurl.indexOf("admin-ajax.php?") !== -1) ? "&" : "?") + CMS_TPV_AJAXURL;
		var CMS_TPV_VIEW =  <?php echo wp_json_encode ( $ cms_tpv_view ) ; ?> ?>";
		var CMS_TPV_CAN_DND = "dnd";
		var cms_tpv_jsondata = {};
		var CMS_TPV_NONCE =  <?php echo wp_json_encode ( wp_create_nonce ( 'cms-tpv-ajax' ) ) ?> /* ]]> */
	</script>

	<!--[if IE 6]>
		<style>
			.cms_tree_view_search_form {
				display: none !important;
			}
			.cms_tpv_dashboard_widget .subsubsub li {
			}
		</style>
	<![endif]-->
	 <?php }
Output and add hooks in head
Output and add hooks in head
//var CMS_TPV_CAN_DND = "<?php echo current_user_can( CMS_TPV_MOVE_PERMISSION ) ? "dnd" : "" 