Support » Plugins » [Plugin: The Events Calendar] Suggestions for the widget

  • The new version of TEC looks very nice. But i still have some suggestions regarding the widget.

    I think you should make the Events themselves a link, instead of “More info”. Now it looks a bit cluttered.

    Secondly i think you should move the link “View all events” to the bottom of the widget. I makes more sense to push for the upcoming events first, and then give the visitor a chance to “View all events”.

Viewing 3 replies - 1 through 3 (of 3 total)
  • * Making event a link – agreed
    * moving view all to bottom – agreed.

    Will add to list.

    Thread Starter kajjohanson

    (@kajjohanson)

    Top! It feels good to make suggestions and contribute to the development, when you are so responsive and provide quick answers.

    Thanks!

    websherpa

    (@websherpa)

    This is a fairly simple thing to do on your own by using the ability to modify the Events List widget in the /Events/ folder within your theme (although I agree that the default should appear that way). For example:

    <?php /**
     * This is the template for the output of the events list widget.
     * All the items are turned on and off through the widget admin.
     * There is currently no default styling, which is highly needed.
     * @return string
     */
    // let's make time
    $start_time		= strtotime(get_post_meta( $post->ID, '_EventStartDate', true ));
    $EventCity		= get_post_meta( $post->ID, '_EventCity', true );
    $EventCountry	= get_post_meta( $post->ID, '_EventCountry', true );
    $EventState		= get_post_meta( $post->ID, '_EventState', true );
    $EventProvince	= get_post_meta( $post->ID, '_EventProvince', true );
    ?>
    
    <li class="<?php echo $alt_text ?>">
    	<div class="when"><b>
    		<span class="month"><?php echo date('M', $start_time); ?></span>
    		<span class="date"><?php echo date('j', $start_time); ?></span>
    	</b></div>
    	<div class="event"><a class="more-link" href="<?php echo get_permalink($post->ID) ?>"><?php echo $post->post_title ?></a></div>
    	<div class="loc"><?php
    		$space = false;
    		$output = '';
    		if ($city == true && $EventCity != '') {
    			$space = true;
    			$output = $EventCity . ', ';
    		}
    		if ($state == true || $province == true){
    			if ( $EventCountry == "United States" &&  $EventState != '') {
    				$space = true;
    				$output .= $EventState;
    			} elseif  ( $EventProvince != '' ) {
    				$space = true;
    				$output .= $EventProvince;
    			}
    		} else {
    			$output = rtrim( $output, ', ' );
    		}
    		if ( $space ) {
    			$output .=  '<br />';
    		}
    		if ($country == true && $EventCountry != '') {
    			$output .= $EventCountry;
    		}
    		echo $output;
    	?>
    	</div>
    
    </li>
    <?php $alt_text = ( empty( $alt_text ) ) ? 'alt' : '';
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: The Events Calendar] Suggestions for the widget’ is closed to new replies.