Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
EC-CUBE3デザイナー向け勉強会 #1
Search
amidaike
March 10, 2016
Programming
0
280
EC-CUBE3デザイナー向け勉強会 #1
amidaike
March 10, 2016
Tweet
Share
More Decks by amidaike
See All by amidaike
EC-CUBE3勉強会新しいデザインを作成してみよう
amidaike
0
450
EC-CUBE 3.0勉強会
amidaike
1
900
EC-CUBE3プラグイン勉強会
amidaike
0
460
EC-CUBE3デザイナー向け勉強会 #4
amidaike
0
300
EC-CUBE3コードリーディング #5
amidaike
1
1.5k
EC-CUBE3デザイナー向け勉強会 #3
amidaike
1
210
EC-CUBE3コードリーディング #4
amidaike
0
1.3k
EC-CUBE3デザイナー向け勉強会 #2
amidaike
1
2.7k
EC-CUBE3コードリーディング #3
amidaike
1
960
Other Decks in Programming
See All in Programming
Contemporary Test Cases
maaretp
0
130
A Journey of Contribution and Collaboration in Open Source
ivargrimstad
0
890
광고 소재 심사 과정에 AI를 도입하여 광고 서비스 생산성 향상시키기
kakao
PRO
0
170
EventSourcingの理想と現実
wenas
6
2.3k
みんなでプロポーザルを書いてみた
yuriko1211
0
260
とにかくAWS GameDay!AWSは世界の共通言語! / Anyway, AWS GameDay! AWS is the world's lingua franca!
seike460
PRO
1
860
AI時代におけるSRE、 あるいはエンジニアの生存戦略
pyama86
6
1.1k
Flutterを言い訳にしない!アプリの使い心地改善テクニック5選🔥
kno3a87
1
160
イベント駆動で成長して委員会
happymana
1
320
Compose 1.7のTextFieldはPOBox Plusで日本語変換できない
tomoya0x00
0
190
色々なIaCツールを実際に触って比較してみる
iriikeita
0
330
ActiveSupport::Notifications supporting instrumentation of Rails apps with OpenTelemetry
ymtdzzz
1
230
Featured
See All Featured
Teambox: Starting and Learning
jrom
133
8.8k
Rebuilding a faster, lazier Slack
samanthasiow
79
8.7k
How STYLIGHT went responsive
nonsquared
95
5.2k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
250
21k
Building Your Own Lightsaber
phodgson
103
6.1k
How GitHub (no longer) Works
holman
310
140k
Being A Developer After 40
akosma
86
590k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
356
29k
Faster Mobile Websites
deanohume
305
30k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
226
22k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
4
370
Making Projects Easy
brettharned
115
5.9k
Transcript
EC-CUBE3σβΠφʔ͚ษڧձ #1 EC-CUBEؔϢʔβάϧʔϓ 2016-02-10
ࣗݾհ גࣜձࣾΩϡʔϧ ࢁଜ ਗ਼࢙ EC-CUBE3ͷίϛολʔͯ͠·͢ @k-yamamura
࣍ 1. EC-CUBE3ͷհ 2. EC-CUBE3Ͱ༻͍ͯ͠ΔσβΠϯϑϨʔ ϜϫʔΫ 3. EC-CUBE3ͷσΟϨΫτϦߏ 4. ը໘ϨΠΞτͷઆ໌
5. ը໘Λ࡞͢Δํ๏
1.EC-CUBE3ͷհ
EC-CUBE3ͷհ • 20157݄1ʹ7ͿΓͷϝδϟʔόʔδϣϯΞοϓ • γεςϜ෦ͷେ෯ͳݟ͠ Symfony2ίϯϙʔωϯτͰ͋ΔSilexͷ࠾༻ ཧը໘ɺϑϩϯτը໘ʹBootstrap3ͷ࠾༻ Smarty͔ΒTwigͷPHPςϯϓϨʔτมߋ Doctrineͱ͍͏ORϚούʔͷ࠾༻ •
ϨεϙϯγϒσβΠϯରԠ • ϓϥάΠϯػߏͷ৽
EC-CUBE3ͷհ • GitHubΛͬͨࠓ࣌ͷ։ൃ https://github.com/EC-CUBE/ec-cube • TravisCIɺAppVeyorɺScrutinizerͷ֎෦αʔϏεΛ͍ίʔ υ࣭Λ୲อ ˠPullRequest͞ΕΔͱͦΕͧΕࣗಈతʹ࣮ߦ͞Ε·͢ɻ·ͩ ·ͩςετέʔεΓ͍ͯ·ͤΜ͕ɾɾɾ •
PSRʹ΄΅४ڌͨ͠ίʔυ։ൃ ͍ͭͰPull Request͓͓ͪͯ͠Γ·͢ʂ
2.EC-CUBE3Ͱ༻͍ͯ͠Δ σβΠϯϑϨʔϜϫʔΫ
EC-CUBE3Ͱ༻͍ͯ͠ΔσβΠϯϑϨʔϜϫʔΫ • ϑϩϯτΧελϚΠζ͞ΕͨBootstrap3.3.4Λ༻͠ɺཧ ը໘EC-CUBE3.0.0ϦϦʔε࣌Ͱ࠷৽ͷBootstrap3.3.5Λ༻ • ϑϩϯτը໘ͰBootstrapΛΧελϚΠζ͠ɺඞཁͳଐੑͩ ͚Λൈ͖ग़ͯ͠༻͍ͯ͠ΔͨΊɺ༻ग़དྷΔclassݶΒΕͯ ͍Δ(JavaScriptಉ༷) • ཧը໘ͰBootstrap3.3.5Ͱ༻ҙ͞Ε͍ͯΔclassશͯ༻
Մೳ • btnͷ৭ͳͲσβΠϯʹؔΘΔ෦EC-CUBE3ଆͷcssͰఆٛ͠ ͍ͯ͠Δclass͕͋ΔͨΊѻ͏ͨΊʹҙ͕ඞཁ
EC-CUBE3Ͱ༻͍ͯ͠ΔσβΠϯϑϨʔϜϫʔΫ ϑϩϯτը໘Ͱͷൺֱ Bootstrap3ඪ४ͷϘλϯ EC-CUBE3Ͱఆٛ͞Ε͍ͯΔϘλϯ
EC-CUBE3Ͱ༻͍ͯ͠ΔσβΠϯϑϨʔϜϫʔΫ ཧը໘Ͱͷൺֱ Bootstrap3ඪ४ͷϘλϯ EC-CUBE3Ͱఆٛ͞Ε͍ͯΔϘλϯ
EC-CUBE3Ͱ༻͍ͯ͠ΔσβΠϯϑϨʔϜϫʔΫ • ཧը໘ΛΧελϚΠζ͢Δඞཁ͕͋Δ߹ɺ Bootstrap3Λ͢Ͱʹ͍ͬͯΕएׯͷσβΠϯ૬ҧ ͕͋Δ͚Ͳ͢ΜͳΓͱࣅͨΑ͏ͳը໘Λ࡞͢Δ͜ͱ Մೳ • ϑϩϯτը໘ΛΧελϚΠζ͢Δ߹ɺBootstrap3Ͱ ͑ΔͷݶΒΕ͍ͯΔͨΊɺطʹ༻ҙ͞Ε͍ͯΔ ͷΛ͏ΑΓಠࣗͰఆٛͨ͠cssΛ࡞ͬͨํ͕ྑ
͍͔ →ୠ͠ɺϑΥʔϜΛѻ͏߹ɺ৭ʑͱ͓࡞๏͕ඞཁ
EC-CUBE3Ͱ༻͍ͯ͠ΔσβΠϯϑϨʔϜϫʔΫ • ࠓޙͷษڧձͷςʔϚͱͯ͠ɺಠࣗʹը໘Λ࡞ ͢Δํ๏ɺgulpΛͬͨ։ൃํ๏ͳͲΛ͓͑ ͍͖ͯ͠·͢ɻ
3.EC-CUBE3ͷσΟϨΫτϦߏ
EC-CUBE3ͷσΟϨΫτϦߏ • EC-CUBE3ͰSilexϑϨʔϜϫʔΫΛ࠾༻͍ͯ͠Δͨ Ίɺ2ܥ͔Βେ෯ʹσΟϨΫτϦߏ͕มԽ • Symfony2ͷσΟϨΫτϦߏΛࢀߟʹɺEC-CUBE3ಠ ࣗʹߏ • URLʹ.php͕ແ͘ͳΓγϯϓϧͳURLʹมߋ •
ެ։σΟϨΫτϦʹ͍ͭͯ2ܥΛ΄΅౿ऻ
EC-CUBE3ͷσΟϨΫτϦߏ • /ECCUBEROOT/src Լ͕ϓϩάϥϜຊମͱͳΓɺ phpϑΝΠϧtwigϑΝΠϧΛ ஔ
EC-CUBE3ͷσΟϨΫτϦߏ • /ECCUBEROOT/app ԼઃఆϑΝΠϧϩάϑΝ Πϧ͕ஔ͞Ε͓ͯΓɺϓ ϥάΠϯʮPluginʯσΟϨΫ τϦԼͰ࡞
EC-CUBE3ͷσΟϨΫτϦߏ • /ECCUBEROOT/html ͕ެ։σΟϨΫτϦͱͳΓɺ ϦιʔεϑΝΠϧ(cssը૾ ϑΝΠϧʑ)Λஔ (֤σΟϨΫτϦͷઆ໌ޙड़)
EC-CUBE3ͷσΟϨΫτϦߏ • ϑϩϯτը໘ͷඪ४σΟϨΫτϦ /ECCUBEROOT/html/template/default • ཧը໘ͷඪ४σΟϨΫτϦ /ECCUBEROOT/html/template/admin • Πϯετʔϧը໘ͷඪ४σΟϨΫτϦ /ECCUBEROOT/html/template/install
EC-CUBE3ͷσΟϨΫτϦߏ default.cssɺslick.cssɺstyle.cssͷॱͰݺͼग़͞Εɺ bootstrap.custome.min.cssstyle.css͔Βimport͞ Ε͍ͯΔɻ svgΞΠίϯͰ͋Δsvg.htmlͱσϞαΠτ༻ͱͯ͠༻ҙ ͞Ε͍ͯΔը૾͕ஔ͞Ε͍ͯΔɻ →ొ࣌ͷը૾ϑΝΠϧผσΟϨΫτϦʹอଘ ͞ΕΔ eccubeಠࣗͷJavaScriptfunction.jsٴͼeccube.jsʹ ఆٛ͞Ε͓ͯΓɺͦΕҎ֎ͷjqueryϥΠϒϥϦjs/
vendorҎԼʹஔ͞Ε͍ͯΔɻ
EC-CUBE3ͷσΟϨΫτϦߏ bootstrap-min.cssɺdashboard.cssͷॱͰݺͼग़͞Εͯ ͓ΓɺͦΕҎ֎ͷcssඞཁͳը໘ͰͷΈར༻͞Ε͍ͯ Δɻ svgΞΠίϯͰ͋Δsvg.htmlͱϩΰը૾͕ஔ͞Ε͍ͯ Δɻ eccubeಠࣗͷJavaScriptfunction.jsʹఆٛ͞Ε͓ͯ Γɺfile_manager.jsɺlayout_design.jsඞཁͳը໘Ͱ ͷΈར༻͞Ε͍ͯΔɻͦΕҎ֎ͷjqueryϥΠϒϥϦ js/vendorҎԼʹஔ͞Ε͍ͯΔɻ
bootstrap༻ͷΞΠίϯͰ͋Δglyphicon͕ஔ͞Εͯ ͍ΔɻfontawesomeΛ͍͍ͨ߹ɺ͜ͷσΟϨΫτ Ϧʹஔ͢Εྑ͍ɻ
EC-CUBE3ͷσΟϨΫτϦߏ ϓϥάΠϯ༻ͷެ։σΟϨΫτϦͰɺϓϥάΠϯͰ༻ ͢ΔϦιʔεϑΝΠϧ͕ஔ͞ΕΔɻ ཧը໘͔Β࡞͞ΕͨtwigϑΝΠϧಠࣗʹ࡞͠ ͨը૾ϑΝΠϧ͕ஔ͞ΕΔɻ ը૾Ξοϓϩʔυ༻σΟϨΫτϦ save_imageը૾ࢧํ๏ͷը૾͕ஔ͞Εɺ temp_imageϑΝΠϧΞοϓϩʔυ࣌ͷҰ࣌తͳϑΝ Πϧஔ͖ͱͯ͠ར༻͞ΕΔɻ
EC-CUBE3ͷσΟϨΫτϦߏ • TwigϑΝΠϧͷஔॴɺ /ECCUBEROOT/src/Eccube/Resource/template • ࣮ࡍʹը໘Λ࡞͢Δ߹ɺTwigϑΝΠϧʹରͯ͠ख ΛՃ͑Δɻ
4.ը໘ϨΠΞτͷઆ໌
5.ը໘Λ࡞͢Δํ๏
EC-CUBE3ͷσΟϨΫτϦߏ • EC-CUBE3ͷը໘Λ৽ن࡞͢Δओͳํ๏ҎԼͷ௨Γ 1. ཧը໘͔ΒtwigϑΝΠϧΛ৽ن࡞ 2. ཧը໘͔ΒϑΝΠϧΛΞοϓϩʔυͯ͠৽ن࡞ 3. σβΠϯςϯϓϨʔτͱͯ͠ඪ४ͷϑΝΠϧ͔Β࡞͠Ξο ϓϩʔυ
• ը໘Λ৽ن࡞͢Δ߹ɺECCUBE3͔ΒtwigλάΛѻ͏͜ͱ ʹͳΓ·͕͢ɺSmartyλάΛཧղͰ͖͍ͯΔਓtwigʹͳͬͯ ৽ͨʹ֮͑Δ͜ͱ͕গͳ͍ͨΊށΘͣʹ࡞͢Δ͜ͱ͕Մೳʂ
EC-CUBE3ͷσΟϨΫτϦߏ • EC-CUBE3ͷը໘Λมߋ͢Δओͳํ๏ҎԼͷ௨Γ 1. ຊମඪ४ͷtwigϑΝΠϧΛίϐʔͯ͠मਖ਼ 2. ཧը໘͔ΒtwigϑΝΠϧΛमਖ਼ • ECCUBEROOT/srcҎԼͷϑΝΠϧόʔδϣϯΞο ϓͰ্ॻ͖͞ΕΔͨΊɺຊମͷtwigϑΝΠϧ
Λ৮Δͷඇਪ
EC-CUBE3ͷσΟϨΫτϦߏ • ຊମଆͷtwigϑΝΠϧΛ ECCUBEROOT/app/templateʹίϐʔͯ͠मਖ਼ • Ұ൪खͬऔΓૣ͘ରԠՄೳ • ݱߦͷσΟϨΫτϦߏٴͼϑΝΠϧ໊ΛΔඞ ཁ͋Γ(υΩϡϝϯτະඋͰ͢)
EC-CUBE3ͷσΟϨΫτϦߏ ECCUBEROOT/src/Eccube/Resource/template/default ҎԼͷϑΝΠϧΛίϐʔͯ͠ɺ ECCUBEROOT/app/template/default Լίϐʔͯ͠मਖ਼Λߦ͏ɻ adminཧը໘ଆͷϑΝΠϧͰɺdefaultϑϩϯτ ը໘ଆͷϑΝΠϧ͕ஔ͞Ε͍ͯΔɻ
EC-CUBE3ͷσΟϨΫτϦߏ • ඪ४ͰඋΘ͍ͬͯΔը໘ʹରͯ͠ཧը໘͔Β มߋՄೳͰ͋Γɺมߋͨ͠ϑΝΠϧ ECCUBEROOT/app/template σΟϨΫτϦʹอଘ͞ΕΔͨΊɺΦϦδφϧϑΝ Πϧ͢͜ͱՄೳ • ཧը໘ʹϩάΠϯޙɺࠨϝχϡʔͷ ʮίϯςϯπཧʯˠʮϖʔδཧʯ
ΑΓϖʔδฤूΛ͢Δ͜ͱͰมߋ
։ൃ࣌ͷࢀߟϖʔδ • GitHubWiki https://github.com/EC-CUBE/ec-cube/wiki • GitHubPages http://ec-cube.github.io • Qiitaͷهࣄ http://qiita.com/tags/EC-CUBE3