Просмотр файла contrib/Full Forums.xml

Размер файла: 3.37Kb
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?xml-stylesheet type="text/xsl" href="modx.prosilver.en.xsl"?>
<!--NOTICE: Please open this file in your web browser. If presented with a security warning, you may safely tell it to allow the blocked content.-->
<!--For security purposes, please check: http://www.phpbb.com/mods/ for the latest version of this MOD.\nAlthough MODs are checked before being allowed in the MODs Database there is no guarantee that there are no security problems within the MOD.\nNo support will be given for MODs not found within the MODs Database which can be found at http://www.phpbb.com/mods/-->
<mod xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="https://www.phpbb.com/mods/xml/modx-1.2.6.xsd">
	<header>
		<meta name="generator" content="MODX file generated with PP MODX Creator 1.2.6 by tumba25 (phpBB version)"/>
		<license><![CDATA[http://opensource.org/licenses/gpl-license.php GNU General Public License v2]]></license>
		<title lang="en"><![CDATA[Full Index Categories]]></title>
		<description lang="ru"><![CDATA[Данное дополнение даёт возможность свернуть категории форумов, разворачивать пользователи смогут индивидуально. 
Используется cookies]]></description>
		<author-group>
			<author>
				<realname><![CDATA[Anvar Stybayev]]></realname>
				<username phpbbcom="no"><![CDATA[[email protected]]]></username>
				<homepage><![CDATA[apwa.ru]]></homepage>
				<email><![CDATA[[email protected]]]></email>
			</author>
		</author-group>
		<mod-version>1.0.0</mod-version>
		<installation>
			<level>easy</level>
			<time>60</time>
			<target-version>3.0.11</target-version>
		</installation>
	</header>
	<action-group>
		<open src="index.php">
			<edit>
				<find><![CDATA[$user->setup('viewforum');]]></find>
				<action type="after-add"><![CDATA[// Spisok index full wap
$index_spisok = request_var('index_spisok', '');
if ($index_spisok == 'on' || $index_spisok == 'off')
{
	$user->set_cookie('spisok', $index_spisok, time() + 31536000);
	header('Location: ' . append_sid("{$phpbb_root_path}index.$phpEx"));
}
$spisok_cookie = request_var($config['cookie_name'] . '_spisok', '', false, true);]]></action>
			</edit>
			<edit>
				<find><![CDATA['S_DISPLAY_BIRTHDAY_LIST'	=> ($config['load_birthdays']) ? true : false,]]></find>
				<action type="after-add"><![CDATA[	'S_INDEX_SPISOK'          => ($spisok_cookie == 'on') ? true : false,
	'L_SPISOK_LINK'         => ($spisok_cookie == 'on') ? $user->lang['COLLAPSE_VIEW'] : $user->lang['EXPAND_VIEW'],
	'U_SPISOK_LINK'         => ($spisok_cookie == 'on') ? append_sid("{$phpbb_root_path}index.$phpEx", 'index_spisok=off') : append_sid("{$phpbb_root_path}index.$phpEx", 'index_spisok=on'),]]></action>
			</edit>
		</open>
		<open src="mobile/template/index_body.html">
			<edit>
				<find><![CDATA[<!-- IF not forumrow.S_IS_CAT -->]]></find>
				<action type="replace-with"><![CDATA[<!-- IF not forumrow.S_IS_CAT and (S_INDEX_SPISOK or forumrow.S_NO_CAT) -->]]></action>
			</edit>
			<edit>
				<find><![CDATA[<!-- IF S_BOARD_DISABLED and S_USER_LOGGED_IN --> 
{L_BOARD_DISABLED}
<!-- ENDIF -->]]></find>
				<action type="after-add"><![CDATA[<div style="text-transform:lowercase; text-align:right;"><a href="{U_SPISOK_LINK}">{L_SPISOK_LINK} {L_FORUMS}</a></div>]]></action>
			</edit>
		</open>
	</action-group>
</mod>