<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18928">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>if (is_admin()) {</FONT></DIV>
<DIV><FONT size=2 face=Arial>// wp-admin only loaded code.</FONT></DIV>
<DIV><FONT size=2 face=Arial>}</FONT></DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B>
<A title=satish.iitg@gmail.com href="mailto:satish.iitg@gmail.com">Satish
Gandham</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=theme-reviewers@lists.wordpress.org
href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Saturday, February 26, 2011 10:39
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [theme-reviewers] How the files
included in the theme functions.phpfile are loaded?</DIV>
<DIV><BR></DIV>How are the files included in the themes functions.php file
loaded.<BR><BR>Like, some of the files are required only for the backend
(admin), so are those files called for when generating the page for regular
visitors?<BR><BR><BR>For example, I have this code<BR><BR>
<DIV style="MARGIN-LEFT: 40px">//Required to show the page
navigation.<BR>require_once ( INCLUDES. '/wp-pagenavi.php' );
// Add's wp page nav support, script by Lester
Chann<BR> <BR>// Required only for the backend.<BR>require_once
(ADMIN. '/admin-header.php');
//Header of options page<BR>require_once (ADMIN.
'/admin-core.php'); //
Work horse for SWIFT admin options.<BR></DIV><BR><BR>Should i use some
conditional tags while loading the files?<BR><BR><BR><BR>Satish Gandham<BR>
<P>
<HR>
<P></P>_______________________________________________<BR>theme-reviewers
mailing
list<BR>theme-reviewers@lists.wordpress.org<BR>http://lists.wordpress.org/mailman/listinfo/theme-reviewers<BR></BLOCKQUOTE></BODY></HTML>