<?xml version="1.0"?>
<layout version="0.1.0">
    <cms_index_index>
        <reference name="footer_links">
            <block type="blog/blog" name="add.blog.footer">
                <action method="addBlogLink" ifconfig="blog/menu/footer"><param>footer</param></action>
            </block>
        </reference>
        <reference name="right">
            <block type="blog/menu_sidebar" name="right.blog.menu" before="-">
                <action method="setTemplate" ifconfig="blog/menu/right" ifvalue="1">
                    <template>magentothem_blog/menu.phtml</template>
                </action>
                <block type="blog/tags" name="blog_tags" />
            </block>
        </reference>
        <reference name="left">
            <block type="blog/menu_sidebar" name="left.blog.menu"  before="-">
                <action method="setTemplate" ifconfig="blog/menu/left">
                    <template>magentothem_blog/menu.phtml</template>
                </action>
                <block type="blog/tags" name="blog_tags" />
            </block>
        </reference>

        <reference name="top.links">
            <block type="blog/blog" name="add.blog.link">
                <action method="addBlogLink" ifconfig="blog/menu/top"><param>top</param></action>
            </block>
        </reference>
        <reference name="head">
			<action method="addCss" ifconfig="blog/blog/enabled"><stylesheet>magentothem_blog/css/style.css</stylesheet></action>
			<!-- <action method="addCss" ifconfig="blog/blog/enabled"><stylesheet>magentothem_blog/css/owl.carousel.css</stylesheet></action> -->
			<action method="addJs" ifconfig="blog/slide/enabled"><script>magentothem/ma.jq.slide.js</script></action>
            <action method="addJs" ifconfig="blog/blog/enabled"><script>magentothem/owl.carousel.js</script></action>
        </reference>
		 <reference name="right">
			<!-- <block type="blog/menu_sidebar" after="-" name="blog.slider">
                <action method="setTemplate"><template>magentothem_blog/blog_slide.phtml</template></action>
            </block> -->
        </reference>
    </cms_index_index>

    <blog_index_index>
        <reference name="footer" >
            <block type="blog/blog" name="copyright.blog.footer" template="magentothem_blog/copyright.phtml"/>
        </reference>
        <reference name="content">
            <block type="blog/blog" name="blog" template="magentothem_blog/blog.phtml"/>
        </reference>
    </blog_index_index>

    <blog_index_list>
        <reference name="footer" >
            <block type="blog/blog" name="copyright.blog.footer" template="magentothem_blog/copyright.phtml"/>
        </reference>
        <reference name="content">
            <block type="blog/blog" name="blog" template="magentothem_blog/blog.phtml">
                <block type="blog/product_toolbar" name="magentothem_blog_list_toolbar" template="catalog/product/list/toolbar.phtml">
                    <block type="page/html_pager" name="product_list_toolbar_pager"/>
                </block>
            </block>
        </reference>
    </blog_index_list>
    <blog_post_view>
        <reference name="footer" >
            <block type="blog/blog" name="copyright.blog.footer" template="magentothem_blog/copyright.phtml"/>
        </reference>
        <reference name="content">
            <block type="blog/post" name="post" template="magentothem_blog/post.phtml">
                <block type="blog/product_toolbar" name="magentothem_blog_list_toolbar" template="catalog/product/list/toolbar.phtml">
                    <block type="page/html_pager" name="product_list_toolbar_pager"/>
                </block>
            </block>
        </reference>
    </blog_post_view>
    <blog_cat_view>
        <reference name="footer" >
            <block type="blog/blog" name="copyright.blog.footer" template="magentothem_blog/copyright.phtml"/>
        </reference>
        <reference name="content">
            <block type="blog/cat" name="cat" template="magentothem_blog/cat.phtml">
                 <block type="blog/product_toolbar" name="magentothem_blog_list_toolbar" template="catalog/product/list/toolbar.phtml">
                    <block type="page/html_pager" name="product_list_toolbar_pager"/>
                </block>
            </block>
        </reference>
    </blog_cat_view>

    <blog_rss_index>
        <reference name="footer" >
            <block type="blog/blog" name="copyright.blog.footer" template="magentothem_blog/copyright.phtml"/>
        </reference>
        <block type="blog/rss" output="toHtml" name="rss.blog.new"/>
    </blog_rss_index>
</layout>