Skip to content

Commit 6ca1481

Browse files
committed
admin dashboard update
1 parent 63a756d commit 6ca1481

File tree

1 file changed

+56
-27
lines changed

1 file changed

+56
-27
lines changed

admin/partials/display-medium-posts-admin-display.php

Lines changed: 56 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -18,31 +18,60 @@
1818

1919
<h2><?php echo esc_html( get_admin_page_title() ); ?></h2>
2020

21-
<h3>How to use</h3>
22-
23-
<p>WordPress Display Medium Posts plugin displays the latests posts from a specified user.</p>
24-
25-
<p>To use this plugin on any page/post, add shortcode with user handle e.g <span style="color:red">[display_medium_posts handle="@username"]</span></p>
26-
27-
<h4>Advanced Usage and Customization</h4>
28-
<p>There are additional features that can be implemented using Display Medium Posts : </p>
29-
<ul>
30-
<li><b>handle:</b> This is the user's medium handle e.g @acekyd <i>(Required)</i></li>
31-
<li><b>default_image:</b> This is the url of default image that should show when post doesn't have a featured image e.g http://i.imgur.com/p4juyuT.png</li>
32-
<li><b>display:</b> This is the amount of posts that should be displayed at a time e.g display=3</li>
33-
<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>
34-
<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>
35-
<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
36-
</ul>
37-
38-
<p>
39-
An example of a full use of the plugin is as follows:<br>
40-
<b>
41-
[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]
42-
</b>
43-
</p>
44-
<br><br>
45-
<p>
46-
<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>
47-
</p>
21+
<div class="metabox-holder">
22+
<div class="postbox-container" style="width: 55%;margin-right: 10px;">
23+
<div class="postbox">
24+
<h3 class="hndle ui-sortable-handle"><span>How to use</span></h3>
25+
<div class="inside">
26+
<p>WordPress Display Medium Posts plugin displays the latests posts from a specified user or publication.</p>
27+
28+
<h4>For users</h4>
29+
30+
<p>To use this plugin on any page/post, add shortcode with <strong>user</strong> handle e.g <br><span style="color:red">[display_medium_posts handle="@username"]</span></p>
31+
32+
<h4>For Publications</h4>
33+
<p>To use this plugin to fetch publication posts, you'd have to get the publication handle from the url as shown https://medium.com/<strong>devcenter</strong>. <strong>devcenter</strong> is the publication's handle. If you are using a custom domain, you should still be able to look up your unique handle in settings.</p>
34+
<p>To use this plugin on any page/post, add shortcode with <strong>publication</strong> handle and set "publication" to true e.g<br> <span style="color:red">[display_medium_posts handle="username" publication=true]</span></p>
35+
36+
<i>NB: Do not add "@" for publication handles</i>
37+
38+
<h4>Advanced Usage and Customization</h4>
39+
<p>There are additional features that can be implemented using Display Medium Posts : </p>
40+
<ul>
41+
<li><b>handle:</b> This is the user's medium handle e.g <strong>@acekyd</strong> or publication handle e.g <strong>devcenter</strong> <i>(Required)</i></li>
42+
<li><b>publication:</b> If you would like to show the posts of a publication's specified handle, set this value to true. Default value is false</li>
43+
<li><b>default_image:</b> This is the url of default image that should show when post doesn't have a featured image e.g http://i.imgur.com/p4juyuT.png</li>
44+
<li><b>display:</b> This is the amount of posts that should be displayed at a time e.g display=3</li>
45+
<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>
46+
<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>
47+
<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</li>
48+
</ul>
49+
</div>
50+
</div>
51+
</div>
52+
53+
<div class="postbox-container" style="width: 44%;">
54+
<div class="postbox">
55+
<h3 class="hndle ui-sortable-handle"><span>More!</span></h3>
56+
<div class="inside">
57+
<p>
58+
An example of a full use of the plugin is as follows:<br><br>
59+
<strong>User - </strong><br><br>
60+
61+
[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]
62+
63+
<br><br>
64+
<strong>Publication - </strong><br><br>
65+
66+
[display_medium_posts handle="devcenter" publication=true default_image="http://www.acekyd.com/wp-content/uploads/2014/11/IMG_20150731_220116.png" display=4 offset=2 total=10 list=false]
67+
68+
</p>
69+
<br><br>
70+
<p>
71+
<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>. If you'd like to reach out to me or donate to this plugin, send me a tweet at <a href="http://twitter.com/ace_kyd">@Ace_KYD</a>. Cheers :)</h4>
72+
</p>
73+
</div>
74+
</div>
75+
</div>
76+
</div>
4877
</div>

0 commit comments

Comments
 (0)