好!欢迎访问迷津渡口 现在时间是: 天气 °C ~ °C

迷津渡口

越感到迷惑 越接近真理

emlog挂载点的使用和自定义挂载点的方法

emlog的插件和php函数的调用都需要通过挂载点。

网上的文章都不太清晰,小指在这里简单介绍一下吧,其实挂载点机制就是两个函数而已。

<?php doAction("挂载点名称");?>                在网页添加挂载点
<?php addAction("挂载点名称","函数名称");?>     将函数与挂载点连接

例如:

挂载点:doAction('index_head') 
所在文件:content/templates/default/header.php
描述:前台头部扩展:可以用于增加前台css样式、加载js等

查看对应文件,可以发现一行

<?php doAction("index_head");?>

说明网页有index_head这个挂载点。

你在自己的插件或者content/templates/default/module.php写这个函数:

function addJQuery() {
    echo '<script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>';
}
addAction("index_head","addJQuery");

这样你就把函数与挂载点连接起来了,在相应的挂载点的位置就会跑对应的php函数。


所谓自定义挂载点就是在网页某个位置添加自己的挂载点,例如在&lt;/body&gt;之前添加一个音乐插件挂载点:

<?php doAction("music_player");?>

然后将输出音乐播放器的函数与挂载点连接起来:

<?php addAction("music_player","showMusicPlayer");?>

完成。音乐播放器就会在对应的地方输出了。

自己实践一下吧,小指只能帮你到这了,^_^~

点赞4
   支持一下
挤眼 亲亲 咆哮 开心 想想 可怜 糗大了 委屈 哈哈 小声点 右哼哼 左哼哼 疑问 坏笑 赚钱啦 悲伤 耍酷 勾引 厉害 握手 耶 嘻嘻 害羞 鼓掌 馋嘴 抓狂 抱抱 围观 威武 给力
 点赞
 签到
 表情
 图片
 代码
提交评论

清空信息
关闭评论
thebiarritz
 thebiarritz 约 2 小时前回复
#48
<a href="http://www.colintilley.com/femmes-air-jordan-retro-5-rouge-violet-chaussuresh">femmes air jordan retro 5 rouge violet</a> <a href="http://www.xthbgc.com/ua-clutchfit-drive-arancia-grigio-scarpeq">ua clutchfit drive arancia grigio</a> <a href="http://www.iberishop.com/nike-sb-stefan-janoski-max-white-silver-shoesj">nike sb stefan janoski max white silver</a> <a href="http://www.karmacanix.com/nike-sb-stefan-janoski-max-kvinders-himmelbl%C3%A5-guld-skoi">nike sb stefan janoski max kvinders himmelbl氓 guld</a> <a href="http://www.tobepartridge.com/adidas-neo-suede-argento-viola-scarpel">adidas neo suede argento viola</a> <a href="http://www.shopdunks.com/nike-free-run-3-womens-red-purple-shoesj">nike free run 3 womens red purple</a>
thebiarritz http://www.thebiarritz.com/
injost
 injost 约 19 小时前回复
