function init() { if (is_admin() || fastfood_is_mobile() || fastfood_is_printpreview()) { return; } if (!FastfoodOptions::get_opt('fastfood_cust_comrep') || !FastfoodOptions::get_opt('fastfood_jsani')) { add_action('comment_form_before', array($this, 'load_standard_scripts')); } else { add_action('comment_form_before', array($this, 'load_custom_scripts')); add_action('comment_form_after', array($this, 'hide_form')); } }
function fastfood_print_preview_buttons() { global $post; if (!fastfood_is_printpreview()) { return; } ?> <div id="close_preview"> <a id="close_button" title="<?php _e('Close', 'fastfood'); ?> " href="<?php echo get_permalink($post->ID); ?> "><?php _e('Close', 'fastfood'); ?> </a> <a href="javascript:window.print()" title="<?php _e('Print', 'fastfood'); ?> " id="print_button" class="hide-if-no-js"><?php _e('Print', 'fastfood'); ?> </a> </div> <?php }