Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
F
FediEmbedi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
5
Issues
5
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MediaFormat
FediEmbedi
Commits
205b6085
Commit
205b6085
authored
Mar 10, 2020
by
MediaFormat
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'hotfix/0.10.1'
parents
2a15545b
201f39ae
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
3 deletions
+16
-3
assets/mastodon.css
assets/mastodon.css
+5
-1
fediembedi.php
fediembedi.php
+1
-1
templates/mastodon.tpl.php
templates/mastodon.tpl.php
+10
-1
No files found.
assets/mastodon.css
View file @
205b6085
...
...
@@ -95,10 +95,11 @@
.account__header__tabs__name
{
padding
:
5px
;
}
.account__header__tabs__name
h1
{
.account__header__
bar
.account__header__
tabs__name
h1
{
font-size
:
16px
;
line-height
:
24px
;
color
:
#000
;
font-family
:
inherit
;
font-weight
:
500
;
margin
:
0
;
overflow
:
hidden
;
...
...
@@ -124,6 +125,9 @@
padding
:
20px
15px
5px
;
color
:
#000
;
}
.account__header__bio
.account__header__content
p
{
font-family
:
inherit
;
}
.account__header__content
{
color
:
#282c37
;
font-size
:
14px
;
...
...
fediembedi.php
View file @
205b6085
...
...
@@ -174,7 +174,7 @@ class FediConfig
//getStatus from remote instance
$status
=
$client
->
getStatus
(
$atts
[
'only_media'
],
$atts
[
'pinned'
],
$atts
[
'exclude_replies'
],
null
,
null
,
null
,
$atts
[
'limit'
],
$atts
[
'exclude_reblogs'
]);
//if(WP_DEBUG_DISPLAY === true): echo '<details><summary>Mastodon</summary><pre>'; var_dump($client->getStatus($atts)); echo '</pre></details>'; endif;
//if(WP_DEBUG_DISPLAY === true): echo '<details><summary>Mastodon</summary><pre>'; var_dump($client->getStatus($atts
['only_media'], $atts['pinned'], $atts['exclude_replies'], null, null, null, $atts['limit'], $atts['exclude_reblogs']
)); echo '</pre></details>'; endif;
$show_header
=
$atts
[
'show_header'
];
$account
=
$status
[
0
]
->
account
;
include
(
plugin_dir_path
(
__FILE__
)
.
'templates/mastodon.tpl.php'
);
...
...
templates/mastodon.tpl.php
View file @
205b6085
...
...
@@ -62,7 +62,16 @@
<div
class=
"status__avatar"
>
<div
class=
"account__avatar"
style=
"background-image: url(
<?php
if
(
is_null
(
$statut
->
reblog
))
:
echo
$statut
->
account
->
avatar
;
else
:
echo
$statut
->
reblog
->
account
->
avatar
;
endif
;
?>
); background-size: 40px; width: 40px; height: 40px;"
></div>
</div>
<span
class=
"display-name"
>
<?php
if
(
is_null
(
$statut
->
reblog
))
:
echo
apply_filters
(
'fedi_emoji'
,
$statut
->
account
->
display_name
,
$statut
->
account
->
emojis
);
else
:
echo
apply_filters
(
'fedi_emoji'
,
$statut
->
reblog
->
account
->
display_name
,
$statut
->
reblog
->
account
->
emojis
);
endif
;
?>
</span>
<span
class=
"display-name"
>
<?php
if
(
is_null
(
$statut
->
reblog
))
:
echo
apply_filters
(
'fedi_emoji'
,
$statut
->
account
->
display_name
,
$statut
->
account
->
emojis
);
else
:
if
(
empty
(
$statut
->
reblog
->
account
->
display_name
))
:
echo
$statut
->
reblog
->
account
->
username
;
else
:
echo
apply_filters
(
'fedi_emoji'
,
$statut
->
reblog
->
account
->
display_name
,
$statut
->
reblog
->
account
->
emojis
);
endif
;
endif
;
?>
</span>
</a>
</div>
<div
class=
"status__content"
>
<?php
...
...
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