carletto0282
Forum Replies Created
-
Great Alexvs!
I’m really close to the end.
I finally get the calendar.The first time I get it, there were just the names of the events and their descriptions.
So I add in the <head> a call for the calendar.css and I get the right calendar layout.
Now I see that there are no effects on hover and when I click the “prev/next month/year” button on the top of the calendar they don’t work.
I think it’s just a matter of calling the right js scripts.
There’s a way to load them calling a function in the functions.php or I have to do it by myself.
Thanks again, I really appreciate your great support!
Hi Alexvs,
I’m trying to getting out of this calendar-trouble with your great tips but unfortunately I’m not so lucky!
I put this
in my functions.php
and then in the template file I call
show_ai1ec($desc='');
When I load the page I get
Fatal error: Call to undefined function get_init_ai1ec_class() in /web/htdocs/www.fddb.org/home/wp-content/themes/thematic-fddb/functions.php on line 1492
that is the line of my show_ai1ec($desc=”) function.
Any suggestion?
I’m making it wrong?Thanks again for your help.
Bye
CarloHi Alexvs,
thank you so much for your reply.
I just need some clarification.When you say “in header.php i call function ‘ai1ec_init();'” you mean that I need to put
$calendar; function ai1ec_init() { global $ai1ec_settings, $ai1ec_calendar_controller, $ai1ec_events_controller, $calendar; ob_start(); $ai1ec_calendar_controller->view(); $calendar = ob_get_contents(); ob_end_clean(); }
in my function.php? and then call the function with:
add_action('wp_head', 'ai1ec_init');
also in my function.php?
What about:
function show_ai1ec($desc='') { global $calendar; $content .= '<div id="ai1ec-container" class="ai1ec-container '.join(' ',get_init_ai1ec_class()).'">' . "<h3>Рассписание:</h3>" . '<p class="schedule_desc">' . $desc . '</p>' . $calendar . '</div>'; echo $content; }
I need to put it in my template file?
Or I have to put it in the function.php and then callshow_ai1ec($desc='')
in my template file?
Thank you for your help.
I really appreciate that!Thanks
CarloI’m so sorry for the code issue.
Hope this is ok.Hi guys,
since I see in the roadmap that shortcode support has been moved to milestone 1.2 can I ask to alexvs or to anyone who knows it how to put the calendar in a custom template?I tried to declare a jquery selector in the settings page but it doesn’t work with my custom template (where I have several custom queries – could it be for this reason?) while it works like a charm on a blank test page where i put only a single div with the same selector declared.
Hope you can help me.
thanks anyway
keep up the great work!bye
CarloHope this could help:
here you can find a sample of what I do to custom query event post:
Thanks josjo.
Great!Wow.. great solution!
Finally I get it… it was so frustrating till now… thanks josjo!
One more thing. What about retrieving the google map?
Thanks again.