コード例 #1
0
<?php 
}
if (is_page_template('template-program-people.php')) {
    ?>
  	<script defer src="<?php 
    echo get_template_directory_uri();
    ?>
/assets/js/vendor/page.directory.min.js"></script>
<?php 
}
$about_id = ksas_get_page_id('about');
$archive_id = ksas_get_page_id('archive');
$people_id = ksas_get_page_id('people');
$faculty_id = ksas_get_page_id('faculty');
$undergraduate_id = ksas_get_page_id('undergraduate');
$testimonial_id = ksas_get_page_id('testimonial');
if (is_singular('post')) {
    ?>
	<script defer>
		var $j = jQuery.noConflict();
		$j(document).ready(function(){
			$j('li.page-id-<?php 
    echo $about_id;
    ?>
').addClass('current_page_ancestor');
			$j('li.page-id-<?php 
    echo $archive_id;
    ?>
').addClass('current_page_parent');
			});
	</script>
コード例 #2
0
    echo $academics_id;
    ?>
').addClass('current_page_ancestor');
				$k('li.page-id-<?php 
    echo $fields_id;
    ?>
').addClass('current_page_parent');
				});
		</script>
	<?php 
}
?>
	<?php 
if (is_category('newsletter')) {
    $about_id = ksas_get_page_id('about');
    $newsletter_id = ksas_get_page_id('dean-newsletter');
    ?>
		<script>
			var $k = jQuery.noConflict();
			$k(document).ready(function(){
				$k('li.page-id-<?php 
    echo $about_id;
    ?>
').addClass('current_page_ancestor');
				$k('li.page-id-<?php 
    echo $newsletter_id;
    ?>
').addClass('current_page_parent');
				});
		</script>
	<?php