ãã¢ ïŒ ããã³ããšã³ã ã ããã¯ãšã³ã ïŒãã¢ãå ¥åããã«ã¯ãã°ã€ã³åãšãã¹ã¯ãŒããå ¥åããŠãã ããïŒ
ããŠã³ããŒã ïŒ ã¢ãŒã«ã€ã ïŒ3.8 MBãã¢ãŒã«ã€ãã«ã¯æ¢ã«Webasystãã¬ãŒã ã¯ãŒã¯ãå«ãŸããŠããŸãïŒãŸãã¯GitHub ïŒã¢ããªã±ãŒã·ã§ã³èªäœã¯wa-apps / blog /ã«ãããŸãïŒ
ç«ã®äžã§ãã¢ããªã±ãŒã·ã§ã³ã®è©³çŽ°ãªã¬ãã¥ãŒãšå€ãã®ã¹ã¯ãªãŒã³ã·ã§ããã
èšçœ®
ã·ã¹ãã èŠä»¶ã¯ãã¯ã©ã·ãã¯ãã§ããPHP5.2 + ã MySQL 4.1+ ãæ¡åŒµåmbstringãiconvãjsonãcurlãgd / imagick-ã»ãšãã©ãã¹ãŠã®å ±æãã¹ãã£ã³ã°ã«ã€ã³ã¹ããŒã«ãããŸãã
ãã®ã¢ããªã±ãŒã·ã§ã³ã¯Webasystãã¬ãŒã ã¯ãŒã¯ã®äžéšã§ãã äžèšã®ãªã³ã¯ããã¢ããªã±ãŒã·ã§ã³ãããŠã³ããŒããããšããã¬ãŒã ã¯ãŒã¯ã¯ãããã°ãã¢ããªã±ãŒã·ã§ã³ãšå ±ã«ããã«ã€ã³ã¹ããŒã«ãããŸãã åºæ¬é ä¿¡ã«ãããã°ãããªãå Žåã¯ããã¬ãŒã ã¯ãŒã¯ã®åºæ¬æ§é ã«åžžã«å«ãŸããŠããçµã¿èŸŒã¿ã®ãã€ã³ã¹ããŒã©ãŒãã¢ããªã±ãŒã·ã§ã³ã䜿çšããŠç°¡åã«ã€ã³ã¹ããŒã«ã§ããŸãïŒãã€ã³ã¹ããŒã©ãŒãã䜿çšãããšãæŽæ°ããã°ã©ã ãšæ°ããã¢ããªã±ãŒã·ã§ã³ãã¯ã³ã¯ãªãã¯ã§ã€ã³ã¹ããŒã«ã§ããŸãïŒã
ã€ã³ã¹ããŒã«ã¯ããã€ãã®ã¹ãããã§è¡ãããŸãïŒFTPçµç±ã§ãµãŒããŒã«ãã¡ã€ã«ãã³ããŒããŠãããWebã€ã³ã¿ãŒãã§ãŒã¹çµç±ã§MySQLã«æ¥ç¶ããããã®èšå®ãå ¥åããŸãã ç°åžžãªããšã¯äœããããŸããã æ瀺 ïŒã¹ã¯ãªãããã€ã³ã¹ããŒã«ããããªãå Žåã¯ãWebasystã¯ã©ãŠãã§ã¢ããªã±ãŒã·ã§ã³ãè©Šãããšãã§ããŸããïŒ
ããã¯ãšã³ããžã®å ¥ãå£ïŒ
ããã¯ãšã³ã
æåã®èµ·åæã«ãã¢ããªã±ãŒã·ã§ã³ã¯ãŠãŒã¶ãŒã«äŒããŸãã
ããã¯ãšã³ãã€ã³ã¿ãŒãã§ã€ã¹ã¯ãæçš¿ã®ãªã¹ããäžå¿ã«æ§ç¯ãããŸãã
æçš¿ã®äž»ãªåºåã¯ããã°ã§ãã ããã°ã¯æçš¿ã®ç¬ç«ããã¹ããªãŒã ã§ããã ãªãŒãã³ã«ããããšãã§ããŸã-æçš¿ã¯ãµã€ãäžã§èªåçã«å ¬éããã ã¯ããŒãºããŸã -æçš¿ã¯ããã¯ãšã³ããŠãŒã¶ãŒã®ã¿ãå©çšã§ããŸãã ããã°ãžã®ã¢ã¯ã»ã¹ã¯ããŠãŒã¶ãŒãšãŠãŒã¶ãŒã°ã«ãŒãã«ãã£ãŠæ§æãããŸãã åããã°ã«ã¯è²ãå²ãåœãŠãããšãã§ããŸããããã«ãããå€æ°ã®ç¬ç«ããããã°ãéåžžã«äŸ¿å©ã«ç®¡çã§ããŸãã äžã®ã¹ã¯ãªãŒã³ã·ã§ããã¯ã3ã€ã®ããã°ã®å ±éãã£ãŒãã®äŸã瀺ããŠããŸãããã®ãã¡2ã€ïŒé»è²ãšèµ€ïŒã¯éããããŠããŸãããããã®ããã°ã«å±ããæçš¿ã®ã¿ã€ãã«ã®æšªã«å°ããªããã¯ã¢ã€ã³ã³ã衚瀺ãããŸãã
æçš¿ã¯1ã€ã®ããã°ã«ã®ã¿å«ããããšãã§ããŸãã ããã«ãåæçš¿ã«ã¿ã°ãšã«ããŽãªãå²ãåœãŠãããšãã§ããŸãïŒãã®ããã«ã¯ãç¡æã®ãã©ã°ã€ã³ãã€ã³ã¹ããŒã«ããå¿ èŠããããŸãïŒã é 延èªã¿èŸŒã¿ãªã¹ãã®ã©ãã§ãã
èšèš
ããã©ã«ãã§ã¯ãããã³ããšã³ãã®ããã©ã«ãããŒããæ¥ç¶ãããŠãããæå°éã«èŠããŸãã
ãããã©ã«ããã¯ãããã¯ãšã³ãã®ãã¶ã€ã³ãšãã£ã¿ãŒã§çŽæ¥ä»ã®ãã¶ã€ã³ããŒãã«ç°¡åã«å€æŽã§ããŸãããã¶ã€ã³ããŒããéžæãããšãWebasyst Webãµã€ãããããŠã³ããŒããããã€ã³ã¹ããŒã«ãããŸãã
åºæ¬çãªãããã¯ã¯ã»ãšãã©ãããŸãããããã¹ãŠã®ãããã¯-ãã£ããããæå¹ãªã¬ã€ã¢ãŠãïŒãã¢ããŒãžã§ã³ããªããŒã¿ãŒ ïŒã§ããŠãŒã¶ãŒã®ããã€ã¹ïŒãã¹ã¯ããããã¿ãã¬ãããã¢ãã€ã«ïŒã«èªåçã«é©å¿ããããã«ãã¹ãŠã®åºæ¬çãªãã¶ã€ã³ããŒãã§Schema.orgæšæºã«åºã¥ãæçš¿ãšã³ã¡ã³ãã®ãã€ã¯ãã¬ã€ã¢ãŠãã䜿çšãããŸãã
Smartyãã³ãã¬ãŒããšã³ãžã³ã䜿çšãããŸãã ããŒã«ã©ã€ãºã¯gettextã«åºã¥ããŠããŸãã ã·ã§ãŒã±ãŒã¹ãã¶ã€ã³ã¯ãã¢ããªã±ãŒã·ã§ã³ããã¯ãšã³ãã®ãã©ãŠã¶ãŒã§çŽæ¥ç·šéã§ããŸãã Webã€ã³ã¿ãŒãã§ãŒã¹ãä»ããŠãHTML / SmartyãCSSãããã³JavaScriptïŒjQueryïŒã®ãã¹ãŠã®ããã³ããšã³ããã³ãã¬ãŒããç·šéã§ããŸãã
Blogyã¢ããªã±ãŒã·ã§ã³ãŸãã¯ä»ã®ã¢ããªã±ãŒã·ã§ã³ããããŒã¿ãåä¿¡ããããã®ãã¶ã€ã³ãã³ãã¬ãŒããæ¯æŽããããŸããŸãªSmartyãã«ããŒããããŸãã ããšãã°ãæ§é
$wa->shop->products('tag/')
ã䜿çšãããšãShop-Script 5ïŒãªã³ã©ã€ã³ã¹ãã¢ãäœæããããã®ã¢ããªã±ãŒã·ã§ã³ïŒããã¿ã°ãbestsellerããæã€è£œåã®ãªã¹ããååŸãããµã€ãããŒã«è¡šç€ºã§ããŸããããã°ïŒsidebar.htmlãã³ãã¬ãŒãïŒïŒ
åæ§ã«ã ä»ã®ã¢ããªã±ãŒã·ã§ã³ããããŒã¿ãåŒãåºãããšãã§ããŸã ïŒ
$wa->photos->photos('tag/')
ã
$wa->shop->cart()->total()
$wa->photos->photos('tag/')
$wa->shop->cart()->total()
ã
$wa->blog->blogs()
ãªã© ãµããŒããããŠãããã«ããŒã®ãªã¹ãã¯ãåžžã«ãã¶ã€ã³ãšãã£ã¿ãŒã®ããŒãã·ãŒãã«ãããŸãã
ããã³ããšã³ã
ããã³ããšã³ãããã°ã®è³Œèªã¯RSSã§ãããããã¯ãšã³ãã®ããã¯ãã°ãé»åã¡ãŒã«ã§éä¿¡ããŸãã
ããã³ããšã³ãã¬ã³ãŒãã®CNCã¢ãã¬ã¹ã«ã¯ãã¬ã³ãŒãã¢ãã¬ã¹ã®ã¿ããŸãã¯å¹Žãæãæ¥ãšäžç·ã®ã¬ã³ãŒãã¢ãã¬ã¹ã®ããããã®ãªãã·ã§ã³ã䜿çšã§ããŸãã
1ã€ã®ã¢ããªã±ãŒã·ã§ã³ã«åºã¥ããŠãç°ãªããµã€ãã§è€æ°ã®ç¬ç«ããããã°ãç¶æã§ããŸãã ã¢ããªã±ãŒã·ã§ã³ã®åããã³ããšã³ãïŒããã³ç°ãªããã¡ã€ã³ã§å¥œããªã ãå€ãã®å ŽåããããŸãïŒã«å¯ŸããŠãåå¥ã®ããã°ãæ·»ä»ã§ããŸãã äŸïŒãã¬ãŒã ã¯ãŒã¯Webãµã€ãã§ã¯ãè±èªïŒwebasyst .com / blog /ïŒããã³ãã·ã¢èªïŒwebasyst .ru / blog /ïŒèšèªã§åäžã®ã¹ããªãŒã ã§ããã°ãè¡ã£ãŠãããæçš¿ã¯ç°ãªããã¡ã€ã³ã§å ¬éãããå€èŠ³ã¯ç¬ç«ããŠããŸãã
ããã³ããšã³ãã§ããé 延ããŒãã¯ã©ãã«ã§ããããŸãã SEOã®èŠ³ç¹ããã¯ããã¹ãŠãåé¡ãããŸãããJavaScriptããµããŒããããŠããªãå Žåãé 延èªã¿èŸŒã¿ã®ä»£ããã«ããŒãžããã²ãŒã¿ãŒã衚瀺ãããããããã¹ãŠã®æçš¿ãæ£åžžã«ã€ã³ããã¯ã¹ä»ããããŸãã
ãŸããã¢ããªã±ãŒã·ã§ã³ã¯ããã°ã®Webãµã€ããããïŒãã¢ã®Webãµã€ããããã®äŸ ïŒãèªåçã«äœæããã³æŽæ°ããŸãã
å·çåŸ
æçš¿ãæžãããã®3ã€ã®ç·šéã¢ãŒãããããŸãã
-WYSIWYGããããªãã®å ŽåïŒelRTEãšãã£ã¿ãŒã䜿çšããã
-HTML ïŒAceãšãã£ã¿ãŒã«åºã¥ããŠã
-Markdown ïŒç¡æã®ãã©ã°ã€ã³ãã€ã³ã¹ããŒã«ããå¿ èŠããããŸãã
æçš¿ã®å Žåãã¡ã¿ã¿ã°ãã¿ã€ãã«ãã¿ã°ãã«ããŽãªïŒãã©ã°ã€ã³ïŒãå ¬éäºå®æ¥ãããã³ä»»æã®Key-Valueãã©ã¡ãŒã¿ãŒãç·šéã§ããŸãããããã®ãã©ã¡ãŒã¿ãŒã®å€ã¯ããã¶ã€ã³ãã³ãã¬ãŒãã«è»¢éãããŸãã
ã¢ããªã±ãŒã·ã§ã³èšå®ã§ãªãã·ã§ã³
'can_use_smarty' => true
ãæå¹ã«ãããšãæçš¿ã®æ¬æã§Smartyãå®å šã«äœ¿çšããããšãã§ããŸãã ããã¯ãã¿ã°ãã¬ãŒãã£ã³ã°ãã¢ã«ãã ãªã©ã®ã«ãŒã«ã«åŸã£ãŠåçã¢ããªã±ãŒã·ã§ã³ããåçã®åçãªã¹ããååŸããå¿ èŠãããå Žåãªã©ãä»ã®ã¢ããªã±ãŒã·ã§ã³ã®ããŒã¿ãæäœããã®ã«äŸ¿å©ã§ãã
ã³ã¡ã³ã
ãã®ã¢ããªã±ãŒã·ã§ã³ã¯ãããªãŒã®ãããªã³ã¡ã³ãæ§é ãæã£ãŠããŸããåå²ãšã³ã¡ã³ããžã®å¿çæ©èœã¯ãå€èŠ³ãHabréã®ã³ã¡ã³ãã«äŒŒãŠããŸãã
ããã«äœ¿çšã§ãããã¬ãŒã ã¯ãŒã¯ã«ã¯ã人æ°ã®ãããµãŒãã¹çšã®OAuthæ¿èªã¢ããã¿ãŒããããŸãããã®ãããèšå®ïŒWebã€ã³ã¿ãŒãã§ã€ã¹ïŒã§ãGoogleãFacebookãVkontakteãªã©ã®ãµãŒãã¹ãä»ããŠæ¿èªãç°¡åã«æ¥ç¶ã§ããŸãã
ãã€ã
ããã¯ãšã³ãã®åºçç©ã®ã«ã¬ã³ããŒã«ã¯ãæçš¿ãæ確ã«è¡šç€ºãããŸãããã§ã«å ¬éãããŠãããå°æ¥å ¬éãããäºå®ã§ãã å€ãã®æçš¿ãèšç»ãããŠããå Žåãšããã§ãªãå Žåãç°¡åã«ç¢ºèªã§ããŸãã ç§ãã¡èªèº«ã®ããã°ã®çµéšã瀺ãããã«ãã«ã¬ã³ããŒãå ¬éäºå®æ¥ãããã³ãªãã€ã³ããŒã¯ãã¢ããªã±ãŒã·ã§ã³ã®æãå®çšçãªæ©èœã®1ã€ã§ãããããèŠåŸããããã°ãç¶æããã®ã«åœ¹ç«ã¡ãŸãã
ä»åŸã®é²ç»ã®ãªãã€ã³ããŒãæå¹ã«ã§ããŸããã¢ããªã±ãŒã·ã§ã³ã¯ãé²ç»ãå ¬éãŸãã¯åé€ããããŸã§ãã¢ããªã±ãŒã·ã§ã³ã®äœæè ãæ¯æ¥ã¡ãŒã«ã§ãããã¯ãããŸãã
é 延æçš¿ããµããŒããããŠããŸããæ¥ä»ãšæå»ãè«æ±ãããšãæçš¿ã¯èªåçã«å ¬éãããŸãïŒãã®ããã«ã¯ãcronã¹ã±ãžã¥ãŒã©ãæ§æããå¿ èŠããããŸãïŒã
ãã©ã°ã€ã³
ããšãã°ãããã€ãã®äŸ¿å©ãªãã©ã°ã€ã³ãç¡æã§ããŠã³ããŒãã§ããŸãã
-ãã©ã°ã€ã³ãTrollfaceããåã ã®ã³ã¡ã³ããŒã¿ãŒãtrollfaceã§ããŒã¯ã§ããŸãã
-æ¢ã«è¿°ã¹ãMarkdownãã©ã°ã€ã³ã
-WordPressãšLJãããã©ã°ã€ã³ãã€ã³ããŒããã
-ã«ããŽãªãšã¿ã°ã§æçš¿ããã£ã«ã¿ãªã³ã°ããããã®ãã©ã°ã€ã³ã
-Akismetã¹ãã 察çã
-æ®ãã®ãã©ã°ã€ã³ã¯ããã§èŠãããšãã§ããŸã ã
ç¬èªã®ãã©ã°ã€ã³ãç°¡åã«éçºã§ããŸãã ã¢ããªã±ãŒã·ã§ã³ã«ã¯ãæ©èœãæ¥ç¶ã§ããå€ãã®ããã¯ããããŸãã æ¢åã®ãã¹ãŠã®ãã©ã°ã€ã³ãäŸãšããŠäœ¿çšããŠãç¬èªã®ãã©ã°ã€ã³ãéçºã§ããŸãã
API
ãã®ææ¡ã§ã¯ãããŒã¿ã®èªã¿åãããã³æžã蟌ã¿çšã®13ã®å€éšAPIã¡ãœãããæäŸããŠããŸãã
ããã°
- blog.blog.add
- blog.blog.getInfo
- blog.blog.getList
- blog.blog.update
ãã¹ã
- blog.post.add
- blog.post.comments.add
- blog.post.comments.delete
- blog.post.comments.getInfo
- blog.post.comments.getTree
- blog.post.delete
- blog.post.getInfo
- blog.post.search
- blog.post.update
ã¢ããªã±ãŒã·ã§ã³ã®APIã¡ãœããã«é¢ããããã¥ã¡ã³ãïŒãµã³ãããã¯ã¹ä»ãïŒïŒ http : //www.webasyst.ru/developers/docs/api/explorer/blog/
WordPressãä»ã®ãšã³ãžã³ããªãå¥ã®èªè»¢è»
Webasystãã¬ãŒã ã¯ãŒã¯ã«åºã¥ããŠãç§ãã¡ã¯äž»ã«ããŒã ã¯ãŒã¯ãšããžãã¹çšã®ã¢ããªã±ãŒã·ã§ã³ãäœæããWebasystã®ä»æ¥ã®äž»ãªçŠç¹ã¯ãªã³ã©ã€ã³ã·ã§ããã³ã°ã§ãã ããã°ã¢ããªã±ãŒã·ã§ã³ãäœæããŠWordPressãä»ã®ããã°ãšã³ãžã³ãšç«¶åããããšã¯ããŸããã§ãããã第äžã«ããã¬ãŒã ã¯ãŒã¯ã®éçºã«æè¡çã«å€ãã®å©ããããŠãããã®ã§ã第äºã«ããã¬ãŒã ã¯ãŒã¯ã«åºã¥ããŠããã°ãäœæã§ããããã«ããããšæããŸããããããã£ãŠãã¿ã¹ã¯ãèšå®ããŠãããã°ã«çŠç¹ãçµã£ã䟿å©ã§ãã©ã³ã¹ã®ãšããããŒã«ãäœæããŸãã äžè¬ã«ããã¬ãŒã ã¯ãŒã¯ã¯ãã®æ©èœãæ¬æ ŒçãªãŠãããŒãµã«CMSã«æ¡åŒµããŸãããããã¯ä»ã®ã¢ããªã±ãŒã·ã§ã³ãšã®çµã¿åããã®ã¿ã§ãã
ãããã°ãã¢ããªã±ãŒã·ã§ã³ã¯ãããã°ãšã³ãžã³ã«ããããããŠãã人ãããã°ã«å ããŠãµã€ãã®ããã¯ãšã³ãã«ä»ã®å€ãã®ããŒã«ïŒãã©ãã®ã£ã©ãªãŒããªã³ã©ã€ã³ã¹ãã¢ãTo Doãªã¹ãããã£ã¬ã¯ããªãªã©ã®äžè¬çã§ã¯ãªãCMSããŒã«ïŒãæã¡ãã人ã«äŸ¿å©ã§ããé£çµ¡å ãã¡ãŒã«ãã¿ã¹ã¯ãªã© Webasystãã¬ãŒã ã¯ãŒã¯ã«ã¯å€ãã®ãã®ãããªããŒã«ããããåžžã«èå³æ·±ãã¢ããªã±ãŒã·ã§ã³ããªãªãŒã¹ããŠããŸãã
ãããã°ãã¯ã åç ãã¢ããªã±ãŒã·ã§ã³ãšçµã¿åãããŠäœ¿çšââãããšç¹ã«äŸ¿å©ã§ãããåçãã«åçãã¢ããããŒãããåŸãäžåºŠã«1ã€ãã€ããŸãã¯ããã¯å šäœãšããŠããã°ã«ãšã¯ã¹ããŒãã§ããŸãã ãŸããã客æ§ã®å€ãã¯ãããã°ãã䜿çšããŠã Shop-Script 5ã«åºã¥ããŠãªã³ã©ã€ã³ã¹ãã¢ãããã¥ãŒã¹ãå ¬éããŠããŸãã
ããã€ãã®ãµã³ãã«ããã°ãžã®ãªã³ã¯ïŒ http : //www.webasyst.ru/store/app/blog/examples/
éçºè ãž
ãããã°ãã¢ããªã±ãŒã·ã§ã³ã«èå³ãããå Žåã¯ãWebasystã¹ãã¢ã«ãã©ã°ã€ã³ãšãã¶ã€ã³ããŒããé 眮ããããã®Githubããã³ã¢ããªã±ãŒã·ã§ã³ã§ãã«ãªã¯ãšã¹ããåãåããŸããæè¿ãç¬ç«ããéçºè ãææã§ç¬èªã®éçºãå ¬éã§ããã¢ããªã±ãŒã·ã§ã³ããã©ã°ã€ã³ããã¶ã€ã³ããŒãã®ã¹ãã¢ããªãŒãã³ããŸãããŸãã¯ç¡æã§ã åºçæ¡ä»¶ã¯ãã¡ãã«æ²èŒãããŠããŸã ã ãã©ãããã©ãŒã ã«ååããå ±åã§éçºã§ããããšãå¬ããæããŸãïŒ
GitHubïŒ https : //github.com/webasyst/webasyst-framework ïŒã¢ããªã±ãŒã·ã§ã³èªäœã¯wa-apps / blog /ã«ãããŸãïŒ
ã©ã€ã»ã³ã¹ïŒLGPLïŒã¢ããªã±ãŒã·ã§ã³ã¯ç¡æïŒ