Ejemplo n.º 1
0
" class="media-box">
                                        <?php 
            the_post_thumbnail('600x400', array('class' => "img-thumbnail"));
            ?>
                                    </a>
                                </div>
                                <?php 
        }
        ?>
                                <div class="<?php 
        echo $class;
        ?>
">
                                	<div class="page-content">
                                    <?php 
        echo imic_excerpt(100);
        ?>
                                    </div>
                                    <p><a href="<?php 
        the_permalink();
        ?>
" class="btn btn-primary"><?php 
        _e('Continue reading ', 'framework');
        ?>
 <i class="fa fa-long-arrow-right"></i></a></p>
                                </div>
                            </div>
                        </div>
                    </article>
          <?php 
    }
</a>
                                    </div>
                                    <div class="col-md-7">
                                    	<h3><a href="<?php 
        echo esc_url(get_permalink(get_the_ID()));
        ?>
"><?php 
        the_title();
        ?>
</a></h3>
                                        <span class="meta-data"><i class="fa fa-calendar"></i> <?php 
        echo esc_html(get_the_date(get_option('date_format'), get_the_ID()));
        ?>
</span>
                                        <?php 
        echo imic_excerpt(15);
        ?>
                                    </div>
                                </div>
                            </li>
                        <?php 
    }
}
?>
                        </ul>
                        <?php 
imic_pagination();
?>
                    </div>
                    <?php 
