alexvs
Forum Replies Created
-
Forum: Plugins
In reply to: [CDN Sync Tool] [Plugin: CDN Sync Tool] Not excluding JSIt’s problem in function ‘doCombine’ in file ‘cdn-sync-tool\lib\Cst\JsCss.php’.
You have a choice:
1. Write in exclude list full path to file, like:
https://your-domain.com/wp-content/themes/jcarusel/jcarusel.css2. Edit function ‘doCombine’ in file ‘cdn-sync-tool\lib\Cst\JsCss.php’:
Changeif (in_array($file, explode("\n",$filesConfig["exclude_js"])) || in_array($file, explode("\n",$filesConfig["exclude_css"]))) { continue; }
to
if (in_array(basename($match[1]), explode("\n",$filesConfig["exclude_js"])) || in_array(basename($match[1]), explode("\n",$filesConfig["exclude_css"]))) { continue; }
then use only file name in exclude list (ex.: jcarusel.css)
It’s mu custom function, you can try without it:
function show_ai1ec($desc=”)
{
global $calendar;
$content .=
‘<div id=”ai1ec-container” class=”ai1ec-container “>’
. “<h3>Рассписание:</h3>”
. ‘<p class=”schedule_desc”>’ . $desc . ‘</p>’
. $calendar
. ‘</div>’;echo $content;
}or add function
function get_init_ai1ec_class() {
global $ai1ec_settings;$classes[] = ‘ai1ec-calendar’;
$action = $_REQUEST[‘action’];
if( ! in_array( $action, array( ‘ai1ec_month’, ‘ai1ec_agenda’, ‘ai1ec_term_filter’ ) ) )
$action = ‘ai1ec_’ . $ai1ec_settings->default_calendar_view;
$action = strtr( $action, ‘_’, ‘-‘ );
$action = preg_replace( ‘/^ai1ec-/’, ”, $action );$classes[] = “ai1ec-action-$action”;
if( ! $_REQUEST[‘ai1ec_month_offset’] && ! $_REQUEST[‘ai1ec_page_offset’] ) {
$classes[] = ‘ai1ec-today’;
}return $classes;
}Hello
Yes, you can call init function in such way. In this case calendar will be init for all pages/posts.
Yes, put ‘function show_ai1ec(…’ in function.php and call from template
Good Luck
Sorry for delay.
I have solved this task in such way:in header.php i call function ‘ai1ec_init();’
$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();
}this function init ai1ec-calendat: include java-scriptes and save html of calendar to global variable ‘$calendar’
then in page-template in needed point i call function to show calendar:
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;
}Good luck
@yani.iliev
Thank you, very match! I have solved my problem!I see
and calling calendar by php function instead of shortcode, will be to?Because shortcode int’s nor exactly what i needed: i what to integrate ai1ec in post template.
For example: i have several pages about some teachers and i need display their schedule on their page automatically without adding shotcode in post.
Forum: Plugins
In reply to: [Timely All-in-One Events Calendar] [Plugin: All-in-One Event Calendar] Wow !+1
@yani.iliev
It’s great idea with shortcode, I am quite impatient for thisBut may be i can use some function instead of shortcode to get on different pages calendar with different events yet?
Thank you!
Forum: Plugins
In reply to: [MediaElement.js - HTML5 Video & Audio Player] Black box on Opera 11.50Problem was with because of ‘WP Minify’ plugin.
Sulution: disable ‘WP Minify’ or add mediaelement-and-player.min.js to exclude list
Forum: Fixing WordPress
In reply to: [Plugin: NextGEN Gallery] A failure occurredI tried load images bu ~100Kb.
Now when i try load image i already get message:
ERROR HTTP ERROR : IMGP1559.JPG : 403Forum: Fixing WordPress
In reply to: [Plugin: NextGEN Gallery] A failure occurredI already have PHP5
Operating System : Linux
Server : Apache/1.3.41 (Unix) mod_throttle/3.1.2 mod_psoft_traffic/0.2 mod_ssl/2.8.31 OpenSSL/0.9.8b
Memory usage : 16.49 MByte
MYSQL Version : 4.1.22-standard-log
SQL Mode : Not set
PHP Version : 5.2.9
PHP Safe Mode : Off
PHP Allow URL fopen : Off
PHP Memory Limit : 32M
PHP Max Upload Size : 20M
PHP Max Post Size : 16M
PHP Max Script Execute Time : 30s
PHP Exif support : Yes ( V1.4 )
PHP IPTC support : Yes
PHP XML support : YesForum: Fixing WordPress
In reply to: [Plugin: NextGEN Gallery] A failure occurredNo idea?