' . ecwid_trim_description( $category->description );
$descr_length = function_exists( 'mb_strlen' ) ? mb_strlen( $category->description ) : strlen( $category->description );
$trimmed_length = function_exists( 'mb_strlen' ) ? mb_strlen( $trimmed ) : strlen( $trimmed );
if ( $trimmed_length < $descr_length && $trimmed_length == ECWID_TRIMMED_DESCRIPTION_LENGTH ) {
$result .= '...
' . __( 'See more', 'ecwid-shopping-cart' ) . '';
}
$result .= '
';
}
if ( ! $see_more ) {
$products = $api->search_products( array( 'category' => $root_category_id ) );
if ( $products->items ) {
foreach ( $products->items as $product ) {
$product = Ecwid_Product::get_by_id( $product->id );
$items[ $product->link ] = $product->name;
if ( count( $items ) >= $max_items ) {
$see_more = true;
break;
}
}
}
}
}//end if
$result .= '