<?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>Leomangione Web Developer &#187; Wordpress</title>
	<atom:link href="http://www.leomangione.com.br/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.leomangione.com.br</link>
	<description>CMS Especialist, PHP developer, Magento &#38; Drupal</description>
	<lastBuildDate>Tue, 25 May 2010 00:27:34 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Colocando os posts de um blog Wordpress no Magento</title>
		<link>http://www.leomangione.com.br/2009/11/14/colocando-os-posts-de-um-blog-wordpress-no-magento/</link>
		<comments>http://www.leomangione.com.br/2009/11/14/colocando-os-posts-de-um-blog-wordpress-no-magento/#comments</comments>
		<pubDate>Sun, 15 Nov 2009 01:18:00 +0000</pubDate>
		<dc:creator>Leonardo</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.leomangione.com.br/?p=374</guid>
		<description><![CDATA[Achei que isso poderia ser interessante para todos e resolvi colocar no meu BLOG.
Tudo que você precisa fazer é escolher um template que será chamado no layout e colocar o seguinte snippet no seu arquivo .phtml escolhido.
Somente funciona colocando em um arquivo de template da estrutura de arquivos de templates. Não tente colocar isso em [...]]]></description>
			<content:encoded><![CDATA[<p>Achei que isso poderia ser interessante para todos e resolvi colocar no meu BLOG.</p>
<p>Tudo que você precisa fazer é escolher um template que será chamado no layout e colocar o seguinte snippet no seu arquivo .phtml escolhido.</p>
<p>Somente funciona colocando em um arquivo de template da estrutura de arquivos de templates. Não tente colocar isso em alguma pagina do CMS pois não vai funcionar.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">&lt;ul&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000088;">$channel</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Zend_Feed_Rss<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'http://www.leomangione.com.br/feed'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// O endereço  do Feed</span>
<span style="color: #000088;">$limit_result</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">3</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// Quantidade de itens a serem mostrados</span>
<span style="color: #000088;">$i</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$channel</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$item</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span> <span style="color: #339933;">&lt;</span> <span style="color: #000088;">$limit_result</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;li&gt;'</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;a href=&quot;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$item</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">link</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&quot;&gt;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$item</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">title</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&lt;/a&gt;&lt;br /&gt;'</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$item</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">description</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&lt;br /&gt;&lt;br /&gt;'</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;/li&gt;'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$i</span><span style="color: #339933;">++;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">endforeach</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/ul&gt;</pre></td></tr></table></div>

<p>Agora basta trocar o feed que coloquei do meu BLOG para um feed de sua preferencia (provavelmente o blog da sua loja).</p>
<p>De qualquer jeito o MAGENTO pode ter um BLOG. Existe uma extensão que achei bem legal, não é um wordpress mas funciona direitinho, tem categorias, tags e tudo mais.</p>
<p><a title="Extensão de BLOG para o Magento" href="http://www.magentocommerce.com/extension/1516/blog" target="_blank">http://www.magentocommerce.com/extension/1516/blog</a></p>
<p>And it is FREEE!!!!</p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=Colocando+os+posts+de+um+blog+Wordpress+no+Magento+http://f4tez.th8.us" title="Post to Twitter"><img class="nothumb" src="http://www.leomangione.com.br/wp-content/plugins/tweet-this/icons/tt-twitter-big3.png" alt="Post to Twitter" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.leomangione.com.br/2009/11/14/colocando-os-posts-de-um-blog-wordpress-no-magento/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