if (is_active_sidebar($pageSidebar)) {
Ejemplo n.º 3
0
 if (has_post_thumbnail()) {
     echo '<div class="media-box"><a href="' . get_permalink(get_the_ID()) . '">';
     echo get_the_post_thumbnail(get_the_ID(), '600x400');
     echo '</a></div>';
 }
 $job_title = get_post_meta(get_the_ID(), 'imic_staff_job_title', true);
 $job = '';
 if (!empty($job_title)) {
     $job = '<div class="meta-data">' . $job_title . '</div>';
 }
 echo '<div class="grid-content">
                            <h3> <a href="' . get_permalink(get_the_ID()) . '">' . get_the_title() . '</a></h3>';
 echo $job;
 $staff_icons = get_post_meta(get_the_ID(), 'imic_social_icon_list', false);
 echo imic_social_staff_icon();
 $description = imic_excerpt($excerpt_length);
 if ($excerpt_length != 0) {
     echo '<div class="page-content">';
     if (!empty($description)) {
         echo $description;
     }
     echo '</div>';
 }
 if ($excerpt_length != 0) {
     $staff_read_more_text = $imic_options['staff_read_more_text'];
     if ($imic_options['switch_staff_read_more'] == 1 && $imic_options['staff_read_more'] == '0') {
         echo '<p><a href="' . get_permalink() . '" class="btn btn-default">' . $staff_read_more_text . '</a></p>';
     } elseif ($imic_options['switch_staff_read_more'] == 1 && $imic_options['staff_read_more'] == '1') {
         echo '<p><a href="' . get_permalink() . '">' . $staff_read_more_text . '</a></p>';
     }
 }
Ejemplo n.º 4
0
function imic_testimonial($atts, $content = null)
{
    extract(shortcode_atts(array("title" => "", "number" => "", "type" => ""), $atts));
    global $imic_options;
    $output = '';
    if (is_plugin_active("imithemes-listing/listing.php")) {
        if ($type == 1) {
            $class = "carousel-wrapper";
            $item = 2;
        } else {
            $class = "carousel-wrapper testimonials-wbg accent-bg sm-margint";
            $item = 1;
        }
        $args_testimonial = array('post_type' => 'testimonial', 'posts_per_page' => $number);
        if (isset($imic_options['enable_rtl']) && $imic_options['enable_rtl'] == 1) {
            $DIR = 'data-rtl="rtl"';
        } else {
            $DIR = 'data-rtl="ltr"';
        }
        if ($type == 1) {
            $output .= '<header>
                        	<h3>' . $title . '</h3>
                        </header><div class="spacer-40"></div>';
        }
        $output .= '<div class="' . $class . '">
                            <div class="row">
                                <ul class="owl-carousel carousel-fw" id="testimonials-slider" data-columns="' . $item . '" data-pagination="yes" data-arrows="no" data-single-item="no" data-items-desktop="' . $item . '" data-items-desktop-small="' . $item . '" data-items-tablet="' . $item . '" data-items-mobile="1" ' . $DIR . '>';
        $testimonial_listing = new WP_Query($args_testimonial);
        if ($testimonial_listing->have_posts()) {
            while ($testimonial_listing->have_posts()) {
                $testimonial_listing->the_post();
                $company = get_post_meta(get_the_ID(), 'imic_company_name', true);
                $company_url = get_post_meta(get_the_ID(), 'imic_company_url', true);
                $output .= '<li class="item">
                                        <div class="testimonial-block">
                                            <blockquote>
                                                ' . imic_excerpt(15) . '
                                            </blockquote>';
                if (has_post_thumbnail()) {
                    $thumb = wp_get_attachment_image_src(get_post_thumbnail_id(get_the_ID()), '100x100');
                    $output .= '<div class="testimonial-avatar"><img src="' . $thumb[0] . '" width="60" height="60"></div>';
                }
                $output .= '<div class="testimonial-info">
                                                <div class="testimonial-info-in">
                                                    <strong>' . get_the_title() . '</strong>';
                if ($company_url != '') {
                    $output .= '<span><a href="' . $company_url . '">' . $company . '</a></span>';
                } else {
                    $output .= '<span>' . $company . '</span>';
                }
                $output .= '</div>
                                            </div>
                                        </div>
                                    </li>';
            }
        }
        $output .= '</ul></div></div>';
        wp_reset_postdata();
    }
    return $output;
}
Ejemplo n.º 5
0
function imic_event($atts, $content = null)
{
    extract(shortcode_atts(array("number" => 10, "title" => "", "category" => "", "style" => "", "type" => ""), $atts));
    $output = '';
    $number = $number == '' ? 10 : $number;
    if ($type == 'future') {
        $future_events = imic_recur_events("future", "", $category, "");
        $google_events = getGoogleEvent();
        $events = $future_events + $google_events;
        ksort($events);
    } else {
        $events = imic_recur_events("past", "", $category, "");
        krsort($events);
    }
    if ($style == "list") {
        $count = 1;
        $output .= '<div class="listing events-listing">
	<header class="listing-header">
            	<div class="row">
                	<div class="col-md-12 col-sm-12">
          				<h3>' . esc_attr($title) . '</h3>
                  </div>
							</div>
							</header>';
        $output .= '<section class="listing-cont">
              <ul>';
        if (!empty($events)) {
            foreach ($events as $key => $value) {
                if (preg_match('/^[0-9]+$/', $value)) {
                    $eventStartTime = strtotime(get_post_meta($value, 'imic_event_start_tm', true));
                    $eventStartDate = strtotime(get_post_meta($value, 'imic_event_start_dt', true));
                    $eventEndTime = strtotime(get_post_meta($value, 'imic_event_end_tm', true));
                    $eventEndDate = strtotime(get_post_meta($value, 'imic_event_end_dt', true));
                    $evstendtime = $eventStartTime . '|' . $eventEndTime;
                    $evstenddate = $eventStartDate . '|' . $eventEndDate;
                    $date_converted = date('Y-m-d', $key);
                    $custom_event_url = imic_query_arg($date_converted, $value);
                    $event_dt_out = imic_get_event_timeformate($evstendtime, $evstenddate, $value, $key);
                    $event_dt_out = explode('BR', $event_dt_out);
                    if ($eventStartTime != '') {
                        $eventStartTime = date(get_option('time_format'), $eventStartTime);
                    }
                    $custom_event_url = imic_query_arg($date_converted, $value);
                    $event_title = get_the_title($value);
                    $stime = '';
                    if ($eventStartTime != '') {
                        $stime = ' | ' . $eventStartTime;
                    }
                } else {
                    $google_data = explode('!', $value);
                    $event_title = $google_data[0];
                    $custom_event_url = $google_data[1];
                    $options = get_option('imic_options');
                    $eventTime = $key;
                    if ($eventTime != '') {
                        $eventTime = date_i18n(get_option('time_format'), $key);
                    }
                    $eventEndTime = $google_data[2];
                    if ($eventEndTime != '') {
                        $eventEndTime = ' - ' . date_i18n(get_option('time_format'), strtotime($eventEndTime));
                    }
                    $eventAddress = $google_data[3];
                    $event_dt_out = imic_get_event_timeformate($key . '|' . strtotime($google_data[2]), $key . '|' . $key, $value, $key);
                    $event_dt_out = explode('BR', $event_dt_out);
                }
                $output .= '<li class="item event-item">	
             			<div class="event-date"> 
										<span class="date">' . date_i18n('d', $key) . '</span>
                       <span class="month">' . imic_global_month_name($key) . '</span>
									</div>
                	<div class="event-detail">
            				<h4>
                			<a href="' . $custom_event_url . '">
					   ' . $event_title . ' </a>' . imicRecurrenceIcon($value) . '
                 		</h4>
                  	<span class="event-dayntime meta-data">
					   				' . $event_dt_out[1] . ',&nbsp;&nbsp;' . $event_dt_out[0] . '</span> 
									</div>
                	<div class="to-event-url">
              	<div>
								<a href="' . $custom_event_url . '" class="btn btn-default btn-sm">' . __('Details', 'framework') . '</a></div>
                      </div>
                    </li>';
                if ($count++ >= $number) {
                    break;
                }
            }
        }
        $output .= '</ul>
				</section></div>';
    } else {
        $output .= '<header class="listing-header">
            	<div class="row">
                	<div class="col-md-12 col-sm-12">
          				<h3>' . esc_attr($title) . '</h3>
                  </div>
							</div>
							</header>';
        $output .= '<div class="container"><div class="row">';
        $output .= '<ul class="grid-holder col-3 events-grid">';
        $paged = get_query_var('paged') ? get_query_var('paged') : 1;
        $count = 1;
        $grid_item = 1;
        $perPage = get_option('posts_per_page');
        $paginate = 1;
        if ($paged > 1) {
            $paginate = ($paged - 1) * $perPage;
            $paginate = $paginate + 1;
        }
        $TotalEvents = count($events);
        if ($TotalEvents % $perPage == 0) {
            $TotalPages = $TotalEvents / $perPage;
        } else {
            $TotalPages = $TotalEvents / $perPage;
            $TotalPages = $TotalPages + 1;
        }
        foreach ($events as $key => $value) {
            if (preg_match('/^[0-9]+$/', $value)) {
                $google_flag = 1;
            } else {
                $google_flag = 2;
            }
            if ($google_flag == 1) {
                setup_postdata(get_post($value));
                $eventStartTime = strtotime(get_post_meta($value, 'imic_event_start_tm', true));
                $eventStartDate = strtotime(get_post_meta($value, 'imic_event_start_dt', true));
                $eventEndTime = strtotime(get_post_meta($value, 'imic_event_end_tm', true));
                $eventEndDate = strtotime(get_post_meta($value, 'imic_event_end_dt', true));
                $event_dt_out = imic_get_event_timeformate($eventStartTime . '|' . $eventEndTime, $eventStartDate . '|' . $eventEndDate, $value, $key);
                $event_dt_out = explode('BR', $event_dt_out);
                $registration_status = get_post_meta($value, 'imic_event_registration_status', true);
                /** Event Details Manage **/
                if ($registration_status == 1 && function_exists('imic_get_currency_symbol')) {
                    $eventDetailIcons = array('fa-calendar', 'fa-clock-o', 'fa-map-marker', 'fa-money');
                } else {
                    $eventDetailIcons = array('fa-calendar', 'fa-clock-o', 'fa-map-marker');
                }
                $stime = "";
                $etime = "";
                if ($eventStartTime != '') {
                    $stime = ' | ' . date_i18n(get_option('time_format'), $eventStartTime);
                }
                if ($eventEndTime != '') {
                    $etime = ' - ' . date_i18n(get_option('time_format'), $eventEndTime);
                }
                if ($registration_status == 1 && function_exists('imic_get_currency_symbol')) {
                    $event_registration_fee = get_post_meta($value, 'imic_event_registration_fee', true);
                    $registration_charge = $event_registration_fee == '' ? 'Free' : imic_get_currency_symbol(get_option('paypal_currency_options')) . get_post_meta($value, 'imic_event_registration_fee', true);
                    $eventDetailsData = array($event_dt_out[1], $event_dt_out[0], get_post_meta($value, 'imic_event_address', true), $registration_charge);
                    /*
                    $eventDetailsData = array(date_i18n('j M, ',$key).date_i18n('l',$key). $stime .  $etime, get_post_meta($value,'imic_event_address',true),$registration_charge);
                    */
                } else {
                    /*$eventDetailsData = array(date_i18n('j M, ',$key).date_i18n('l',$key). $stime .  $etime, get_post_meta($value,'imic_event_address',true));*/
                    $eventDetailsData = array($event_dt_out[1], $event_dt_out[0], get_post_meta($value, 'imic_event_address', true));
                }
                $eventValues = array_filter($eventDetailsData, 'strlen');
            }
            if ($count == $paginate && $grid_item <= $perPage) {
                $paginate++;
                $grid_item++;
                if ($google_flag == 1) {
                    $frequency = get_post_meta($value, 'imic_event_frequency', true);
                }
                //if ('' != get_the_post_thumbnail($value)) {
                $output .= '<li class="grid-item format-standard">';
                if ($google_flag == 1) {
                    $date_converted = date('Y-m-d', $key);
                    $custom_event_url = imic_query_arg($date_converted, $value);
                }
                if ($google_flag == 2) {
                    $google_data = explode('!', $value);
                    $event_title = $google_data[0];
                    $custom_event_url = $google_data[1];
                    $stime = "";
                    $etime = "";
                    $etime = $google_data[2];
                    if ($key != '') {
                        $stime = ' | ' . date_i18n(get_option('time_format'), $key);
                    }
                    if ($etime != '') {
                        $etime = ' - ' . date_i18n(get_option('time_format'), strtotime($etime));
                    }
                    $eventAddress = $google_data[3];
                    /* $eventDetailsData = array(date_i18n('j M, ',$key).date_i18n('l',$key). $stime .  $etime,$eventAddress);*/
                    $event_dt_out = imic_get_event_timeformate($key . '|' . $google_data[2], $key . '|' . $key, $value, $key);
                    $event_dt_out = explode('BR', $event_dt_out);
                    $eventDetailsData = array($event_dt_out[1], $event_dt_out[0], $eventAddress);
                    $eventValues = array_filter($eventDetailsData, 'strlen');
                    $eventDetailIcons = array('fa-calendar', 'fa-clock-o', 'fa-map-marker');
                }
                $output .= '<div class="grid-item-inner">';
                if ($google_flag == 1) {
                    $output .= '<a href="' . $custom_event_url . '" class="media-box">';
                    $output .= get_the_post_thumbnail($value, 'full');
                    $output .= '</a>';
                    $event_title = get_the_title($value);
                }
                $output .= '<div class="grid-content">';
                $output .= '<h3><a href="' . $custom_event_url . '">' . $event_title . '</a>' . imicRecurrenceIcon($value) . '</h3>';
                if ($google_flag == 1) {
                    $output .= '<div class="page-content">';
                    $output .= imic_excerpt(25);
                    $output .= '</div>';
                }
                $output .= '</div>';
                if (!empty($eventValues)) {
                    $output .= '<ul class="info-table">';
                    $flag = 0;
                    foreach ($eventDetailsData as $edata) {
                        if (!empty($edata)) {
                            $output .= '<li><i class="fa ' . $eventDetailIcons[$flag] . '"></i> ' . $edata . ' </li>';
                        }
                        $flag++;
                    }
                    $output .= '</ul>';
                    //}
                    $output .= '</div>
		</li>';
                }
            }
            $count++;
        }
        $output .= '</ul></div></div>';
    }
    return $output;
}
Ejemplo n.º 6
0
function imic_staff($atts, $content = null)
{
    extract(shortcode_atts(array("number" => "", "order" => ""), $atts));
    $output = '';
    if ($order == "no") {
        $orderby = "ID";
        $sort_order = "DESC";
    } else {
        $orderby = "menu_order";
        $sort_order = "ASC";
    }
    query_posts(array('post_type' => 'staff', 'posts_per_page' => $number, 'orderby' => $orderby, 'order' => $sort_order));
    if (have_posts()) {
        while (have_posts()) {
            the_post();
            $custom = get_post_custom(get_the_ID());
            $output .= '<div class="col-md-4 col-sm-4">
                    <div class="grid-item staff-item"> 
                        <div class="grid-item-inner">';
            if (has_post_thumbnail()) {
                $output .= '<div class="media-box"><a href="' . get_permalink(get_the_ID()) . '">';
                $output .= get_the_post_thumbnail(get_the_ID(), 'full');
                $output .= '</a></div>';
            }
            $job_title = get_post_meta(get_the_ID(), 'imic_staff_job_title', true);
            $job = '';
            if (!empty($job_title)) {
                $job = '<div class="meta-data">' . $job_title . '</div>';
            }
            $output .= '<div class="grid-content">
                                <h3> <a href="' . get_permalink(get_the_ID()) . '">' . get_the_title() . '</a></h3>';
            $output .= $job;
            if (!empty($custom['imic_staff_member_facebook'][0]) || !empty($custom['imic_staff_member_twitter'][0]) || !empty($custom['imic_staff_member_google_plus'][0]) || !empty($custom['imic_staff_member_pinterest'][0]) || !empty($custom['imic_staff_member_email'][0])) {
                $output .= '<nav class="social-icons">';
                if (get_post_meta(get_the_ID(), 'imic_staff_member_facebook', true) != '') {
                    $output .= '<a href="' . get_post_meta(get_the_ID(), 'imic_staff_member_facebook', true) . '" target ="_blank"><i class="fa fa-facebook"></i></a>';
                }
                if (get_post_meta(get_the_ID(), 'imic_staff_member_twitter', true) != '') {
                    $output .= '<a href="' . get_post_meta(get_the_ID(), 'imic_staff_member_twitter', true) . '" target ="_blank"><i class="fa fa-twitter"></i></a>';
                }
                if (get_post_meta(get_the_ID(), 'imic_staff_member_google_plus', true) != '') {
                    $output .= '<a href="' . get_post_meta(get_the_ID(), 'imic_staff_member_google_plus', true) . '" target ="_blank"><i class="fa fa-google-plus"></i></a>';
                }
                if (get_post_meta(get_the_ID(), 'imic_staff_member_pinterest', true) != '') {
                    $output .= '<a href="' . get_post_meta(get_the_ID(), 'imic_staff_member_pinterest', true) . '" target ="_blank"><i class="fa fa-pinterest"></i></a>';
                }
                if (get_post_meta(get_the_ID(), 'imic_staff_member_email', true) != '') {
                    $output .= '<a href="mailto:' . get_post_meta(get_the_ID(), 'imic_staff_member_email', true) . '"><i class="fa fa-envelope"></i></a>';
                }
                $output .= '</nav>';
            }
            $description = imic_excerpt();
            if (!empty($description)) {
                $output .= $description;
            }
            $output .= '</div></div>
                    </div>
                </div>';
        }
    }
    wp_reset_query();
    return $output;
}
Ejemplo n.º 7
0
                                        <div class="comment-count"><?php 
            if (comments_open()) {
                echo comments_popup_link('<i class="fa fa-comment"></i>' . __('No comments yet', 'framework'), '<i class="fa fa-comment"></i>1', '<i class="fa fa-comment"></i>%', 'pull-right meta-data', 'comments-link', __('Comments are off for this post', 'framework'));
            }
            ?>
</div>
                                    </div>
                        			<h3 class="post-title"><a href="<?php 
            echo esc_url(get_permalink());
            ?>
"><?php 
            the_title();
            ?>
</a></h3>
                        			<?php 
            echo imic_excerpt(35);
            ?>
                                    <a href="<?php 
            echo esc_url(get_permalink());
            ?>
" class="continue-reading"><?php 
            echo esc_attr_e('Continue reading', 'framework');
            ?>
 <i class="fa fa-long-arrow-right"></i></a></p>
                                   	<div class="post-meta"><?php 
            echo esc_attr_e('Posted in:', 'framework');
            ?>
 <?php 
            the_category(', ');
            ?>
</div>
Ejemplo n.º 8
0
 function widget($args, $instance)
 {
     extract($args);
     // these are the widget options
     $post_title = apply_filters('widget_title', $instance['title']);
     $testimonial = $instance['testimonial'];
     echo $args['before_widget'];
     if (!empty($instance['title'])) {
         echo '';
         echo $args['before_title'];
         echo apply_filters('widget_title', $post_title, $instance, $this->id_base);
         echo $args['after_title'];
         echo '';
     }
     echo '<ul class="testimonials">';
     query_posts(array('post_type' => 'testimonials', 'posts_per_page' => $testimonial));
     if (have_posts()) {
         while (have_posts()) {
             the_post();
             $company = get_post_meta(get_the_ID(), 'imic_client_company', true);
             $Client_Url = get_post_meta(get_the_ID(), 'imic_client_co_url', true);
             $domain_url = $url_html = '';
             if (filter_var($Client_Url, FILTER_VALIDATE_URL)) {
                 $domain_url = parse_url($Client_Url);
                 $domain_url = $domain_url['host'];
                 $url_html = '<br><a href="' . $Client_Url . '">' . $domain_url . '</a>';
             }
             echo '<li>
                           ' . imic_excerpt(50) . get_the_post_thumbnail(get_the_ID(), '80-80-size', array('class' => 'testimonial-sender')) . '
                           <cite>' . get_the_title() . ' - <strong>' . $company . '</strong>' . $url_html . '
                        </cite>
                     </li>';
         }
     }
     wp_reset_query();
     echo '</ul>';
     echo $args['after_widget'];
 }
Ejemplo n.º 9
0
                    _e(' on ', 'framework');
                    echo esc_attr(get_the_date(get_option('date_format')));
                    _e(' in ', 'framework');
                    the_category(', ');
                } elseif ($recent_post_type == 'product') {
                    echo '<span class="price">' . $product->get_price_html() . ' </span> ';
                    do_action('woocommerce_after_shop_loop_item');
                } else {
                    echo '<span class="meta-data">' . get_post_meta(get_the_ID(), 'imic_staff_position', true) . ' ' . imic_social_staff_icon() . '</span>';
                }
                ?>
