array( 'value' => 'global-sidebar', 'label' => esc_html__( 'Global sidebar', 'advance-blog' ), ), 'sidebar-right' => array( 'value' => 'sidebar-right', 'label' => esc_html__( 'Right sidebar', 'advance-blog' ), ), 'sidebar-left' => array( 'value' => 'sidebar-left', 'label' => esc_html__( 'Left sidebar', 'advance-blog' ), ), 'no-sidebar' => array( 'value' => 'no-sidebar', 'label' => esc_html__( 'No sidebar', 'advance-blog' ), ), ); add_action( 'admin_enqueue_scripts', 'advance_blog_backend_scripts'); if ( ! function_exists( 'advance_blog_backend_scripts' ) ){ function advance_blog_backend_scripts( $hook ) { if(('post.php' === $hook) ||('page.php' === $hook) || ('page-new.php' === $hook)||('post-new.php' === $hook)){ wp_enqueue_style( 'wp-color-picker'); wp_enqueue_script( 'wp-color-picker'); } } } /** * Callback function for post option. */ if( ! function_exists( 'advance_blog_post_metafield_callback' ) ): function advance_blog_post_metafield_callback() { global $post, $advance_blog_post_sidebar_fields; $post_type = get_post_type($post->ID); $post_type = get_post_type($post->ID); $ut_ed_twitter_summary = get_theme_mod('ut_ed_twitter_summary'); $ut_ed_open_graph = get_theme_mod('ut_ed_open_graph'); wp_nonce_field( basename( __FILE__ ), 'advance_blog_post_meta_nonce' ); ?>