Skip to content
This repository has been archived by the owner on Dec 23, 2022. It is now read-only.

Commit

Permalink
Added a few lines of comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mahdiyazdani committed Nov 19, 2017
1 parent 3c3e7d6 commit 69cbf5b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
5 changes: 4 additions & 1 deletion template-parts/post-format/content-gallery.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@
/**
* The default template for displaying content.
* Used for index/archive/search only.
* Inspired by Twenty Thirteen content-gallery.php
*
* @see https://developer.wordpress.org/reference/functions/get_post_gallery/
* @see https://github.com/WordPress/WordPress/tree/master/wp-content/themes/twentythirteen
* @author Mahdi Yazdani
* @package Restarter
* @since 1.1.0
* @since 1.1.2
*/
?>
<!-- Post -->
Expand Down
3 changes: 2 additions & 1 deletion template-parts/post-format/content-quote.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
* The default template for displaying content.
* Used for index/archive/search only.
*
* @see http://justintadlock.com/archives/2012/08/27/post-formats-quote
* @author Mahdi Yazdani
* @package Restarter
* @since 1.1.0
* @since 1.1.2
*/
?>
<!-- Post -->
Expand Down
4 changes: 3 additions & 1 deletion template-parts/post-format/content-video.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@
* The default template for displaying content.
* Used for index/archive/search only.
*
* @see https://developer.wordpress.org/reference/functions/get_media_embedded_in_content/
* @author Mahdi Yazdani
* @package Restarter
* @since 1.1.0
* @since 1.1.2
*/
?>
<!-- Post -->
<article id="post-<?php the_ID(); ?>" <?php post_class('tile post-tile format-video'); ?> itemscope="itemscope" itemtype="https://schema.org/BlogPosting" itemprop="blogPost">
<?php
// A list of found HTML media embeds.
$get_videos = get_media_embedded_in_content(apply_filters('the_content', get_the_content()), array('video', 'iframe'));
if (is_array($get_videos) && ! empty($get_videos) && ! post_password_required() && ! is_attachment()): ?>
<div class="post-thumb">
Expand Down

0 comments on commit 69cbf5b

Please sign in to comment.