Skip to content

Commit d0144ee

Browse files
author
root
committed
adjusts default prices. Removes "Helvetica Neu" from css
1 parent afc03de commit d0144ee

File tree

7 files changed

+34
-10
lines changed

7 files changed

+34
-10
lines changed

build.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@
272272
<exclude name="**/YawikDemo*/**"/>
273273
<exclude name="**/CamMediaintown/**"/>
274274
<exclude name="**/JobsDeutschland/**"/>
275+
<exclude name="**/Karrierelounge/**"/>
275276
<exclude name="**/Karriere24/**"/>
276277
<exclude name="public/Applications"/>
277278
<exclude name="public/Auth"/>

module/Jobs/config/channel.options.local.php.dist

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,32 @@ $channel['yawik'] = array(
2525

2626
$channel['jobsintown'] = array(
2727
'label' => 'Jobsintown',
28-
'prices' => [ 'base' => 199, 'list' => 499, 'min' => 499, ],
29-
'headline' => /*@translate*/ 'publish your job on Jobsintown. 199,-€',
30-
'description' => /*@translate*/ 'publish the job for 30 days on %s',
31-
'linktext' => /*@translate*/ 'www.jobsintown.de',
28+
'prices' => [ 'base' => 650, 'list' => 698, 'min' => 499, ],
29+
'headline' => '30 Tage, incl. Karrierenetzwerk',
30+
'description' => 'publish the job for 30 days on %s',
31+
'linktext' => 'www.jobsintown.de',
32+
'logo' => '/Jobs/images/channels/jobsintown.png',
3233
'route' => 'lang/content',
3334
'publishDuration' => 30,
3435
'params' => array(
3536
'view' => 'jobs-publish-on-jobsintown'
3637
)
3738
);
3839

40+
$channel['fazjob'] = array(
41+
'label' => 'FAZjob.NET',
42+
'prices' => [ 'base' => 1095, 'list' => 1095, 'min' => 1095, ],
43+
'headline' => '30 Tage auf dem Karriereportal der FAZ',
44+
'description' => 'publish the job for 30 days on %s',
45+
'linktext' => 'FAZjob.net',
46+
'logo' => '/Jobs/images/channels/fazjob_net.png',
47+
'route' => 'lang/content',
48+
'publishDuration' => 60,
49+
'params' => array(
50+
'view' => 'jobs-publish-on-fazjob-net'
51+
)
52+
);
53+
3954
$channel['homepage'] = array(
4055
'label' => /*@translate*/ 'Your Homepage',
4156
'prices' => [ 'base' => 0, 'list' => 0, 'min' => 0, ],
10.6 KB
Loading
5.49 KB
Loading

module/Jobs/src/Jobs/Filter/ChannelPrices.php

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@
66
* @license MIT
77
* @copyright 2013 - 2015 Cross Solution <http://cross-solution.de>
88
*/
9-
10-
/** */
9+
10+
/**
11+
* The price calculations is probably something you wanna do completely different. You can do so by writing
12+
* your own filter.
13+
*/
1114
namespace Jobs\Filter;
1215

1316
use Jobs\Options\ChannelOptions;
@@ -41,11 +44,16 @@ public function __construct(ProviderOptions $providers)
4144
public function filter($value)
4245
{
4346
$sum = 0;
47+
$amount = 0;
4448
foreach ($value as $channelKey) {
4549
$channel = $this->providers->getChannel($channelKey);
46-
47-
$sum += $channel->getPrice('base');
50+
if ($channel->getPrice('base')>0) {
51+
$sum += $channel->getPrice('base');
52+
$amount++;
53+
}
4854
}
55+
$discount=1-($amount-1)*13.5/100;
56+
if ($discount>0) $sum= round($sum * $discount,2);
4957
return $sum;
5058
}
5159

module/Jobs/view/jobs/manage/form.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ if ($this->page == 2):
105105
<div class="col-md-6" style="height: 34px; padding: 5px 15px;">
106106

107107
<?php if ($channel->logo):?>
108-
<img src="<?php echo $channel->logo ?>" alt="<?php echo $channel->description ?>" class="img-thumbnail" style="max-width: 60px; max-height: 24px;">
108+
<img src="<?php echo $this->basepath($channel->logo) ?>" alt="<?php echo $channel->description ?>" class="img-thumbnail" style="max-width: 60px; max-height: 24px;">
109109
<?php endif ?> <?php echo $channel->label ?>
110110
</div>
111111
<?php endforeach ?>

public/css/yawik.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)