</div>
                                                    <?php 
                if (in_array('text', $post_options)) {
                    if ($post_content == 'excerpt') {
                        echo imic_excerpt($post_excerpt_length);
                    } else {
                        the_content();
                    }
                }
                if (in_array('more', $post_options)) {
                    ?>
                                    <p><a href="<?php 
                    the_permalink();
                    ?>
" class="basic-link"><?php 
                    _e('Continue reading ', 'framework');
                    ?>
<i class="fa fa-angle-right"></i></a></p>
                                    <?php 
                }
Ejemplo n.º 10
0
function imic_staff($atts, $content = null)
{
    extract(shortcode_atts(array("title" => "", "type" => 1, "order" => "", "number" => "", "column" => 4, "cat" => ""), $atts));
    $output = '';
    if ($order == "no") {
        $orderby = "ID";
        $sort_order = "DESC";
    } else {
        $orderby = "menu_order";
        $sort_order = "ASC";
    }
    $url = imic_get_template_url('template-speakers-sermon.php');
    query_posts(array('post_type' => 'speaker', 'speaker-category' => $cat, 'posts_per_page' => $number, 'orderby' => $orderby, 'order' => $sort_order));
    $output .= '<h3>' . $title . '</h3>
              	<hr class="sm">';
    if ($type == 1) {
        $output .= '<div class="row">';
        if (have_posts()) {
            while (have_posts()) {
                the_post();
                $staff_position = get_post_meta(get_the_ID(), 'imic_staff_position', true);
                $social = imic_social_staff_icon();
                $output .= '<div class="col-md-' . $column . ' col-sm-6">
                      	<div class="grid-item staff-item format-standard">
                        	<div class="grid-item-inner">
                                ' . get_the_post_thumbnail(get_the_ID(), '600x400') . '
                          		<div class="grid-content">
                                	<div class="staff-item-name">
                            			<h5><a data-toggle="modal" data-target="#team-modal-' . (get_the_ID() + 2648) . '" href="#" class="">' . get_the_title() . '</a></h5>
                                        <span class="meta-data">' . $staff_position . '</span>
                                    </div>
                                    ' . $social . imic_excerpt(10) . '
                          		</div></div>
                        	</div>
                      	</div>';
                $output .= '<div class="modal fade team-modal" id="team-modal-' . (get_the_ID() + 2648) . '" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
                      <div class="modal-dialog modal-lg">
                        <div class="modal-content">
                          <div class="modal-header">
                            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                            <h4 class="modal-title" id="myModalLabel">' . __('Team Members', 'framework') . '</h4>
                          </div>
                            <div class="modal-body">
                                <div class="staff-item">
                                <div class="row">
                                    <div class="col-md-5 col-sm-6">
                                    	' . get_the_post_thumbnail(get_the_ID(), '600x400', array('class' => 'img-thumbnail')) . '
                                    </div>
                                    <div class="col-md-7 col-sm-6">
                                    	<h3>' . get_the_title() . '</h3>
                                    	<span class="meta-data">' . get_post_meta(get_the_ID(), 'imic_staff_position', true) . '</span>';
                $post_id = get_post(get_the_ID());
                $content = $post_id->post_content;
                $content = apply_filters('the_content', $content);
                $content = str_replace(']]>', ']]>', $content);
                $output .= $content;
                if (get_post_meta(get_the_ID(), 'imic_display_sermon_url', true) == 1) {
                    if ($url != '') {
                        $output .= '<a class="btn btn-primary" href="' . add_query_arg('speakers', get_the_ID(), $url) . '">' . __('View all Sermons', 'framework') . '</a>';
                    }
                }
                $output .= '</div>
                                </div>
                            </div>
                            </div>
                        </div>
                      </div>
                    </div>';
            }
        }
        $output .= '</div>';
    } else {
        $output .= '<ul class="members-list row">';
        if (have_posts()) {
            while (have_posts()) {
                the_post();
                $staff_position = get_post_meta(get_the_ID(), 'imic_staff_position', true);
                $social = imic_social_staff_icon();
                $output .= '<li class="col-md-' . $column . ' col-sm-4 col-xs-6">
                        ' . get_the_post_thumbnail(get_the_ID(), '100x100') . '
                        <h5>' . get_the_title() . '</h5>
                        <span class="meta-data">' . $staff_position . '</span>
                        ' . $social . '
                    </li>';
            }
        }
        $output .= '</ul>';
    }
    wp_reset_query();
    return $output;
}
Ejemplo n.º 11
0
        echo esc_url(get_permalink());
        ?>
