__( 'Main Menu', 'colorsnap' ) ) ); } require_once (get_template_directory() . '/setup/options.php'); add_action('wp_enqueue_scripts','colorsnap_load_scripts'); function colorsnap_load_scripts() { wp_enqueue_script('jquery'); wp_register_script('colorsnap-videos', get_template_directory_uri().'/scripts/videos.js'); wp_enqueue_script('colorsnap-videos'); } function colorsnap_enqueue_admin_scripts() { global $colorsnap_theme_page; if ( $colorsnap_theme_page != get_current_screen()->id ) { return; } wp_enqueue_script('colorsnap-admin-color', get_template_directory_uri().'/scripts/color-picker/color.js'); } add_action('wp_enqueue_scripts','colorsnap_load_styles'); function colorsnap_load_styles() { $options = get_option('colorsnap_options'); } add_action('wp_head', 'colorsnap_print_custom_styles'); function colorsnap_print_custom_styles() { if(!is_admin()){ $options = get_option('colorsnap_options'); if ( false != $options['colorscheme']) { $custom_css = ''; echo $custom_css; } } } add_action('wp_head', 'colorsnap_print_custom_scripts', 99); function colorsnap_print_custom_scripts() { if(!is_admin()){ $options = get_option('colorsnap_options'); ?> *' ); $args['comment_notes_before'] = '
' . __('Your email is kept private.', 'colorsnap') . ( $req ? $required_text : '' ) . '
'; $args['title_reply'] = __('Post a Comment', 'colorsnap'); $args['title_reply_to'] = __('Post a Reply to %s', 'colorsnap'); return $args; } add_action( 'init', 'colorsnap_add_shortcodes' ); function colorsnap_add_shortcodes() { add_shortcode('wp_caption', 'fixed_img_caption_shortcode'); add_shortcode('caption', 'fixed_img_caption_shortcode'); add_filter('img_caption_shortcode', 'colorsnap_img_caption_shortcode_filter',10,3); add_filter('widget_text', 'do_shortcode'); } function colorsnap_img_caption_shortcode_filter($val, $attr, $content = null) { extract(shortcode_atts(array( 'id' => '', 'align' => '', 'width' => '', 'caption' => '' ), $attr)); if ( 1 > (int) $width || empty($caption) ) return $val; $capid = ''; if ( $id ) { $id = esc_attr($id); $capid = 'id="figcaption_'. $id . '" '; $id = 'id="' . $id . '" aria-labelledby="figcaption_' . $id . '" '; } return ''; } add_action( 'widgets_init', 'colorsnap_widgets_init' ); function colorsnap_widgets_init() { register_sidebar( array ( 'name' => __('Sidebar Widget Area', 'colorsnap'), 'id' => 'primary-widget-area', 'before_widget' => '