Closed chredd closed 9 years ago
Should all previews be displayed at once? That would require a very large screen :) Otherwise we could have a tab-menu in top of the preview window where you could switch between the three views.
Edit: ah there would only be two views... okey that would be manageable....
Two previews should be manageable. Arlima already requires a quite large screen so adding a little bit more (if you want to) should maybe be ok. :)
I agree. Maybe we should use filter arlima_tmpl_width
for this? The double preview would become activated if you decide to return an array with two numbers (widths).
add_filter('arlima_tmpl_width', function($width, $list) {
switch( $list->getSlug() ) {
case 'main':
$width = array(498, 310); // Full width and mobile width
break;
case 'sidebar':
$width = array(240, 150);
break;
}
return $width;
});
That sounds like a really good idea! How hard would it be to add this kind of functionality? 1 days work, 1 weeks work, 1 months work?
Well, for someone that knows Arlima inside-out it might take up towards a day to implement this. Between thumb and index finger :)
Sounds reasonable. I might take a look at it when I have the time. It would be a really sweet feature when building a responsive site, or when using the same Arlima lists for both desktop and mobile.
Hi Guys. This was implemented as suggested (filter for 'arlima_tmpl_width'). Please see https://github.com/victorjonsson/Arlima/pull/57
For responsive layouts it would be awesome to have two (or more) preview windows for the teaser. One for desktop, and one for mobile. The windows would obviously have different widths (set by the filter?).