Wednesday, May 13, 2015

Most simple Blogger template

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html>
<html b:version='2' class='v2' expr:dir='data:blog.languageDirection' xmlns='http://www.w3.org/1999/xhtml' xmlns:b='http://www.google.com/2005/gml/b' xmlns:data='http://www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr'>
  <head>
   
    <b:include data='blog' name='all-head-content'/>
    <title>
      <data:blog.pageTitle/>
    </title>
    <b:skin><![CDATA[]]></b:skin>
    <b:template-skin/>
    <b:include data='blog' name='google-analytics'/>

  </head>
  <body>

    <b:section class='main' id='main1' showaddelement='no'>
      <b:widget id='Blog1' locked='true' title='Blog Posts' type='Blog'>
        <b:includable id='main' var='top'>
          <p>Test thu nghiem thoi ma</p>
        </b:includable>
      </b:widget>
    </b:section>

<b:section class='hehe' id='id1111111'/>

  </body>
  </html>

Tuesday, May 12, 2015

Macro tag in Blogger

<macro:include id='footer-sections' name='sections'>
                      <macro:param default='2' name='num'/>
                      <macro:param default='footer' name='idPrefix'/>
                      <macro:param default='foot' name='class'/>
                      <macro:param default='false' name='includeBottom'/>
                    </macro:include>


<macro:includable id='sections' var='col'>
    <macro:if cond='data:col.num == 0'>
      <macro:else/>
      <b:section mexpr:class='data:col.class' mexpr:id='data:col.idPrefix + &quot;-1&quot;' preferred='yes' showaddelement='no'/>
      <macro:if cond='data:col.num &gt;= 2'>
        <table border='0' cellpadding='0' cellspacing='0' mexpr:class='&quot;section-columns columns-&quot; + data:col.num'>
          <tbody>
            <tr>
              <td class='first columns-cell'>
                <b:section mexpr:class='data:col.class' mexpr:id='data:col.idPrefix + &quot;-2-1&quot;'/>
              </td>
              <td class='columns-cell'>
                <b:section mexpr:class='data:col.class' mexpr:id='data:col.idPrefix + &quot;-2-2&quot;'/>
              </td>
              <macro:if cond='data:col.num &gt;= 3'>
                <td class='columns-cell'>
                  <b:section mexpr:class='data:col.class' mexpr:id='data:col.idPrefix + &quot;-2-3&quot;'/>
                </td>
              </macro:if>
              <macro:if cond='data:col.num &gt;= 4'>
                <td class='columns-cell'>
                  <b:section mexpr:class='data:col.class' mexpr:id='data:col.idPrefix + &quot;-2-4&quot;'/>
                </td>
              </macro:if>
            </tr>
          </tbody>
        </table>
        <macro:if cond='data:col.includeBottom'>
          <b:section mexpr:class='data:col.class' mexpr:id='data:col.idPrefix + &quot;-3&quot;' showaddelement='no'/>
        </macro:if>
      </macro:if>
    </macro:if>
  </macro:includable>