Skip to content

Commit

Permalink
Merging Nikoleta Poibrenska
Browse files Browse the repository at this point in the history
  • Loading branch information
wingman007 committed Mar 9, 2013
1 parent bfd7373 commit b07c27a
Show file tree
Hide file tree
Showing 12 changed files with 326 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/application.config.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
'MartinManov',
'MarinaGatova',
'PaolaShumanova',
'NikoletaPoibrenska',
),
'module_listener_options' => array(
'config_glob_paths' => array(
Expand Down
24 changes: 24 additions & 0 deletions module/NikoletaPoibrenska/Module.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php
namespace NikoletaPoibrenska;

class Module
{
public function getAutoloaderConfig()
{
return array(
'Zend\Loader\ClassMapAutoloader' => array(
__DIR__ . '/autoload_classmap.php',
),
'Zend\Loader\StandardAutoloader' => array(
'namespaces' => array(
__NAMESPACE__ => __DIR__ . '/src/' . __NAMESPACE__,
),
),
);
}

public function getConfig()
{
return include __DIR__ . '/config/module.config.php';
}
}
2 changes: 2 additions & 0 deletions module/NikoletaPoibrenska/autoload_classmap.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?php
return array();
42 changes: 42 additions & 0 deletions module/NikoletaPoibrenska/config/module.config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?php
return array(
'controllers' => array(
'invokables' => array(
'NikoletaPoibrenska\Controller\Index' => 'NikoletaPoibrenska\Controller\IndexController',
),
),

// The following section is new and should be added to your file
'router' => array(
'routes' => array(
'nikoleta_poibrenska' => array(
'type' => 'segment',
'options' => array(
'route' => '/nikoleta-poibrenska[/:action][/:id]',
'constraints' => array(
'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
'id' => '[0-9]+',
),
'defaults' => array(
'controller' => 'NikoletaPoibrenska\Controller\Index',
'action' => 'index',
),
),
),
),
),

'view_manager' => array(
'template_map' => array(
// 'layout/layout' => __DIR__ . '/../view/layout/layout.phtml', // the entire app is using it
'layout/NikoletaPoibrenska' => __DIR__ . '/../view/layout/NikoletaPoibrenska.phtml',
// 'application/index/index' => __DIR__ . '/../view/application/index/index.phtml',
// 'application/stoyan/index' => __DIR__ . '/../view/application/stoyan/index.phtml', // <-- Added by me
// 'error/404' => __DIR__ . '/../view/error/404.phtml',
// 'error/index' => __DIR__ . '/../view/error/index.phtml',
),
'template_path_stack' => array(
'nikoleta_poibrenska' => __DIR__ . '/../view',
),
),
);
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php
/**
* Zend Framework (http://framework.zend.com/)
*
* @link http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/

namespace NikoletaPoibrenska\Controller;

use Zend\Mvc\Controller\AbstractActionController;
use Zend\View\Model\ViewModel;

class IndexController extends AbstractActionController
{
public function indexAction()
{
return new ViewModel();
}
}
11 changes: 11 additions & 0 deletions module/NikoletaPoibrenska/view/layout/NikoletaPoibrenska.phtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<html>
<head>
<title>Nikoleta Poibrenska Layout</title>
</head>
<body>
<?php echo '<p>Nikoleta Poibrenska layout</p>'; ?>

<?php echo $this->content; ?>

</body>
</html>
11 changes: 11 additions & 0 deletions module/NikoletaPoibrenska/view/layout/layout.phtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<html>
<head>
<title>Nikoleta Poibrenska Layout</title>
</head>
<body>
<?php echo '<p>Nikoleta Poibrenska layout</p>'; ?>

<?php echo $this->content; ?>

</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<h1>I am the index.phtml in NikoletaPoibrenska module</h1>
77 changes: 77 additions & 0 deletions public/NikoletaPoibrenska/css/layout.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
@CHARSET "UTF-8";

body, html{
margin: 0;
padding: 0;
}

body {
text-align: center;
background: yellow;
}

#wrap {
width: 80%; /* 960px; */
margin: auto;
text-align: left;
}

#header {
position: relative;
top: 0;
left: 0;
width:100%;
height: 100px;
background: green;
}

#footer {
clear: both;
width:100%;
height: 60px;
background: cyan;
}

#mainBody {
float: left;
width: 80%;
background: red;
}

#content {
float: right;
width: 80%;
min-height: 300px;
background: brown;
}

#navSide {
float: left;
width: 20%;
display: block;
}

#add {
float: right;
width: 20%;
/* display: none; */
background: blue;
}

#wrapInner {
width: 100%;
margin: auto;
}

