Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PlanetRed
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
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
Digital Experience Group
PlanetRed
Commits
af631311
Commit
af631311
authored
15 years ago
by
Eric Rasmussen
Browse files
Options
Downloads
Patches
Plain Diff
only show "why here" if they've filled that out
parent
aefff169
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
customindex/views/default/customindex/content.php
+2
-2
2 additions, 2 deletions
customindex/views/default/customindex/content.php
customindex/views/default/customindex/metatags.php
+14
-2
14 additions, 2 deletions
customindex/views/default/customindex/metatags.php
with
16 additions
and
4 deletions
customindex/views/default/customindex/content.php
+
2
−
2
View file @
af631311
...
...
@@ -154,8 +154,8 @@
</p>
<!-- lat, lng, username, location, displayname, title, comment(text area) -->
<?php
$users
=
get_entities_from_metadata
(
'icontime'
,
''
,
'user'
,
''
,
0
,
8
);
//
$users = get_entities('user', '', 0, '', 8, 0, false, 0, null);
//
$users = get_entities_from_metadata('icontime', '', 'user', '', 0, 8);
$users
=
get_entities
(
'user'
,
''
,
0
,
''
,
8
,
0
,
false
,
0
,
null
);
if
(
$users
){
foreach
(
$users
as
$user
){
...
...
This diff is collapsed.
Click to expand it.
customindex/views/default/customindex/metatags.php
+
14
−
2
View file @
af631311
...
...
@@ -168,8 +168,20 @@ function openLocation(lng, lat, username, location, displayname, title, comment,
};
function
applylabel
(
latlng
,
location
,
title
,
comment
,
displayname
,
username
,
linkname
)
{
if
(
!
linkname
)
//these are the most recently joined users
label
.
openInfoWindowHtml
(
'
<div id="witw_wrapper"><img class="witw_icon" src="
<?php
echo
$CONFIG
->
url
?>
mod/profile/icondirect.php?username=
'
+
username
+
'
&size=medium" width="60" height="60" /><h1>
'
+
displayname
+
'
</h1><p class="witw_location">
'
+
location
+
'
</p><p class="witw_title">
'
+
title
+
'
</p><p class="witw_comment"><strong>Why here?</strong><br /><em>
\
"
'
+
comment
+
'
\
"</em></p></div>
'
,
256
,
154
);
if
(
!
linkname
){
//these are the most recently joined users
if
(
comment
!=
undefined
&&
comment
!=
""
)
label
.
openInfoWindowHtml
(
'
<div id="witw_wrapper">
'
+
'
<img class="witw_icon" src="
<?php
echo
$CONFIG
->
url
?>
mod/profile/icondirect.php?username=
'
+
username
+
'
&size=medium" width="60" height="60" /><h1>
'
+
displayname
+
'
</h1>
'
+
'
<p class="witw_location">
'
+
location
+
'
</p><p class="witw_title">
'
+
title
+
'
</p>
'
+
'
<p class="witw_comment"><strong>Why here?</strong><br /><em>
\
"
'
+
comment
+
'
\
"</em></p>
'
+
'
</div>
'
,
256
,
154
);
else
label
.
openInfoWindowHtml
(
'
<div id="witw_wrapper">
'
+
'
<img class="witw_icon" src="
<?php
echo
$CONFIG
->
url
?>
mod/profile/icondirect.php?username=
'
+
username
+
'
&size=medium" width="60" height="60" /><h1>
'
+
displayname
+
'
</h1>
'
+
'
<p class="witw_location">
'
+
location
+
'
</p><p class="witw_title">
'
+
title
+
'
</p>
'
+
'
<p class="witw_comment"></p>
'
+
'
</div>
'
,
256
,
154
);
}
else
//these are the featured WITW Huskers (like Buffett, etc)
label
.
openInfoWindowHtml
(
'
<div id="witw_wrapper"><img class="witw_icon" src="
<?php
echo
$CONFIG
->
url
?>
mod/customindex/witw_icons/
'
+
linkname
+
'
_medium.jpg" width="60" height="60" /><h1>
'
+
displayname
+
'
</h1><p class="witw_location">
'
+
location
+
'
</p><p class="witw_title">
'
+
title
+
'
</p><p class="witw_comment">
'
+
comment
+
'
<a href="
<?php
echo
$CONFIG
->
url
?>
featured/husker/
'
+
linkname
+
'
/">Continue Reading...</a></p></div>
'
,
256
,
154
);
};
...
...
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