Tema Wordpress




Voi incerca sa va fac o lista cu fisierele si functile de baza dintr-o tema wordpress. Atentie urmatoarea lista este bazate pe vesiunea Wordpress 2.3.2.

Fisiere principale intr-o tema wordpress

  • 404.php
  • archive.php
  • archives.php
  • attachmnt.php
  • comments.php
  • comments-popup.php
  • footer.php 
  • functions.php (pentru widget-ready sidebar)
  • header.php 
  • index.php
  • links.php
  • page.php
  • search.php
  • searchform.php
  • sidebar.php
  • single.php
  • screenshot.png / .jpg / .gif
  • style.css
  • readme.txt (optional)

Header.php

  • wp_head()
  • Titlul Blogului
  • Descrierea Blogului

Footer.php

  • wp_footer()
  • textul si link-urile din Footer -de obicei aici se plaseaza copyright stuff

Sidebar.php

  • Search form – (TEMPLATEPATH . ‘/searchform.php’)
  • Pagini / wp_list_pages()
  • Categorii / wp_list_categories – Ssunt sorate dupa nume sau ID? 
  • Archive wp_get_archives
  • Calendar – Calendarul normal se potriveste cu widget calendar?
  • Bookmark wp_list_bookmarks  
  • Meta: wp_register(), wp_loginout(), wp_meta()

Index.php, Archive.php, Search.php, Page.php, Single.php

  • the_ID()
  • Post titlu: the_permalink, the_title()
  • the_content
  • Postmetadata: edit_post_link(), comments_popup_link(), the_author(), the_category(), the_time(), the_tags
  • trackback_rdf() [hidden]
  • posts_nav_link() – Next/Previous page links
  • Else – ce sa para cand nu este continut. Sorry, no posts matched your criteria.

Archive.php

  •  is_tag()
  • single_cat_title()

Archives.php

  • wp_list_categories() – arhiva pe subiect

 Page.php

  • wp_link_pages ()
  • Nu este Postmetadata
  • dar se pastreaza edit_post_link()
  • Se scoate posts_nav_link()

Single.php

  • wp_link_pages ()
  • the_tags()
  • postmetadata
  • comments_template();

Comments.php

  • comments_number
  • Comments list
  • Comment forms si textarea
  • ‘No comments’ mesaj
  • ‘Comments awaiting moderation’mesaj
  • ‘Must login’ mesaj
  • ‘Password protected’ mesaj
  • Comments off mesaj

Functions.php

  • register_sidebar

Links.php

  • get_links_list
  1. Pentru a include fisiere precum in index.php folositi:

1 Comentariu

  1. Maxi says:

    Zici ca sunt files necesare . pot sa le iau de la o thema clasica sau trebuie sa le fac ?

Si care e parerea ta?...