Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
A
addcpm-json
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Александр Чаплыгин
addcpm-json
Commits
e846e1a5
Commit
e846e1a5
authored
Mar 23, 2020
by
Александр Чаплыгин
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Путь к картинкам баннеров, убрал меню навигации в шапке кабинета
parent
8aa7c1e6
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletion
+9
-1
CabinetAmSystem.php
src/src/App/Action/User/CabinetAmSystem.php
+3
-0
campaign_item.phtml
src/templates/app/user/campaign_item.phtml
+3
-1
layout-main.phtml
src/templates/layout/layout-main.phtml
+3
-0
No files found.
src/src/App/Action/User/CabinetAmSystem.php
View file @
e846e1a5
...
...
@@ -53,6 +53,8 @@ class CabinetAmSystem extends Common
'cpm'
=>
[
'title'
=>
'eCPM'
,
'color'
=>
'#33C7B6'
],
'cpc'
=>
[
'title'
=>
'eCPC'
,
'color'
=>
'#7CADE2'
]
];
const
IMG_DOMAIN_DEV
=
'https://addcpm.app.dev.rew.to'
;
const
IMG_DOMAIN_PROD
=
'https://www.addcpm.com'
;
/**
* @param ServerRequestInterface $request
...
...
@@ -202,6 +204,7 @@ class CabinetAmSystem extends Common
$data
[
'campaign_stat_total'
]
=
$campaign_stat_total
;
$data
[
'campaign_stat_cats'
]
=
self
::
CAMPAIGN_STAT_CATS
;
$data
[
'active_line'
]
=
$active_line
;
$data
[
'img_domain'
]
=
(
getenv
(
'DEVELOPMENT'
))
?
self
::
IMG_DOMAIN_DEV
:
self
::
IMG_DOMAIN_PROD
;
}
else
{
$data
[
'error'
]
=
_t
(
'Извините, данная кампания закреплена за другим пользователем'
);
...
...
src/templates/app/user/campaign_item.phtml
View file @
e846e1a5
...
...
@@ -67,8 +67,10 @@ if (!$error) {
$campaign_max_speed
=
(
bool
)
$campaign
->
getMaxSpeed
();
$campaign_tracking_pixels
=
json_decode
(
$campaign
->
getTrackingPixels
(),
true
);
$campaign_geo
=
json_decode
(
$campaign
->
getTargeting
(),
true
)[
'geo'
];
$banners
=
$this
->
banners
;
$banners_stats
=
$this
->
banners_stats
;
$img_domain
=
$this
->
img_domain
;
$campaign_stat
=
$this
->
campaign_stat
;
$campaign_stat_total
=
$this
->
campaign_stat_total
;
...
...
@@ -327,7 +329,7 @@ if (!$error) {
<tr
data-id=
"
<?=
$banner
[
'id'
]
?>
"
>
<td
class=
"check"
><input
type=
"checkbox"
<?php
if
((
bool
)
$banner
[
'active'
])
:
?>
checked
<?php
endif
;
?>
></td>
<td
class=
"stat"
><span
class=
"banner-size"
>
<?=
$banner
[
'width'
]
?>
x
<?=
$banner
[
'height'
]
?>
</span></td>
<td
class=
"stat"
><span
class=
"banner-preview"
src=
"
<?=
$
banner
[
'img'
]
?>
"
style=
"background-image: url(
<?=
$banner
[
'img'
]
?>
)"
></span></td>
<td
class=
"stat"
><span
class=
"banner-preview"
src=
"
<?=
$
img_domain
?><?=
$banner
[
'img'
]
?>
"
style=
"background-image: url(
<?=
$img_domain
?>
<?=
$banner
[
'img'
]
?>
)"
></span></td>
<td
class=
"stat
<?=
$target_class
?>
"
>
<?=
$stat
[
'views'
]
?>
</td>
<td
class=
"stat"
>
<?=
$stat
[
'clicks'
]
?>
</td>
<td
class=
"stat"
>
<?=
$stat
[
'ctr'
]
?>
</td>
...
...
src/templates/layout/layout-main.phtml
View file @
e846e1a5
...
...
@@ -74,11 +74,14 @@ $urlHome = $this->url('home',['lang' => $lang]);
<header
class=
"l-header"
>
<nav
class=
"wrapp row xs-no-row row-center"
>
<a
href=
"
<?=
$urlHome
?>
"
title=
"
<?=
_t
(
"Main"
)
?>
"
class=
"header-logo col sm-2 xs-1"
></a>
<div
class=
"col"
></div>
<?php
/* ?>
<ul class="header-nav col order-xs-3 sm-6 xs-5">
<li><a href="<?= $this->url('home', ['lang' => $lang]) ?>" title="" class="text bold"><?= _t("Главная") ?></a></li>
<li><a href="<?= $this->url('faq', ['lang' => $lang]) ?>" title="" class="text bold"><?= _t("Помощь") ?></a></li>
<li><a href="<?= $this->url('contacts', ['lang' => $lang]) ?>" title="" class="text bold"><?= _t("Контакты") ?></a></li>
</ul>
<?php */
?>
<?php
if
(
$identity
)
:
$gravatar
=
$this
->
gravatar
(
$identity
->
getEmail
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment