esc_html__( 'Primary', 'seos-photography' ), ) ); add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption', ) ); // Set up the WordPress core custom background feature. add_theme_support( 'custom-background', apply_filters( 'seos_photography_custom_background_args', array( 'default-color' => '', 'default-image' => '', ) ) ); } endif; add_action( 'after_setup_theme', 'seos_photography_setup' ); function seos_photography_content_width() { $GLOBALS['content_width'] = apply_filters( 'seos_photography_content_width', 640 ); } add_action( 'after_setup_theme', 'seos_photography_content_width', 0 ); /** * Register widget area. */ function seos_photography_widgets_init() { register_sidebar( array( 'name' => esc_html__( 'Sidebar', 'seos-photography' ), 'id' => 'sidebar-1', 'description' => esc_html__( 'Add widgets here.', 'seos-photography' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); } add_action( 'widgets_init', 'seos_photography_widgets_init' ); /************************** Includes ******************************/ require get_template_directory() . '/kirki/kirki.php'; require get_template_directory() . '/inc/custom-header.php'; require get_template_directory() . '/inc/template-tags.php'; require get_template_directory() . '/inc/extras.php'; require get_template_directory() . '/inc/customizer.php'; require get_template_directory() . '/inc/jetpack.php'; require get_template_directory() . '/js/viewportchecker.php'; require get_template_directory() . '/inc/functions-header.php'; require get_template_directory() . '/inc/range/range-class.php'; /** * Enqueue scripts and styles. */ function seos_photography_scripts() { wp_enqueue_style( 'seos-photography-style', get_stylesheet_uri() ); wp_enqueue_script( 'jquery'); wp_enqueue_style( 'seos_photography_animation_menu', get_template_directory_uri() . '/css/flipInX.css'); wp_enqueue_style( 'seos_photography_animata_css', get_template_directory_uri() . '/css/animate.css'); wp_enqueue_style( 'seos_scroll_css', get_template_directory_uri() . '/css/scroll-effect.css'); wp_enqueue_script( 'viewportchecker', get_template_directory_uri() . '/js/viewportchecker.js'); wp_enqueue_script( 'seos-photography-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '20151215', true ); wp_enqueue_style( 'seos-photography-fontawesome', get_template_directory_uri() . '/css/font-awesome.min.css' ); wp_enqueue_script( 'seos-photography-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20151215', true ); wp_enqueue_style( 'seos-photography-genericons', get_template_directory_uri() . '/genericons/genericons.css', array(), '3.4.1' ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } } add_action( 'wp_enqueue_scripts', 'seos_photography_scripts' ); function seos_photography_admin_scripts() { wp_enqueue_style( 'seos_photography_admin', get_template_directory_uri() . '/css/admin.css'); } add_action( 'admin_enqueue_scripts', 'seos_photography_admin_scripts' ); /********************************************************************************************************* * Excerpt **********************************************************************************************************/ function seos_photography_excerpt_more( $seos_photography_link ) { if ( is_admin() ) { return $seos_photography_link; } $seos_photography_link = sprintf( '', esc_url( get_permalink( get_the_ID() ) ), /* translators: %s: Name of current post */ sprintf( __( 'Read More "%s"', 'seos-photography' ), get_the_title( get_the_ID() ) ) ); return ' … ' . $seos_photography_link; } add_filter( 'excerpt_more', 'seos_photography_excerpt_more' ); /*********************************************************************************** * SEOS Photography Buy ***********************************************************************************/ function seos_photography_support($wp_customize){ class Seos_Business_Customize extends WP_Customize_Control { public function render_content() { ?>
add_section( 'seos_photography_buy_section', array( 'title' => __('SEOS Photography Update Pro', 'seos-photography'), 'description' => __(' Learn more about SEOS Photography. ','seos-photography'), 'priority' => 1, )); $wp_customize->add_setting( 'seos_photography_setting', array( 'capability' => 'edit_theme_options', 'sanitize_callback' => 'wp_filter_nohtml_kses', )); $wp_customize->add_control( new Seos_Business_Customize( $wp_customize,'seos_photography_setting', array( 'label' => __('SEOS Photography Update Pro', 'seos-photography'), 'section' => 'seos_photography_buy_section', 'settings' => 'seos_photography_setting', ) ) ); } endif; add_action('customize_register', 'seos_photography_buy'); /********************************************************************************************************* * Customizer Styles **********************************************************************************************************/ function seos_photography_customize_checkbox_styles( $input ) { ?>