<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://doc.osclass.org/skins/common/feed.css?270"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://doc.osclass.org/index.php?title=Special:RecentChanges&amp;feed=atom</id>
		<title>OSClass  - Recent changes [en]</title>
		<link rel="self" type="application/atom+xml" href="http://doc.osclass.org/index.php?title=Special:RecentChanges&amp;feed=atom"/>
		<link rel="alternate" type="text/html" href="http://doc.osclass.org/Special:RecentChanges"/>
		<updated>2012-05-16T10:27:02Z</updated>
		<subtitle>Track the most recent changes to the wiki in this feed.</subtitle>
		<generator>MediaWiki 1.16.0</generator>

	<entry>
		<id>http://doc.osclass.org/index.php?title=Display_only_certain_type_of_listings&amp;diff=732&amp;oldid=prev</id>
		<title>Display only certain type of listings</title>
		<link rel="alternate" type="text/html" href="http://doc.osclass.org/index.php?title=Display_only_certain_type_of_listings&amp;diff=732&amp;oldid=prev"/>
				<updated>2012-05-11T10:53:32Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Real live examples: &lt;/span&gt; &lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;In OSClass 3.0 we introduced the function '''osc_query_item($params)''' where ''$params'' could be a string or an array.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Example of usage ==&lt;br /&gt;
You should call osc_query_item($params) function and later loop through the items with the &amp;quot;custom_items&amp;quot; helpers as usual&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Only one keyword:===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
osc_query_item(&amp;quot;keyword=value1,value2,value3,...&amp;quot;);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Multiple keywords:===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
osc_query_item(array(&lt;br /&gt;
    &amp;quot;keyword1&amp;quot; =&amp;gt; &amp;quot;value1,value2&amp;quot;,&lt;br /&gt;
    &amp;quot;keyword2&amp;quot; =&amp;gt; &amp;quot;value3,value4&amp;quot;&lt;br /&gt;
));&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Real live examples ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Only one keyword:===&lt;br /&gt;
&amp;lt;pre class=&amp;quot;prettyprint&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php osc_query_item(&amp;quot;region_name=Madrid&amp;quot;);&lt;br /&gt;
if( osc_count_custom_items() == 0) { ?&amp;gt;&lt;br /&gt;
    &amp;lt;p class=&amp;quot;empty&amp;quot;&amp;gt;&amp;lt;?php _e('No Listings', 'modern') ; ?&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;?php } else { ?&amp;gt;&lt;br /&gt;
    &amp;lt;table border=&amp;quot;0&amp;quot; cellspacing=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
         &amp;lt;tbody&amp;gt;&lt;br /&gt;
            &amp;lt;?php $class = &amp;quot;even&amp;quot;; ?&amp;gt;&lt;br /&gt;
            &amp;lt;?php while ( osc_has_custom_items() ) { ?&amp;gt;&lt;br /&gt;
             &amp;lt;tr class=&amp;quot;&amp;lt;?php echo $class. (osc_item_is_premium()?&amp;quot; premium&amp;quot;:&amp;quot;&amp;quot;) ; ?&amp;gt;&amp;quot;&amp;gt;&lt;br /&gt;
                    &amp;lt;?php if( osc_images_enabled_at_items() ) { ?&amp;gt;&lt;br /&gt;
                     &amp;lt;td class=&amp;quot;photo&amp;quot;&amp;gt;&lt;br /&gt;
                        &amp;lt;?php if( osc_count_item_resources() ) { ?&amp;gt;&lt;br /&gt;
                            &amp;lt;a href=&amp;quot;&amp;lt;?php echo osc_item_url() ; ?&amp;gt;&amp;quot;&amp;gt;&lt;br /&gt;
                                &amp;lt;img src=&amp;quot;&amp;lt;?php echo osc_resource_thumbnail_url() ; ?&amp;gt;&amp;quot; width=&amp;quot;75&amp;quot; height=&amp;quot;56&amp;quot; title=&amp;quot;&amp;lt;?php echo osc_item_title(); ?&amp;gt;&amp;quot; alt=&amp;quot;&amp;lt;?php echo osc_item_title(); ?&amp;gt;&amp;quot; /&amp;gt;&lt;br /&gt;
                            &amp;lt;/a&amp;gt;&lt;br /&gt;
                        &amp;lt;?php } else { ?&amp;gt;&lt;br /&gt;
                            &amp;lt;img src=&amp;quot;&amp;lt;?php echo osc_current_web_theme_url('images/no_photo.gif') ; ?&amp;gt;&amp;quot; alt=&amp;quot;&amp;quot; title=&amp;quot;&amp;quot;/&amp;gt;&lt;br /&gt;
                        &amp;lt;?php } ?&amp;gt;&lt;br /&gt;
                     &amp;lt;/td&amp;gt;&lt;br /&gt;
                    &amp;lt;?php } ?&amp;gt;&lt;br /&gt;
                     &amp;lt;td class=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
                         &amp;lt;h3&amp;gt;&amp;lt;a href=&amp;quot;&amp;lt;?php echo osc_item_url() ; ?&amp;gt;&amp;quot;&amp;gt;&amp;lt;?php echo osc_item_title() ; ?&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/h3&amp;gt;&lt;br /&gt;
                         &amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;&amp;lt;?php if( osc_price_enabled_at_items() ) { echo osc_item_formated_price() ; ?&amp;gt; - &amp;lt;?php } echo osc_item_city(); ?&amp;gt; (&amp;lt;?php echo osc_item_region();?&amp;gt;) - &amp;lt;?php echo osc_format_date(osc_item_pub_date()); ?&amp;gt;&amp;lt;/strong&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
                         &amp;lt;p&amp;gt;&amp;lt;?php echo osc_highlight( strip_tags( osc_item_description() ) ) ; ?&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
                     &amp;lt;/td&amp;gt;                                       &lt;br /&gt;
                 &amp;lt;/tr&amp;gt;&lt;br /&gt;
                &amp;lt;?php $class = ($class == 'even') ? 'odd' : 'even' ; ?&amp;gt;&lt;br /&gt;
            &amp;lt;?php } ?&amp;gt;&lt;br /&gt;
        &amp;lt;/tbody&amp;gt;&lt;br /&gt;
    &amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;?php }; ?&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Multiple keywords:===&lt;br /&gt;
