p.s
all shortcodes and widgets files, so substantially all files on plugin
/views folder being rewritten to be easy and complete.
About date suggestion, the result will be the same as it has been set about time and date format, to render the same as it is been set in WP admin general settings. Resulting code lines about this into output files will be something like this:
Code: Select all
echo "<li class=\"".$w3all_lastopics_style_li_class."\"><table style=\"border-spacing:0;border-collapse:collapse;vertical-align:middle;margin:0;border:0;\"><tr><td style=\"border:0;width:".$w3all_last_t_avatar_dim."px;\">".$w3all_avatar_display."</td><td style=\"border:0;width:auto\"><a href=\"$w3all_url_to_cms/viewtopic.php?f=$value->forum_id&t=$value->topic_id&p=$value->post_id#p$value->post_id\">$value->topic_title</a> ".$w3all_post_state_ru."<br />". __( 'by ' , 'wp-w3all-phpbb-integration' )." $value->topic_last_poster_name<br />". date_i18n( $dateformat, $value->topic_last_post_time + ( 3600 * $gmtoffset) ) ." at ". date_i18n( $timeformat, $value->topic_last_post_time + ( 3600 * $gmtoffset) ) ."</td></tr></table></li>\n";
you can see
date format and time format:
Code: Select all
date_i18n( $dateformat, $value->topic_last_post_time + ( 3600 * $gmtoffset) ) ." at ". date_i18n( $timeformat, $value->topic_last_post_time + ( 3600 * $gmtoffset) )
result will be something like (based on wp default setting you choose):
by floxshifu
December 10, 2021 at 8:16 am
on top of the file, outside the foreach, we'll put these:
Code: Select all
$dateformat = get_option('date_format');
$gmtoffset = get_option( 'gmt_offset' );
$timeformat = get_option( 'time_format' );
well, since these vars are used then by all shortcodes and widgets, may we'll put these 3 on top of wp_w3all.php like all others main vars, then passed into functions as globals.
We'll have all as it is required, according to what time format and date format is set into wp main settings -> general
and it will be easily changeable by anyone
a) via admin
b) just opening files and changing as more like
ps. these are long time needed changes, to have a default plugin that fit any need.
But the MOST IMPORTANT coming feature that return is that the plugin, return or become compatible about email changes, for ALL front end plugins profile pages.
The integration will bring again the most important feature.