1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-08 23:56:58 +02:00

Issue #4332 Carousel fixes. Newsfeed now uses json to store data.

This commit is contained in:
Cameron
2021-01-01 09:33:51 -08:00
parent e6ceafd496
commit 81634d5f5a
16 changed files with 46 additions and 37 deletions

View File

@@ -7,7 +7,7 @@
<link url='admin_config.php' description='LAN_CONFIGURE' icon='images/pvt_message_32.png' iconSmall='images/pvt_message_16.png' primary='true' />
</adminLinks>
<pluginPrefs>
<pref name="title">LAN_PM</pref>
<pref name="title">LAN_PLUGIN_PM_NAME</pref>
<pref name="animate">1</pref>
<pref name="dropdown">0</pref>
<pref name="read_timeout">0</pref>

View File

@@ -21,6 +21,8 @@ if(!check_class($pm_prefs['pm_class']))
if (!defined('e107_INIT')) { exit; }
if (!e107::isInstalled('pm')) { return ''; }
/**
* Function to show a popup (if enabled) when new PMs arrive.
*
@@ -58,7 +60,7 @@ if(!function_exists('pm_show_popup'))
</html> ";
$popuptext = str_replace("\n", '', $popuptext);
$popuptext = str_replace("\t", '', $popuptext);
$text .= "
$text = "
<script type='text/javascript'>
winl=(screen.width-200)/2;
wint = (screen.height-100)/2;
@@ -147,4 +149,5 @@ if($pm_inbox['inbox']['new'] > 0 && $pm_prefs['popup'] && strpos(e_SELF, 'pm.php
//$ns->tablerender(LAN_PM, $txt, 'pm');
$caption = varset($pm_prefs['title'], LAN_PM);
$caption = defset($caption, $caption);
$ns->tablerender($caption, $txt, 'pm');