esc_html__('sidebar', 'alstromeria' ), 'id'=> 'sidebar-1', 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', )); register_sidebar( array( 'name' => esc_html__('Header Right','alstromeria'), 'id' => 'header_right', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__('Footer 1','alstromeria'), 'id' => 'footer-1', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__('Footer 2','alstromeria'), 'id' => 'footer-2', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => esc_html__('Footer 3','alstromeria'), 'id' => 'footer-3', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_widget('alstromeria_Social_Profile'); } add_action( 'widgets_init', 'alstromeria_widgets_init' ); require_once(get_template_directory() . '/includes/widgets/widget-social.php'); require_once(get_template_directory() . '/includes/customizer.php'); require_once(get_template_directory() . '/includes/customizer-styles.php'); add_action( 'after_setup_theme', 'alstromeria_setup' ); function alstromeria_setup() { /* * Translations can be filed in the /languages/ directory. */ load_theme_textdomain( 'alstromeria', get_template_directory() . '/languages' ); add_theme_support( "title-tag" ); add_theme_support( 'automatic-feed-links' ); add_theme_support( 'html5', array( 'comment-list', 'comment-form', 'search-form', 'gallery', 'caption' ) ); add_theme_support( 'custom-background', apply_filters( 'elecit_custom_background_args', array( 'default-attachment' => 'fixed', 'default-image' => '', ) ) ); add_theme_support( 'custom-logo', array( 'height' => 80, 'width' => 300, 'flex-height' => true, ) ); add_theme_support( 'post-thumbnails' ); add_image_size('postthumbnail', 700, 340, true ); add_image_size( 'alstromeria-small', 100, 47, true); add_theme_support( 'custom-header', array( 'width' => 1280, 'height' => 150, ) ); } add_action( 'init', 'alstromeria_register_my_menu' ); add_action( 'wp_enqueue_scripts', 'alstromeria_scripts_styles' ); function alstromeria_scripts_styles() { wp_enqueue_style('bootstrap-css', get_template_directory_uri() . '/css/bootstrap.min.css'); wp_enqueue_style( 'alstromeria-style', get_stylesheet_uri()); wp_enqueue_script('bootstrap-bootstrap-js', get_template_directory_uri().'/js/bootstrap.min.js', array('jquery') ); wp_enqueue_style('font-awesome', get_template_directory_uri() .'/fontawesome/css/font-awesome.min.css'); wp_enqueue_style( 'dashicons' ); } function alstromeria_comment($comment, $args, $depth) { $GLOBALS['comment'] = $comment; ?>
  • id="li-comment-">
    " id="comment-" >
    (#) comment_approved == '0') : ?>



    $depth, 'max_depth' => $args['max_depth']))) ?>

    ' . esc_attr(get_bloginfo('name')) . '

    '.esc_attr(get_bloginfo('description')).'
    '; echo $output; } endif; // sanremo_custom_logo function alstromeria_new_excerpt_more($more) { return '…'; } add_filter('excerpt_more', 'alstromeria_new_excerpt_more'); add_filter( 'excerpt_length', 'alstromeria_excerpt_length' ); function alstromeria_excerpt_length( $length ) { return get_theme_mod( 'excerpt_length', 55 ); } function alstromeria_excerpt_length_count($string, $word_limit) { $words = explode(' ', $string, ($word_limit + 1)); if(count($words) > $word_limit) { array_pop($words); } return implode(' ', $words); } add_action( 'after_setup_theme', 'alstromeria_bootstrap_setup' ); if ( ! function_exists( 'alstromeria_bootstrap_setup' ) ): function alstromeria_bootstrap_setup(){ function alstromeria_register_my_menu() { register_nav_menu('header-menu',__( 'Header Menu','alstromeria' )); } class Bootstrap_Walker_Nav_Menu extends Walker_Nav_Menu { function start_lvl( &$output, $depth = 0, $args = array() ) { $indent = str_repeat("\t", $depth); $output .= "\n$indent