Skip to content

Commit

Permalink
Merging Nikolai Baldjiev module and layout
Browse files Browse the repository at this point in the history
  • Loading branch information
wingman007 committed Mar 14, 2013
1 parent 9e42a61 commit 462580f
Show file tree
Hide file tree
Showing 12 changed files with 618 additions and 1 deletion.
1 change: 1 addition & 0 deletions config/application.config.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
// 'VanyaDimitrova',
'ElitsaNedyalkova',
'VasilVasilev',
'NikolaiBaldjiev',
),
'module_listener_options' => array(
'config_glob_paths' => array(
Expand Down
7 changes: 6 additions & 1 deletion module/Application/view/application/index/index.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@ $this->headLink(array(
<p><a class="btn btn-success" href="<?php echo $this->url('mihaela_kerkenekova', array('controller'=> 'index', 'action' => 'change'), true); ?>" target="_blank"><?php echo $this->translate('Change Action') ?> &raquo;</a></p>
</div>

<div class="hero-unit fmi">
<h2>Nikolai Baldjiev</h2>
<p><a class="btn btn-success" href="<?php echo $this->url('nikolai_baldjiev', array('controller'=> 'index', 'action' => 'change'), true); ?>" target="_blank"><?php echo $this->translate('Change Action') ?> &raquo;</a></p>
</div>

<div class="hero-unit fmi">
<h2>Nikoleta Poibrenska</h2>
<p><a class="btn btn-success" href="<?php echo $this->url('nikoleta_poibrenska', array('controller'=> 'index', 'action' => 'change'), true); ?>" target="_blank"><?php echo $this->translate('Change Action') ?> &raquo;</a></p>
Expand All @@ -116,7 +121,7 @@ $this->headLink(array(

<div class="hero-unit fmi">
<h2>Vanya Dimitrova</h2>
<p><a class="btn btn-success" href="<?php // echo $this->url('vanya_dimitrova', array('controller'=> 'index', 'action' => 'index'), true); ?>" target="_blank"><?php echo $this->translate('Index Action') ?> &raquo;</a>(works but commentd /Album)</p>
<p><a class="btn btn-success" href="<?php // echo $this->url('vanya_dimitrova', array('controller'=> 'index', 'action' => 'index'), true); ?>" target="_blank"><?php echo $this->translate('Index Action') ?> &raquo;</a>(works but conflicting Album)</p>
</div>

<div class="hero-unit fmi">
Expand Down
24 changes: 24 additions & 0 deletions module/NikolaiBaldjiev/Module.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php
namespace NikolaiBaldjiev;

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/NikolaiBaldjiev/autoload_classmap.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?php
return array();
37 changes: 37 additions & 0 deletions module/NikolaiBaldjiev/config/module.config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?php
return array(
'controllers' => array(
'invokables' => array(
'NikolaiBaldjiev\Controller\Index' => 'NikolaiBaldjiev\Controller\IndexController',
),
),

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

'view_manager' => array(
'template_map' => array(
'layout/NikolaiBaldjiev' => __DIR__ . '/../view/layout/NikolaiBaldjiev.phtml',
),
'template_path_stack' => array(
'nikolai_baldjiev' => __DIR__ . '/../view',
),
),
);
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?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 NikolaiBaldjiev\Controller;

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

class IndexController extends AbstractActionController
{
public function indexAction()
{
return new ViewModel();
}

public function changeAction()
{
// $id = $this->getRequest()->getParam('id');
$id = (int) $this->params()->fromRoute('id', 0);
$this->layout('layout/NikolaiBaldjiev');
return new ViewModel();
}

}
228 changes: 228 additions & 0 deletions module/NikolaiBaldjiev/view/layout/NikolaiBaldjiev.phtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,228 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--

Design by Free CSS Templates
http://www.freecsstemplates.org
Released for free under a Creative Commons Attribution License

Name : Null Atmosphere
Version : 1.0
Released : 20130222

-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Null Atmosphere by FCT</title>
<link href="http://fonts.googleapis.com/css?family=Bitter" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="<?php echo $this->basePath(); ?>/NikolaiBaldjiev/css/style.css" />
</head>
<body>
<div id="outer">
<div id="header">
<div id="logo">
<h1>
<a href="#">Null Atmosphere</a>
</h1>
</div>
<div id="nav">
<ul>
<li class="first active">
<a href="#">Home</a>
</li>
<li>
<a href="#">Blog</a>
</li>
<li>
<a href="#">Services</a>
</li>
<li>
<a href="#">Portfolio</a>
</li>
<li class="last">
<a href="#">Contact</a>
</li>
</ul>
<br class="clear" />
</div>
</div>
<div id="main">
<div id="content">
<div id="box1">
<img class="left" src="<?php echo $this->basePath(); ?>/NikolaiBaldjiev/images/pic1.jpg" width="120" height="140" alt="" />
<?php echo $this->content; ?>
</div>
<div id="box2">
<h3>
Tincidunt augue morbi
</h3>
<p>
Nulla penatibus cubilia metus tortor tristique malesuada sollicitudin. Fusce gravida venenatis
tristique ultrices. Faucibus mus morbi mattis orci suscipit auctor. Arcu blandit ultricies odio.
Eleifend sociis donec quis. Condimentum eleifend nec felis nec ullamcorper luctus.
</p>
<ul class="linkedList">
<li class="first">
<a href="#">Cubilia sem purus porta felis mollis lorem ipsum</a>
</li>
<li>
<a href="#">Lacinia nisi magna fringilla purus condimentum mattis</a>
</li>
<li>
<a href="#">Fusce feugiat vulputate augue amet commodo felis nullam</a>
</li>
<li>
<a href="#">Tincidunt molestie phasellus hendrerit aenean suspendisse malesuada veroeros consequat lorem</a>
</li>
<li class="last">
<a href="#">Nisi cursus curabitur velit porttitor montes veroeros etiam iaculis etiam tempus lorem ipsum</a>
</li>
</ul>
</div>
<br class="clear" />
</div>
<div id="sidebar1">
<h3>
Praesent volutpat pharetra
</h3>
<p>
Nullam semper rhoncus vivamus phasellus massa malesuada. Vitae at tristique urna odio augue tempus quam. Nibh dis volutpat nascetur lacinia.
</p>
<ul class="linkedList">
<li class="first">
<a href="#">Consectetur accumsan morbi penatibus</a>
</li>
<li>
<a href="#">Curabitur magna mattis cras</a>
</li>
<li class="last">
<a href="#">Volutpat fusce odio</a>
</li>
</ul>
<h3>
Faucibus posuere
</h3>
<div class="dateList">
<ul class="linkedList dateLinkedList">
<li class="first">
<span class="date">Dec 5</span> <a href="#">Fermentum rutrum</a>
</li>
<li>
<span class="date">Dec 4</span> <a href="#">Consectetur porttitor</a>
</li>
<li>
<span class="date">Dec 2</span> <a href="#">Elementum diam</a>
</li>
<li>
<span class="date">Nov 28</span> <a href="#">Sed amet et etiam</a>
</li>
<li>
<span class="date">Nov 26</span> <a href="#">Elementum lorem</a>
</li>
<li>
<span class="date">Nov 22</span> <a href="#">Lorem dolore nunc</a>
</li>
<li class="last">
<span class="date">Nov 18</span> <a href="#">Accumsan et quis</a>
</li>
</ul>
</div>
</div>
<div id="sidebar2">
<h3>
Tristique mauris duis
</h3>
<ul class="linkedList">
<li class="first">
<a href="#">Molestie dui vulputate</a>
</li>
<li>
<a href="#">Mollis risus tellus nibh</a>
</li>
<li>
<a href="#">Nascetur sit volutpat sapien</a>
</li>
<li>
<a href="#">Mauris ante aliquet consequat</a>
</li>
<li>
<a href="#">Ornare ipsum hendrerit</a>
</li>
<li class="last">
<a href="#">Tellus est aliquam</a>
</li>
</ul>
<h3>
Magnis pharetra
</h3><img class="top" src="<?php echo $this->basePath(); ?>/NikolaiBaldjiev/images/pic1.jpg" width="215" height="80" alt="" />
<p>
Pharetra rhoncus eu libero odio tempor feugiat. Porttitor sed fermentum vestibulum placerat.
Adipiscing proin ut iaculis id fringilla praesent quis. Lorem ipsum et dolor amet dolore
consequat veroeros lorem sed amet et phasellus adipiscing sed etiam. Adipiscing proin sed
iaculis id fringilla praesent quis. Pharetra rhoncus eu libero odio tempor feugiat.
</p>
</div>
<br class="clear" />
</div>
<div id="footer">
<div id="footerContent">
<h3>
Accumsan mauris massa
</h3>
<p>
Mattis semper erat enim condimentum posuere. Vitae sed adipiscing ante penatibus fusce accumsan fusce
curae. Arcu commodo interdum laoreet. Commodo diam tortor pharetra dignissim ipsum. Placerat ligula
dolor diam erat lorem. Curae facilisis fringilla dictum hendrerit volutpat. Imperdiet feugiat
phasellus lacinia integer ridiculus. Dignissim tristique vitae auctor nascetur curae luctus sed
et consequat lorem.
</p>
</div>
<div id="footerSidebar1">
<h3>
Sociis ultrices
</h3>
<p>
Diam sed laoreet montes venenatis proin tellus cubilia.
</p>
<ul class="linkedList">
<li class="first">
<a href="#">Penatibus ligula dictum</a>
</li>
<li>
<a href="#">Suscipit dolore consequat</a>
</li>
<li class="last">
<a href="#">Parturient sed etiam</a>
</li>
</ul>
</div>
<div id="footerSidebar2">
<h3>
Fusce hendrerit
</h3>
<p>
Diam sed laoreet montes venenatis proin tellus cubilia.
</p>
<ul class="linkedList">
<li class="first">
<a href="#">Elit feugiat pulvinar</a>
</li>
<li>
<a href="#">Feugiat turpis sed justo</a>
</li>
<li class="last">
<a href="#">Luctus facilisis mauris</a>
</li>
</ul>
</div>
<br class="clear" />
</div>
</div>
<div id="copyright">
&copy; Your Site Name | Design by <a href="http://www.freecsstemplates.org/">FCT</a>
</div>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<h1>
NB!: "Max Payne 2" can be played from the third disc (called "Play" Disc)
or be crack. To be sure you should burn the game to a CD and then play or
else you will have messages like "Cannot Open Disc" or something from the
Virtual CD/DVD-ROM were you have mounted the game. So it is up to you wich
way you want to play it.
</h1>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<h1>I am the index.phtml in NikolaiBaldjiev module</h1>
Loading

0 comments on commit 462580f

Please sign in to comment.