Skip to content

Commit

Permalink
Add the Contact info on bottom of page
Browse files Browse the repository at this point in the history
Started adding logos
  • Loading branch information
joewashear007 committed Jan 10, 2014
1 parent ab93c69 commit 3d3c8f4
Show file tree
Hide file tree
Showing 8 changed files with 170 additions and 46 deletions.
109 changes: 92 additions & 17 deletions Config/SiteEng.php
Original file line number Diff line number Diff line change
@@ -1,18 +1,93 @@
<?php
/**
* This is the SiteEng configuration file.
*
*/
$config = array(
'SiteEng.Site.Title' => "SiteEng 2 - The Easiest Way to Edit Websites",
'SiteEng.Site.URL' => "www.siteaddress.com",
'SiteEng.Site.EditClass' => "editable",
'SiteEng.Business.Schema' => "LocalBusiness",
'SiteEng.Business.RealName' => "John Doe",
'SiteEng.Business.Phone' => "(xxx) - xxx - xxx",
'SiteEng.Business.Email' => "[email protected]",
'SiteEng.Business.Address' => "123 abc road",
'SiteEng.Business.City' => "wondervilee",
'SiteEng.Business.State' => "MAGIC",
'SiteEng.Business.Zip' => "12345",
);
$config = array (
'debug' => 1,
'App' =>
array (
'fullBaseUrl' => 'http://designanddollc.com',
'imageBaseUrl' => 'img/',
'cssBaseUrl' => 'css/',
'jsBaseUrl' => 'js/',
'base' => false,
'baseUrl' => false,
'dir' => 'app',
'webroot' => 'webroot',
'www_root' => '/home2/jjprogra/public_html/designanddollc/app/webroot/',
'encoding' => 'UTF-8',
),
'Error' =>
array (
'handler' => 'ErrorHandler::handleError',
'level' => 24575,
'trace' => true,
),
'Exception' =>
array (
'handler' => 'ErrorHandler::handleException',
'renderer' => 'ExceptionRenderer',
'log' => true,
),
'Session' =>
array (
'cookie' => 'CAKEPHP',
'timeout' => 240,
'ini' =>
array (
'session.use_trans_sid' => 0,
'session.cookie_path' => '/',
'session.cookie_lifetime' => 14400,
'session.name' => 'CAKEPHP',
'session.gc_maxlifetime' => 14400,
'session.cookie_httponly' => 1,
),
'defaults' => 'php',
'cookieTimeout' => 240,
),
'Security' =>
array (
'salt' => 'vFeT6nnOKJjqhdPMCvvBLV2xEmVNGudHqufXAztMbpmBmubnvHTtXpW2siI6bS3uRlnHF1BLLTz8PYubbQEqXYCInb8YwQKMTE4l02bhSL2n9pkpDdIonp77WZyajthg',
'cipherSeed' => '47135367344545474569512402556285040834666378960090196570268554633197103182531795236040878422597103013069478217719947226765961420',
),
'Acl' =>
array (
'classname' => 'DbAcl',
'database' => 'default',
),
'Dispatcher' =>
array (
'filters' =>
array (
0 => 'AssetDispatcher',
1 => 'CacheDispatcher',
2 => 'AssetDispatcher',
3 => 'CacheDispatcher',
4 => 'AssetDispatcher',
5 => 'CacheDispatcher',
6 => 'AssetDispatcher',
7 => 'CacheDispatcher',
),
),
'SiteEng' =>
array (
'Site' =>
array (
'Title' => 'Design and Do LLC',
'URL' => 'http://www.designanddollc.com',
'EditClass' => 'editable',
),
'Business' =>
array(
'Schema' => "LocalBusiness",
'Name' => "John Doe",
'Phone' => "(xxx) - xxx - xxx",
'Email' => "[email protected]",
'Address' => "123 abc road",
'City' => "wondervilee",
'State' => "MAGIC",
'Zip' => "12345",
),
),
'Config' =>
array (
'language' => 'en-us',
),
);
32 changes: 32 additions & 0 deletions View/Elements/Footer.ctp
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<div id="footer">
<div id="SiteInfo" itemscope itemtype="http://schema.org/<?php echo Configure::read("SiteEng.Business.Schema");?>" >
<span class="SiteInfoItem" itemprop="name" ><?php echo Configure::read("SiteEng.Business.Name");?></span>
<span class="SiteInfoItem" itemprop="url" >
<a href="<?php echo Configure::read("SiteEng.Site.URL");?>"><?php echo Configure::read("SiteEng.Site.URL");?></a>
</span>
<span itemprop="telephone" class="SiteInfoItem">
<a href="tel:<?php echo ereg_replace("[^0-9]", "", Configure::read("SiteEng.Business.Phone"));?>" >
<?php echo Configure::read("SiteEng.Business.Phone");?>
</a>
</span>
<span itemprop="email" class="SiteInfoItem">
<a href="mailto:<?php echo Configure::read("SiteEng.Business.Email");?>" >
<?php echo Configure::read("SiteEng.Business.Email");?>
</a>
</span>
<span itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
<span itemprop="streetAddress" class="SiteInfoItem"><?php echo Configure::read("SiteEng.Business.Address");?></span>
<span itemprop="addressLocality" class="SiteInfoItem"><?php echo Configure::read("SiteEng.Business.City");?></span>
<span itemprop="addressRegion" class="SiteInfoItem"><?php echo Configure::read("SiteEng.Business.State");?></span>
<span itemprop="postalCode" class="SiteInfoItem"><?php echo Configure::read("SiteEng.Business.Zip");?></span>
</span>
</div>
<div id="TechUsed">
<span class="TechUsedItem">Built By:</span>
<span class="TechUsedItem"><?php echo $this->Html->link('<p id="SiteEngLogo">SiteEng</p>' ,'https://github.com/joewashear007/SiteEng', array('target' => '_blank', 'escape'=>false));?></span>
<span class="TechUsedItem"><?php echo $this->Html->link($this->Html->image('cake.power.gif'),'http://www.cakephp.org/', array('target' => '_blank','escape'=>false));?></span>
<span class="TechUsedItem"><?php echo $this->Html->link($this->Html->image('raptor-avatar.jpg'),'https://www.raptor-editor.com/', array('target' => '_blank','escape'=>false));?></span>
<span class="TechUsedItem"><?php echo $this->Html->link('<p id="bootsrapLogo">Bootstrap</p>' ,'http://www.cakephp.org/', array('target' => '_blank','escape'=>false));?></span>
</div>

