예제 #1
0
 the_sub_title();
 ?>
         </div>
     </div>
      <div class="col-md-3 col-sm-4">
         <?php 
 do_action('wplms_single_event_messages');
 get_currentuserinfo();
 $check_student = get_post_meta($course, $current_user->ID, true);
 if ($post->post_author == $current_user->ID || current_user_can('manage_options')) {
     if (isset($send_invitation) && $send_invitation) {
         echo '<a href="#" id="send_event_invitation" class="button full" data-course="' . $course . '" data-event-id="' . get_The_ID() . '">' . __('RE-INVITE STUDENTS', 'vibe') . '<span>' . $send_invitation . '</span></a>';
     } else {
         echo '<a href="#" id="send_event_invitation" class="button full" data-course="' . $course . '" data-event-id="' . get_The_ID() . '">' . __('SEND INVITATION', 'vibe') . '</a>';
     }
     echo '<a href="#" id="send_event_reminder" class="button full" data-course="' . $course . '" data-event-id="' . get_The_ID() . '">' . __('SEND EMAIL REMINDER', 'vibe') . '</a>';
     // INVITATION FORM
     echo '<form method="post" id="invitation_form"><div class="invitation_box">
                 <input type="text" class="form_field" name="invitation_subject" placeholder="' . __('SUBJECT', 'vibe') . '" />
                 <textarea class="form_field" name="invitation_message">' . __('INVITATION MESSAGE', 'vibe') . '</textarea>
                 </div>';
     wp_nonce_field('vibe' . $course_id, 'security');
     echo '<input type="submit" name="send_invitations" class="button primary" value="' . __('SEND INVITATIONS', 'vibe') . '" /></form>';
     // REMINDER FORM
     echo '<form method="post" id="reminder_form"><div class="reminder_box">
                 <input type="text" class="form_field" name="reminder_subject" placeholder="' . __('SUBJECT', 'vibe') . '" />
                 <textarea class="form_field" name="reminder_message">' . __('REMINDER MESSAGE', 'vibe') . '</textarea>
                 </div>';
     wp_nonce_field('vibe' . $course_id, 'security');
     echo '<input type="submit" name="send_reminder" class="button primary" value="' . __('SEND REMINDER', 'vibe') . '" />
             <p>' . __('Reminders are emails sent to Students who have accepted the Event invitation.', 'vibe') . '</p></form>';
예제 #2
0
 function catch_vars()
 {
     global $bp, $wp_query;
     if (!class_exists('Vibe_CustomTypes_Permalinks')) {
         return;
     }
     $permalinks = Vibe_CustomTypes_Permalinks::init();
     if ($bp->unfiltered_uri[0] == trim($permalinks->permalinks['course_base'], '/') || $bp->unfiltered_uri[0] == BP_COURSE_SLUG) {
         $drive_slug = $this->permalinks['drive_slug'] ? $this->permalinks['drive_slug'] : 'drive';
         $drive_slug = str_replace('/', '', $drive_slug);
         if (get_query_var($drive_slug)) {
             $bp->current_component = BP_COURSE_CPT;
             $bp->current_item = get_The_ID();
             $bp->current_action = 'drive';
             add_action('bp_course_plugin_template_content', array($this, 'course_drive'));
             do_action('buddydrive_enqueue_scripts');
             vibe_load_template('course/single/plugins');
             exit;
         }
     }
 }
예제 #3
0
 function catch_vars()
 {
     global $bp, $wp_query;
     if (empty($this->permalinks)) {
         $this->permalinks = get_option('vibe_course_permalinks');
     }
     if (!empty($this->permalinks)) {
         if ($bp->unfiltered_uri[0] == $this->permalinks['course_base'] || $bp->unfiltered_uri[0] == BP_COURSE_SLUG) {
             foreach ($this->permalinks as $key => $item) {
                 $item = str_replace('/', '', $item);
                 if (get_query_var($item) && in_array($key, $this->end_points)) {
                     $bp->current_component = BP_COURSE_SLUG;
                     $bp->current_item = get_The_ID();
                     $bp->current_action = str_replace('_slug', '', $key);
                 }
             }
             //add_filter( 'wp_title', array($this, 'course_title'), 20);
             bp_get_template_part('course/single/home');
             exit;
         }
     }
 }
예제 #4
0
파일: template-blog.php 프로젝트: zruiz/NG
if ($layout == 0) {
    ?>
            	<ul class="grid-holder col-<?php 
    echo esc_attr($column);
    ?>
 posts-grid">
                <?php 
    $post_listing = new WP_Query($args_post);
    if ($post_listing->have_posts()) {
        while ($post_listing->have_posts()) {
            $post_listing->the_post();
            ?>
              		<li class="grid-item post format-standard">
                		<div class="grid-item-inner">
                        <?php 
            if (has_post_thumbnail(get_The_ID())) {
                ?>
                        	<a href="<?php 
                echo esc_url(get_permalink(get_the_ID()));
                ?>
" class="media-box"><?php 
                the_post_thumbnail('600x400');
                ?>
</a><?php 
            }
            ?>
                  			<div class="grid-content">
                                <div class="post-actions">
                                    <div class="post-date"><?php 
            echo esc_attr(date_i18n(get_option('date_format')));
            ?>
예제 #5
0
 function catch_vars()
 {
     global $bp, $wp_query;
     if (empty($this->permalinks)) {
         $this->permalinks = get_option('vibe_course_permalinks');
     }
     if ($bp->unfiltered_uri[0] == $this->permalinks['course_base'] || $bp->unfiltered_uri[0] == BP_COURSE_SLUG) {
         $events_slug = $this->permalinks['events_slug'] ? $this->permalinks['events_slug'] : 'events';
         $events_slug = str_replace('/', '', $events_slug);
         if (get_query_var($events_slug)) {
             $bp->current_component = BP_COURSE_SLUG;
             $bp->current_item = get_The_ID();
             $bp->current_action = 'events';
             add_action('bp_course_plugin_template_content', array($this, 'eventon_calendar'));
             bp_get_template_part('course/single/plugins');
             exit;
         }
     }
 }