Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Julie Bideux
co2
Commits
7791588a
Commit
7791588a
authored
Feb 05, 2019
by
Clément Damiens
Browse files
refactor custom to costum & migration module costum & repair /custom
parent
295d8806
Changes
3
Hide whitespace changes
Inline
Side-by-side
views/app/live.php
View file @
7791588a
<?php
/******************************* NOT USED ANYMORE ********************/
/**********************MOVE IN LIVE MODULE **************************/
/**********************TODO : MOVE IN LIVE MODULE **************************/
$cssAnsScriptFilesModule
=
array
(
'/js/default/search.js'
,
...
...
@@ -218,8 +217,8 @@ jQuery(document).ready(function() {
function
startNewsSearch
(
isFirst
){
var
urlCtrl
=
"
/news/co/index/type/city/isLive/true
"
;
if
(
typeof
liveParams
!=
"
undefined
"
){
if
(
typeof
liveParams
.
slug
!=
"
undefined
"
&&
notNull
(
c
u
st
o
m
))
urlCtrl
=
"
/news/co/index/type/
"
+
c
u
st
o
m
.
t
ype
+
"
/id/
"
+
c
u
st
o
m
.
i
d
;
if
(
typeof
liveParams
.
slug
!=
"
undefined
"
&&
notNull
(
c
o
st
u
m
))
urlCtrl
=
"
/news/co/index/type/
"
+
c
o
st
u
m
.
contextT
ype
+
"
/id/
"
+
c
o
st
u
m
.
contextI
d
;
if
(
typeof
liveParams
.
formCreate
!=
"
undefined
"
)
urlCtrl
+=
"
/formCreate/false
"
;
}
...
...
@@ -229,7 +228,7 @@ function startNewsSearch(isFirst){
"
</div>
"
;
$
(
"
#newsstream
"
).
html
(
loading
);
simpleScroll
(
0
,
500
);
ajaxPost
(
"
#newsstream
"
,
baseUrl
+
"
/
"
+
urlCtrl
,{
search
:
true
},
function
(
news
){
spinSearchAddon
();},
"
html
"
);
ajaxPost
(
"
#newsstream
"
,
baseUrl
+
urlCtrl
,{
search
:
true
},
function
(
news
){
spinSearchAddon
();},
"
html
"
);
}
</script>
\ No newline at end of file
views/app/welcome.php
View file @
7791588a
...
...
@@ -27,8 +27,13 @@
<section
class=
"bg-white inline-block pull-left no-padding"
id=
"bg-homepage"
>
<?php
if
(
@
Yii
::
app
()
->
session
[
'costum'
][
"welcomeTpl"
])
//var_dump(Yii::app()->session['costum']);
// exit;
if
(
@
Yii
::
app
()
->
session
[
'costum'
][
"welcomeTpl"
]){
//var_dump("ouiiiiiiiiiii"); exit;
$this
->
renderPartial
(
Yii
::
app
()
->
session
[
"costum"
][
"welcomeTpl"
]
);
}
else
if
(
@
$_GET
[
"city"
]
||
Yii
::
app
()
->
session
[
'costum'
][
'id'
]
)
{
$city
=
City
::
getById
(
Yii
::
app
()
->
session
[
'costum'
][
'id'
]
);
...
...
views/custom/init.php
View file @
7791588a
...
...
@@ -117,7 +117,7 @@ if( @Yii::app()->session['costum'] ){ ?>
var
costum
=
<?php
echo
json_encode
(
Yii
::
app
()
->
session
[
'costum'
])
?>
;
//if(typeof custom.appRendering != "undefined")
themeParams
=
<?php
echo
json_encode
(
Yii
::
app
()
->
session
[
'paramsConfig'
])
?>
;
c
u
st
o
m
.
init
=
function
(
where
){
c
o
st
u
m
.
init
=
function
(
where
){
if
(
costum
.
logo
){
$
(
"
.topLogoAnim
"
).
remove
();
$
(
"
.logo-menutop, .logoLoginRegister
"
).
attr
({
'
src
'
:
costum
.
logo
});
...
...
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