🤩 File Manager - Mr.X
PHP:
8.3.33
Server:
Apache
OS:
Linux 5.14.0-611.49.1.el9_7.x86_64
User:
websparkit
Navigate
Upload:
Upload
New File
New Folder
Editing:theme-setup.php
<?php add_action('after_setup_theme', 'unfia_setup'); function unfia_setup() { load_theme_textdomain('unfia', UNFIA_DIR . '/languages'); add_theme_support('automatic-feed-links'); add_theme_support('title-tag'); add_theme_support('post-thumbnails'); add_theme_support('custom-logo', [ 'height' => 80, 'width' => 280, 'flex-width' => true, 'flex-height' => true, ]); add_theme_support('html5', [ 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption', 'style', 'script', 'navigation-widgets' ]); add_theme_support('customize-selective-refresh-widgets'); add_theme_support('align-wide'); add_theme_support('responsive-embeds'); add_theme_support('wp-block-styles'); add_theme_support('editor-styles'); add_theme_support('custom-spacing'); add_theme_support('custom-units'); add_theme_support('link-color'); add_theme_support('widgets'); register_nav_menus([ 'primary' => esc_html__('Primary Menu', 'unfia'), 'top-bar' => esc_html__('Top Bar Menu', 'unfia'), 'footer' => esc_html__('Footer Menu', 'unfia'), 'social' => esc_html__('Social Menu', 'unfia'), ]); add_image_size('unfia-hero', 1920, 800, true); add_image_size('unfia-card', 600, 400, true); add_image_size('unfia-gallery', 800, 600, true); add_image_size('unfia-thumb', 400, 300, true); } add_action('widgets_init', 'unfia_widgets_init'); function unfia_widgets_init() { register_sidebar([ 'name' => esc_html__('Sidebar', 'unfia'), 'id' => 'sidebar-1', 'description' => esc_html__('Add widgets here.', 'unfia'), 'before_widget' => '<section id="%1$s" class="widget %2$s">', 'after_widget' => '</section>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>', ]); register_sidebar([ 'name' => esc_html__('Footer Column 1', 'unfia'), 'id' => 'footer-1', 'before_widget' => '<div id="%1$s" class="footer-widget %2$s">', 'after_widget' => '</div>', 'before_title' => '<h4 class="footer-widget-title">', 'after_title' => '</h4>', ]); register_sidebar([ 'name' => esc_html__('Footer Column 2', 'unfia'), 'id' => 'footer-2', 'before_widget' => '<div id="%1$s" class="footer-widget %2$s">', 'after_widget' => '</div>', 'before_title' => '<h4 class="footer-widget-title">', 'after_title' => '</h4>', ]); register_sidebar([ 'name' => esc_html__('Footer Column 3', 'unfia'), 'id' => 'footer-3', 'before_widget' => '<div id="%1$s" class="footer-widget %2$s">', 'after_widget' => '</div>', 'before_title' => '<h4 class="footer-widget-title">', 'after_title' => '</h4>', ]); register_sidebar([ 'name' => esc_html__('Footer Column 4', 'unfia'), 'id' => 'footer-4', 'before_widget' => '<div id="%1$s" class="footer-widget %2$s">', 'after_widget' => '</div>', 'before_title' => '<h4 class="footer-widget-title">', 'after_title' => '</h4>', ]); } add_filter('excerpt_length', function () { return 30; }); add_filter('excerpt_more', function ($more) { return '...'; }); add_action('init', 'unfia_block_patterns'); function unfia_block_patterns() { register_block_pattern_category('unfia', ['label' => __('UNFIA', 'unfia')]); }
Save Changes
Cancel
Create New File
Create New Folder