Changeset 2899305
- Timestamp:
- 04/14/2023 09:08:09 PM (3 years ago)
- Location:
- hello-event/trunk
- Files:
-
- 3 added
- 5 edited
-
.sass-cache (added)
-
.sass-cache/4413051bcf7512eeda1b2f021dd3c7f43ebe30d9 (added)
-
.sass-cache/4413051bcf7512eeda1b2f021dd3c7f43ebe30d9/frontend-list.scssc (added)
-
hello_event.php (modified) (4 diffs)
-
includes/css/frontend-list.css (modified) (9 diffs)
-
includes/hello-event-list-events.php (modified) (5 diffs)
-
includes/sass/frontend-list.scss (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
hello-event/trunk/hello_event.php
r2874382 r2899305 13 13 * Author URI: https://www.tekomatik.com/about 14 14 * 15 * Version: 1.3. 815 * Version: 1.3.10 16 16 * 17 17 * Text Domain: hello-event … … 858 858 859 859 function simple_excerpt($html) { 860 return substr(strip_tags($html), 0, 150) . '...';860 return substr(strip_tags($html), 0, 150) . '...'; 861 861 } 862 862 … … 880 880 $excerpt = apply_filters('hello_event_excerpt_from_category', $excerpt, $post); 881 881 // debug_log("SECOND TRY Event: $event_id ; Excerpt: $excerpt"); 882 $excerpt = apply_filters('translate_text', $excerpt , $locale) ; 882 883 // 3) If still empty then create one from the content 883 884 if ($excerpt == '') { … … 885 886 $content = apply_filters('hello_event_content_from_category', $content); 886 887 $content = apply_shortcodes($content); 888 $content = apply_filters('translate_text', $content , $locale) ; 887 889 $content = str_replace(']]>', ']]>', $content); 888 // debug_log("CONTENT for event$event_id; $content");889 890 $excerpt = $this->simple_excerpt($content); 890 891 } 891 $excerpt = apply_filters('translate_text', $excerpt , $locale) ;892 892 return $excerpt; 893 893 } -
hello-event/trunk/includes/css/frontend-list.css
r2874382 r2899305 206 206 vertical-align: top; 207 207 float: left; 208 font-size: 1.4em; 209 line-height: 1.2em; 208 210 width: 50%; 209 211 } 210 /* line 7 3, ../sass/frontend-list.scss */212 /* line 75, ../sass/frontend-list.scss */ 211 213 div.hello-event.style1 div.intro div.thumbnail { 212 214 clear: both; 213 215 } 214 216 215 /* line 77, ../sass/frontend-list.scss */ 217 /* line 79, ../sass/frontend-list.scss */ 218 div.thumbnail.square img { 219 width: 100%; 220 object-fit: cover; 221 aspect-ratio: 1/1; 222 } 223 224 /* line 87, ../sass/frontend-list.scss */ 225 div.thumbnail.round img { 226 border-radius: 50%; 227 } 228 229 /* line 93, ../sass/frontend-list.scss */ 216 230 div.hello-event.style1.compact div.event-date { 217 231 font-size: 0.6em; 218 232 } 219 /* line 78, ../sass/frontend-list.scss */233 /* line 94, ../sass/frontend-list.scss */ 220 234 div.hello-event.style1.compact div.description { 221 235 font-size: 0.9em; … … 223 237 text-align: left; 224 238 } 225 /* line 80, ../sass/frontend-list.scss */239 /* line 96, ../sass/frontend-list.scss */ 226 240 div.hello-event.style1.compact div.description div.excerpt { 227 241 margin-top: 1em; 228 242 } 229 /* line 83, ../sass/frontend-list.scss */243 /* line 99, ../sass/frontend-list.scss */ 230 244 div.hello-event.style1.compact div.intro div.title { 231 245 display: inline-block; … … 237 251 width: 40%; 238 252 } 239 /* line 92, ../sass/frontend-list.scss */253 /* line 108, ../sass/frontend-list.scss */ 240 254 div.hello-event.style1.compact div.intro div.thumbnail { 241 255 display: inline-block; … … 245 259 } 246 260 247 /* line 1 06, ../sass/frontend-list.scss */261 /* line 121, ../sass/frontend-list.scss */ 248 262 div.hello-event.style1 div.description { 249 263 padding: 1em; 250 264 } 251 265 252 /* line 1 07, ../sass/frontend-list.scss */266 /* line 122, ../sass/frontend-list.scss */ 253 267 div.hello-event.style1 div.description div.title { 254 268 font-size: 2em; … … 258 272 } 259 273 260 /* line 1 09, ../sass/frontend-list.scss */274 /* line 124, ../sass/frontend-list.scss */ 261 275 div.hello-event.style1 div.description div.time { 262 276 color: #666; … … 266 280 } 267 281 268 /* line 1 10, ../sass/frontend-list.scss */282 /* line 125, ../sass/frontend-list.scss */ 269 283 div.hello-event.style1 div.description div.time::before { 270 font-family: " dashicons";271 content: "\f 469";284 font-family: "Font Awesome\ 5 Free"; 285 content: "\f017"; 272 286 /* clock icon */ 273 287 display: inline-block; … … 275 289 vertical-align: top; 276 290 text-align: left; 277 font-size: 1em; 278 } 279 280 /* line 122, ../sass/frontend-list.scss */ 291 } 292 293 /* line 134, ../sass/frontend-list.scss */ 281 294 div.hello-event.style1 div.description div.location { 282 295 color: #666; 283 296 } 284 297 285 /* line 1 23, ../sass/frontend-list.scss */298 /* line 135, ../sass/frontend-list.scss */ 286 299 div.hello-event.style1 div.description div.location::before { 287 300 font-family: "Font Awesome\ 5 Free"; … … 291 304 padding-right: 3px; 292 305 vertical-align: top; 293 font-size: 1em; 294 } 295 296 /* line 134, ../sass/frontend-list.scss */ 306 } 307 308 /* line 143, ../sass/frontend-list.scss */ 297 309 div.hello-event.style1 div.description div.date { 298 310 color: #888; … … 300 312 } 301 313 302 /* line 1 35, ../sass/frontend-list.scss */314 /* line 144, ../sass/frontend-list.scss */ 303 315 div.hello-event.style1 div.description div.date::before { 304 316 font-family: "Font Awesome\ 5 Free"; -
hello-event/trunk/includes/hello-event-list-events.php
r2874382 r2899305 39 39 'link_to_book' => false, // Do we want to display a "Book Now" button? 40 40 'language' => false, // Can be used in date presentations 41 'thumbnail' => "", // can be 'square', 'round' or both (sepaated by space) 41 42 42 43 ), $args0 ); … … 238 239 $html .= " 239 240 <div class='hello-event style1 list gallery " . $event_type_class ."'> 240 <div class='thumbnail '>" . get_the_post_thumbnail() . "</div>241 <div class='thumbnail ".$args['thumbnail']."'>" . get_the_post_thumbnail() . "</div> 241 242 $g_title 242 243 $g_dates … … 264 265 </a> 265 266 </div> 266 <div class='thumbnail '>" . get_the_post_thumbnail() . "</div>267 <div class='thumbnail ".$args['thumbnail']."'>" . get_the_post_thumbnail() . "</div> 267 268 $start_time_string 268 269 <div class='location'> … … 290 291 </a> 291 292 </div> 292 <div class='thumbnail '>" . get_the_post_thumbnail($id, 'hello-event-widget-image') . "</div>293 <div class='thumbnail ".$args['thumbnail']."'>" . get_the_post_thumbnail($id, 'hello-event-widget-image') . "</div> 293 294 </div> 294 295 <div class='description'> … … 318 319 </a> 319 320 </div> 320 <div class='thumbnail '>" . get_the_post_thumbnail($id, 'hello-event-widget-image') . "</div>321 <div class='thumbnail ".$args['thumbnail']."'>" . get_the_post_thumbnail($id, 'hello-event-widget-image') . "</div> 321 322 </div> 322 323 <div class='description'> -
hello-event/trunk/includes/sass/frontend-list.scss
r2873773 r2899305 76 76 } 77 77 78 div.thumbnail.square { 79 img { 80 width: 100%; 81 object-fit: cover; 82 aspect-ratio: 1/1; 83 } 84 } 85 86 div.thumbnail.round { 87 img { border-radius: 50%;} 88 } 89 90 91 78 92 div.hello-event.style1.compact { 79 93 div.event-date {font-size:0.6em;} … … 96 110 text-align:center; 97 111 vertical-align:top; 98 width:40%; 99 112 width:40%; 100 113 } 101 114 } -
hello-event/trunk/readme.txt
r2874382 r2899305 72 72 == Changelog == 73 73 74 = 1.3.10 75 * Added thumbnail parameter to the shortcode 'hello-event-list' making it possible to force the thumbails to be square or/and round 76 = 1.3.9 77 * Fixed the translation of excerpts generated from the description text. 74 78 = 1.3.8 = 75 79 * Better generation of excerpts, including the possibility to support event categories (these are not defined in this plugin)
Note: See TracChangeset
for help on using the changeset viewer.