</div>
7 changes: 0 additions & 7 deletions View/Layouts/default.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,6 @@
echo $this->Html->meta('icon');
echo $this->Html->css('designanddo');
echo $this->Html->css('cake.generic');
echo $this->Html->css('http://cdn.aloha-editor.org/latest/css/aloha.css');

echo $this->Html->script('http://cdn.aloha-editor.org/latest/lib/require.js');
echo $this->Html->script('http://cdn.aloha-editor.org/latest/lib/vendor/jquery-1.7.2.js');
echo $this->Html->script("http://cdn.aloha-editor.org/latest/lib/aloha.js",
array("data-aloha-plugins" => "common/ui,common/format,common/list,common/link,common/highlighteditables" )) ;
echo $this->Html->script('designanddo');

echo $this->fetch('meta');
echo $this->fetch('css');
Expand Down
17 changes: 3 additions & 14 deletions View/Layouts/siteeng.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -49,20 +49,9 @@
?>
</head>
<body>


<?php //echo $this->Session->flash(); ?>

<?php echo $this->fetch('content'); ?>
<div id="footer">
<?php echo $this->Html->link(
$this->Html->image('cake.power.gif', array('alt' => $cakeDescription, 'border' => '0')),
'http://www.cakephp.org/',
array('target' => '_blank', 'escape' => false)
);
?>
</div>
<?php /* echo $this->element('sql_dump'); */ ?>
<?php echo $this->element('MainMenu'); ?>
<?php echo $this->fetch('content'); ?>
<?php echo $this->element('Footer'); ?>
<?php echo $this->Js->writeBuffer(); ?>
</body>
</html>
5 changes: 1 addition & 4 deletions View/Sections/index.ctp
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
<!-- Start Section : Index -->
<?php
if ( $this->params['action'] == "index" ):
echo $this->element('MainMenu');
?>
<?php if ( $this->params['action'] == "index" ): ?>
<div id="content">
<?php endif; ?>

Expand Down
2 changes: 0 additions & 2 deletions webroot/aloha/README.md

This file was deleted.

44 changes: 42 additions & 2 deletions webroot/css/siteeng.css
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,20 @@
}

#msgbox {
position: absolute;
top: 0px;
left: 10%;
width: 80%;
min-height: 20px;
z-index: 100;
margin: 10px;
padding: 10px;
display: none;
display: block;
}
#msgbox-text{
float: left;
font-size: 2em;

}

#msgbox-close {
Expand All @@ -54,4 +65,33 @@
#SiteEng-Editor{
margin-left: 10%;
margin-right: 10%;
}
}

#SiteInfo{
text-align: center;
border-bottom: solid 1px #555;
margin: 5px 20px;
}
.SiteInfoItem {
padding-left: 5px;
padding-right: 5px;
font-size: 1.1em;
color: black;
border-right: solid 1px #555;
}

.SiteInfoItem a{
text-decoration:underline;
color: black;

}

.SiteInfoItem:last-child {
border-right: none;
}



#TechUsed{
text-align: center;
}
Binary file added webroot/img/raptor-avatar.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3d3c8f4

Please sign in to comment.