"><?php 
        echo esc_attr($highlight_value);
        ?>
</a>
                           		<?php 
        if ($category_rail == "1" && is_plugin_active("imi-classifieds/imi-classified.php")) {
            echo imic_get_cats_list(get_the_ID(), "dropdown");
        }
        ?>
                                </h4>               
                         	<div class="result-item-cont">
                          		<div class="result-item-block col1">
                              	<?php 
        echo imic_excerpt(20);
        ?>
                           		</div>
                          		<div class="result-item-block col2">
                                	<div class="result-item-pricing">
                                   		<div class="price"><?php 
        echo esc_attr($unique_value);
        ?>
</div>
                                 	</div>
                                   	<div class="result-item-action-buttons">
                                   	<a <?php 
        echo esc_attr($save_icon_disable);
        ?>
 href="#" class="btn btn-default btn-sm save-car"><div class="vehicle-details-access" style="display:none;"><span class="vehicle-id"><?php 
        echo esc_attr(get_the_ID());
                        <div class="grid-item-inner">';
        if (has_post_thumbnail()) {
            echo '<div class="media-box"><a href="' . get_permalink(get_the_ID()) . '">';
            echo get_the_post_thumbnail(get_the_ID(), '600x400');
            echo '</a></div>';
        }
        $job_title = get_post_meta(get_the_ID(), 'imic_staff_job_title', true);
        $job = '';
        if (!empty($job_title)) {
            $job = '<div class="meta-data">' . $job_title . '</div>';
        }
        echo '<div class="grid-content">
                                <h3> <a href="' . get_permalink(get_the_ID()) . '">' . get_the_title() . '</a></h3>';
        echo $job;
        echo imic_social_staff_icon();
        $description = imic_excerpt();
        if (!empty($description)) {
            echo '<div class="page-content">';
            echo $description;
            echo '</div>';
        }
        echo '</div></div>
                    </div>
                </div>';
    }
    echo '<div class="clear"></div>';
    if (function_exists("pagination")) {
        pagination();
    }
}
?>
Ejemplo n.º 13
0
            ?>
                                <div class="post-excerpt">
                                    <h3><a href="<?php 
            the_permalink();
            ?>
