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
var api = new MT.DataAPI({ | |
baseUrl: '/mt_dir/mt-data-api.cgi', | |
clientId: 'mt data api test.' | |
}); | |
var blog_ids = [1, 2, 3]; | |
var total = 0; | |
var responsed = 0; | |
for (var i = 0, l = blog_ids.length; i < l; i++) { | |
api.listEntries( | |
blog_ids[i], |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Multi file uploader</title> | |
<style type="text/css"> | |
body { | |
background-color: black; | |
font-family: 'Source Code Pro', Monaco, Consolas, 'Courier New', Courier, monospace; | |
color: white; |
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:DynamicMTML> | |
<mt:Ignore section="解説 01"> | |
変数を初期化します。 | |
</mt:Ignore> | |
<mt:SetVar name="ids"> | |
<mt:SetVar name="entries"> | |
<mt:Ignore section="解説 02"> |
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
/* ================================================== | |
Lock Screen | |
================================================== */ | |
#mtapp-lock-screen { | |
position: fixed; | |
top: 0; | |
left: 0; | |
width: 100%; | |
height: 100%; | |
z-index: 99999; |
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
(function ($) { | |
$('#search').flexibleSearch({ | |
searchDataPath: "/flexibleSearch/search.json", | |
searchFormAction: "/flexibleSearch/search.html", | |
loadingImgPath: "/flexibleSearch/loading.gif", | |
resultItemTmpl: [ | |
'<dl>', | |
'{{#items}}', | |
'<dt><a href="{{url}}" title="{{title}}">{{&title}}</a></dt>', | |
'<dd><span>{{&body}}...</span><a href="{{url}}">[続きを読む]</a></dd>', |
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
(function ($) { | |
$('#search').flexibleSearch({ | |
searchFormCreation: false, | |
searchDataPath: { | |
search_A: "/flexibleSearch/search.json", | |
search_B: "/flexibleSearch/search2.json", | |
}, | |
searchFormAction: "/flexibleSearch/search.html", | |
loadingImgPath: "/flexibleSearch/loading.gif", | |
resultItemTmpl: [ |
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
【設定ファイル】 | |
[product_image] | |
fieldname = 商品画像 | |
type = imagefield | |
class = post page | |
【テンプレート】 | |
<?php | |
$imagefield = get_imagefield('product_image'); | |
$image_id = $imagefield['id']; |
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:DynamicMTML> | |
<mt:CampaignRandom tag="main_visual"> | |
<mt:CampaignAsset> | |
<p class="image"><img src="<$mt:AssetURL$>" alt="<$mt:AssetLabel$>" width="<$mt:AssetProperty property="image_width"$>" height="<$mt:AssetProperty property="image_height"$>" /></p> | |
</mt:CampaignAsset> | |
</mt:CampaignRandom> | |
</mt:DynamicMTML> |
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
if (mtappVars.screen_id === 'edit-page') { | |
$.MTAppInCats({ | |
categories: '3', // ←フォルダIDをカンマ区切りで設定 | |
code: function(){ | |
alert('Have a good day!'); // 処理内容を指定($.MTAppCustomize()などなど) | |
} | |
}); | |
} |
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
次のように書きたいとする。 | |
$.MTAppFieldSort({sort: 'title,excerpt,text,ext-field,keywords,tags'}); | |
【対処方法】 | |
text-fieldの手前を$.MTAppFieldSort()でソートして、後はtext-fieldにafter()していく。 | |
(1) シンプルに書く | |
$.MTAppFieldSort({sort: 'title,excerpt'}); |
OlderNewer