. */ add_theme_support( 'automatic-feed-links' ); /** * Enable support for post thumbnails and featured images. */ add_theme_support( 'post-thumbnails' ); /** * Add support for two custom navigation menus. */ register_nav_menus( array( 'primary' => __( 'Primary Menu', 'orcaonezero' ), 'secondary' => __( 'Secondary Menu', 'orcaonezero' ), ) ); add_theme_support( "wp-block-styles" ) ; add_theme_support( "responsive-embeds" ) ; add_theme_support( "custom-logo"); add_theme_support( "custom-header"); add_theme_support( "custom-background"); add_theme_support( "align-wide" ); /** * Enable support for the following post formats: * aside, gallery, quote, image, and video */ add_theme_support('title-tag'); add_theme_support( 'post-formats', array( 'aside', 'audio', 'chat', 'gallery', 'image', 'link', 'quote', 'status', 'video', ) ); } endif; // myfirsttheme_setup add_action( 'after_setup_theme', 'orcaonezero_setup' ); function orcaonezero_styles(){ wp_enqueue_style('tailwindcss', 'https://cdn.tailwindcss.com/3.3.3', 'array','3','all'); wp_enqueue_style( 'style',get_template_directory_uri() . '/style.css', array('tailwind'), '1', 'all' ); wp_enqueue_style( 'tailwind',get_template_directory_uri() . '/src/output.css', array(), '3.3.3', 'all' ); wp_enqueue_script( 'flowbite',get_template_directory_uri() . '/src/flowbite.min.js', array(), '3.3.3', true ); wp_enqueue_style( 'flowbite', get_template_directory_uri() . '/src/flowbite.min.css', array(), '3.3.3', 'all' ); } include('customizer.php'); add_action( 'customize_preview_init', 'cd_customizer' ); function cd_customizer() { wp_enqueue_script('cd_customizer',get_template_directory_uri() . '/customizer.js', array( 'jquery','customize-preview' ),'1', true); } add_theme_support( 'customize-selective-refresh-widgets' ); /** * add html5 support */ add_theme_support('html5',array('comment-list','comment-form','search-form','gallery','caption')); function register_button_block_styles_1() { register_block_style( 'core/button', // name of your block array( 'name' => 'ghub-button-1', // part of the class that gets added to the block. 'label' => __( ' Ghub Style 1', 'orcaonezero' ), ) ); } add_action( 'init', 'register_button_block_styles_1' ); add_action( 'widgets_init', 'my_register_sidebars' ); function my_register_sidebars() { /* Register the 'primary' sidebar. */ register_sidebar( array( 'id' => 'primary', 'name' => __( 'Primary Sidebar' ,'orcaonezero'), 'description' => __( 'A short description of the sidebar.','orcaonezero' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); /* Repeat register_sidebar() code for additional sidebars. */ } register_block_pattern( 'orcaonezero/my-awesome-pattern', array( 'title' => __( 'Two buttons', 'orcaonezero' ), 'description' => _x( 'Two horizontal buttons, the left button is filled in, and the right button is outlined.', 'Block pattern description', 'orcaonezero' ), 'content' => "\n
\n
" . esc_html__( 'Button One', 'orcaonezero' ) . "
\n\n\n\n
" . esc_html__( 'Button Two', 'orcaonezero' ) . "
\n
\n", ) ); add_action( 'after_theme_setup', 'load_theme_language' ); function load_theme_language() { load_theme_textdomain( 'orcaonezero', get_template_directory() . '/languages' ); }