'Left Sidebar', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); register_sidebar(array( 'name'=>'Right Sidebar', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); } # Load functions include (TEMPLATEPATH . '/functions/bfa_header_config.php'); include (TEMPLATEPATH . '/functions/bfa_hor_cats.php'); include (TEMPLATEPATH . '/functions/bfa_hor_pages.php'); include (TEMPLATEPATH . '/functions/bfa_footer.php'); include (TEMPLATEPATH . '/functions/bfa_recent_comments.php'); include (TEMPLATEPATH . '/functions/bfa_popular_posts.php'); include (TEMPLATEPATH . '/functions/bfa_popular_in_cat.php'); include (TEMPLATEPATH . '/functions/bfa_subscribe.php'); include (TEMPLATEPATH . '/functions/bfa_text_widget.php'); include (TEMPLATEPATH . '/functions/bfa_search_widget.php'); include (TEMPLATEPATH . '/functions/bfa_calendar_widget.php'); if (!function_exists('paged_comments')) { include (TEMPLATEPATH . '/functions/bfa_comment_walker.php'); } if (function_exists('sociable_html')) { include (TEMPLATEPATH . '/functions/bfa_sociable2.php'); } // find in directory function, needed for header images on WPMU if (file_exists(ABSPATH."/wpmu-settings.php")) {include (TEMPLATEPATH . '/functions/bfa_m_find_in_dir.php');} # Add admin page CSS function bfa_add_stuff_admin_head() { $url_base = get_bloginfo('template_directory'); // add jquery function only to theme page or widgets won't work in 2.3 and older if ( $_GET['page'] == basename(__FILE__) ) { echo "\n"; echo "\n"; // add jquery to WP 2.3 and older if ( substr(get_bloginfo('version'), 0, 3) < 2.5 ) { echo "\n"; } echo "\n"; } } add_action('admin_head', 'bfa_add_stuff_admin_head'); ?> ', '>', $string); return $string; } ?>

'.$themename. __(' settings saved.','atahualpa').'

'; if ( $_REQUEST['reset'] ) echo '

'.$themename. __(' settings reset.','atahualpa').'

'; ?>

Theme Options

\n
\n"; } # extra info for some categories if($value['category'] == "switchto:postinfos") { ?>
Post Info Items

Configure a Kicker, a Byline and a Footer for posts and pages by arranging these Post Info Items.

Some of these post info items have one or several parameters:
  • You can leave parameters empty but do not remove their single quotes, even if the parameter is empty.
  • Replace the parameter delimiter with what you want to put between the list items of the tag or category list, i.e. a comma.
  • Replace the parameters before and after with what you want to display before or after that info item. If an item has these \"before/after\" parameters, use them instead of hard coding text before and after that item: Example: Use
    %tags-linked('Tags: ', ', ', ' - ')%
    instead of
    Tags: %tags-linked('', ', ', '')% -
  • Replace the parameter linktext with the link text for that item.
HTML and icons can be used, inside of parameters, too, just not inside the date item:
  • <image(someimage.gif)> to include an image. Note: The image item doesn't have quotes
  • To use your own images, upload them to /[theme-folder]/images/icons/

Icons

Currently available images (Once you uploaded yours they will be listed here):

","atahualpa"); ?> $file) { echo '  <image(' . "$file" . ')>'; } ?>
 
Examples Examples for Post Bylines:
  • By %author%, on %date('F jS, Y')%
  • <strong>%author-linked%</strong> posted this in <strong>%categories-linked(', ')%</strong> on <em>%date('F jS, Y')%</em>
  • <image(user.gif)> %author-linked% <image(date.gif)> %date('l, jS \of F Y \a\t h:i:s A')%
Examples for Post Footers:
  • %tags-linked('<strong>Tags:</strong> ', ', ', ' &mdash; ')% <strong>Categories:</strong> %categories-linked(', ')% &mdash; %comments('Nobody has commented yet, kick it off...', 'One comment so far', '% people had their say - be the next!', 'Sorry, but comments are closed')% &mdash; %wp-print% &mdash; %wp-email% &mdash; %sociable% &mdash; %wp-postviews%

Post Info Items

List of available post info items:

%author%

Prints the name of the author of the post.

%author-linked%

Prints the name of the author of the post, and links it to a page listing all posts by that author.

%date('F jS, Y')%

Prints the date and/or time the post was published at. Many configuration options at PHP Date. Because most letters of the alphabet represent a certain date/time output function, you will have to escape each letter that you want to display LITERALLY, for instance, to include words like at, on, or the somewhere inside the date output. Escaping a letter means to put a backslash \ right before that letter. That will tell PHP that you mean the actual letter and not the corresponding date function.

How to escape literal strings
  • on -> \o\n
  • of -> \of   (Note how the the lowercase f didn't get a backslash. That's because f is one of the letters of the alphabet that does not represent a PHP date function)
  • at -> \a\t
  • the -> \t\h\e
  • The arrows just illustrate how to change a word to display it literally inside a date function, don't use them
Examples:
  • %date('F j, Y, \a\t g:i a')% displays: December 10, 2008, at 5:16 pm
    Note how the letters a and t of the word at are escaped with backslashes to display them literally instead of being interpreted as a PHP date function.
  • %date('F j, Y, g:i a')% displays: December 10, 2008, 5:16 pm
  • %date('m.d.y')% displays: 10.12.08