"><?php 
            the_title();
            ?>
</a></h3>
                                    <?php 
            foreach ($post_author_id as $speaker) {
                $sep = $count < count($post_author_id) ? ', ' : '';
                echo '<span class="meta-data"><i class="fa fa-user"></i> ' . get_the_title($speaker) . $sep . '</span>';
            }
            echo '<div class="page-content">';
            echo imic_excerpt($sermons_desc);
            echo '</div>';
            ?>
                                        <?php 
            echo '
                                            <ul class="action-buttons">
                                                <li><a href="' . get_permalink() . '" data-toggle="tooltip" data-placement="top" data-original-title="' . __('Watch Video', 'framework') . '"><i class="icon-video-cam"></i></a></li>
                                                <li><a href="' . get_permalink() . '" data-toggle="tooltip" data-placement="top" data-original-title="' . __('Listen Audio', 'framework') . '"><i class="icon-headphones"></i></a></li>
                                                <li><a href="' . IMIC_THEME_PATH . '/download/download.php?file=' . $download_pdf . '" data-toggle="tooltip" data-placement="top" data-original-title="' . __('Download PDF', 'framework') . '"><i class="icon-download-folder"></i></a></li>
                                            </ul>
                                        <br>';
            echo '<a href="' . get_permalink() . '" class="btn btn-primary btn-sm">' . $sermons_button . ' <i class="fa fa-long-arrow-right"></i></a>';
            ?>
                                </div>
                            </div>
                        </div>
                    echo $cause_date_msg;
                    ?>
