コード例 #1
0
function exclusive_news_page()
{
    global $exclusive_general_settings_page, $post, $exclusive_meta;
    foreach ($exclusive_general_settings_page->options_generalsettings as $value) {
        if (get_theme_mod($value['id']) === FALSE) {
            ${$value}['var_name'] = $value['std'];
        } else {
            ${$value}['var_name'] = get_theme_mod($value['id']);
        }
    }
    ?>
             <div class="entry">	
							<?php 
    if (!isset($exclusive_meta['showthumb'])) {
        if ($grab_image) {
            echo exclusive_display_thumbnail(220, 220);
        } else {
            echo exclusive_thumbnail(220, 220);
        }
    } else {
        if ($exclusive_meta['showthumb'] != "on") {
            if ($grab_image) {
                echo display_thumbnail(220, 220);
            } else {
                echo _thumbnail(220, 220);
            }
        }
    }
    if ($blog_style) {
        the_content(__('More', 'wd_exclusive'));
    } else {
        the_excerpt();
    }
    ?>

		   </div>
<?php 
}
コード例 #2
0
                        $course_public = ($course['visibility'] == COURSE_VISIBILITY_OPEN_WORLD);
                        $course_open = ($course['visibility'] == COURSE_VISIBILITY_OPEN_PLATFORM);
                        $course_private = ($course['visibility'] == COURSE_VISIBILITY_REGISTERED);
                        $course_closed = ($course['visibility'] == COURSE_VISIBILITY_CLOSED);
                        $course_subscribe_allowed = ($course['subscribe'] == 1);
                        $course_unsubscribe_allowed = ($course['unsubscribe'] == 1);
                        $count_connections = $course['count_connections'];
                        $creation_date = substr($course['creation_date'],0,10);

                        $icon_title = null;

                        // display the course bloc
                        echo '<div class="well_border"><div class="row">';

                        // display thumbnail
                        display_thumbnail($course, $icon_title);

                        // display course title and button bloc
                        echo '<div class="span4">';
                        display_title($course);
                        // display button line
                        echo '<div class="btn-toolbar">';
                        // if user registered as student
                        if ($user_registerd_in_course_as_student) {
                            if (!$course_closed) {
                                display_description_button($course, $icon_title);
                                display_goto_button($course);
                                if ($course_unsubscribe_allowed) {
                                    display_unregister_button($course, $stok, $search_term, $code);
                                }
                                display_already_registered_label('student');