kierenmccarthy
Forum Replies Created
-
Forum: Plugins
In reply to: [Plugin: The Events Calendar] Does not look great..Okay, I have figured out what the problem was. I think it’s in the name of the functions.
So in the above example, you have “echo events_get_previous_month_link()” but in the original file, you have “echo sp_get_previous_month_link()”.
Basically if you take the code from the original files and feed it into the start and end code that Dan has provided, it appears to work.
My grid-view.php file now looks like below:
Kieren
<?php global $spEvents; global $thesis_design; $spEvents->loadDomainStylesScripts(); echo apply_filters('thesis_doctype', '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">') . "\n"; ?> <html xmlns="https://www.w3.org/1999/xhtml" <?php language_attributes(); ?>> <?php thesis_head::build(); echo "<body" . thesis_body_classes() . ">\n"; #filter thesis_hook_before_html(); #hook if ($thesis_design->layout['framework'] == 'page'){ echo "<div id=\"container\">\n"; echo "<div id=\"page\">\n"; } elseif ($thesis_design->layout['framework'] == 'full-width'){ echo "<div id=\"header_area\" class=\"full_width\">\n"; echo "<div class=\"page\">\n"; } thesis_header_area(); if ($thesis_design->layout['framework'] == 'full-width'){ echo "</div>\n"; echo "</div>\n"; thesis_hook_before_content_area(); #hook echo "<div id=\"content_area\" class=\"full_width\">\n"; echo "<div class=\"page\">\n"; } ?> <div id="tec-content" class="grid"> <div id='tec-events-calendar-header' class="clearfix"> <h2 class="tec-cal-title"><?php _e('Calendar of Events', $spEvents->pluginDomain) ?></h2> <span class='tec-month-nav'> <span class='tec-prev-month'> <a href='<?php echo sp_get_previous_month_link(); ?>'> ← <?php echo sp_get_previous_month_text(); ?> </a> </span> <?php sp_month_year_dropdowns( "tec-" ); ?> <span class='tec-next-month'> <a href='<?php echo sp_get_next_month_link(); ?>'> <?php echo sp_get_next_month_text(); ?> → </a> </span> </span> <span class='tec-calendar-buttons'> <a class='tec-button-off' href='<?php echo sp_get_listview_link(); ?>'><?php _e('Event List', $spEvents->pluginDomain)?></a> <a class='tec-button-on' href='<?php echo sp_get_gridview_link(); ?>'><?php _e('Calendar', $spEvents->pluginDomain)?></a> </span> </div><!-- tec-events-calendar-header --> <?php sp_calendar_grid(); // See the views/table.php template for customization ?> <a title="<?php esc_attr_e('iCal Import', $spEvents->pluginDomain) ?>" class="ical" href="<?php echo sp_get_ical_link(); ?>"><?php _e('iCal Import', $spEvents->pluginDomain) ?></a> </div> <?php if ($thesis_design->layout['framework'] == 'full-width'){ echo "</div>\n"; echo "</div>\n"; thesis_hook_after_content_area(); #hook echo "<div id=\"footer_area\" class=\"full_width\">\n"; echo "<div class=\"page\">\n"; } thesis_footer_area(); echo "</div>\n"; echo "</div>\n"; thesis_ie_clear(); thesis_javascript::output_scripts(); thesis_hook_after_html(); #hook echo "</body>\n</html>";
Forum: Plugins
In reply to: [Plugin: The Events Calendar] Does not look great..<a class='tec-button-off' href='<?php echo events_get_listview_link(); ?>'><?php _e('Event List', $spEvents->pluginDomain)?></a>
Forum: Plugins
In reply to: [Plugin: The Events Calendar] Does not look great..The problem appears to be that it’s not calling this function:
Forum: Plugins
In reply to: [Plugin: The Events Calendar] Does not look great..Thanks for this Dan, I have been trying – and failing – for days to get this work.
Your fix works – mostly. It certainly allows me to use my theme.
BUT switching between list view and calendar view doesn’t work.
Both try to link to “/events/month” – which goes nowhere. I can see from your site that the List View link goes to “/category/events?eventDisplay=upcoming”.
I turned off nice URLs but the list view link wants to go to “/?post_type=sp_events&eventDisplay=month.
See here: https://gibc.biz/events/
Also the CSS is off on a particular event page – the type is tiny.
Example: https://gibc.biz/event/internet-politics-policy-2010/
I’m wondering if you made any subsequent code changes and/or if you an what may be going wrong in my case.
Any help appreciated.
Kieren