</label>
                                </div>
                                <div class="progress">
                                    <div class="progress-bar <?php 
                    echo $class;
                    ?>
" data-appear-progress-animation="<?php 
                    echo $cause_percentage;
                    ?>
%" data-appear-animation-delay="200"></div><!-- Upto 30% use class progress-bar-danger , upto 70% use class progress-bar-warning , afterwards use class progress-bar-success -->
                                </div>
                             <?php 
                }
                echo imic_excerpt();
                ?>
                            </div>
                        </div>
                    </article>
                    <?php 
            }
        }
    } else {
        ?>
                    <article class="post cause-item">
                        <div class="row">
                            <div class="col-md-12 col-sm-12">
                                <?php 
        _e('There is no any causes yet. ', 'framework');
        ?>
function imic_testimonial($atts, $content = null)
{
    extract(shortcode_atts(array("number" => "", "slider" => "no", "pagination" => "yes", "scroll" => "yes"), $atts));
    $output = '';
    $owl = $slider == "yes" ? 'owl-carousel' : '';
    $pagination = $pagination == "yes" ? 'data-pagination="yes"' : '';
    $auto_scroll = $scroll == "yes" ? 'data-autoplay="5000"' : '';
    $output .= '<ul class="testimonials ' . $owl . '" ' . $pagination . ' ' . $auto_scroll . '>';
    query_posts(array('post_type' => 'testimonials', 'posts_per_page' => $number));
    if (have_posts()) {
        while (have_posts()) {
            the_post();
            $company = get_post_meta(get_the_ID(), 'imic_client_company', true);
            $Client_Url = get_post_meta(get_the_ID(), 'imic_client_co_url', true);
            $domain_url = $url_html = '';
            if (filter_var($Client_Url, FILTER_VALIDATE_URL)) {
                $domain_url = parse_url($Client_Url);
                $domain_url = $domain_url['host'];
                $url_html = '<br><a href="' . $Client_Url . '">' . $domain_url . '</a>';
            }
            $output .= '<li>
                              ' . imic_excerpt(50) . get_the_post_thumbnail(get_the_ID(), 'full', array('class' => 'testimonial-sender')) . '
                              <cite>' . get_the_title() . ' - <strong>' . $company . '</strong>' . $url_html . '
                           </cite>
                        </li>';
        }
    }
    wp_reset_query();
    $output .= '</ul>';
    return $output;
}
Ejemplo n.º 16
0
	<div class="grid-item staff-item"> 
    	<div class="grid-item-inner format-standard">';
        if (has_post_thumbnail()) {
            echo '<a href="' . get_permalink(get_the_ID()) . '" class="media-box">
                	' . get_the_post_thumbnail(get_the_ID(), 'full') . '';
            echo '</a>';
        }
        echo '<div class="grid-content">
              	<h3> <a href="' . get_permalink(get_the_ID()) . '">' . get_the_title() . '</a></h3>';
        if ($instance['show_post_meta']) {
            $job_title = get_post_meta(get_the_ID(), 'imic_staff_job_title', true);
            if (!empty($job_title)) {
                echo '<div class="meta-data">' . $job_title . '</div>';
            }
            echo imic_social_staff_icon();
        }
        if ($excerpt_length != "") {
            echo '<div class="page-content">';
            echo imic_excerpt($excerpt_length);
            echo '</div>';
        }
        if ($read_more_text != "") {
            echo '<p><a href="' . get_permalink() . '" class="btn btn-primary">' . $read_more_text . '</a></p>';
        }
        echo '</div></div></div></div>';
    }
    ?>
