-
Notifications
You must be signed in to change notification settings - Fork 2
/
dle_conditions.xml
50 lines (50 loc) · 2.23 KB
/
dle_conditions.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?xml version="1.0" encoding="utf-8"?>
<dleplugin>
<name>DLE Conditions Lite - условия для шаблонизатора DataLife Engine</name>
<description>Добавляем условия для шаблонизатора [ https://lazydev.pro ]</description>
<icon></icon>
<version></version>
<dleversion>13</dleversion>
<versioncompare>greater</versioncompare>
<upgradeurl></upgradeurl>
<filedelete>0</filedelete>
<needplugin></needplugin>
<mysqlinstall><![CDATA[]]></mysqlinstall>
<mysqlupgrade><![CDATA[]]></mysqlupgrade>
<mysqlenable><![CDATA[]]></mysqlenable>
<mysqldisable><![CDATA[]]></mysqldisable>
<mysqldelete><![CDATA[]]></mysqldelete>
<phpinstall><![CDATA[]]></phpinstall>
<phpupgrade><![CDATA[]]></phpupgrade>
<phpenable><![CDATA[]]></phpenable>
<phpdisable><![CDATA[]]></phpdisable>
<phpdelete><![CDATA[]]></phpdelete>
<file name="engine/modules/show.short.php">
<operation action="after">
<searchcode><![CDATA[$news_found = TRUE;]]></searchcode>
<replacecode><![CDATA[$tpl->copy_template = dleConditions::construct()->realize($tpl->copy_template, $row);]]></replacecode>
</operation>
</file>
<file name="engine/modules/show.full.php">
<operation action="after">
<searchcode><![CDATA[define( 'NEWS_ID', $row['id'] );]]></searchcode>
<replacecode><![CDATA[$tpl->copy_template = dleConditions::construct()->realize($tpl->copy_template, $row);]]></replacecode>
</operation>
<operation action="after">
<searchcode><![CDATA[while ( $related = $db->get_row() ) {]]></searchcode>
<replacecode><![CDATA[$tpl2->copy_template = dleConditions::construct()->realize($tpl2->copy_template, $related);]]></replacecode>
</operation>
</file>
<file name="engine/modules/show.custom.php">
<operation action="after">
<searchcode><![CDATA[$news_found = true;]]></searchcode>
<replacecode><![CDATA[$tpl->copy_template = dleConditions::construct()->realize($tpl->copy_template, $row);]]></replacecode>
</operation>
</file>
<file name="engine/classes/templates.class.php">
<operation action="before">
<searchcode><![CDATA[class dle_template {]]></searchcode>
<replacecode><![CDATA[require_once ENGINE_DIR . '/lazydev/dle_conditions/dle_conditions.php';]]></replacecode>
</operation>
</file>
</dleplugin>