Hi again Allen!
Like I said, I have not much of a clue what I’m doing but I’ve tried my way around mixing lines with “Try & error” method, between the working “Vertical Scroll 1.php” code, and the one I’d like to use “clean separated.php”. And ended up finally (many hours later) with a working version of “clean separated” template that has this code now:
<?php
$charstoshow=100; // This number can be changed..indicates how many characters of the excerpt to show
$readable='<div class="rssmi_wrap">';
// don't mess with this php code
foreach($myarray as $items) {
if ($pag!==1){
$total = $total +1;
if ($maxperPage>0 && $total>=$maxperPage) break;
}
$idnum=$idnum +1;
// END don't mess with this php code
$readable .= '<div class="wprssmi-cs-items">';
// $readable .= '<div class="title"><a '.$openWindow.' href='.$items["mylink"].' '.($noFollow==1 ? 'rel=nofollow':'').'>'.$items["mytitle"].'</a>';
$readable .= '<div class="title"><a '.$openWindow.' href='.$items["mylink"].' title="'.$items["mytitle"].'" '.($noFollow==1 ? 'rel=nofollow':'').'>'.$items["mytitle"].'</a>';
if(!empty($items["myAuthor"])){
///this is testing
}
if ($showmore==1 && $showDesc==1){
$readable .= ' <a href="javascript:void(0)"><img src="'.$images_url.'/arrow_down.png"/ id="#'.$idnum.'" class="nav-toggle"></a></div>';
} else{
$readable .= '</div>';
}
if (!empty($items["mydesc"]) && $showDesc==1){
if ($showmore==1 && $showDesc==1){
$readable .= '<div id="'.$idnum.'" style="display:none">';
}else{
$readable .= '<div class="body">';
}
$desc= esc_attr(strip_tags(@html_entity_decode($items["mydesc"], ENT_QUOTES, get_option('blog_charset'))));
$desc = wp_html_excerpt( $desc, $charstoshow );
if ( '[...]' == substr( $desc, -5 ) )
$desc = substr( $desc, 0, -5 ) . '[…]';
elseif ( '[…]' != substr( $desc, -10 ) )
$desc .= ' […]';
$desc = esc_html( $desc );
$readable .= showexcerpt($items["mydesc"],$desc,$openWindow,$stripAll,$items["mylink"],$adjustImageSize,$float,$noFollow,$items["myimage"],$items["mycatid"],$stripSome);
$readable .= $desc;
$readable .= '</div>';
}
$readable .= '<div class="wprssmi-cs-source">'.date_i18n("D, M d, Y g:i:s A",$items["mystrdate"]).', Continue reading <a '.$openWindow.' href='.$items["mylink"].' '.($noFollow==1 ? 'rel=nofollow':'').'">at the source</a></div></div>';
} // don't mess with this php code
$readable .='</div>';
?>
You will most likely find errors or “you can’t do so” and other misstakes, but it works… ??
If you can figure out why/how this change makes a difference, and/or se possible problems i made, I’d be happy for a feature update or cleaned up official code version ??
You can see it working nice now at: https://raskfitline.no
Thanks for your help and nice plugin ??
// Rodge