Example #1
0
<?php

/**
 * @package zerif
 */
write_sexy_exec_info();
?>

Example #2
0
function write_sexy_program_header($type)
{
    //    die($type);
    $args = array('orderby' => 'date', 'order' => 'ASC', 'post_count' => -1, 'post_type' => 'program', 'tax_query' => array(array('taxonomy' => 'program-type', 'field' => 'slug', 'terms' => array($type))));
    $myposts = get_posts($args);
    //    die($myposts);
    foreach ($myposts as $mypost) {
        $fields = get_post_custom($mypost->ID);
        //                        die($fields['active'] );
        if ($fields['active'][0] == 'Active' && $fields['all'][0] != 1) {
            $description = $fields['program-description'][0];
            $exec = $fields['coordinator-name'][0];
            $message = $fields['coordinator-message'][0];
            $program_title = $fields['title'][0];
            $subtitle = $fields['subtitle'][0];
            //            die(var_dump($fields['coordinator-name'][0]));
            echo ' 
            <div class="about-program"><!-- full width section-->
                <div class="container">
                    <div class="row">
                        <div class="col-md-12 ">
                            <div class="panel-pane pane-block pane-block-6 cbb-home-block cbb-home-block-left">
                                <div class="pane-content">
                                    <div class="program-top-home">
                                        <p class="more-link"><a href = "javascript:void(0)" onclick = "document.getElementById(\'light\').style.display=\'block\';document.getElementById(\'fade\').style.display=\'block\'">Sign Up Now</a></p>
                                        <div class="container"><div class="row clearfix"><div id="light" class="white_content col-xs-8 col-xs-offset-2"><a href = "javascript:void(0)" onclick = "document.getElementById(\'light\').style.display=\'none\';document.getElementById(\'fade\').style.display=\'none\'"><i class="fa fa-times"></i></a>' . get_program_link($type) . '</div></div></div>
                                        <h2>' . $program_title . '</h2>
                                        <p>' . $subtitle . '</p>
                                        <p>' . $description . '</p>
                                    </div>
                                    <div class="program-bottom-home">
                                        <div class="row">
                                            <div class="col-sm-12">
                                                <div class="row">
                                                    <div class="col-sm-4">
                                                        ';
            echo write_sexy_exec_info($fields['coordinator-name'][0]);
            echo '                                        </div>
                                                    <div class="col-sm-8">
                                                        <div class="program-bottom-home-inner-right">
                                                            <h3>Message from the Coordinator</h3>
                                                            <p>' . $message . '</p>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>  
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>';
            break;
        }
    }
}
Example #3
0
<?php

echo '<section class="our-team" id="team">';
echo '<div class="container">';
echo '<div class="section-header">';
$zerif_ourteam_title = get_theme_mod('zerif_ourteam_title', __('EXECUTIVE BOARD', 'zerif-lite'));
if (!empty($zerif_ourteam_title)) {
    echo '<h2 class="dark-text">' . __($zerif_ourteam_title, 'zerif-lite') . '</h2>';
}
$zerif_ourteam_subtitle = get_theme_mod('zerif_ourteam_subtitle', __('Connect with ASA leadership', 'zerif-lite'));
if (!empty($zerif_ourteam_subtitle)) {
    echo '<h6>' . __($zerif_ourteam_subtitle, 'zerif-lite') . '</h6>';
}
echo '</div>';
if (is_active_sidebar('sidebar-ourteam')) {
    echo '<div class="row" data-scrollreveal="enter left after 0s over 0.1s">';
    dynamic_sidebar('sidebar-ourteam');
    echo '</div> ';
} else {
    echo '<div class="row" data-scrollreveal="enter left after 0s over 1.5s">';
    write_sexy_exec_info(null, true);
    echo '</div>';
}
echo '</div>';
echo '</section>';