Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
Photogram Project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
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
Rajesh D
Photogram Project
Commits
8a39a9eb
Commit
8a39a9eb
authored
2 years ago
by
Sibidharan
Browse files
Options
Downloads
Patches
Plain Diff
fix masonry
parent
398eec2a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
htdocs/_templates/_head.php
+1
-17
1 addition, 17 deletions
htdocs/_templates/_head.php
htdocs/_templates/_master.php
+29
-0
29 additions, 0 deletions
htdocs/_templates/_master.php
htdocs/_templates/index/photogram.php
+2
-2
2 additions, 2 deletions
htdocs/_templates/index/photogram.php
with
32 additions
and
19 deletions
htdocs/_templates/_head.php
+
1
−
17
View file @
8a39a9eb
...
...
@@ -9,23 +9,7 @@
<!-- Bootstrap core CSS -->
<link
href=
"
<?=
get_config
(
'base_path'
)
?>
assets/dist/css/bootstrap.min.css"
rel=
"stylesheet"
>
<!-- JS has to be loaded in footer not header as it impacts page load time. -->
<script
src=
"https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"
></script>
<script
src=
"https://cdn.jsdelivr.net/npm/masonry-layout@4.2.2/dist/masonry.pkgd.min.js"
integrity=
"sha384-GNFwBvfVxBkLMJpYMOABq3c+d3KnQxudP/mGPkzpZSTYykLBNsZEnG2D9G/X/+7D"
crossorigin=
"anonymous"
async
></script>
<script>
// Initialize the agent at application startup.
const
fpPromise
=
import
(
'
https://openfpcdn.io/fingerprintjs/v3
'
)
.
then
(
FingerprintJS
=>
FingerprintJS
.
load
())
// Get the visitor identifier when you need it.
fpPromise
.
then
(
fp
=>
fp
.
get
())
.
then
(
result
=>
{
// This is the visitor identifier:
const
visitorId
=
result
.
visitorId
console
.
log
(
visitorId
)
$
(
'
#fingerprint
'
).
val
(
visitorId
);
})
</script>
<?
if
(
file_exists
(
$_SERVER
[
'DOCUMENT_ROOT'
]
.
get_config
(
'base_path'
)
.
'css/'
.
basename
(
$_SERVER
[
'PHP_SELF'
],
".php"
)
.
".css"
))
{
?>
<link
href=
"
<?=
get_config
(
'base_path'
)
?>
css/
<?=
basename
(
$_SERVER
[
'PHP_SELF'
],
".php"
)
?>
.css"
rel=
"stylesheet"
>
<?
}
?>
...
...
This diff is collapsed.
Click to expand it.
htdocs/_templates/_master.php
+
29
−
0
View file @
8a39a9eb
...
...
@@ -18,6 +18,35 @@
<script
src=
"
<?=
get_config
(
'base_path'
)
?>
assets/dist/js/bootstrap.bundle.min.js"
>
</script>
<script
src=
"https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"
></script>
<script
src=
"https://cdn.jsdelivr.net/npm/masonry-layout@4.2.2/dist/masonry.pkgd.min.js"
integrity=
"sha384-GNFwBvfVxBkLMJpYMOABq3c+d3KnQxudP/mGPkzpZSTYykLBNsZEnG2D9G/X/+7D"
crossorigin=
"anonymous"
></script>
<script
src=
"https://unpkg.com/imagesloaded@5/imagesloaded.pkgd.min.js"
></script>
<script>
// Initialize the agent at application startup.
const
fpPromise
=
import
(
'
https://openfpcdn.io/fingerprintjs/v3
'
)
.
then
(
FingerprintJS
=>
FingerprintJS
.
load
())
// Get the visitor identifier when you need it.
fpPromise
.
then
(
fp
=>
fp
.
get
())
.
then
(
result
=>
{
// This is the visitor identifier:
const
visitorId
=
result
.
visitorId
console
.
log
(
visitorId
)
$
(
'
#fingerprint
'
).
val
(
visitorId
);
})
// init Masonry
var
$grid
=
$
(
'
.row
'
).
masonry
({
// itemSelector: '.col',
// columnWidth: '.col',
percentPosition
:
true
});
// layout Masonry after each image loads
$grid
.
imagesLoaded
().
progress
(
function
()
{
$grid
.
masonry
(
'
layout
'
);
});
</script>
</body>
...
...
This diff is collapsed.
Click to expand it.
htdocs/_templates/index/photogram.php
+
2
−
2
View file @
8a39a9eb
<div
class=
"album py-5 bg-light"
>
<div
class=
"container"
>
<div
class=
"row"
data-masonry=
'{"percentPosition": true }'
>
<!-- data-masonry='{"percentPosition": true }' -->
<div
class=
"row"
>
<?php
$posts
=
Post
::
getAllPosts
();
use
Carbon\Carbon
;
...
...
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