Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
a1649d51
Commit
a1649d51
authored
16 years ago
by
Loïc Faure-Lacroix
Browse files
Options
Downloads
Patches
Plain Diff
Petite modification pour avoir une image par défaut
parent
7b1ee3bd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
www/screenshot.php
+9
-4
9 additions, 4 deletions
www/screenshot.php
with
9 additions
and
4 deletions
www/screenshot.php
+
9
−
4
View file @
a1649d51
...
@@ -9,6 +9,7 @@ include('include/header.php');
...
@@ -9,6 +9,7 @@ include('include/header.php');
?>
?>
<div
id=
"content"
>
<div
id=
"content"
>
<div
id=
"main-image"
>
</div>
<ul
class=
"gallery"
>
<ul
class=
"gallery"
>
<?php
<?php
// $imageDirectory = "./img/gallery";
// $imageDirectory = "./img/gallery";
...
@@ -22,7 +23,7 @@ include('include/header.php');
...
@@ -22,7 +23,7 @@ include('include/header.php');
//<li><a href="img/gallery/<?php echo $file " title="Main Window"><img src="img/gallery/thumbs/<?php echo $file " alt="Main Window"></a></li>
//<li><a href="img/gallery/<?php echo $file " title="Main Window"><img src="img/gallery/thumbs/<?php echo $file " alt="Main Window"></a></li>
//php endforeach;
//php endforeach;
$images
=
array
(
$images
=
array
(
array
(
'assistant-1.png'
,
'File menu'
),
array
(
'assistant-1.png'
,
'File menu'
,
'state'
=>
'active'
),
array
(
'main-edit.png'
,
'Edit menu'
),
array
(
'main-edit.png'
,
'Edit menu'
),
array
(
'main-view.png'
,
'View menu'
),
array
(
'main-view.png'
,
'View menu'
),
array
(
'main-help.png'
,
'Help menu'
),
array
(
'main-help.png'
,
'Help menu'
),
...
@@ -46,7 +47,10 @@ include('include/header.php');
...
@@ -46,7 +47,10 @@ include('include/header.php');
foreach
(
$images
as
$image
){
foreach
(
$images
as
$image
){
$fileName
=
$image
[
0
];
$fileName
=
$image
[
0
];
$description
=
$image
[
1
];
$description
=
$image
[
1
];
echo
"<li><a href='img/gallery/
$fileName
' title='
$description
'><img src='img/gallery/thumbs/
$fileName
' alt='
$description
'></a></li>"
;
echo
"<li "
;
if
(
$image
[
'state'
]
!=
null
)
echo
'class="active" > '
;
echo
"<a href='img/gallery/
$fileName
' title='
$description
'><img src='img/gallery/thumbs/
$fileName
' alt='
$description
'></a></li>"
;
}
}
?>
?>
...
@@ -67,7 +71,7 @@ include('include/header.php');
...
@@ -67,7 +71,7 @@ include('include/header.php');
$
(
'
ul.gallery
'
).
galleria
({
$
(
'
ul.gallery
'
).
galleria
({
history
:
true
,
// activates the history object for bookmarking, back-button etc.
history
:
true
,
// activates the history object for bookmarking, back-button etc.
clickNext
:
true
,
// helper for making the image clickable
clickNext
:
true
,
// helper for making the image clickable
insert
:
'
#main
_
image
'
,
// the containing selector for our main image
insert
:
'
#main
-
image
'
,
onImage
:
function
(
image
,
caption
,
thumb
)
{
// let's add some image effects for demonstration purposes
onImage
:
function
(
image
,
caption
,
thumb
)
{
// let's add some image effects for demonstration purposes
// fade in the image & caption
// fade in the image & caption
...
@@ -106,8 +110,9 @@ include('include/header.php');
...
@@ -106,8 +110,9 @@ include('include/header.php');
)
)
}
}
});
});
});
});
//$('ul.gallery > li:first > img').click();
</script>
</script>
<?php
<?php
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment