FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
data-studio/loop.php at master · data-studio/data-studio · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
data-studio
/
data-studio
Public
Notifications
You must be signed in to change notification settings
Fork
1
Star
4
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
data-studio
/
loop.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
43 lines (32 loc) · 1.39 KB
Breadcrumbs
data-studio
/
loop.php
Copy path
File metadata and controls
executable file
·
43 lines (32 loc) · 1.39 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
if
(
have_posts
()):
while
(
have_posts
()) :
the_post
();
?>
<!-- article -->
<article id="post-
<?php
the_ID
();
?>
"
<?php
post_class
();
?>
>
<!-- post thumbnail -->
<?php
if
(
has_post_thumbnail
()) :
// Check if thumbnail exists
?>
<a href="
<?php
the_permalink
();
?>
" title="
<?php
the_title
();
?>
">
<?php
the_post_thumbnail
(
array
(
120
,
120
));
// Declare pixel size you need inside the array
?>
</a>
<?php
endif
;
?>
<!-- /post thumbnail -->
<!-- post title -->
<h2>
<a href="
<?php
the_permalink
();
?>
" title="
<?php
the_title
();
?>
">
<?php
the_title
();
?>
</a>
</h2>
<!-- /post title -->
<!-- post details -->
<span class="date">
<?php
the_time
(
'
F j, Y
'
);
?>
<?php
the_time
(
'
g:i a
'
);
?>
</span>
<span class="author">
<?php
_e
(
'
Published by
'
,
'
data-studio
'
);
?>
<?php
the_author_posts_link
();
?>
</span>
<span class="comments">
<?php
if
(
comments_open
(
get_the_ID
() ) )
comments_popup_link
(
__
(
'
Leave your thoughts
'
,
'
data-studio
'
),
__
(
'
1 Comment
'
,
'
data-studio
'
),
__
(
'
% Comments
'
,
'
data-studio
'
));
?>
</span>
<!-- /post details -->
<?php
html5wp_excerpt
(
'
html5wp_index
'
);
// Build your custom callback length in functions.php
?>
<?php
edit_post_link
();
?>
</article>
<!-- /article -->
<?php
endwhile
;
?>
<?php
else
:
?>
<!-- article -->
<article>
<h2>
<?php
_e
(
'
Sorry, nothing to display.
'
,
'
data-studio
'
);
?>
</h2>
</article>
<!-- /article -->
<?php
endif
;
?>
Back
|
FazBrowse Home
|
New Git URL