#47
<a href="http://www.acforlessllc.com/air-max-thea-dam%C3%A4nner-rosa-and-grau-obuvc">air max thea dam盲nner rosa and grau</a> <a href="http://www.thehodostore.com/nike-lavonte-david-red-name-number-logo-tampa-bay-buccaneers-nfl-54-long-sleeve-t-shirt-nflw">nike lavonte david red name number logo tampa bay buccaneers nfl 54 long sleeve t shirt</a> <a href="http://www.gandoff.com/detroit-lions-jason-hanson-jersey-nflv">detroit lions jason hanson jersey</a> <a href="http://www.langbenlang.com/air-jordan-1-retro-infrared-23-jordans-skog">air jordan 1 retro infrared 23 jordans</a> <a href="http://www.glennloovens.com/nike-hyperdunk-2014-low-womens-purple-gold-skob">nike hyperdunk 2014 low womens purple gold</a> <a href="http://www.kamilotomotiv.com/cincinnati-reds-bucket-hat-free-hata">cincinnati reds bucket hat free</a>
[url=http://www.injost.com/]injost[/url]
nike dunk zalando
 nike dunk zalando 2019-02-15 03:30回复
#46
<a href="http://www.keluarannomor.com/asics-asics-gel-kayano-17-blanc-rose-kurpesc">asics asics gel kayano 17 blanc rose</a> <a href="http://www.missworldperu.com/nike-lebron-15-purple-germany-shoeso">nike lebron 15 purple germany</a> <a href="http://www.moruamai.com/jordan-retro-3-fire-r%C3%B8d-gs-obuvb">jordan retro 3 fire r酶d gs</a> <a href="http://www.ctcpes.com/discount-oakley-holbrook-jungle-sunglassese">discount oakley holbrook jungle</a> <a href="http://www.uygulamaca.com/travis-mathew-knit-hats">travis mathew knit</a> <a href="http://www.cheekzmusic.com/nike-air-force-1-real-white-sportsa">nike air force 1 real white</a>
nike dunk zalando http://www.dscclinic.com/nike-dunk-zalando-runninga
dcssattorneys
 dcssattorneys 2019-02-15 01:18回复
#45
<a href="http://www.royalhoneywax.com/michael-kors-bedford-belted-handbag-mkr">michael kors bedford belted handbag</a> <a href="http://www.carslambert.com/barato-new-balance-890-mujeres-naranja-sneakere">barato new balance 890 mujeres naranja</a> <a href="http://www.hiussalipiilo.com/game-ryan-kerrigan-washington-redskins-youth-road-jersey-91-white-nflb">game ryan kerrigan washington redskins youth road jersey 91 white</a> <a href="http://www.hospicevna.com/adidas-zx-630-herre-hvid-shoesc">adidas zx 630 herre hvid</a> <a href="http://www.smartpaul.com/billig-nike-free-5.0-v3-kvinners-r%C3%B8d-skog">billig nike free 5.0 v3 kvinners r酶d</a> <a href="http://www.opendekalbinc.com/yeezy-boost-750-for-sale-quad-cities-sportsf">yeezy boost 750 for sale quad cities</a>
dcssattorneys http://www.dcssattorneys.com/
yufnsyb
 yufnsyb 2019-02-14 09:15回复
#44
<a href="http://www.lauraundleon.com/adidas-springblade-2015-skou">adidas springblade 2015</a> <a href="http://www.michaelphenow.com/purple-pink-womens-adidas-eqt-adv-shoes-runninge">purple pink womens adidas eqt adv shoes</a> <a href="http://www.kguides.com/reebok-bring-back-collection-vol-3-zapatosu">reebok bring back collection vol 3</a> <a href="http://www.nvusforex.com/herre-salomon-speed-cross-3-orange-r%C3%B8d-chaussuresa">herre salomon speed cross 3 orange r酶d</a> <a href="http://www.dinerwaresb.com/nike-carolina-panthers-blank-black-limited-kids-jersey-nflg">nike carolina panthers blank black limited kids jersey</a> <a href="http://www.slipoverfx.com/nike-air-max-90-romania-originali-runningg">nike air max 90 romania originali</a>
yufnsyb http://www.yufnsyb.com/
atrapaniapp
 atrapaniapp 2019-02-13 17:30回复
#43
<a href="http://www.sguerradesign.com/womens-nike-zoom-pegasus-32-all-grey-shoesh">womens nike zoom pegasus 32 all grey</a> <a href="http://www.zeneventsja.com/mujeres-rosado-gris-nike-shox-zapatosp">mujeres rosado gris nike shox</a> <a href="http://www.adharaweb.com/mujeres-air-jordan-retro-13-p%C3%BArpura-oro-zapatosk">mujeres air jordan retro 13 p煤rpura oro</a> <a href="http://www.jrelselaw.com/north-face-windstopper-soft-shell-northfaceh">north face windstopper soft shell</a> <a href="http://www.intellalegal.com/nike-flyknit-racer-blau-lila-schuhej">nike flyknit racer blau lila</a> <a href="http://www.carmelscoffee.com/kvinders-nike-roshe-run-hyp-guld-bl%C3%A5-skoh">kvinders nike roshe run hyp guld bl氓</a>
atrapaniapp http://www.atrapaniapp.com/
kathimartuza
 kathimartuza 2019-02-12 19:06回复
#42
<a href="http://www.jljingshi.com/ralph-lauren-black-polo-dual-match-team-track-jacket-poloz">ralph lauren black polo dual match team track jacket</a> <a href="http://www.emanmoon.com/asics-gel-lyte-v-lux-noir-chaussuresa">asics gel lyte v lux noir</a> <a href="http://www.mysiatravel.com/yeezy-boost-550-blanc-vert-schuhee">yeezy boost 550 blanc vert</a> <a href="http://www.pandoraboxhn.com/nike-kobe-9-kvinders-royal-bl%C3%A5-scarpea">nike kobe 9 kvinders royal bl氓</a> <a href="http://www.yourctt.com/air-jordan-3-svart-cemennt-bl%C3%A5-kurpesf">air jordan 3 svart cemennt bl氓</a> <a href="http://www.coccodesigns.com/blue-jays-blank-grey-flexbase-authentic-collection-stitched-mlb-jersey-nflr">blue jays blank grey flexbase authentic collection stitched mlb jersey</a>
kathimartuza http://www.kathimartuza.com/
casamentosweb
 casamentosweb 2019-02-12 02:55回复
#41
<a href="http://www.culturalsq.com/nike-zoom-alle-out-wei%C3%9F-schwarz-obuvc">nike zoom alle out wei脽 schwarz</a> <a href="http://www.tiaracara.com/nfl-brandon-williams-youth-limited-black-jersey-26-arizona-cardinals-nike-2016-salute-to-service-nflw">nfl brandon williams youth limited black jersey 26 arizona cardinals nike 2016 salute to service</a> <a href="http://www.shaunasbags.com/detroit-lions-jason-hanson-jersey-nflv">detroit lions jason hanson jersey</a> <a href="http://www.tomtaylorblog.com/grey-silver-womens-nike-roshe-print-shoes-skog">grey silver womens nike roshe print shoes</a> <a href="http://www.pistonari.com/nike-lunarglide-7-green-strike-law-skob">nike lunarglide 7 green strike law</a> <a href="http://www.rebeccastaste.com/new-york-yankees-retro-hat-ideas-hate">new york yankees retro hat ideas</a>
casamentosweb http://www.casamentosweb.com/
acforlessllc
 acforlessllc 2019-02-10 15:31回复
#40
<a href="http://www.georgesherry.com/detroit-lions-jason-hanson-jersey-nflv">detroit lions jason hanson jersey</a> <a href="http://www.jenalgroup.com/nike-air-max-1-pendleton-id-skof">nike air max 1 pendleton id</a> <a href="http://www.badacamshotel.com/nike-free-run-5.0-v4-white-black-skob">nike free run 5.0 v4 white black</a> <a href="http://www.compressmyjs.com/minnesota-timberwolves-hat-royal-hata">minnesota timberwolves hat royal</a> <a href="http://www.fetison.com/nike-lebron-ambassador-9-mens-white-silver-runningf">nike lebron ambassador 9 mens white silver</a> <a href="http://www.neffloot.com/kvinders-nike-free-6.0-lyser%C3%B8d-orange-schuhea">kvinders nike free 6.0 lyser酶d orange</a>
acforlessllc http://www.acforlessllc.com/
koreazp
 koreazp 2019-02-08 21:05回复
#39
<a href="http://www.tmzred.com/adidas-rose-5-grau-schuhej">adidas rose 5 grau</a> <a href="http://www.alcovozov.com/herre-nike-roshe-run-blomstret-gr%C3%A5-skoh">herre nike roshe run blomstret gr氓</a> <a href="http://www.ahmztradefx.com/nike-kd-7-blanc-violet-chaussuresh">nike kd 7 blanc violet</a> <a href="http://www.isampled.com/denver-nuggets-snapback-hatl">denver nuggets snapback</a> <a href="http://www.aldervets.com/nike-lebron-12-oranger-blanc-chaussuresh">nike lebron 12 oranger blanc</a> <a href="http://www.vanltl.com/mujeres-nike-air-max-thea-amarillo-oro-zapatosp">mujeres nike air max thea amarillo oro</a>
koreazp http://www.koreazp.com/
顶部留言底部
 00:00/00:00
我想和你虚度时光 - 花房姑娘(9)
  1. 我想和你虚度时光
  2. 花房姑娘
  3. 恋恋风尘
  4. 我喜爱一切不彻底的事物
  5. 我的心里是满的
  6. Long Way
  7. 给少年的歌
  8. 晴日共剪窗
  9. 天上的月你的脸