esc_html__( 'topbar', 'atom' ), 'primary' => esc_html__( 'primary', 'atom' ), ) ); // Load theme languages load_theme_textdomain( 'atom', get_template_directory().'/languages' ); } } add_action( 'after_setup_theme', 'atom_setup' ); function my_search_form( $form ) { $form = ''; return $form; } add_filter( 'get_search_form', 'my_search_form' ); /*content-width*/ if ( ! isset( $content_width ) ) $content_width = 900; /* inclusione dei file di stile css e js */ if( ! function_exists('atom_styles_scripts') ){ function atom_styles_scripts(){ wp_enqueue_script('jquery'); wp_enqueue_script('bootstrapjs',get_template_directory_uri().'/js/bootstrap.js',array('jquery'),'',true); wp_enqueue_script('custom-script',get_template_directory_uri().'/js/custom.js',array('jquery'),'',true); wp_enqueue_style('bootstrap',get_template_directory_uri().'/css/bootstrap.css'); wp_enqueue_style('fontawesome',get_template_directory_uri().'/css/font-awesome-4.7.0/css/font-awesome.css'); wp_enqueue_style( 'author-meta-widget',get_template_directory_uri().'/widget/author_meta_widget/css/style.css'); wp_enqueue_style( 'atom_ultimi_articoli',get_template_directory_uri().'/widget/atom_ultimi_articoli/css/style.css'); wp_enqueue_style( 'atom_social_link_widget',get_template_directory_uri().'/widget/atom_social_link_widget/css/style.css'); wp_enqueue_style('atom',get_template_directory_uri().'/style.css'); } } add_action('wp_enqueue_scripts','atom_styles_scripts'); function atom_widgets_init(){ register_sidebar(array( 'name' => __( 'Footer-1 Sidebar','atom' ), 'id' => 'footer-1-sidebar', 'class' => 'sidebar-module', 'description' => __( 'Tutti i widget in questa area verranno inseriti nel footer','atom' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

' )); register_sidebar(array( 'name' => __( 'Footer-2 Sidebar','atom' ), 'id' => 'footer-2-sidebar', 'class' => 'sidebar-module', 'description' => __( 'Tutti i widget in questa area verranno inseriti nella seconda barra del footer','atom' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

' )); register_sidebar(array( 'name' => __( 'Blog Sidebar','atom' ), 'id' => 'blog-sidebar', 'description' => __( 'Tutti i widget in questa area verranno inseriti nella sidebar laterale','atom' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

' )); } add_action( 'widgets_init', 'atom_widgets_init' ); /* Preloader /* ------------------------------------ */ function atom_preloader() { ?>
Preloader
comment_type): case 'pingback': case 'trackback':?>
  • id="comment-">

    ', '' ); ?>

  • id="li-comment-">
    %1$s %2$s

    ', get_comment_author_link(), // If current post author is also comment author, make it known visually. ( $comment->user_id === $post->post_author ) ? '' . __( 'Autore del post','atom' ) . '' : '' ); ?>
    comment_approved ) : ?>

    ', '

    ' ); ?>
    __( 'Rispondi', 'atom' ), 'after' => ' ', 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
  • current_post ) { $classes[] = 'primo-post'; } return $classes; } //customizer /*===============*/ require get_template_directory().'/inc/customizer.php'; function get_categories_select() { $teh_cats = get_categories(); $results; $count = count($teh_cats); for ($i=0; $i < $count; $i++) { if (isset($teh_cats[$i])) $results[$teh_cats[$i]->slug] = $teh_cats[$i]->name; else $count++; } return $results; } //css-customizer /*================*/ require get_template_directory().'/inc/css-customizer.php';