forked from cakephp/cakephp.org
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add more CakePHP Jobs & Developers Websites
Divide job/project sites and developer/freelancer sites visually, in menu and in configuration. Replace redundant code with two foreachs, reading everything from the configuration. Closes cakephp#116
- Loading branch information
Showing
3 changed files
with
165 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,52 @@ | ||
<?php | ||
/** | ||
* The Find (CakePHP) Job or Developer section of the Get Involved Page | ||
* | ||
* @var \App\View\AppView $this | ||
*/ | ||
|
||
use Cake\Core\Configure; | ||
|
||
$jobSites = Configure::read('Site.menu.items.jobSites'); | ||
$developerSites = Configure::read('Site.menu.items.developerSites'); | ||
?> | ||
|
||
<div id="findjobdeveloper" class="col-sm-12 get-developer pt-100"> | ||
<h2><?= __('Find Job or Developer')?><?= $this->Html->link('¶', '#findjobdeveloper', ['class' => 'headerlink', 'title' => __('Permalink to this headline')]) ?></h2> | ||
<p><?= __('If you\'re looking for skilled CakePHP developers, or are a developer yourself and seeking a freelance project or | ||
position at a company, there are many resources available:')?></p> | ||
|
||
<h4><?= $this->Html->link(__('LinkedIn'), Configure::read('Site.menu.items.jobs.linkedin.url'), ['target' => '_blank'])?></h4> | ||
<p><?= __('Official career group for CakePHP related opportunities')?></p> | ||
<h2><?= __('Find Job or Developer') ?><?= $this->Html->link('¶', '#findjobdeveloper', | ||
['class' => 'headerlink', 'title' => __('Permalink to this headline')]) ?></h2> | ||
<p><?= __('Whether you are looking for skilled CakePHP developers, or are a developer yourself and seeking a freelance project or | ||
position at a company, there are plenty resources available.')?></p> | ||
|
||
<h4><?= $this->Html->link(__('Freelancer'), Configure::read('Site.menu.items.jobs.freelancer.url'), ['target' => '_blank'])?></h4> | ||
<p><?= __('Jobs available for freelance developers')?></p> | ||
<div id="findJob" class="box-get"> | ||
<h3><?= __('Find Job') ?><?= $this->Html->link('¶', '#findJob', | ||
['class' => 'headerlink', 'title' => __('Permalink to this headline')]) ?></h3> | ||
<p><?= __('If you are a developer yourself and seeking a freelance project or | ||
position at a company, there are many resources available:') ?></p> | ||
|
||
<h4><?= $this->Html->link(__('CakePHPJobs'), Configure::read('Site.menu.items.jobs.cakeJobs.url'), ['target' => '_blank'])?></h4> | ||
<p><?= __('CakePHP related job postings')?></p> | ||
<?php | ||
foreach ($jobSites as $jobSite): | ||
$jobSiteTitle = \Cake\Utility\Hash::get($jobSite, 'title'); | ||
$jobSiteUrl = \Cake\Utility\Hash::get($jobSite, 'url'); | ||
$jobSiteDesc = \Cake\Utility\Hash::get($jobSite, 'description'); | ||
?> | ||
<h4><?= $this->Html->link($jobSiteTitle, $jobSiteUrl, ['target' => '_blank']) ?></h4> | ||
<p><?= $jobSiteDesc ?></p> | ||
<?php endforeach; ?> | ||
</div> | ||
|
||
<h4><?= $this->Html->link(__('CakeXperts'), Configure::read('Site.menu.items.jobs.cakexperts.url'), ['target' => '_blank'])?></h4> | ||
<p><?= __('Where developers and employers connect')?></p> | ||
<div id="findDeveloper" class="box-get"> | ||
<h3><?= __('Find Developer') ?><?= $this->Html->link('¶', '#findDeveloper', | ||
['class' => 'headerlink', 'title' => __('Permalink to this headline')]) ?></h3> | ||
<p><?= __('If you are looking for skilled CakePHP developers, there are many resources available:') ?></p> | ||
|
||
<h4><?= $this->Html->link(__('CakeDC'), Configure::read('Site.menu.items.serviceProvider.cakedc.url'))?></h4> | ||
<p><?= __('Development and consultancy from the experts')?></p> | ||
<?php | ||
foreach ($developerSites as $developerSite): | ||
$devSiteTitle = \Cake\Utility\Hash::get($developerSite, 'title'); | ||
$devSiteUrl = \Cake\Utility\Hash::get($developerSite, 'url'); | ||
$devSiteDesc = \Cake\Utility\Hash::get($developerSite, 'description'); | ||
?> | ||
<h4><?= $this->Html->link($devSiteTitle, $devSiteUrl, ['target' => '_blank']) ?></h4> | ||
<p><?= $devSiteDesc ?></p> | ||
<?php endforeach; ?> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters