Changeset 3068745
- Timestamp:
- 04/11/2024 04:28:30 AM (2 years ago)
- Location:
- rw-recent-post/trunk
- Files:
-
- 3 added
- 4 edited
-
classes/AdminClass.php (added)
-
classes/AdminView.php (added)
-
classes/Mainclass.php (modified) (2 diffs)
-
css/rwstyle.css (modified) (2 diffs)
-
img/image-default.jpg (added)
-
main.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
rw-recent-post/trunk/classes/Mainclass.php
r3061483 r3068745 35 35 'post_status' => 'publish', 36 36 'posts_per_page' => $rw_atts['number_of_post'], 37 'orderby' => ' ID',37 'orderby' => 'date', 38 38 'order' => 'DESC', 39 39 ); … … 43 43 $marqueeEnd = ''; 44 44 $product_recent=''; 45 // if ($rw_atts['marquee'] == 'true') 46 // { 47 // $marquee = '<marquee direction="up" onmouseover="this.stop();" onmouseout="this.start();">'; 48 // $marqueeEnd = '</marquee>'; 49 // } 45 50 46 $posted_date = ''; 51 47 $classul=''; -
rw-recent-post/trunk/css/rwstyle.css
r2448886 r3068745 1 1 2 #rwrecentpost li{ 2 /*display: inline-block !important;*/ 3 list-style: square inside url('../img/arrow-bullets-icon.png'); 3 list-style: square inside url('../img/arrow-bullets-icon.png'); 4 4 } 5 5 #rwrecentpost li a{ … … 7 7 } 8 8 9 .rwrecentbutton{ 10 display: inline; 11 width: 115px; 12 background: #4E9CAF; 13 padding: 5px; 14 text-align: center; 15 border-radius: 5px; 16 line-height: 25px; 17 } 18 a.rwrecentbutton { 19 color: #fff !important; 20 font-style: italic; 21 } 22 23 /* Design */ 24 25 26 #rwrpt_gridlayout{ 27 max-width: 1200px; 28 margin: 0 auto; 29 } 30 31 32 33 #rwrpt_gridlayout .rwrpt_cards_item img { 34 height: auto; 35 max-width: 100%; 36 width: 100%; 37 vertical-align: middle; 38 } 39 40 #rwrpt_gridlayout .rwrpt_card_btn { 41 padding: 0.8rem; 42 text-transform: uppercase; 43 border-radius: 4px; 44 font-weight: 400; 45 display: block; 46 width: 100%; 47 cursor: pointer; 48 border: 1px solid #000; 49 background: transparent; 50 } 51 52 #rwrpt_gridlayout .rwrpt_card_btn:hover { 53 background-color: rgba(255, 255, 255, 0.12); 54 } 55 56 #rwrpt_gridlayout .rwrpt_cards { 57 display: flex; 58 flex-wrap: wrap; 59 list-style: none; 60 margin: 0; 61 padding: 0; 62 63 } 64 65 #rwrpt_gridlayout .rwrpt_cards_item { 66 display: flex; 67 padding: 1rem; 68 width: 100%; 69 } 70 71 @media screen and (min-width: 640px) { 72 #rwrpt_gridlayout .rwrpt_cards_item { 73 width: 50%; 74 } 75 } 76 77 @media screen and (min-width: 896px) { 78 #rwrpt_gridlayout .rwrpt_cards_item { 79 width: 33.3333%; 80 } 81 } 82 83 #rwrpt_gridlayout .rwrpt_card { 84 border-radius: 0.25rem; 85 box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.25); 86 display: flex; 87 flex-direction: column; 88 overflow: hidden; 89 width: 100%; 90 } 91 92 #rwrpt_gridlayout .rwrpt_card_content { 93 94 padding: 1rem; 95 96 } 97 98 #rwrpt_gridlayout .rwrpt_card_title { 99 font-weight: 700; 100 letter-spacing: 1px; 101 text-transform: capitalize; 102 margin: 0px; 103 } 104 105 #rwrpt_gridlayout .rwrpt_card_text { 106 line-height: 1.5; 107 margin-bottom: 1.25rem; 108 font-weight: 400; 109 } 110 #rwrpt_gridlayout .rwrpt_made_by{ 111 font-weight: 400; 112 margin-top: 35px; 113 text-align: center; 114 115 } 116 117 /* list layout css */ 118 119 120 #rwrpt_listlayout{ 121 max-width: 1200px; 122 margin: 0 auto; 123 } 124 125 126 127 #rwrpt_listlayout .rwrpt_cards_item img { 128 height: auto; 129 max-width: 100%; 130 width: 100%; 131 vertical-align: middle; 132 } 133 134 #rwrpt_listlayout .rwrpt_card_btn { 135 padding: 0.8rem; 136 text-transform: uppercase; 137 border-radius: 4px; 138 font-weight: 400; 139 display: block; 140 width: 100%; 141 cursor: pointer; 142 border: 1px solid #000; 143 background: transparent; 144 } 145 146 #rwrpt_listlayout .rwrpt_card_btn:hover { 147 background-color: rgba(255, 255, 255, 0.12); 148 } 149 150 #rwrpt_listlayout .rwrpt_cards_list { 151 display: flex; 152 flex-wrap: wrap; 153 list-style: none; 154 margin: 0; 155 padding: 0; 156 157 } 158 159 #rwrpt_listlayout .rwrpt_cards_item { 160 display: flex; 161 padding: 1rem; 162 width: 100%; 163 } 164 165 #rwrpt_listlayout .rwrpt_card { 166 border-radius: 0.25rem; 167 box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.25); 168 display: flex; 169 flex-direction: column; 170 overflow: hidden; 171 width: 100%; 172 } 173 174 #rwrpt_listlayout .rwrpt_card_content { 175 padding: 1rem; 176 177 } 178 179 #rwrpt_listlayout .rwrpt_card_title { 180 181 font-weight: 700; 182 letter-spacing: 1px; 183 text-transform: capitalize; 184 margin: 0px; 185 186 } 187 188 #rwrpt_listlayout .rwrpt_card_text { 189 190 line-height: 1.5; 191 margin-bottom: 1.25rem; 192 font-weight: 400; 193 } 194 195 @media screen and (min-width:601px){ 196 #rwrpt_listlayout .rwrpt_card_image { 197 max-width: 250px; 198 width: 100%; 199 height: 100%; 200 201 } 202 .rwrpt_card_image img { 203 max-width: 200px; 204 width: 100%; 205 object-fit: cover; 206 object-position: center; 207 height: 200px; 208 } 209 #rwrpt_listlayout .rwrpt_card { 210 flex-direction: unset !important; 211 } 212 #rwrpt_listlayout .rwrpt_cards_item img { 213 max-width: 100%; 214 width: 100%; 215 vertical-align: middle; 216 height: auto; 217 padding: 10px; 218 } 219 #rwrpt_listlayout .rwrpt_card_content { 220 width: 100%; 221 } 222 #rwrpt_listlayout .rwrpt_card_btn { 223 font-size: 12px; 224 background: transparent; 225 max-width: 120px; 226 } 227 } 228 @media screen and (min-width:901px){ 229 #rwrpt_listlayout { 230 max-width: 992px; 231 margin: 0 auto; 232 width: 100%; 233 } 234 } -
rw-recent-post/trunk/main.php
r2478418 r3068745 2 2 /** 3 3 Plugin Name: RW Recent Post 4 Description: This plugin provide Recent post of any post type.4 Description: User friendly RW Recent Post Plugin is all set to making your digital life much easier. The dynamic, user-friendly RW Recent Post plugin gives you the leverage to publish your post directly on your WordPress web application in a very visually appealing manner. 5 5 Author: Ramweb 6 Version: 1.1. 16 Version: 1.1.2 7 7 Author URI: http://ramweb.in/ 8 Contributors: Ramweb8 Contributors: webdevramyash 9 9 */ 10 10 if ( ! defined( 'ABSPATH' ) ) { … … 13 13 14 14 require_once(dirname(__FILE__) . '/classes/Mainclass.php'); 15 require_once(dirname(__FILE__) . '/classes/AdminView.php'); 15 16 use Rwrpt\Main\rwrpt_recent_post_class as RwrptAll; 16 17 new RwrptAll(); 17 define( 'RWRPT_VERSION', '1.1. 1' );18 define( 'RWRPT_VERSION', '1.1.2' ); 18 19 /** 19 20 * -
rw-recent-post/trunk/readme.txt
r2633135 r3068745 4 4 Contributors: webdevramyash 5 5 Tags: Recent post, News, woocommerce 6 Tested up to: 5.8.27 Stable tag: 1.1. 16 Tested up to: 6.5.2 7 Stable tag: 1.1.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 10 11 Recent post in WordPress.12 11 13 == Description == 12 === Description === 13 Are you ready to showcase your latest articles/ blog posts online? 14 14 15 This plugin provide Recent post of any post type. 15 User friendly RW Recent Post Plugin is all set to making your digital life much easier. The dynamic, user-friendly RW Recent Post plugin gives you the leverage to publish your post directly on your WordPress web application in a very visually appealing manner. 16 17 === Features === 18 == RW Recent Post Plugin – An essential Plugin for Bloggers, developers, and Digital Marketers == 19 20 = Enhance the Visual Appeal = 21 Display your content on the website to keep your visitors engaged. This will result in better engagement and the lowest bounce rate, ensuring readers do not miss out on anything in the post and supplementing the SEO drive. 22 23 = Great Styles, Views with Featured Images = 24 The plugin offers two different options for displaying the content grid and list. Select the one that best goes well with the content flow and your preferences, close to your heart. 25 26 = Achieve Flexibility with the Post Dates = 27 Do you want to display the date of the post while publishing? Use the RW Recent Post plugin's feature and choose your preference. 28 29 = Promote your products/ Brands (Woocommerce) = 30 It is simple. If you are an online store owner, RW Recent Post plugins allow you to place a "Buy Now" button alongside the product images. Make the sale on the spot and generate revenues. 16 31 17 32 == Installation == 33 = Install the RW Recent Post plugin Today and Stay Ahead = 34 The RW Recent Post plugin is free and very easy to install. As an open source, it is constantly updated. Go to our installation page for step-by-step instructions. You will be there once you enter the featured short code on the page and publish or update it. You have complete flexibility over the post date and number of posts to display. 35 With the best features and flexible options, you have total control over displaying your next WordPress post elegantly and stylishly. 18 36 19 37 1. Upload the entire `rw-recent-post` folder to the `/wp-content/plugins/` directory 20 38 2. Activate the plugin through the 'Plugins' menu in WordPress 21 39 22 = Features = 23 * Post style grid view with featured image. 24 * Post style list view with featured image. 25 * If found post type product then buy now button will be enabled. 26 * Posted date true/false. 27 * Number of post. 28 29 30 = Shortcode = 40 = Plug- in’s Shortcode = 31 41 Just enter the following shortcode on the page. 32 42 33 43 `[rwrpt_recent_post title="Recent Product" posted_date="false" number_of_post=10 post_type="product" view_style="list"]` 44 45 * title: Heading of listing 46 * posted_date: Show/Hide date (true/false). 47 * number_of_post: Number of post displayed. 48 * post_type: Post type slug. 49 * view_style: Display (list/grid) 50 51 34 52 35 53 == Screenshots == … … 38 56 3.screenshot-3 39 57 4.screenshot-4 58 4.screenshot-5 40 59 41 60 42 61 == Changelog == 43 62 63 =1.1.2= 64 * Added New feature in backend for manage shortcodes. 65 44 66 = 1.1.1 = 45 * Added New feature Grid view and list view.46 * Removed marquee.67 * Added New feature Grid view and list view. 68 * Removed marquee. 47 69 48 70 = 1.1 =
Note: See TracChangeset
for help on using the changeset viewer.