WordPress.org

Support

Support » Plugins and Hacks » Events Manager » [Resolved] Weekly calendar

[Resolved] Weekly calendar

Viewing 9 replies - 1 through 9 (of 9 total)
  • hi,

    best option is to used WP FullCalendar; can I know what are the customization you need?

    Hi Agelonwl, unfortunately wo fullcalendar is very hard to customize as I need..
    First, I need to set one featured imagen in the background in every day as u can see at http://www.zapatosrojos.net/weekly-calendar.png.. in a top layer, put the events of each day, hidden by the moment.
    Second, I don’t need to generate the the floating div on MouseOver whith teh info, I mean this info is yet shown as I explain in the first point. Really, the floating div when I make a mouseOver, appears the hidden layer described in the first point..

    Thanks for ur interest!

    Hi,

    currently, using weekly in EM default calendar is not currently availble however might be possible using some custom codes;

    e.g. you can modify template file at wp-content/plugins/events-manager/templates/templates/calendar-full.php

    to use templates: http://wp-events-plugin.com/documentation/using-template-files/

    It’s just customized as I comment in my last post, there is how looks: http://www.zapatosrojos.net/weekly-calendar.png

    But the trouble is that I can’t handle it as a calendar, because I not getting the weeks..just the full calendar.. This is my custom code of calendar-full.php

    U’ll see that i’m not using the days name hader…so, I don’t know hoy to control a weekly view

    <?php
    /*
     * This file contains the HTML generated for full calendars. You can copy this file to yourthemefolder/plugins/events/templates and modify it in an upgrade-safe manner.
     *
     * There are two variables made available to you:
     *
     * 	$calendar - contains an array of information regarding the calendar and is used to generate the content
     *  $args - the arguments passed to EM_Calendar::output()
     *
     * Note that leaving the class names for the previous/next links will keep the AJAX navigation working.
     */
    $cal_count = count($calendar['cells']); //to prevent an extra tr
    $col_count = $tot_count = 1; //this counts collumns in the $calendar_array['cells'] array
    $col_max = count($calendar['row_headers']); //each time this collumn number is reached, we create a new collumn, the number of cells should divide evenly by the number of row_headers
    ?>
    <div class="fullcalendar">
    			<div class="mleft"></div>
    			<div class="cortina-left"><div  class="prev"></div></div>
            	<div class="cortina-right"><div class="next" ></div></div>
    			<div class="ev_head">
                    <div class="ev_prev"><a href="<?php echo $calendar['links']['previous_url']; ?>"> < < </a></div>
                    <div class="ev_month"><?php echo ucfirst(date_i18n('M Y', $calendar['month_start'])); ?></div>
                	<div class="ev_next"><a href="<?php echo $calendar['links']['next_url']; ?>" >> ></a></div>
                    <div class="fullmonth"><span id="right"> < SEMANA ANTERIOR</span> | <span id="left">SEMANA SIGUIENTE > </span> MES COMPLETO</div>
              	</div>
                <div class="all_card">
                <div id="top_card"><div class="card_open_top">Abrir</div></div>
                <div class="card_container">
                        <div id="card">
                          			 <div class="initCard">
                                   		<span class="cardTitle"> HOY ES EL DIA!</span><br />
                                    	<span class="cardText">NO DEJES TU SEMANA EN BLANCO<br />
                                    	<STRONG>Añade tus eventos!!</STRONG></span>
                                    </div>
                             <div class="card_down-l">
                                 <div class="to_send">Enviar</div>
                                 <div class="to_print">Imprimir</div>
                                 <div class="open-close">
                                 	<div class="card_close">Cerrar</div>
                                 	<div class="card_open">Abrir</div>
                                 </div>
                            </div>
                            <div id="container">
                                <div class="scroll-pane">
                                </div>
                            </div>
                            <div class="card_down-ll">
                                 <div class="to_send">Enviar</div>
                                 <div class="to_print">Imprimir</div>
                                 <div class="open-close">
                                 	<div class="card_close">Cerrar</div>
                                 	<div class="card_open">Abrir</div>
                                 </div>
                            </div>
                        </div>
               </div>
               </div>
    
    		<div class="carousel" data-transition="slide">
        	<?php echo implode($calendar['row_headers']); ?>
    			<?php
    			foreach($calendar['cells'] as $date => $cell_data ){
    				$class = ( !empty($cell_data['events']) && count($cell_data['events']) > 0 ) ? 'eventful':'eventless';
    				if(!empty($cell_data['type'])){
    					$class .= "-".$cell_data['type'];
    				}
    			?>
                    <div class="<?php echo $class; ?>">
                    <div class="ev_content">
                    <div class="ev_overlay"></div>
    					<?php if( !empty($cell_data['events']) && count($cell_data['events']) > 0 ): ?>
                                <div class="ev_day">
                                <?php echo date('j',$cell_data['date']); ?>
                                </div>
                                     <?php
                                        $cell_events = array();
                                        if( get_option('dbem_display_calendar_events_limit') ){
                                            $count = 0;
                                            foreach($cell_data['events'] as $cell_event){
                                                $cell_events[] = $cell_event;
                                                $count++;
                                                if($count > get_option('dbem_display_calendar_events_limit')) break;
                                            }
                                        }else{
                                            $cell_events = $cell_data['events'];
                                        }
                                     ?>
                                    <?php echo EM_Events::output($cell_events,array('format'=>get_option('dbem_full_calendar_event_format'))); ?>
                                    <?php if( count($cell_events) > get_option('dbem_display_calendar_events_limit',3) && get_option('dbem_display_calendar_events_limit_msg') != '' ): ?>
                                    <div class="ev_link">  <a href="<?php echo esc_url($cell_data['link']); ?>">
                                    <?php echo get_option('dbem_display_calendar_events_limit_msg'); ?></a>
                                    </div>
    						<?php endif; ?>
    					<?php else:?>
                          <div class="ev_day">	<?php echo date('j',$cell_data['date']); ?></div>
    					<?php endif; ?>
                      </div>
                      <div class="ev_content_over"><div class="ev_link">
                      <a href="<?php echo esc_url($cell_data['link']); ?>"><?php echo get_option('dbem_display_calendar_events_limit_msg'); ?></a>
                      </div>
                      </div>
    				</div>
    				<?php
    				$tot_count ++;
    			}
    			?>
    		</div>
    	</div>

    [No bumping. If it’s that urgent, consider hiring someone.]

    Please…no one expert in calendars here ? 🙂
    Maybe, Marcus can help me to find the way to customize my calendar like my picture (currently working with customized calendar-full.php) but unable no handle a week view.
    http://www.zapatosrojos.net/weekly-calendar.png

    Hi,

    I haven’t try this yet however will try this one and am going to update you again on how it goes. (could be by Monday)

    It’s not solved..but anyway, I leave this project. thanks for trying!

    Hi,

    sorry, I tried this one but due to things with the highest priority I haven’t gone through with this.

    Plugin Author Marcus

    @netweblogic

    you can certainly acheive this by modifying our normal calendar template, but it’d require some custom coding so you’d need to hire someone to make this happen – http://jobs.wordpress.net/

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Resolved] Weekly calendar’ is closed to new replies.
Skip to toolbar