コード例 #1
0
ファイル: loop-job.php プロジェクト: besimhu/legacy
?>

<?php 
if (have_posts()) {
    $alt = 1;
    ?>

    <ol class="jobs">

        <?php 
    while (have_posts()) {
        the_post();
        ?>
		
			<?php 
        appthemes_before_post('job_listing');
        ?>

            <?php 
        global $featured_job_cat_id;
        $post_class = array('job');
        $expired = jr_check_expired($post);
        if ($expired) {
            $post_class[] = 'job-expired';
            $action = get_option('jr_expired_action');
            if ($action == 'hide') {
                continue;
            }
        }
        $alt = $alt * -1;
        if ($alt == 1) {
コード例 #2
0
ファイル: loop-resume.php プロジェクト: besimhu/legacy
?>

<?php 
if (have_posts()) {
    $alt = 1;
    ?>

    <ol class="resumes">

        <?php 
    while (have_posts()) {
        the_post();
        ?>
		
			<?php 
        appthemes_before_post('resume');
        ?>

            <li class="resume" title="<?php 
        echo htmlspecialchars(jr_seeker_prefs(get_the_author_meta('ID')), ENT_QUOTES);
        ?>
">

                <dl>

					<?php 
        appthemes_before_post_title('resume');
        ?>
					
                    <dt><?php 
        _e('Resume title', 'appthemes');
コード例 #3
0
	<?php 
appthemes_before_loop();
?>

	<?php 
if (have_posts()) {
    ?>

	    <?php 
    while (have_posts()) {
        the_post();
        ?>

	        <?php 
        appthemes_before_post();
        ?>
			
			<?php 
        $display = '<div class="post-block-out">';
        global $displaytype;
        if (isset($displaytype)) {
            switch ($displaytype) {
                case 'feature':
                    if (is_sticky($post_ID) == true) {
                        $display = '<div class="post-block-out">';
                    } else {
                        $display = '<div class="hide">';
                    }
                    break;
                case 'premium':
コード例 #4
0
ファイル: featured.php プロジェクト: kalushta/darom
				<div class="sliderwrap">

					<div class="dashicons-before prev"></div>
					<div class="dashicons-before next"></div>

					<div class="slider">

						<ul>

							<?php 
        while ($featured->have_posts()) {
            $featured->the_post();
            ?>

								<?php 
            appthemes_before_post('featured');
            ?>

								<?php 
            get_template_part('content-slider', get_post_type());
            ?>

								<?php 
            appthemes_after_post('featured');
            ?>

							<?php 
        }
        ?>

							<?php