function premise_do_after_post() { switch (premise_get_advice_type()) { case 'social-share': if (!premise_has_social_share_shared_page()) { premise_the_after_social_share_tease(); } break; case 'content-scroller': premise_do_after_content_scroller_content(); break; } }
function enqueue_video_scripts_css() { if (premise_get_advice_type() != 'video') { return; } ?> <link rel="stylesheet" href="<?php echo plugins_url('/themes/premise/js/colorbox/colorbox.css', PREMISE_THEMES_DIR); ?> " /> <script src="<?php echo plugins_url('/themes/premise/js/colorbox/jquery.colorbox-min.js', PREMISE_THEMES_DIR); ?> "></script> <script type="text/javascript" charset="utf-8"> $jQuery = jQuery.noConflict(); $jQuery(document).ready(function(){ $jQuery("#inline").colorbox({ inline:true }); }); </script> <?php }