Skip to content

Commit 990b851

Browse files
author
Rafael Grigorian
committed
Fixed #154
1 parent 4561743 commit 990b851

File tree

6 files changed

+77
-0
lines changed

6 files changed

+77
-0
lines changed

src/app/design/adminhtml/base/default/template/cloudflare/dashboard.phtml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,15 @@
6363
<span>&#xF013;</span><span>Scrape Shield</span>
6464
</li>
6565
<?php endif ?>
66+
<li data-tab="hosting" >
67+
<svg viewBox="100 100 300 300"><defs/><g fill="#FFF"><path d="M102 209.2v-15.7a2 2 0 012.8-2L205.5 240c.8.4 1.2 1 1.2 2v17.5c0 .8-.4 1.4-1.2 1.8l-100.7 48.4a2 2 0 01-2.8-1.8V292c0-.8.4-1.4 1.2-1.8l79.4-37.6a2 2 0 000-3.6l-79.4-38a2 2 0 01-1.2-2.1v.2zM255 311v-98.6c0-1.2-.8-2-2-2H229a2 2 0 01-2-2v-16.1c0-1.2.8-2 2-2h44.3c1.2 0 2 .8 2 2V311a40.4 40.4 0 01-40.3 40.2h-26.2a2 2 0 01-2-2v-16c0-1.3.8-2 2-2H235c11.1 0 20.1-9.1 20.1-20.2zm0-161h18.2c1.2 0 2 .8 2 2v16.1c0 1.2-.8 2-2 2H255a2 2 0 01-2-2v-16c0-1.3.8-2.1 2-2.1zM400 293v16c0 1.3-.8 2-2 2H297.3a2 2 0 01-2-2v-16c0-1.3.8-2 2-2H398c1.2 0 2 .7 2 2z"/></g></svg>
68+
<span>Magento Hosting</span>
69+
</li>
6670
</ul>
6771
<div class="content-wrapper" >
72+
<div class="content" data-target="hosting" >
73+
<?php echo $this->getTabContent ("hosting") ?>
74+
</div>
6875
<div class="content" data-target="overview" >
6976
<?php echo $this->getTabContent ("overview") ?>
7077
</div>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<h1 class="tab-content" >Magento Hosting</h1>
2+
<h2 class="tab-content" >Single Tenant Magento Environment Architected For Your Store</h2>
3+
<?php
4+
5+
echo $this->renderSections ( "hosting", array ( "main", "cta-tom", "cta-robert" ) );
6+
7+
?>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<section
2+
class="cloudflare hosting cta-robert"
3+
data-endpoint="<?php echo $this->getApiEndpoint () ?>"
4+
data-form-key="<?php echo $this->getFormKey () ?>"
5+
data-tab-name="hosting"
6+
data-section-name="cta-robert" >
7+
<div class="row" >
8+
<div class="wrapper_left" >
9+
<span class="section_title" >Schedule A Meeting With <u>Robert</u>!</span>
10+
<p>Discuss partnership opportunities.</p>
11+
</div>
12+
<div class="wrapper_right" >
13+
<div>
14+
<input type="button" value="Schedule Meeting" onClick="window.open ('https://meetings.hubspot.com/robert-r','_blank')" />
15+
</div>
16+
</div>
17+
</div>
18+
</section>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<section
2+
class="cloudflare hosting cta-tom"
3+
data-endpoint="<?php echo $this->getApiEndpoint () ?>"
4+
data-form-key="<?php echo $this->getFormKey () ?>"
5+
data-tab-name="hosting"
6+
data-section-name="cta-tom" >
7+
<div class="row" >
8+
<div class="wrapper_left" >
9+
<span class="section_title" >Schedule A Meeting With <u>Tom</u>!</span>
10+
<p>Discuss your Magento hosting challenges with an expert.</p>
11+
</div>
12+
<div class="wrapper_right" >
13+
<div>
14+
<input type="button" value="Schedule Meeting" onClick="window.open ('https://calendly.com/tom-p','_blank')" />
15+
</div>
16+
</div>
17+
</div>
18+
</section>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<section
2+
class="cloudflare hosting main"
3+
data-endpoint="<?php echo $this->getApiEndpoint () ?>"
4+
data-form-key="<?php echo $this->getFormKey () ?>"
5+
data-tab-name="hosting"
6+
data-section-name="main" >
7+
<div class="row" >
8+
<div class="wrapper_left" >
9+
<span class="section_title" >Ready For Better Magento Hosting?</span>
10+
<p>Did you know that JetRails can configure, optimize, monitor, and manage, your Cloudflare account, along with malware scanners, intrusion detection systems, off-server backups, caching layers, and more! It’s all part of JetRails mission-critical hosting services!</p>
11+
<center>
12+
<iframe width="95%" height="400" src="https://magento-cloudflare.jetrails.com" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
13+
</center>
14+
</div>
15+
</div>
16+
</section>

src/skin/adminhtml/base/default/scss/cloudflare/core/dashboard.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,17 @@
116116
cursor: pointer;
117117
background: #FFF;
118118
transition: all 200ms;
119+
svg:nth-child( 1 ) {
120+
margin: 7.5px 20px;
121+
height: 50px;
122+
width: 50px;
123+
background: #2c7cb0;
124+
border-radius: 5px;
125+
line-height: 50px;
126+
text-align: center;
127+
padding: 8px;
128+
box-sizing: border-box;
129+
}
119130
span:nth-child( 1 ) {
120131
font-family: "cloudflare-font", sans-serif;
121132
font-style: normal;

0 commit comments

Comments
 (0)