</div>
<?php 
}
wp_reset_query();
Ejemplo n.º 17
0
 function widget($args, $instance)
 {
     $cache = array();
     if (!$this->is_preview()) {
         $cache = wp_cache_get('sermon_list', 'widget');
     }
     if (!is_array($cache)) {
         $cache = array();
     }
     if (!isset($args['widget_id'])) {
         $args['widget_id'] = $this->id;
     }
     if (isset($cache[$args['widget_id']])) {
         echo $cache[$args['widget_id']];
         return;
     }
     ob_start();
     extract($args);
     // these are the widget options
     $post_title = apply_filters('widget_title', $instance['title']);
     $number = apply_filters('widget_number', $instance['number']);
     $numberEvent = !empty($number) ? $number : 4;
     $category = apply_filters('widget-category', empty($instance['category']) ? '' : $instance['category'], $instance, $this->id_base);
     $type = apply_filters('widget-type', empty($instance['type']) ? '' : $instance['type'], $instance, $this->id_base);
     $EventHeading = !empty($post_title) ? $post_title : __('Recent Sermons', 'imic-framework-admin');
     echo $args['before_widget'];
     if (!empty($instance['title'])) {
         echo $args['before_title'];
         //echo apply_filters('widget_title',$EventHeading, $instance, $this->id_base);
         echo $args['after_title'];
     }
     query_posts(array('post_type' => 'sermon', 'posts_per_page' => $numberEvent, 'sermon-category' => $category));
     $first = 1;
     if (have_posts()) {
         echo '<ul>';
         while (have_posts()) {
             the_post();
             $mp4_video = get_post_meta(get_the_ID(), 'imic_mp4_video', false);
             $webm_video = get_post_meta(get_the_ID(), 'imic_webm_video', false);
             $ogg_video = get_post_meta(get_the_ID(), 'imic_ogg_video', false);
             $vimeo_video = get_post_meta(get_the_ID(), 'imic_vimeo_video', true);
             $youtube_video = get_post_meta(get_the_ID(), 'imic_youtube_video', true);
             $post_author_id = get_post_meta(get_the_ID(), 'imic_sermon_speaker', false);
             $self_audio = get_post_meta(get_the_ID(), 'imic_self_audio', true);
             $download_pdf = get_post_meta(get_the_ID(), 'imic_pdf_url', true);
             $soundcloud_audio = get_post_meta(get_the_ID(), 'imic_soundcloud_audio', true);
             if ($first == 1) {
                 echo '<li class="most-recent-sermon clearfix">
                                 <h3>' . apply_filters('widget_title', $EventHeading, $instance, $this->id_base) . '</h3>
                                 <hr class="sm">';
                 echo '<div class="latest-sermon-video fw-video">';
                 if ($vimeo_video != '' || $youtube_video != '') {
                     if ($vimeo_video != '') {
                         $video_code = imic_video_embed($vimeo_video, "500", "281");
                     } else {
                         $video_code = imic_video_embed($youtube_video, "500", "281");
                     }
                     echo '' . $video_code . '';
                 }
                 echo '</div>';
                 echo '<div class="latest-sermon-content">
                                     <h4><a href="' . get_permalink() . '">' . get_the_title() . '</a></h4>
                                     <div class="meta-data">' . __('by ', 'framework');
                 $count = 1;
                 foreach ($post_author_id as $speaker) {
                     $sep = $count < count($post_author_id) ? ', ' : '';
                     echo get_the_title($speaker) . $sep;
                     $count++;
                 }
                 echo '</div>
                                     ' . imic_excerpt(8) . '
                                 </div>
                                 <div class="sermon-links">
                                     <ul class="action-buttons">';
                 if (!empty($mp4_video) || !empty($webm_video) || !empty($ogg_video) || !empty($vimeo_video) || !empty($youtube_video)) {
                     echo '<li><a href="' . get_permalink() . '" data-toggle="tooltip" data-placement="right" data-original-title="' . __('Watch Video', 'framework') . '"><i class="icon-video-cam"></i></a></li>';
                 }
                 if ($self_audio != '' || $soundcloud_audio != '') {
                     echo '<li><a href="' . get_permalink() . '" data-toggle="tooltip" data-placement="right" data-original-title="' . __('Listen Audio', 'framework') . '"><i class="icon-headphones"></i></a></li>';
                 }
                 if ($self_audio != '') {
                     echo '<li><a href="' . get_permalink() . '" data-toggle="tooltip" data-placement="right" data-original-title="' . __('Download Audio', 'framework') . '"><i class="icon-cloud-download"></i></a></li>';
                 }
                 if ($download_pdf != '') {
                     echo '<li><a href="' . get_permalink() . '" data-toggle="tooltip" data-placement="right" data-original-title="' . __('Download PDF', 'framework') . '"><i class="icon-download-folder"></i></a></li>';
                 }
                 echo '</ul>
                                 </div>
                            	</li>';
             } else {
                 echo '<li>
                              	<a href="' . get_permalink() . '"><strong class="post-title">' . get_the_title() . '</strong></a>
                                     <div class="meta-data">' . __('by ', 'framework');
                 $count = 1;
                 foreach ($post_author_id as $speaker) {
                     $sep = $count < count($post_author_id) ? ', ' : '';
                     echo get_the_title($speaker) . $sep;
                     $count++;
                 }
                 echo '</div>
                             </li>';
             }
             $first++;
         }
         echo '</ul>';
         wp_reset_query();
     } else {
         _e('No Sermons Found', 'imic-framework-admin');
     }
     echo $args['after_widget'];
     if (!$this->is_preview()) {
         $cache[$args['widget_id']] = ob_get_flush();
         wp_cache_set('sermon_list', $cache, 'widget');
     } else {
         ob_end_flush();
     }
 }
Ejemplo n.º 18
0
<?php

