<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ajaxtime.com &#187; functions</title>
	<atom:link href="http://www.ajaxtime.com/tag/functions/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ajaxtime.com</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Tue, 13 Apr 2010 14:41:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Basic WordPress template file</title>
		<link>http://www.ajaxtime.com/basic-wordpress-template-file.html</link>
		<comments>http://www.ajaxtime.com/basic-wordpress-template-file.html#comments</comments>
		<pubDate>Mon, 20 Apr 2009 06:24:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[functions]]></category>
		<category><![CDATA[WordPress template]]></category>
		<category><![CDATA[wordpress Themes]]></category>

		<guid isPermaLink="false">http://www.ajaxtime.com/?p=168</guid>
		<description><![CDATA[Basic WordPress template file and used functions . To understand the structure of wordpress .]]></description>
			<content:encoded><![CDATA[<p>
Basic WordPress template file<br />
A complete set of WordPress templates should be at least the following documents:</p>
<p>style.css: CSS (style sheet) file<br />
index.php: Home Templates<br />
archive.php: Archive / Category Templates<br />
404.php: Not Found error page template<br />
comments.php: Message / Reply Template<br />
footer.php: Footer Template<br />
header.php: Header templates<br />
sidebar.php: Sidebar template<br />
page.php: content pages (Page) templates<br />
single.php: page content (Post) template<br />
searchform.php: template search form<br />
search.php: search results template<br />
Of course, specific to a particular section of a template, might have been more than these documents, but generally speaking, these documents are necessary for each template.</p>
<p>Tag to determine the basic conditions for<br />
is_home (): whether to Home<br />
is_single (): whether the content pages (Post)<br />
is_page (): whether the content pages (Page)<br />
is_category (): whether the Category / Archive Page<br />
is_tag (): whether or not to Tag Archive pages<br />
is_date (): whether the archive page for the specified date<br />
is_year (): whether the archive page for the specified year<br />
is_month (): whether or not to designate the month archive page<br />
is_day (): whether or not for a specific day archive page<br />
is_time (): whether the archive page for a specified period of time<br />
is_archive (): whether or not to archive page<br />
is_search (): whether the search results page<br />
is_404 (): whether the &#8220;HTTP 404: Not Found&#8221; error page<br />
is_paged (): Home / Category / Archive Page is a multi-page display<br />
Header part of the PHP function used to<br />
<? php bloginfo ( 'name');?>: blog name (Title)<br />
<? php bloginfo ( 'stylesheet_url');?>: CSS file path<br />
<? php bloginfo ( 'pingback_url');?>: PingBack Url<br />
<? php bloginfo ( 'template_url');?>: template file path<br />
<? php bloginfo ( 'version');?>: WordPress version<br />
<? php bloginfo ( 'atom_url');?>: Atom Url<br />
<? php bloginfo ( 'rss2_url');?>: RSS 2.o Url<br />
<? php bloginfo ( 'url');?>: blog Url<br />
<? php bloginfo ( 'html_type');?>: the type of blog page Html<br />
<? php bloginfo ( 'charset');?>: blog page coding<br />
<? php bloginfo ( 'description');?>: blog description<br />
<? php wp_title ();?>: page-specific content (Post / Page) of the title<br />
PHP template commonly used functions and commands<br />
<? php get_header ();?>: Call Header Template<br />
<? php get_sidebar ();?>: call Sidebar template<br />
<? php get_footer ();?>: call Footer Template<br />
<? php the_content ();?>: display the contents of (Post / Page)<br />
<? php if (have_posts ()):?>: check the existence of Post / Page<br />
<? php while (have_posts ()): the_post ();?>: If there Post / Page will be displayed<br />
<? php endwhile;?>: While the end of<br />
<? php endif;?>: If the end of<br />
<? php the_time ( 'string')?>: show time, time format from &#8220;string&#8221; parameter determines the specific reference to PHP Manual<br />
<? php comments_popup_link ();?>: the body of the message link. If you use comments_popup_script (), the message will open in a new window, on the contrary, in the current window<br />
<? php the_title ();?>: page content (Post / Page) title<br />
<? php the_permalink ()?>: page content (Post / Page) Url<br />
<? php the_category ( ',')?>: page-specific content (Post / Page) owned Category<br />
<? php the_author ();?>: author<br />
<? php the_ID ();?>: page-specific content (Post / Page) ID<br />
<? php edit_post_link ();?>: If the user has to log in and have permission to show the Edit link<br />
<? php get_links_list ();?>: display the link in the Blogroll<br />
<? php comments_template ();?>: Call Message / Reply Template<br />
<? php wp_list_pages ();?>: Showing Page List<br />
<? php wp_list_categories ();?>: display the list of Categories<br />
<? php next_post_link ( '% link');?>: under an article link<br />
<? php previous_post_link ( '% link');?>: on an article link<br />
<? php get_calendar ();?>: Calendar<br />
<? php wp_get_archives ()?>: display the contents of archive<br />
<? php posts_nav_link ();?>: navigation, display a / under the link to an article<br />
<? php include (TEMPLATEPATH. '/ file name');?>: embedded in other documents, for customizable templates, or other type of document<br />
Template associated with the other function<br />
<? php _e ( 'Message');?>: output the corresponding information<br />
<? php wp_register ();?>: display the registration link<br />
<? php wp_loginout ();?>: show the logon / logoff link<br />
<!-Next page->: the content of the current page<br />
<!-More->: the content of the current cut-off in order to not be home / directory page displays the entire contents of<br />
<? php timer_stop (1);?>: page load time (seconds)<br />
<? php echo get_num_queries ();?>: page load queries</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ajaxtime.com/basic-wordpress-template-file.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Class Examples</title>
		<link>http://www.ajaxtime.com/class-examples.html</link>
		<comments>http://www.ajaxtime.com/class-examples.html#comments</comments>
		<pubDate>Fri, 10 Apr 2009 05:43:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[Class]]></category>
		<category><![CDATA[Examples]]></category>
		<category><![CDATA[functions]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.ajaxtime.com/?p=5</guid>
		<description><![CDATA[The first example will return an own class that has some public fields to be used on the client-side JavaScript.

]]></description>
			<content:encoded><![CDATA[<p>The first example will return an own class that has some public fields to be used on the client-side JavaScript.</p>
<p>public class MyClass<br />
{<br />
public string FirstName = &#8220;&#8221;;<br />
public string FamilyName = &#8220;&#8221;;<br />
public int Age = 0;<br />
}</p>
<p>Click here to return an instance of the above class.</p>
<p>It is also working if you inherit from a class and add your own properties to the new class.</p>
<p>public class MyInheritedClass : MyClass<br />
{<br />
public double SizeInMeters = 0.0;<br />
public Guid ID = Guid.Empty;<br />
}</p>
<p>Click here to get an MyInheritedClass object.</p>
<p>Michael&#8217;s Blog<br />
Passing a own class back to the server</p>
<p>Next we want to pass the MyClass object back to the server. The first call will get an MyClass object from the server like we have done above. Then we want to modify the .FirstName property on the client, submit the object to the server, modify the .FamilyName there and see the results.</p>
<p>function doTest3() {<br />
// synchronous call to the server-side method to get an MyClass object<br />
var p = AJAXDemo.Examples.Classes.Demo.GetMyClass().value;</p>
<p>p.FirstName = &#8220;CLIENT-SIDE CHANGE&#8221;; // change one property<br />
AJAXDemo.Examples.Classes.Demo.PutMyClass(p, doTest3_callback);<br />
p = null;<br />
}</p>
<p>[AjaxMethod]<br />
public MyClass PutMyClass(MyClass c)<br />
{<br />
c.FamilyName = &#8220;SERVER-SIDE CHANGE&#8221;; // change one property<br />
return c;<br />
}</p>
<p>Click here to run the test!<br />
Create converters for your classes</p>
<p>One new feature is the use of converters to serialize a .NET object or deserialize a JSON string. In this example I am using a custom IJavaScriptConverter. This converter will return a new class on the client-side JavaScript that may have more properties or methods that are not returned using the built-in custom object converter (which will only return public fields and properties).</p>
<p>function doTest4() {<br />
var p = AJAXDemo.Examples.Classes.Demo.GetPerson().value; // synchronous call to the server-side method</p>
<p>// access the properties of the Person object here<br />
alert(p.FirstName);</p>
<p>// Now, we want to save it, we call the save method of the instance<br />
// and get a boolean if succeded.<br />
var b = p.save();<br />
}</p>
<p>Click here to get an Person instance and save the object using a method from the instance.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ajaxtime.com/class-examples.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
