'drop-shadow', 'label' => __( 'Drop Shadow', 'andbusiness' ), 'inline_style' => '.wp-block-image.is-style-drop-shadow { box-shadow: rgb(128, 128, 128) 4px 4px 4px 2px; }', ) ); // registerjs register_block_pattern( '/my-awesome-pattern', array( 'title' => __( 'Two buttons', 'andbusiness' ), 'description' => _x( 'Two horizontal buttons, the left button is filled in, and the right button is outlined.', 'Block pattern description', 'andbusiness' ), 'content' => "\n
\n
" . esc_html__( 'Button One', 'andbusiness' ) . "
\n\n\n\n
" . esc_html__( 'Button Two', 'andbusiness' ) . "
\n
\n", ) ); //menu register_nav_menu( 'header-nav', ' header navigation ' ); register_nav_menu( 'footer-nav', ' footer navigation ' ); // logo add_theme_support( 'custom-logo' ); function navbutton_scripts(){ wp_enqueue_script( 'navbutton_script', get_template_directory_uri() .'assets/js/nav.js', array('jquery'), '', true ); } add_action( 'wp_enqueue_scripts' , 'navbutton_scripts' ); // header add_theme_support( 'custom-header', apply_filters( 'andbusiness_custom_header_args', array( // 'default-image' => get_parent_theme_file_uri( '' ), 'width' => 1280, 'height' => 540, 'flex-width' => true, 'flex-height' => true, 'header-text' => false, ) ) ); // widget function my_widgets() { register_sidebar(array( 'id' => 'sidebar-item', 'name' => 'sidebar', 'description' => 'Uploading an image will replace the image in the specified location. ', 'before_widget' => '', 'before_title' => '' )); } add_action( 'widgets_init', 'my_widgets' ); // more tag function new_excerpt_more($more) { return '...' . 'more' . ''; } add_filter('excerpt_more', 'new_excerpt_more'); // category title derate function custom_archive_title($title){ $titleParts=explode(':',$title); if($titleParts[1]){ return $titleParts[1]; } return $title; } add_filter('get_the_archive_title','custom_archive_title'); // $content_width function mytheme_content_width() { $GLOBALS['content_width'] = apply_filters( 'mytheme_content_width', 740 ); } add_action( 'after_setup_theme', 'mytheme_content_width', 0 ); // editor-style.css add_action('admin_init',function(){ add_editor_style(); }); // sanitaize checkbox function theme_slug_sanitize_checkbox( $checked ) { return ( ( isset( $checked ) && true == $checked ) ? true : false ); } // comments function custom_comment_form($args) { $args['label_submit'] = 'submit'; return $args; } add_filter('comment_form_defaults', 'custom_comment_form'); // css //all wp_enqueue_style( 'all', get_theme_file_uri( 'style.css' ), array(), '1.0' ); // license wp_enqueue_style( 'license', get_theme_file_uri( 'http://www.gnu.org/licenses/gpl-3.0.html' ), array(), '3.0' ); //bootstrap wp_enqueue_style('boot', "https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/css/bootstrap.min.css"); wp_enqueue_style( 'swiper-min', get_theme_file_uri( '/inc/swiper/css/swiper.min.css' ), array(), '5.4.5' ); //font(navmenu) function wp_load_fontawesome() { wp_enqueue_style( 'font-awesome-5', 'https://use.fontawesome.com/releases/v5.15.3/css/all.css', array(), '5.13.3' ); } add_action( 'wp_enqueue_scripts', 'wp_load_fontawesome' ); //slick wp_enqueue_style('slick1', "https://cdn.jsdelivr.net/npm/slick-carousel@1/slick/slick.min.css"); wp_enqueue_style('slick2', "https://cdn.jsdelivr.net/npm/slick-carousel@1/slick/slick-theme.min.css"); //JavaScript //slicjs (navmenu) wp_enqueue_script('slick1', "https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"); wp_enqueue_script('slick2', "https://cdn.jsdelivr.net/npm/jquery@3/dist/jquery.min.js"); wp_enqueue_script('slick3', "https://cdn.jsdelivr.net/npm/slick-carousel@1/slick/slick.min.js"); // nav.js wp_enqueue_script('menu', get_template_directory_uri().'/assets/js/nav.js'); // swiper wp_enqueue_script( 'swiper-js', get_template_directory_uri().'/inc/swiper/js/swiper-bundle.min.js' ); wp_enqueue_style('cdnjs', get_template_directory_uri().'/inc/swiper/css/swiper-bundle.min.css'); // theme color 210 require "inc/theme_color.php"; // topbar 211 require "inc/top_bar.php"; // fixedpage background 220 require "inc/page_background_img.php"; // frontpage 230 require "inc/catchphrase.php"; // service 250 require "inc/service.php"; // about us 260 require "inc/company-detail.php"; // contact 270 require "inc/contact-custamize.php"; /** * body */ add_action( 'wp_body_open', function() { ?>