Closed gmauricio closed 9 years ago
Also, check line 280,
if(file_exists($has_js_dir))
should be changed to $has_style_dir
@gmauricio would you mind forking cta, making the changes, and offering a pull request? If there is no time I understand and will look into it asap.
I'll try to make some time for it this weekend
Awesome. I see and accepted. Thank you @gmauricio
Hey,
I noticed that sometimes the js files insided assets dir of my template are not included, then browsing the code, I found this at classes/class.cta.render.php , lines 265, 266:
$has_js_dir = WP_CTA_PATH.'templates/'.$template['slug'].'/assets/css/'; $has_style_dir = WP_CTA_PATH.'templates/'.$template['slug'].'/assets/js/';
$has_js_dir checks for css, and $has_style_dir checks for js.