Esempio n. 1
0
/**
 * Replaces the event page with the FullCalendar if requested in settings
 * @param unknown_type $page_content
 * @return Ambigous <mixed, string>
 */
function wpfc_em_content($content = '', $page_content = '')
{
    global $wpdb, $post;
    if (em_is_events_page()) {
        $calendar_content = WP_FullCalendar::calendar();
        //Now, we either replace CONTENTS or just replace the whole page
        if (preg_match('/CONTENTS/', $page_content)) {
            $content = str_replace('CONTENTS', $calendar_content, $page_content);
        } else {
            $content = $calendar_content;
        }
    }
    return $content;
}
Esempio n. 2
0
<?php

// Template Name: Calendar
get_header();
the_post();
?>
	
	 <section id="locke-cal" class="container">
	
	<?php 
echo WP_FullCalendar::calendar(array());
?>
	 </section>
	
<?php 
get_footer();
Esempio n. 3
0
                                                </select>
                                            </div>
                                        </li>
                                    </ul>
                                </form>-->
                            </div>
                        </div>
                    </div><!-- main right box-->
                    
                    <div class="right-main-box pull-right">
                    	 <div id="calender">
                        	<?php 
//echo do_shortcode('[events_calendar long_events=1 full=1]');
?>
                        	<?php 
echo WP_FullCalendar::calendar('long_events=1');
?>
                        </div>
                    
                    	<h2 class="pg-title">Upcoming events</h2>
                        <div id="events">
                        <?php 
$args = 'post_type=event&post_status=publish&posts_per_page=5&paged=' . $paged;
$pquery = new WP_Query($args);
$page = $paged;
if ($paged == 0) {
    $page = 1;
}
if ($pquery->have_posts()) {
    ?>
                        	<ul class="all-posts">