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
Daniel CAZAL
co2
Commits
9038762b
Commit
9038762b
authored
Jan 29, 2019
by
Tibor Katelbach
Browse files
Merge remote-tracking branch 'origin/master'
parents
70632cf0
9a5ff5e3
Changes
8
Hide whitespace changes
Inline
Side-by-side
assets/images/custom/ctc/logo-min.png
0 → 100644
View file @
9038762b
41.8 KB
assets/images/custom/ctc/partenaires_pacte.png
View replaced file @
70632cf0
View file @
9038762b
594 KB
|
W:
|
H:
587 KB
|
W:
|
H:
2-up
Swipe
Onion skin
assets/js/default/directory.js
View file @
9038762b
...
...
@@ -678,6 +678,7 @@ function initPageTable(number){
var
parentId
=
$
(
this
).
data
(
"
coop-parentid
"
);
var
parentType
=
$
(
this
).
data
(
"
coop-parenttype
"
);
var
afterLoad
=
null
;
onchangeClick
=
false
;
location
.
hash
=
"
#dda?
"
+
coopType
+
"
.
"
+
coopId
+
"
.
"
+
parentId
+
"
.
"
+
parentType
;
uiCoop
.
prepPreview
(
coopType
,
coopId
,
idParentRoom
,
parentId
,
parentType
,
afterLoad
);
if
(
$
(
this
).
data
(
"
coop-section
"
)
){
...
...
@@ -2571,9 +2572,9 @@ var directory = {
str
=
""
;
if
(
size
==
"
S
"
)
str
+=
"
<div class='col-lg-4 col-md-4 col-sm-6 col-xs-12 blockCoop
"
+
thisId
+
"
"
+
filterClass
+
"
coopFilter coop-wraper margin-bottom-10 '
"
+
sortData
+
"
style='word-wrap: break-word;
overflow:hidden;
'>
"
;
str
+=
"
<div class='col-lg-4 col-md-4 col-sm-6 col-xs-12 blockCoop
"
+
thisId
+
"
"
+
filterClass
+
"
coopFilter coop-wraper margin-bottom-10 '
"
+
sortData
+
"
style='word-wrap: break-word; '>
"
;
else
str
+=
"
<div class='col-xs-12 coop-wraper margin-bottom-10 coopFilter
"
+
filterClass
+
"
'
"
+
sortData
+
"
style='word-wrap: break-word;
overflow:hidden;
'>
"
;
str
+=
"
<div class='col-xs-12 coop-wraper margin-bottom-10 coopFilter
"
+
filterClass
+
"
'
"
+
sortData
+
"
style='word-wrap: break-word;'>
"
;
linkParams
=
"
data-coop-type='
"
+
params
.
type
+
"
'
"
+
"
data-coop-id='
"
+
thisId
+
"
'
"
+
...
...
@@ -2605,9 +2606,9 @@ var directory = {
// NAME
if
(
name
!=
""
){
str
+=
'
<a href="javascript:;" class="openCoopPanelHtml" style="text-decoration:none;"
'
+
linkParams
+
'
>
'
+
'
<h4 class="panel-title tooltips letter-turq" data-toggle="tooltip" data-placement="to
p
" data-original-title="
'
+
name
+
'
">
'
+
'
<h4 class="panel-title tooltips letter-turq" data-toggle="tooltip" data-placement="
bot
to
m
" data-original-title="
'
+
name
+
'
">
'
+
'
<i class="fa
'
+
params
.
ico
+
'
"></i>
'
+
(
(
name
.
length
>
1
4
0
)
?
name
.
substring
(
0
,
3
0
)
+
"
...
"
:
name
)
+
'
</h4></a>
'
;
(
(
name
.
length
>
1
0
0
)
?
name
.
substring
(
0
,
10
0
)
+
"
...
"
:
name
)
+
'
</h4></a>
'
;
}
...
...
assets/js/dynForm/bookmark.js
View file @
9038762b
...
...
@@ -6,6 +6,13 @@ dynForm = {
onLoads
:
{
sub
:
function
(){
dyFInputs
.
setSub
(
"
bg-url
"
);
if
(
typeof
contextData
!=
"
undefined
"
&&
contextData
!=
null
){
$
(
"
#parentId
"
).
val
(
contextData
.
id
);
$
(
"
#parentType
"
).
val
(
contextData
.
type
);
}
},
},
afterSave
:
function
(){
...
...
assets/js/gallery/index.js
View file @
9038762b
...
...
@@ -91,12 +91,13 @@ function getFileItem(k,v, edit){
titleDoc
=
""
;
if
(
notNull
(
v
.
name
))
titleDoc
=
v
.
name
;
var
htmlThumbail
=
'
<li class="content_file
'
+
k
+
'
col-sm-12 col-md-12 col-xs-12 no-padding" data-cat="1" id="
'
+
v
.
id
+
'
">
'
+
idDoc
=
v
.
_id
.
$id
;
var
htmlThumbail
=
'
<li class="content_file
'
+
k
+
'
col-sm-12 col-md-12 col-xs-12 no-padding" data-cat="1" id="
'
+
idDoc
+
'
">
'
+
'
<div class="portfolio-item">
'
;
if
(
edit
){
htmlThumbail
+=
'
<div class="checkbox-content pull-left">
'
+
'
<label>
'
+
'
<input type="checkbox" class="checkPhoto checkbox-info" data-value="
'
+
v
.
id
+
'
">
'
+
'
<input type="checkbox" class="checkPhoto checkbox-info" data-value="
'
+
id
Doc
+
'
">
'
+
'
<span class="cr"><i class="cr-icon fa fa-check"></i></span>
'
+
'
</label>
'
+
'
</div>
'
;
...
...
@@ -109,7 +110,7 @@ function getFileItem(k,v, edit){
'
<i class="fa fa-upload"></i>
'
+
'
</a>
'
;
if
(
edit
){
htmlThumbail
+=
'
<a href="javascript:;" onclick="updateDocument(
\'
'
+
v
.
id
+
'
\'
,
\'
'
+
titleDoc
+
'
\'
)">
'
+
htmlThumbail
+=
'
<a href="javascript:;" onclick="updateDocument(
\'
'
+
id
Doc
+
'
\'
,
\'
'
+
titleDoc
+
'
\'
)">
'
+
'
<i class="fa fa-pencil"></i>
'
+
'
</a>
'
;
}
...
...
components/CommunecterController.php
View file @
9038762b
...
...
@@ -673,7 +673,9 @@ class CommunecterController extends Controller
}*/
//managed public and private sections through a url manager
if
(
Yii
::
app
()
->
controller
->
id
==
"admin"
&&
!
Yii
::
app
()
->
session
[
"userIsAdmin"
]
)
if
(
Yii
::
app
()
->
controller
->
id
==
"admin"
&&
!
Yii
::
app
()
->
session
[
"userIsAdmin"
]
&&
(
!@
Yii
::
app
()
->
session
[
"custom"
]
||
!@
Yii
::
app
()
->
session
[
"custom"
][
"admins"
]
||
!
Yii
::
app
()
->
session
[
"custom"
][
"admins"
][
Yii
::
app
()
->
session
[
"userId"
]]))
throw
new
CHttpException
(
403
,
Yii
::
t
(
'error'
,
'Unauthorized Access.'
));
if
(
Yii
::
app
()
->
controller
->
id
==
"adminpublic"
&&
(
!
Yii
::
app
()
->
session
[
"userIsAdmin"
]
&&
!
Yii
::
app
()
->
session
[
"userIsAdminPublic"
]
)
)
...
...
views/admin/index.php
View file @
9038762b
...
...
@@ -182,7 +182,7 @@
<div
class=
"col-md-12 col-sm-12 col-xs-12"
id=
"navigationAdmin"
>
<div
class=
"col-md-12 col-sm-12 col-xs-12 text-center"
>
<img
src=
"
<?php
echo
$logo
?>
"
class=
""
height=
"100"
><br/>
class=
"
img-responsive
"
height=
"100"
><br/>
<h3>
<?php
echo
$title
?>
</h3>
</div>
<?php
...
...
@@ -192,7 +192,7 @@
id=
"div-select-create"
>
<div
class=
"col-md-12 col-sm-12 col-xs-12 padding-15 shadow2 bg-white "
>
<h4
class=
"text-center margin-top-15"
style=
""
>
<h4
class=
"text-center margin-top-15"
>
<a
class=
"btn btn-link pull-right text-dark"
id=
"btn-close-select-create"
style=
"margin-top:-10px;"
>
<i
class=
"fa fa-times-circle fa-2x"
></i>
</a>
...
...
@@ -224,7 +224,7 @@
<?php
foreach
(
Yii
::
app
()
->
session
[
"paramsConfig"
][
"adminPanel"
]
as
$key
=>
$v
){
if
((
!
isset
(
$v
[
"super"
])
||
empty
(
$v
[
"super"
])
||
Role
::
isSuperAdmin
(
Role
::
getRolesUserId
(
Yii
::
app
()
->
session
[
"userId"
])))
&&
$key
!=
"add"
){
if
(
!
isset
(
$v
[
"sourceKey"
])
||
(
isset
(
Yii
::
app
()
->
session
[
"custom"
])
&&
isset
(
Yii
::
app
()
->
session
[
"custom"
][
"sourceKey"
]))){
?>
<li
class=
"list-group-item col-md-4 col-sm-6 "
>
<li
class=
"list-group-item col-md-4 col-sm-6
col-xs-12
"
>
<a
href=
"javascript:;"
class=
"
<?php
echo
$v
[
"class"
]
?>
"
id=
"
<?php
echo
$v
[
"id"
]
?>
"
style=
"cursor:pointer;"
>
<i
class=
"fa fa-
<?php
echo
$v
[
"icon"
]
?>
fa-2x"
></i>
<?php
echo
Yii
::
t
(
"admin"
,
$v
[
"label"
]);
?>
...
...
views/custom/init.php
View file @
9038762b
...
...
@@ -79,6 +79,10 @@ if( @$_GET["el"] || @$custom )
if
(
@
$el
[
"custom"
][
"metaImg"
]){
$c
[
"metaImg"
]
=
Yii
::
app
()
->
getRequest
()
->
getBaseUrl
(
true
)
.
Yii
::
app
()
->
getModule
(
Yii
::
app
()
->
params
[
"module"
][
"parent"
]
)
->
getAssetsUrl
()
.
$el
[
"custom"
][
"metaImg"
];
}
if
(
@
$el
[
"custom"
][
"logoMin"
]){
$c
[
"logoMin"
]
=
Yii
::
app
()
->
getModule
(
Yii
::
app
()
->
params
[
"module"
][
"parent"
]
)
->
getAssetsUrl
()
.
$el
[
"custom"
][
"logoMin"
];
}
if
(
@
$el
[
"custom"
][
"favicon"
])
$c
[
"favicon"
]
=
Yii
::
app
()
->
getModule
(
Yii
::
app
()
->
params
[
"module"
][
"parent"
]
)
->
getAssetsUrl
()
.
$el
[
"custom"
][
"favicon"
];
$c
[
"admins"
]
=
Element
::
getCommunityByTypeAndId
(
$c
[
"type"
],
$c
[
"id"
],
Person
::
COLLECTION
,
"isAdmin"
);
...
...
@@ -280,6 +284,11 @@ if( @Yii::app()->session['custom'] ){ ?>
}
});
}
str
+=
"
@media (max-width: 767px){
"
+
"
#mainNav{margin-top:0px !important;}
"
+
"
#mainNav .menu-btn-top{font-size:22px !important}}
"
+
"
#mainNav .logo-menutop{height:40px}
"
+
"
}
"
;
str
+=
"
</style>
"
;
$
(
"
head
"
).
append
(
str
);
...
...
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