&amp;lt;pre class=&amp;quot;prettyprint&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;?php osc_query_item(array(&lt;br /&gt;
    &amp;quot;category_name&amp;quot; =&amp;gt; &amp;quot;cars,houses&amp;quot;,&lt;br /&gt;
    &amp;quot;city_name&amp;quot; =&amp;gt; &amp;quot;Madrid&amp;quot;&lt;br /&gt;
));&lt;br /&gt;
if( osc_count_custom_items() == 0) { ?&amp;gt;&lt;br /&gt;
    &amp;lt;p class=&amp;quot;empty&amp;quot;&amp;gt;&amp;lt;?php _e('No Listings', 'modern') ; ?&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;?php } else { ?&amp;gt;&lt;br /&gt;
    &amp;lt;table border=&amp;quot;0&amp;quot; cellspacing=&amp;quot;0&amp;quot;&amp;gt;&lt;br /&gt;
         &amp;lt;tbody&amp;gt;&lt;br /&gt;
            &amp;lt;?php $class = &amp;quot;even&amp;quot;; ?&amp;gt;&lt;br /&gt;
            &amp;lt;?php while ( osc_has_custom_items() ) { ?&amp;gt;&lt;br /&gt;
             &amp;lt;tr class=&amp;quot;&amp;lt;?php echo $class. (osc_item_is_premium()?&amp;quot; premium&amp;quot;:&amp;quot;&amp;quot;) ; ?&amp;gt;&amp;quot;&amp;gt;&lt;br /&gt;
                    &amp;lt;?php if( osc_images_enabled_at_items() ) { ?&amp;gt;&lt;br /&gt;
                     &amp;lt;td class=&amp;quot;photo&amp;quot;&amp;gt;&lt;br /&gt;
                        &amp;lt;?php if( osc_count_item_resources() ) { ?&amp;gt;&lt;br /&gt;
                            &amp;lt;a href=&amp;quot;&amp;lt;?php echo osc_item_url() ; ?&amp;gt;&amp;quot;&amp;gt;&lt;br /&gt;
                                &amp;lt;img src=&amp;quot;&amp;lt;?php echo osc_resource_thumbnail_url() ; ?&amp;gt;&amp;quot; width=&amp;quot;75&amp;quot; height=&amp;quot;56&amp;quot; title=&amp;quot;&amp;lt;?php echo osc_item_title(); ?&amp;gt;&amp;quot; alt=&amp;quot;&amp;lt;?php echo osc_item_title(); ?&amp;gt;&amp;quot; /&amp;gt;&lt;br /&gt;
                            &amp;lt;/a&amp;gt;&lt;br /&gt;
                        &amp;lt;?php } else { ?&amp;gt;&lt;br /&gt;
                            &amp;lt;img src=&amp;quot;&amp;lt;?php echo osc_current_web_theme_url('images/no_photo.gif') ; ?&amp;gt;&amp;quot; alt=&amp;quot;&amp;quot; title=&amp;quot;&amp;quot;/&amp;gt;&lt;br /&gt;
                        &amp;lt;?php } ?&amp;gt;&lt;br /&gt;
                     &amp;lt;/td&amp;gt;&lt;br /&gt;
                    &amp;lt;?php } ?&amp;gt;&lt;br /&gt;
                     &amp;lt;td class=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
                         &amp;lt;h3&amp;gt;&amp;lt;a href=&amp;quot;&amp;lt;?php echo osc_item_url() ; ?&amp;gt;&amp;quot;&amp;gt;&amp;lt;?php echo osc_item_title() ; ?&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/h3&amp;gt;&lt;br /&gt;
                         &amp;lt;p&amp;gt;&amp;lt;strong&amp;gt;&amp;lt;?php if( osc_price_enabled_at_items() ) { echo osc_item_formated_price() ; ?&amp;gt; - &amp;lt;?php } echo osc_item_city(); ?&amp;gt; (&amp;lt;?php echo osc_item_region();?&amp;gt;) - &amp;lt;?php echo osc_format_date(osc_item_pub_date()); ?&amp;gt;&amp;lt;/strong&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
                         &amp;lt;p&amp;gt;&amp;lt;?php echo osc_highlight( strip_tags( osc_item_description() ) ) ; ?&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;
                     &amp;lt;/td&amp;gt;                                       &lt;br /&gt;
                 &amp;lt;/tr&amp;gt;&lt;br /&gt;
                &amp;lt;?php $class = ($class == 'even') ? 'odd' : 'even' ; ?&amp;gt;&lt;br /&gt;
            &amp;lt;?php } ?&amp;gt;&lt;br /&gt;
        &amp;lt;/tbody&amp;gt;&lt;br /&gt;
    &amp;lt;/table&amp;gt;&lt;br /&gt;
&amp;lt;?php }; ?&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== List of available keywords ==&lt;br /&gt;
* author&lt;br /&gt;
*  country&lt;br /&gt;
*  country_name&lt;br /&gt;
*  region&lt;br /&gt;
*  region_name&lt;br /&gt;
*  city&lt;br /&gt;
*  city_name&lt;br /&gt;
*  city_area&lt;br /&gt;
*  city_area_name&lt;br /&gt;
*  category&lt;br /&gt;
*  category_name&lt;br /&gt;
*  results_per_page&lt;br /&gt;
*  page&lt;br /&gt;
*  offset&lt;/div&gt;</summary>
		<author><name>CONEJO</name></author>	</entry>

	<entry>
		<id>http://doc.osclass.org/index.php?title=Main_Page&amp;diff=728&amp;oldid=prev</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="http://doc.osclass.org/index.php?title=Main_Page&amp;diff=728&amp;oldid=prev"/>
				<updated>2012-05-11T10:15:38Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;List of customizing tips: &lt;/span&gt; &lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 10:15, 11 May 2012&lt;/td&gt;
		&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 111:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 111:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* [[Customizing the theme and language of reCAPTCHA]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;* [[Customizing the theme and language of reCAPTCHA]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;* [[Display only certain type of listings]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[List of supported plugins]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[List of supported plugins]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>CONEJO</name></author>	</entry>

	</feed>
