Skip to content

Commit

Permalink
patch -> display posts in list format
Browse files Browse the repository at this point in the history
  • Loading branch information
acekyd committed Nov 27, 2016
1 parent 1278db1 commit 18af5b4
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 3 deletions.
Binary file added .DS_Store
Binary file not shown.
5 changes: 5 additions & 0 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,13 @@ Nothing at the moment.
== Screenshots ==
1. Add shortcode to posts/page
2. Displayed latest medium posts on page.
3. Allowed users to choose between carousel or list displays.

== Changelog ==
= Version 2.0.2 =

* Choose to display posts in list format

= Version 2.0.0 =

* Specify tags and css classes to allow users customize post display
Expand Down
8 changes: 6 additions & 2 deletions admin/partials/display-medium-posts-admin-display.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,17 @@
<li><b>display:</b> This is the amount of posts that should be displayed at a time e.g display=3</li>
<li><b>offset:</b> This is used when you don't want to display the most recent posts. You can specify the offset to skip the first number of items specified. Default is 0 e.g offset=2</li>
<li><b>total:</b> This is used to specify the amount of posts to fetch. Maximum is 10. This is also useful if you just want to display a single item e.g total=1</li>
<li><b>list:</b> If you would like to show the posts in a list instead of a carousel, set this value to true. Default value is false
</ul>

<p>
An example of a full use of the plugin is as follows:<br>
<b>
[display_medium_posts handle="@acekyd" default_image="http://www.acekyd.com/wp-content/uploads/2014/11/IMG_20150731_220116.png" display=4 offset=2 total=10]
[display_medium_posts handle="@acekyd" default_image="http://www.acekyd.com/wp-content/uploads/2014/11/IMG_20150731_220116.png" display=4 offset=2 total=10 list=false]
</b>
</p>

<br><br>
<p>
<h4 style="color:red">If this plugin has helped you, don't hesitate to star the <a href="http://www.github.com/acekyd/display-medium-posts/" target="_blank">Github repo</a>. Cheers :)</h4>
</p>
</div>
Binary file added assets/screenshot-3.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion display-medium-posts.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ function initializeOwl(count) {
<?php
if(!$list)
{
echo '<script>initializeOwl(<?php echo $display; ?>);</script>';
echo '<script>initializeOwl('.$display.');</script>';
}
?>
<?php
Expand Down

0 comments on commit 18af5b4

Please sign in to comment.