global $blog_masonry, $grid_column;
$audio_url = get_post_meta(get_the_ID(), 'imic_gallery_uploaded_audio', true);
if (strpos($audio_url, 'soundcloud') > 0) {
    $data = imic_audio_soundcloud($audio_url, "100%", 450);
} else {
    $data = '<audio class="audio-player" src="' . esc_url($audio_url) . '" type="audio/mp3" controls></audio>';
}
$title = '<h3 class="post-title"><a href="' . esc_url(get_permalink(get_the_ID())) . '">' . get_the_title() . '</a></h3>';
$post_author_id = get_post_field('post_author', get_the_ID());
$meta_data = '<span class="meta-data"><i class="fa fa-calendar"></i> ' . esc_html(get_the_date()) . __(' by ', 'framework') . '<a href="' . esc_url(get_author_posts_url($post_author_id)) . '">' . esc_attr(get_the_author_meta('display_name', $post_author_id)) . '</a></span>';
$content = imic_excerpt();
if ($blog_masonry == 0) {
    ?>
<article <?php 
    post_class('post-list-item format-audio');
    ?>
>
                            	<div class="post-media">
                                   	<?php 
    echo $data;
    ?>
                                </div>
                                <div class="post-excerpt">
                               		<?php 
    echo $meta_data;
    ?>
                                	<?php 
    echo $title;
    ?>
                if (has_post_thumbnail()) {
                    echo '<a href="' . get_permalink() . '" class="media-box">';
                    the_post_thumbnail('full');
                    echo '</a>';
                }
                ?>
                      <div class="grid-content">
                        <h3><a href="<?php 
                the_permalink();
                ?>
"><?php 
                the_title();
                ?>
</a></h3>
                        <?php 
                echo imic_excerpt(25);
                ?>
</p>
                      </div>
                      <?php 
                if (!empty($eventValues)) {
                    echo '<ul class="info-table">';
                    $flag = 0;
                    foreach ($eventDetailsData as $edata) {
                        if (!empty($edata)) {
                            echo '<li><i class="fa ' . $eventDetailIcons[$flag] . '"></i> ' . $edata . ' </li>';
                        }
                        $flag++;
                    }
                    echo '</ul>';
                }
            the_permalink();
            ?>
"><?php 
            echo get_the_title();
            ?>
</a><?php 
            echo imicPropertyId(get_the_ID());
            ?>
</h3>
                                                               <?php 
            if (!empty($property_city)) {
                echo '<a class="accent-color" data-original-title="' . $sl . '" data-toggle="tooltip" style="cursor:default; text-decoration:none;" href="javascript:void(0);"><span class="location">' . $property_city . '</span></a><br>';
            }
            ?>
                                                               <?php 
            echo imic_excerpt(50);
            ?>
                                                               </div>
                                                               <?php 
        } else {
            ?>
                                                               <li id="<?php 
            echo get_the_ID();
            ?>
" class="grid-item type-rent">
                                                               <?php 
            echo '<div id="property' . get_the_ID() . '" style="display:none;"><span class ="property_address">' . $property_address . '</span><span class ="property_price"><strong>' . $currency_symbol . '</strong> <span> ' . $property_price . '</span></span><span class ="latitude">' . $property_longitude_and_latitude[0] . '</span><span class ="longitude">' . $property_longitude_and_latitude[1] . '</span>' . $image_container . '<span class ="property_url">' . get_permalink(get_the_ID()) . '</span><span class ="property_image_url">' . IMIC_THEME_PATH . '/images/map-marker.png</span></div>';
            ?>
                                                                   <div class="property-block"> <a href="<?php 
            the_permalink();
            ?>
Ejemplo n.º 21
0
 function imic_search_dealers()
 {
     //echo "saibaba";
     global $imic_options;
     $distance_measure = $imic_options['distance_calculate'];
     $users = isset($_POST['values']) ? $_POST['values'] : array();
     ksort($users);
     $user_ids = array();
     if (!empty($users)) {
         foreach ($users as $key => $value) {
             $user_ids[] = $value;
         }
     }
     $args_user = array('post_type' => 'user', 'post__in' => $user_ids, 'orderby' => 'post__in', 'posts_per_page' => -1);
     $user_listing = new WP_Query($args_user);
     if ($user_listing->have_posts()) {
         global $wp_query;
         echo '<div class="main" role="main">
     <div id="content" class="content full padding-b0">
         <div class="container"><p>We have found ' . $user_listing->found_posts . ' dealers matching zipcode nearest to longest</p>
             <div class="dealers-search-result">
                 <div class="row">';
         while ($user_listing->have_posts()) {
             $user_listing->the_post();
             $company = get_post_meta(get_the_ID(), 'imic_user_company', true);
             $tagline = get_post_meta(get_the_ID(), 'imic_user_company_tagline', true);
             $user_id = get_post_meta(get_the_ID(), 'imic_user_reg_id', true);
             $user_avatar = get_post_meta(get_the_ID(), 'imic_user_logo', true);
             $image_avatar = wp_get_attachment_image_src($user_avatar, '', '');
             $user_info = get_userdata($user_id);
             echo '
                     <div class="col-md-4 col-sm-4 dealer-block">
                         <div class="dealer-block-inner" style="background-image:url(' . $image_avatar[0] . ');">
                             <div class="dealer-block-cont">
                                 <div class="dealer-block-info">
                                     <span class="label label-default">' . floor(array_search(get_the_ID(), $users)) . ' ' . $distance_measure . __(' away', 'framework') . '</span>
                                     <span class="dealer-avatar">' . get_the_post_thumbnail() . '</span>
                                     <h5><a href="' . get_author_posts_url($user_id) . '">' . $company . '</a></h5>
                                     <span class="meta-data">' . $tagline . '</span>
                                 </div>
                                 <div class="dealer-block-text">
                                     ' . imic_excerpt(10) . '
                                     <div class="dealer-block-add">';
             if (!empty($user_info)) {
                 echo '<span>' . __('Member since', 'framework') . ' <strong>' . date("M, Y", strtotime($user_info->user_registered)) . '</strong></span>';
             }
             echo '<span>' . __('Total listings', 'framework') . ' <strong>' . imic_count_user_posts_by_type($user_id, 'yachts') . '</strong></span>
                                     </div>
                                 </div>
                                 <div class="text-align-center"><a href="' . get_author_posts_url($user_id) . '" class="btn btn-default">' . __('View profile', 'framework') . '</a></div>
                             </div>
                         </div>
                     </div>';
         }
         echo '</div></div></div></div></div>';
     }
     wp_reset_postdata();
     //print_r($user_ids);
     die;
 }