%category%

Prints the name of the first category the post is filed under.

%category-linked%

Prints the name of the first category the post is filed under and links the name to that category page.

%categories('delimiter')%

Prints the names of all categories the post is filed under, separated by delimiter.
Example: %categories(', ')%

%categories-linked('delimiter')%

Prints the names of all categories the post is filed under, separated by delimiter, and links each name to the respective category page.
Example: %categories-linked(' | ')%

%tags('before', 'delimiter', 'after')%

Prints the names of all tags attached to the post, separated by delimiter.
Example: %tags('Tags: ', ', ', '')%

%tags-linked('before', 'delimiter', 'after')%

Prints the names of all tags attached to the post, separated by delimiter, and links each name to the respective tag page.
Example: %tags-linked('Tagged with: ', ' - ', '. ')%

%comments('No comments', '1 comment', '% comments', 'Comments closed')%

Prints a link to the comment section of the post. The link text depends on the comment count & status (open/closed).

When using this item, provide 4 text strings for the 4 possible comment states:
  • Replace 'No Comments' with your link text for posts that have no comments yet
  • Replace '1 comment' with your text for posts with 1 comment
  • Replace '% comments' with your text for posts with 2 or more comments. The % (percent) character will be replaced with the comment count. Use that character in your own text, too, unless you do not want to display the comment count.
  • Replace 'Comments closed' with your text for posts where comments are closed.

Example: %comments('Leave your comment', 'One comment so far', '% people had their say - chime in!', 'Sorry, but comments are closed')%

%comments-rss('linktext')%

Prints a link to the RSS feed of the post's comments, with linktext as the link text.
Example: %comments-rss('Subscribe to the comments of this post')%

%trackback%

Prints the trackback URL of the post, without linking it.

%trackback-linked('linktext')%

Prints a link to the trackback URL of the post, with linktext as the link text.
Example: %trackback-linked('Trackback this Post')%

%print('linktext')%

Prints a link with linktext as the link text, which, when clicked, will start printing the content of the center column of the current page, without header, sidebars and footer.
Example: %print('Print this Page')%

%edit('before', 'linktext', 'after')%

Prints a direct edit link for the post, IF the current viewer is permitted to edit posts, with linktext as the link text.
Example: %edit(' - ', 'Edit This Post', '')%", "atahualpa"); ?>

%wp-print%


\'Print\'" href="options-general.php?page=wp-print/print-options.php">WP-Print Options Page.','atahualpa') : __('To use this item, you must first install (= upload) and activate the plugin "WP-Print"','atahualpa') ); ?>

%wp-email%


WP-Email Options Page.
Settings:
  • Change settings in the section "E-Mail Styles" to customize the output of this item
  • Make other changes as you see fit
  • Click "Save Changes"
','atahualpa') : __('To use this item, you must first install (= upload) and activate the plugin "WP-Email"','atahualpa') ); ?>

%wp-postviews%


\'Post Views\'" href="options-general.php?page=wp-postviews/postviews-options.php">WP-PostViews Options Page.
Settings:
  • Change "Views Template" to customize the output of this item
  • Make other changes as you see fit
  • Click "Save Changes"
','atahualpa') : __('To use this item, you must first install (= upload) and activate the plugin "WP-PostViews"','atahualpa') ); ?>

%sociable%


\'Sociable\'" href="options-general.php?page=Sociable">Sociable Options Page.
Settings:
  • "Tagline:" - Will be ignored
  • "Position:" - Uncheck all boxes
  • "Use CSS:" - Uncheck this
  • "Open in new window:" - Check or uncheck, will be used
  • Click "Save Changes"
','atahualpa') : __('To use this item, you must first install (= upload) and activate the plugin "Sociable"','atahualpa') ); ?>

class="color" name="" id="" type="" value="" />




" /> " /> " /> " />


' . __('Homepage','atahualpa') . '
' . __('Front Page (*)','atahualpa') . '
' . __('Single Posts','atahualpa') . '
' . __('"Page" pages','atahualpa') . '
' . __('Category Pages','atahualpa') . '
' . __('Archive Pages','atahualpa') . '
' . __('Tag Pages','atahualpa') . '
' . __('Search Results','atahualpa') . '
' . __('Author Pages','atahualpa') . '
' . __('"Not Found"','atahualpa') . '
' . __('Attachments','atahualpa') . '
' . $value['info'] . '
'; } ##################################################################### # TEXTAREA ##################################################################### elseif ($value['type'] == "textarea") { ?>


" . ( $value['editable'] == "yes" ? str_replace("\n", "
", htmlentities($value['std'], ENT_QUOTES)) : str_replace("\n", "
", $value['std']) ) . "
"; } ?>






Powered by %1$sWordPress · %2$sWP Themes by BFA','atahualpa'), '', ''); if (get_option('bfa_ata_show_2nd_footer_link') != "No") { $footer_content .= ' ' . __('Web Hosting','atahualpa') . ''; } return $footer_content; } ?> ", "", "", "", "
", "", "", "", "", "", "", ""); $html_replacement = array("", "", "", "", "
", "»", "«", "›", "‹", "→", "←", " "); $string = str_replace($special_placeholders, $html_replacement, $string); return $string; } ?> max_num_pages > 1) ? TRUE : FALSE; } ?>