#navTop {
position: absolute;
left: 0;
bottom: 0;
width: 100%;
/* height: 30px; */
text-align: center;
}

.inside {
padding: 5px;
}
121 changes: 121 additions & 0 deletions public/NikoletaPoibrenska/css/navcontainer.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
/*In order to make it work in IE we need to load also */
/* <script type="text/javascript" src="/templates/new/js/dropdownie.js?navElement=navcontainer"></script> */
#navcontainer {
/* background:url(../images/menu_bg.jpg); */
}

#navcontainer ul {
padding: 0;
margin: 0;
list-style: none;
overflow: visible;
z-index: 5;
}

#navcontainer a {
display:block;
/* color:#000000; */
text-align:center;
text-decoration: none;
font-size: 10pt; /*12px = 9pt*/
width: 90px;
height: 51px;
padding-top:20px;
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
/* background: yellow; */
}

#navcontainer a:visited {
/* color:#000000; */
}

#navcontainer a:hover {
/* background:green url(../images/menu-bg-hvr.gif) no-repeat scroll 0 0; */
/* background: transparent url("../images/nav_center_hover.png") repeat-x scroll 0 0; */
background: white url("../images/nav_center_hover.png") repeat-x scroll 0 0;
color:#954a04;
}

/* Active Menus */
ul li.active a{
/* color:#000; */
}

ul li.active a:visited {
/* color:#000; */
}

ul li.active a:hover {
/* color:#000; */
}

/*If we need different settings for the pop-up menus*/
#navcontainer li ul a {
display:block;
/* color:#000000; */
text-align:center;
text-decoration: none;
font-size: 10pt;
width: 120px; /* auto; */
height: 30px; /* auto; */
padding-top:15px;
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
/* border-top: 1px solid #aaaaaa; */
border-bottom: 1px solid #aaaaaa;
background: #eeeeee; /* Here you change the background color of the popup menu*/
}

#navcontainer li ul a:visited {
/* color:#000000; */
}

#navcontainer li ul a:hover {
background:#aaaaaa; /* url(../images/menu-bg-hvr.gif); */
color:#954a04;
}
/* End of popup menu*/

/* this makes the menu to become horizontal */
#navcontainer li {
float: left;
width: 95px;
}

/* for the next level we move it to the right "indent" Controls how far right are the next menus
Bigger number more right
the longest situation was margin: -1em 0 0 8em; - it was working for ALL LEVELS PERFECT
-2.2em 0 0 8em; the first number controls the vertila position bigger negative numbers higher will be the next level
*/
#navcontainer li ul { /* the first number moves the second level up verticaly and down, thest number moves left right horizontaly*/
margin: -0.8em 0 0 0;
}
#navcontainer li ul ul {
margin: -2.5em 0 0 8.5em;
}
#navcontainer li ul ul ul{
margin: -2.5em 0 0 8.5em;
}
#navcontainer li ul ul ul ul{
margin: -2.5em 0 0 8.5em;
}
#navcontainer li ul ul ul ul ul{
margin: -2.5em 0 0 8.5em;
}

/* We starting to hide them now this moves the lists very far left*/
#navcontainer li ul {
position: absolute;
width: 10em;
left: -999em;
}

#navcontainer li:hover ul ul, #navcontainer li:hover ul ul ul, #navcontainer li:hover ul ul ul ul, #navcontainer li.sfhover ul ul, #navcontainer li.sfhover ul ul ul, #navcontainer li.sfhover ul ul ul ul {
left: -999em;
}

/* this brings the list back Can be done only with one expression
this and the javascript is for IE The java script attaches class sfhover to li*/
#navcontainer li:hover ul, #navcontainer li li:hover ul, #navcontainer li li li:hover ul, #navcontainer li li li li:hover ul, #navcontainer li.sfhover ul, #navcontainer li li.sfhover ul, #navcontainer li li li.sfhover ul, #navcontainer li li li li.sfhover ul {
left: auto;
z-index: 1000;
}
7 changes: 7 additions & 0 deletions public/NikoletaPoibrenska/css/standard_structure.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
@import url("layout.css");
@import url("navcontainer.css");
@import url("typography.css");
/*
@import url("custom.css");
@import url("tables.css");
*/
8 changes: 8 additions & 0 deletions public/NikoletaPoibrenska/css/typography.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@font-face {
font-family: "Trebuchet MS";
src: url("../fonts/trebuc.ttf");
}

body {
font: normal normal normal 9pt/105% "Trebuchet MS", Arial, Helvetica, sans-serif; /*"Trebuchet MS",*/
}

0 comments on commit b07c27a

Please sign in to comment.