Skip to content

Commit

Permalink
Merging Ralitca, Elitca, Krasimir Tswetanov
Browse files Browse the repository at this point in the history
  • Loading branch information
wingman007 committed Mar 15, 2013
1 parent ee8ce15 commit 2050421
Show file tree
Hide file tree
Showing 50 changed files with 1,930 additions and 4 deletions.
8 changes: 8 additions & 0 deletions Vitali Arabadji.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php echo '<p>Hello World from Vitali Arabadji [email protected]</p>'; ?>
</body>
</html>
4 changes: 3 additions & 1 deletion config/application.config.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@
'VasilVasilev',
'NikolaiBaldjiev',
'NeslihanSuleyman',
'MihailKopuscu',
'MihailKopuscu',
'RallNic',
'KrasimirTsvetanov',
),
'module_listener_options' => array(
'config_glob_paths' => array(
Expand Down
14 changes: 12 additions & 2 deletions module/Application/view/application/index/index.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ $this->headLink(array(

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

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

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

<div class="hero-unit fmi">
<h2>Margarita Krushkova</h2>
<p><a class="btn btn-success" href="<?php echo $this->url('margarita_krushkova', array('controller'=> 'index', 'action' => 'index'), true); ?>" target="_blank"><?php echo $this->translate('Index Action') ?> &raquo;</a></p>
Expand Down Expand Up @@ -124,13 +129,18 @@ $this->headLink(array(
<p><a class="btn btn-success" href="<?php echo $this->url('petya_stavarova', array('controller'=> 'index', 'action' => 'change'), true); ?>" target="_blank"><?php echo $this->translate('Change Action') ?> &raquo;</a></p>
</div>

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

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

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

Expand Down
3 changes: 3 additions & 0 deletions module/ElitsaNedyalkova/config/module.config.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
),

'view_manager' => array(
'template_map' => array(
'layout/ElitsaNedyalkova' => __DIR__ . '/../view/layout/ElitsaNedyalkova.phtml',
),
'template_path_stack' => array(
'elitsa_nedyalkova' => __DIR__ . '/../view',
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ class IndexController extends AbstractActionController
{
public function indexAction()
{
return new ViewModel();
return new ViewModel();
}

public function changeAction()
{
$this->layout('layout/ElitsaNedyalkova');
return new ViewModel();
}


}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<h1>I am in change.phtml</h1>
125 changes: 125 additions & 0 deletions module/ElitsaNedyalkova/view/layout/ElitsaNedyalkova.phtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
<!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 2.5 License

Name : Open Tools
Description: A two-column, fixed-width design with dark color scheme.
Version : 1.0
Released : 20130803

-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700|Archivo+Narrow:400,700" rel="stylesheet" type="text/css">
<link href="<?php echo $this->basePath();?>/ElitsaNedyalkova/css/default.css" rel="stylesheet" type="text/css" />
<!--[if IE 6]>
<link href="default_ie6.css" rel="stylesheet" type="text/css" />
<![endif]-->
</head>
<body>
<div id="header" class="container">
<div id="logo">
<h1><a href="#">Open Tools</a></h1>
</div>
<div id="menu">
<ul>
<li class="active"><a href="#" accesskey="1" title="">Homepage</a></li>
<li><a href="#" accesskey="2" title="">My Designs</a></li>
<li><a href="#" accesskey="3" title="">About Me</a></li>
<li><a href="#" accesskey="4" title="">Contact</a></li>
</ul>
</div>
</div>
<div id="page" class="container">
<div id="content">
<div id="onecolumn">
<p><img src="<?php echo $this->basePath();?>/ElitsaNedyalkova/images/pic01.png" width="580" height="300" alt="" /></p>

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

</div>
<div id="two-column">
<div class="box-content">
<h2 class="title title01">Nulla luctus eleifend</h2>
<p>Pellentesque tristique ante ut risus. Quisque dictum. Integer nisl risus, sagittis convallis, rutrum id, elementum congue, nibh. Suspendisse dictum porta lectus. Donec placerat odio vel elit. Nullam ante orci, pellentesque quis.</p>
</div>
<div class="box-content">
<h2 class="title title02">Maecenas luctus lectus</h2>
<p>Curabitur sit amet nulla. Nam in massa. Sed vel tellus. Curabitur sem urna, consequat vel, suscipit in, mattis placerat, nulla. Sed ac leo. Pellentesque imperdiet. In posuere odio quisque semper augue mattis maecenas ligula.</p>
</div>
</div>
</div>
<div id="sidebar">
<div id="sbox1">
<h2>Fusce fringilla</h2>
<ul class="list-style1">
<li class="first">
<p>Etiam non felis. Donec ut ante. In id eros. Suspendisse lacus, cursus egestas at sem. </p>
<p><a href="#" class="link-style">Read More</a></p>
</li>
<li>
<p>Etiam non felis. Donec ut ante. In id eros. Suspendisse lacus turpis, cursus at sem. </p>
<p><a href="#" class="link-style">Read More</a></p>
</li>
</ul>
</div>
<div id="sbox2">
<h2>Testimonials</h2>
<p class="testimonial">Pellentesque adipiscing purus ac magna. Pellentesque habitant morbi tristique senectus et netus et malesuada fames.</p>
<div class="author"><img src="<?php echo $this->basePath();?>/ElitsaNedyalkova/images/pic03.jpg" width="80" height="80" alt="" /><span class="name">Juan Dela Cruz</span><span class="position">Company CEO</span><span>MyCompany, LLC</span></div>
</div>
<div id="sbox3">
<h2>Vestibulum luctus</h2>
<ul class="style3">
<li class="first"><a href="#">Consectetuer adipiscing elit</a></li>
<li><a href="#">Metus aliquam pellentesque</a></li>
<li><a href="#">Suspendisse iaculis mauris</a></li>
<li><a href="#">Urnanet non molestie semper</a></li>
<li><a href="#">Proin gravida orci porttitor</a></li>
</ul>
</div>
</div>
</div>
<div id="footer" class="container">
<div id="fbox1">
<h2>Aenean elementum</h2>
<ul class="style1">
<li class="first"><a href="#">Consectetuer adipiscing elit</a></li>
<li><a href="#">Metus aliquam pellentesque</a></li>
<li><a href="#">Suspendisse iaculis mauris</a></li>
<li><a href="#">Urnanet non molestie semper</a></li>
<li><a href="#">Proin gravida orci porttitor</a></li>
</ul>
</div>
<div id="fbox2">
<h2>Vestibulum luctus</h2>
<ul class="style1">
<li class="first"><a href="#">Consectetuer adipiscing elit</a></li>
<li><a href="#">Metus aliquam pellentesque</a></li>
<li><a href="#">Suspendisse iaculis mauris</a></li>
<li><a href="#">Urnanet non molestie semper</a></li>
<li><a href="#">Proin gravida orci porttitor</a></li>
</ul>
</div>
<div id="fbox3">
<h2>Etiam malesuada</h2>
<p>In posuere eleifend odio. Quisque semper augue mattis wisi. Maecenas ligula. Pellentesque viverra vulputate enim. Donec leo. Vivamus fermentum nibh in augue.</p>
<ul class="style2">
<li><a href="#"><img src="<?php echo $this->basePath();?>/ElitsaNedyalkova/images/social03.png" width="32" height="32" alt="" /></a></li>
<li><a href="#"><img src="<?php echo $this->basePath();?>/ElitsaNedyalkova/images/social01.png" width="32" height="32" alt="" /></a></li>
<li><a href="#"><img src="<?php echo $this->basePath();?>/ElitsaNedyalkova/images/social04.png" width="32" height="32" alt="" /></a></li>
<li><a href="#"><img src="<?php echo $this->basePath();?>/ElitsaNedyalkova/images/social02.png" width="32" height="32" alt="" /></a></li>
</ul>
</div>
</div>
<div id="copyright" class="container">
<p>Copyright (c) 2013 Sitename.com. All rights reserved. Design by <a href="http://www.freecsstemplates.org">FCT</a>. Photos by <a href="http://fotogrph.com/">Fotogrph</a>.</p>
</div>
</body>
</html>
24 changes: 24 additions & 0 deletions module/KrasimirTsvetanov/Module.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php
namespace KrasimirTsvetanov;

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

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

'view_manager' => array(
'template_map' => array(
// 'layout/layout' => __DIR__ . '/../view/layout/layout.phtml', // the entire app is using it
// 'layout/layout' => __DIR__ . '/../view/layout/student.phtml',
// 'layout/StoyanCheresharov' => __DIR__ . '/../view/layout/layout.phtml',
'layout/KrasimirTsvetanov' => __DIR__ . '/../view/layout/KrasimirTsvetanov.phtml',
//'layout/ria' => __DIR__ . '/../view/layout/ria.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(
'krasimir_tsvetanov' => __DIR__ . '/../view',
),
),
);
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?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 KrasimirTsvetanov\Controller;

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

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

public function changeAction()
{
$viewModel = new ViewModel();
// $viewModel->setTemplate('layout/custom');
// $this->layout('layout/student'); // change the layout. DOn't forget to add it in modeule.config.php
$this->layout('layout/KrasimirTsvetanov');
return $viewModel;
}

// To disable layout and view, return a response object :
public function disableAction()
{
// your code here ...
return $this->response;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<h1>I am in change.phtml</h1>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<h1>I am the index.phtml in KrasimirTsvetanov module.</h1>
Loading

0 comments on commit 2050421

Please sign in to comment.