Last active
January 4, 2016 05:09
-
-
Save atstyle/8573529 to your computer and use it in GitHub Desktop.
MTMLで新着マーク
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<mt:SetVarBlock name="today"><$mt:Date format="%Y%j"%></mt:SetVarBlock> | |
<mt:Entries lastn="1" include_blogs="ブログID" category="カテゴリ名"> | |
<mt:SetVarBlock name="passed"><$mt:EntryDate format="%Y%j"%></mt:SetVarBlock> | |
<mt:SetVar name="passed" value="$today" op="sub"> | |
<mt:If name="passed" ge="-5"><span class="newmark">New!</span></mt:If> | |
<mt:If name="passed" ge="-640"><mt:If name="passed" le="-635"><span class="newmark">New!</span></mt:If> | |
</mt:If> | |
</mt:Entries> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment