-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.xml
453 lines (417 loc) · 34.1 KB
/
install.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
<?xml version="1.0" encoding="utf-8"?>
<module type="package" name="publishing">
<title>Publishing</title>
<summary>This package is intended to publish articles on your Subrion CMS powered website</summary>
<author>Intelliants LLC</author>
<contributor>Intelliants LLC</contributor>
<version>4.2.1</version>
<date>2018-06-13</date>
<compatibility>4.2</compatibility>
<url>articles</url>
<screenshots>
<screenshot type="preview" name="preview.jpg">Home page</screenshot>
<screenshot name="1.jpg">Frontend: Articles Home</screenshot>
<screenshot name="2.jpg">Frontend: View Article page</screenshot>
<screenshot name="3.jpg">Admin Panel: Index page</screenshot>
<screenshot name="4.jpg">Admin Panel: Manage Articles page</screenshot>
<screenshot name="5.jpg">Admin Panel: Add Article page</screenshot>
</screenshots>
<items>
<item pages="favorites,view_member,view_article,add_article,edit_article">article</item>
<item payable="0" table_name="articles_categories" pages="publishing_home">articlecat</item>
</items>
<actions>
<action name="articles" url="publishing/articles/" icon="list" pages="publishing_stats,articles:add,articles:edit"><![CDATA[]]></action>
<action name="add_article" url="publishing/articles/add/" icon="plus" pages="articles,articles:edit"><![CDATA[]]></action>
<action name="articlecats" url="publishing/categories/" icon="list" pages="publishing_stats,publish_categories:add,publish_categories:edit"><![CDATA[]]></action>
<action name="add_category" url="publishing/categories/add/" icon="folder-plus" pages="publish_categories,publish_categories:edit"><![CDATA[]]></action>
<action name="dashboard_articles_list" url="publishing/articles/" icon="edit" type="dashboard"><![CDATA[]]></action>
<action name="dashboard_articles_add" url="publishing/articles/add/" icon="newspaper" type="dashboard"><![CDATA[]]></action>
</actions>
<groups>
<group name="publishing">Publishing</group>
</groups>
<adminpages>
<page group="publishing" name="publishing_stats" url="publishing/" filename="statistics" menus="menu">Statistics</page>
<page group="publishing" menus="menu">Management</page>
<page group="publishing" name="articles" url="publishing/articles/" filename="articles" menus="menu">Articles</page>
<page group="publishing" name="publish_categories" url="publishing/categories/" filename="categories" menus="menu">Categories</page>
</adminpages>
<pages>
<page group="publishing" url="|PACKAGE|" name="publishing_home" suburl="articles/categories" menus="publishing,main" fields_item="article">Articles</page>
<page group="publishing" url="|PACKAGE|article/" name="view_article" filename="view" readonly="1" nofollow="1" fields_item="article">View Article</page>
<page group="publishing" url="|PACKAGE|add/" action="add" parent="publishing_home" name="add_article" filename="manage" menus="publishing,main" fields_item="article">Add Article</page>
<page group="publishing" url="|PACKAGE|edit/" action="edit" parent="publishing_home" name="edit_article" filename="manage" readonly="1" fields_item="article">Edit Article</page>
<page group="publishing" url="|PACKAGE|delete/" name="delete_article" filename="manage" action="delete" parent="view_article" service="1">Delete Article</page>
<page group="publishing" url="|PACKAGE|date/" name="date_articles" menus="publishing" fields_item="article">Articles Archive</page>
<page group="publishing" url="profile/articles/" name="my_articles" menus="account" nofollow="1" parent="profile" fields_item="article">My Articles</page>
<page group="publishing" url="|PACKAGE|latest/" name="latest_articles" menus="publishing" fields_item="article">Latest Articles</page>
<page group="publishing" url="|PACKAGE|popular/" name="popular_articles" menus="publishing" fields_item="article">Popular Articles</page>
<page group="publishing" url="|PACKAGE|rss/" name="rss_articles" service="1">RSS Articles</page>
</pages>
<permissions>
<object id="publishing_home" action="add" access="1">Add Article</object>
<object id="publishing_home" action="edit" access="1">Edit Article</object>
<object id="publishing_home" action="delete" access="1">Delete Article</object>
<object meta_object="admin_page" id="articles" access="1">View Articles</object>
<object meta_object="admin_page" id="articles" action="add">Add Article</object>
<object meta_object="admin_page" id="articles" action="edit">Edit Article</object>
<object meta_object="admin_page" id="articles" action="delete">Delete Article</object>
<object meta_object="admin_page" id="categories" access="1">View Categories</object>
<object meta_object="admin_page" id="categories" action="add">Add Category</object>
<object meta_object="admin_page" id="categories" action="edit">Edit Category</object>
<object meta_object="admin_page" id="categories" action="delete">Delete Category</object>
<permission type="group" type_id="4" access="0">my_articles</permission>
</permissions>
<configgroup name="publishing">Publishing</configgroup>
<config group="publishing" type="divider" name="articles">General</config>
<config group="publishing" type="select" name="articles_categories_selector" values="'Standard dropdown box','Handy javascript tree'"
description="Type of control to manage categories">Handy javascript tree</config>
<config group="publishing" type="radio" name="articles_add_guest" values="1,0" description="Allow to add article for guest">1</config>
<config group="publishing" type="radio" name="article_auto_approval" values="1,0" description="Article auto approval">1</config>
<config group="publishing" type="radio" name="allow_icons" values="1,0" description="Enable categories icons">0</config>
<config group="publishing" type="radio" name="art_view_category" values="1,0" description="Allow to display empty categories">1</config>
<config group="publishing" type="radio" name="articles_show_children" values="1,0" description="Show subcategories articles in the parents">1</config>
<config group="publishing" type="select" name="articles_categs_sort" values="'by title','by order'" description="Sort categories in dropdown box">by title</config>
<config group="publishing" type="radio" name="articles_allow_adsense_code" values="1,0" description="Adsense sharing">1</config>
<config group="publishing" type="divider" name="pub_div2">SEO</config>
<config group="publishing" type="radio" name="articles_compact_url" values="1,0" description="Exclude 'article/' from URL (slow)">1</config>
<config group="publishing" type="radio" name="articles_url_validation" values="1,0" description="Article URL validation">1</config>
<config group="publishing" type="radio" name="articles_source_link" values="1,0" description="Add "Article Source" link">0</config>
<config group="publishing" type="radio" name="auto_generate_keywords" values="1,0" description="Auto generate keywords">1</config>
<!-- <config group="publishing" type="divider" name="pub_div2">Restrictions</config> -->
<config group="publishing" name="articles_group_listings_limit" type="hidden" description="Posted listings limit">10</config>
<config group="publishing" type="divider" name="pub_div3">Limits</config>
<config group="publishing" type="select" values="1,2,3,4" name="categories_columns" description="Number of categories columns">2</config>
<config group="publishing" type="text" name="snip_len" description="Summary length">1000</config>
<config group="publishing" type="text" name="max_title" description="Max title length">100</config>
<config group="publishing" type="text" name="article_length" description="Article length (min,max)">50,50000</config>
<config group="publishing" type="text" name="art_perpage" description="Number of articles per page">10</config>
<config group="publishing" type="text" name="article_max_links" description="Max number of links per article">0</config>
<config group="publishing" type="divider" name="pub_div4">Blocks limits</config>
<config group="publishing" type="text" name="art_per_block" description="Number of articles per block">4</config>
<config group="publishing" type="text" name="art_per_block_new" description="Number of articles in New Articles block">6</config>
<config group="publishing" type="text" name="art_per_block_featured" description="Number of articles in Featured block">6</config>
<config group="publishing" type="text" name="art_per_block_sponsored" description="Number of articles in Sponsored block">6</config>
<config group="publishing" type="text" name="art_per_block_sticky" description="Number of articles in Sticky block">6</config>
<config group="publishing" type="text" name="art_per_block_popular" description="Number of articles in Popular block">6</config>
<config group="publishing" type="text" name="art_per_block_random" description="Number of articles in Random block">6</config>
<config group="publishing" type="text" name="art_per_block_featured_categories" description="Number of articles in Featured categories block">6</config>
<config group="publishing" type="text" name="article_top_categories" description="Categories number for Top Categories block">12</config>
<emails>
<email description="Publishing" divider="1"><![CDATA[]]></email>
<email name="article_notif"
description="New article alerts"
variables="title|Article title,siteUrl|site URL,siteName|Name of the site"
subject="New article">
<![CDATA[
<p>Greetings,</p>
<p>We have a new article "{$title}" at <a href="{$siteUrl}">{$siteName}</a>.</p>
<p>For more details check the url: <a href="{$view_url}">{$view_url}</a>.</p>
]]>
</email>
<email name="article_approval"
description="Article is active"
variables=""
subject="Your article was approved">
<![CDATA[
<p>Greetings,</p>
<p>Your article "{$title}" at <a href="{$siteUrl}">{$siteName}</a> went live.</p>
<p>In order to view your article please refer to the URL: <a href="{$view_url}">{$view_url}</a></p>
]]>
</email>
<email name="article_rejected"
description="Article is rejected"
variables=""
subject="Your article was rejected">
<![CDATA[
<p>Greetings,</p>
<p>Your article "{$title}" at <a href="{$siteUrl}">{$siteName}</a> has been rejected.</p>
<p>If you do not know the reason of the rejection or if you want to reactivate your article, please contact an administrator of the site.</p>
]]>
</email>
<email name="article_suspended"
description="Article is suspended"
variables=""
subject="Your article was suspended">
<![CDATA[
<p>Greetings,</p>
<p>Your article "{$title}" at <a href="{$siteUrl}">{$siteName}</a> has been suspended.</p>
<p>If you do not know the reason of the suspension or if you want to reactivate your article, please contact an administrator of the site.</p>
]]>
</email>
<email name="article_removed"
description="Article is removed"
variables=""
subject="Your article has been removed">
<![CDATA[
<p>Greetings,</p>
<p>Your article "{$title}" at <a href="{$siteUrl}">{$siteName}</a> has been removed.</p>
<p>If you do not know the reason of the deletion or if you want to recover your article, please contact an administrator of the site.</p>
]]>
</email>
</emails>
<tooltips>
<tooltip key="article_approval_body"><![CDATA[<b>{%TITLE%}</b> - Article title<br /><b>{%REASON%}</b> - Reason for approval<br /><b>{%EDIT_URL%}</b> - Url for edit article<br /><b>{%VIEW_URL%}</b> - Url for view article<br /><b>{%SITE_NAME%}</b> - Site name<br /><b>{%SITE_URL%}</b> - Site url (home page)]]></tooltip>
<tooltip key="article_rejected_body"><![CDATA[<b>{%TITLE%}</b> - Article title<br /><b>{%REASON%}</b> - Reason for rejeceted<b>{%EDIT_URL%}</b> - Url for edit article<br /><b>{%VIEW_URL%}</b> - Url for view article<br /><b>{%SITE_NAME%}</b> - Site name<br /><b>{%SITE_URL%}</b> - Site url (home page)]]></tooltip>
<tooltip key="article_suspended_body"><![CDATA[<b>{%TITLE%}</b> - Article title<br /><b>{%REASON%}</b> - Reason for suspended<b>{%EDIT_URL%}</b> - Url for edit article<br /><b>{%VIEW_URL%}</b> - Url for view article<br /><b>{%SITE_NAME%}</b> - Site name<br /><b>{%SITE_URL%}</b> - Site url (home page)]]></tooltip>
<tooltip key="articles_compact_url">Enable this option if you want to exclude 'article' in your View Article URL. Can only be used for small websites to avoid server overload.</tooltip>
<tooltip key="articles_source_link">A backlink to an article will be automatically generated and added the the bottom of each article.</tooltip>
<tooltip key="articles_similar_sort">Sorting order will be used to sort articles in the Similar Articles block.</tooltip>
<tooltip key="article_max_links">Number of links allowed to be placed per article. 0 - unlimited.</tooltip>
<tooltip key="articles_url_validation">Enable article URL validation. If an article has been requested using incorrect URL, the script will redirect a user to correct URL.</tooltip>
<tooltip key="auto_generate_keywords">Keywords will be automatically generated based on the article body</tooltip>
</tooltips>
<fields_groups>
<group item="article" name="general" title="General" tabview="1"><![CDATA[]]></group>
<group item="article" name="link" title="Link" tabview="1">This information is added to the end of each article. These fields are optional. If filled, these values would appear by default for your articles. Sure, you are able to specify custom values for each article.</group>
<group item="articlecat" name="general" title="General"><![CDATA[]]></group>
<group item="member" name="publishing" title="Publishing" tabview="1">Setup your AdSense ID that is used to share ads profits on the articles you submit.</group>
<group item="member" name="articles_link" title="Link" tabcontainer="publishing">This information is added to the end of each article. These fields are optional. If filled, these values would appear by default for your articles. Sure, you are able to specify custom values for each article.</group>
</fields_groups>
<fields>
<field item="article" name="title" type="text" group="general" length="200"
required="1" editable="0" link_to="1" multilingual="1"
required_checks="if (isset($_POST['title']) && is_array($_POST['title'])){ $maxLength = (int)iaCore::instance()->get('max_title'); foreach ($_POST['title'] as $iso => $value) { if (!empty($value)) { $l = utf8_strlen($value); if ($l < 3 || $l > $maxLength) $errors['title'] = iaLanguage::get('title_incorrect'); } }}"
page="edit_article,add_article,view_article,favorites,publishing_home,rss_articles">Title</field>
<field item="article" name="summary" group="general" type="textarea" editable="0"
page="publishing_home,view_member" multilingual="1">Summary</field>
<field item="article" name="body" group="general" type="textarea" editor="1" editable="0" required="1"
required_checks="if (isset($_POST['body']) && is_array($_POST['body'])){ list($min, $max) = explode(',', iaCore::instance()->get('article_length')); foreach ($_POST['body'] as $iso => $value) { $l = utf8_strlen(html_entity_decode(str_replace(array('\r','\n'), '*', iaSanitize::tags($value)))); if ($l < $min || $l > $max) $errors['body'] = iaLanguage::getf('body_length_error', array('min' => $min, 'max' => $max)); }}"
page="edit_article,add_article,view_article,rss_articles" multilingual="1">Body</field>
<field item="article" name="meta_description" group="general" type="textarea"
adminonly="1" editable="0" multilingual="1">Meta-Description</field>
<field item="article" name="meta_keywords" group="general" type="text" length="70" adminonly="1" editable="0" multilingual="1">Meta-Keywords</field>
<field item="article" name="image" group="general" type="image" width="1600" height="900" thumb_width="800" thumb_height="450"
editable="0" page="edit_article,add_article,favorites,publishing_home">Image</field>
<field item="article" name="gallery" group="general" type="pictures"
width="1600" height="900" thumb_width="800" thumb_height="450" prefix="articles_" length="5"
page="edit_article,add_article,view_article">Pictures</field>
<field item="article" name="url" type="text" group="link" length="255"
actions="if (!empty($_POST['url']) && $_POST['url'] !== 'http://' && !iaValidate::isUrl($_POST['url'])) { $error = true; $messages[] = iaLanguage::get('incorrect_article_url'); }"
page="edit_article,add_article,view_article,favorites,publishing_home">URL</field>
<field item="article" name="url_description" type="textarea" group="link" length="1024"
page="edit_article,add_article,view_article,favorites,publishing_home">URL Description</field>
<field item="articlecat" name="title" group="general" type="text" length="70" required="1"
searchable="1" page="publishing_home" multilingual="1">Title</field>
<field item="articlecat" name="description" group="general" type="textarea" editor="1"
searchable="1" page="publishing_home" multilingual="1">Description</field>
<field item="articlecat" name="meta_description" group="general" type="textarea"
adminonly="1" multilingual="1">Meta-Description</field>
<field item="articlecat" name="meta_keywords" group="general" type="text"
length="100" adminonly="1" multilingual="1">Meta-Keywords</field>
<field item="articlecat" name="icon" type="iconpicker" group="general" default="fa-folder"
adminonly="1" page="publishing_home">Icon</field>
<field item="member" name="adsense_id" group="publishing" type="text" length="23" page="profile">Google AdSense id</field>
<field item="member" name="articles_url" group="link" type="text" length="255" page="profile"
actions="if (!empty($_POST['articles_url']) && $_POST['articles_url'] !== 'http://' && !iaValidate::isUrl($_POST['articles_url'])) { $error = true; $messages[] = iaLanguage::get('error_url');}">Article URL</field>
<field item="member" name="articles_url_description" group="articles_link" type="textarea" length="1024" page="profile">Article URL Description</field>
</fields>
<phrases>
<phrase category="admin" key="add_category">Add Category</phrase>
<phrase category="admin" key="all">All</phrase>
<phrase category="admin" key="article_added">Article added.</phrase>
<phrase category="admin" key="article_category_added">Article category added.</phrase>
<phrase category="admin" key="are_you_sure_to_delete_selected_articlecat">Are you sure you wish to delete this article category? All subcategories will be deleted as well.</phrase>
<phrase category="admin" key="are_you_sure_to_delete_selected_articlecats">Are you sure you wish to delete these article categories? All subcategories will be deleted as well.</phrase>
<phrase category="admin" key="are_you_sure_to_delete_selected_article">Are you sure you wish to delete this article?</phrase>
<phrase category="admin" key="are_you_sure_to_delete_selected_articles">Are you sure you wish to delete these articles?</phrase>
<phrase category="admin" key="categories_repaired">Categories repaired.</phrase>
<phrase category="admin" key="dashboard_articles_list">Articles</phrase>
<phrase category="admin" key="dashboard_articles_add">Add article</phrase>
<phrase category="admin" key="edit_category">Edit Category</phrase>
<phrase category="admin" key="level">Level</phrase>
<phrase category="admin" key="num_articles">Count</phrase>
<phrase category="admin" key="owner">Owner</phrase>
<phrase category="admin" key="parent_category">Parent category</phrase>
<phrase category="admin" key="publishing_package">"Publishing" package</phrase>
<phrase category="admin" key="rejected">Rejected</phrase>
<phrase category="admin" key="rebuild_articlecats_paths">Rebuild article categories paths</phrase>
<phrase category="admin" key="rebuild_article_paths">Rebuild article paths</phrase>
<phrase category="admin" key="repair_articlecats">Repair article categories</phrase>
<phrase category="admin" key="repair_articlecats_num">Recount article categories</phrase>
<phrase category="admin" key="specified_category_title_exists">Category with the same title already exists.</phrase>
<phrase category="common" key="add_article">Add Article</phrase>
<phrase category="common" key="articles">Articles</phrase>
<phrase category="common" key="article">Article</phrase>
<phrase category="common" key="articles_category_locked">Category locked</phrase>
<phrase category="common" key="articlecats">Article Categories</phrase>
<phrase category="common" key="body_length_error">Body should be :min-:max characters.</phrase>
<phrase category="common" key="categories">Categories</phrase>
<phrase category="common" key="edit_article">Edit Article</phrase>
<phrase category="common" key="field_title_annotation">A short description of your article</phrase>
<phrase category="common" key="field_title">Title</phrase>
<phrase category="common" key="field_category_id">Category</phrase>
<phrase category="common" key="field_summary">Summary</phrase>
<phrase category="common" key="field_member_id">Member</phrase>
<phrase category="common" key="hidden">Hidden</phrase>
<phrase category="common" key="incorrect_article_url">URL is incorrect. Please input correct URL or leave it empty.</phrase>
<phrase category="common" key="priority">Priority</phrase>
<phrase category="common" key="publishing">Publishing</phrase>
<phrase category="common" key="rss">RSS</phrase>
<phrase category="frontend" key="art_added">Article has been posted.</phrase>
<phrase category="frontend" key="art_approval">Article has been added and will be waiting for consideration.</phrase>
<phrase category="frontend" key="art_deleted">Article has been successfully removed.</phrase>
<phrase category="frontend" key="article_approval">Article is waiting for consideration.</phrase>
<phrase category="frontend" key="article_draft">This article has been saved as a draft and it is not visible to other members.</phrase>
<phrase category="frontend" key="article_rejected">Your article is rejected</phrase>
<phrase category="frontend" key="article_suspended">Your article is suspended</phrase>
<phrase category="frontend" key="article_add_no_auth">Guests are not allowed to post articles. Only registered members can do that. Please <a href=":base_urllogin/">sign in</a> or <a href=":base_urlregistration/">register</a> in order to continue.</phrase>
<phrase category="frontend" key="article_source_url"><p><strong>Article source:</strong> <a href=":url">:url</a></p></phrase>
<phrase category="frontend" key="author_activity">Author Activity</phrase>
<phrase category="frontend" key="date_desc">Date (Newer First)</phrase>
<phrase category="frontend" key="date_asc">Date (Older First)</phrase>
<phrase category="frontend" key="default-articles-data">Default Articles Data</phrase>
<phrase category="frontend" key="delete_article">Delete Article</phrase>
<phrase category="frontend" key="do_you_really_want_to_delete_article">Do you really want to remove this article?</phrase>
<phrase category="frontend" key="error_links_limit_reached">You have reached the allowed number of links: :found (:allowed allowed)</phrase>
<phrase category="frontend" key="field_article_url">URL</phrase>
<phrase category="frontend" key="field_article_url_description">URL Description</phrase>
<phrase category="frontend" key="title_desc">Title (Descending)</phrase>
<phrase category="frontend" key="title_asc">Title (Ascending)</phrase>
<phrase category="frontend" key="views_desc">Views (Most viewed)</phrase>
<phrase category="frontend" key="views_asc">Views (Least viewed)</phrase>
<phrase category="frontend" key="new_articles">New Articles</phrase>
<phrase category="frontend" key="previous_article">Previous Article</phrase>
<phrase category="frontend" key="next_article">Next Article</phrase>
<phrase category="frontend" key="no_articles">There are no articles yet.</phrase>
<phrase category="frontend" key="no_articles2"><![CDATA[No articles added. Be the first who adds an article here. <a href=":url" rel="nofollow">Click here</a> to post an article.]]></phrase>
<phrase category="frontend" key="publishing_promo">Subrion CMS is a powerful platform for building publishing communities. It can be used as a blog, article directory, or review site. Lots of features and intuitive interface makes content management easy and cheerful.</phrase>
<phrase category="frontend" key="articles_by_date">Articles by :day :month, :year</phrase>
<phrase category="frontend" key="rss_feed_of_author">RSS feed of the author's articles</phrase>
<phrase category="frontend" key="no_articles_in_archive">No articles in the archive.</phrase>
<phrase category="frontend" key="these_fields_are_optional">These fields are optional. If filled, these values would appear by default for your articles. Sure, you are able to specify custom values for each article.</phrase>
<phrase category="frontend" key="redirect">Redirect</phrase>
<phrase category="frontend" key="save_as_draft">Save as Draft</phrase>
<phrase category="frontend" key="valid_google_adsense_format">Valid format is ca-pub-XXXX... (16 chars length number). Otherwise will be ignored.</phrase>
<phrase category="frontend" key="continue_reading"><![CDATA[Continue reading →]]></phrase>
<phrase category="frontend" key="subcategory">Subcategory</phrase>
<phrase category="frontend" key="field_category_id_tooltip">Category</phrase>
</phrases>
<blocks>
<block name="articles_archive" title="Articles Archive" position="right" type="smarty" header="1" collapsible="1" filename="block.articles-archive.tpl"><![CDATA[]]></block>
<block name="new_articles" title="New Articles" position="bottom" type="smarty" header="0" sticky="0" pages="index,publishing_home" filename="block.new-articles.tpl"><![CDATA[]]></block>
<block name="featured_articles" title="Featured Articles" position="right" type="smarty" header="1" sticky="1" collapsible="1" classname="box--featured" filename="block.featured-articles.tpl"><![CDATA[]]></block>
<block name="sponsored_articles" title="Sponsored Articles" position="right" type="smarty" header="1" sticky="1" collapsible="1" classname="box--sponsored" filename="block.sponsored-articles.tpl"><![CDATA[]]></block>
<block name="random_articles" title="Random Articles" position="right" type="smarty" header="1" sticky="1" collapsible="1" filename="block.random-articles.tpl"><![CDATA[]]></block>
<block name="latest_articles" order="2" title="Latest Articles" position="left" type="smarty" header="1" sticky="1" collapsible="1" filename="block.latest-articles.tpl"><![CDATA[]]></block>
<block name="popular_articles" order="3" title="Popular Articles" position="left" type="smarty" header="1" sticky="1" collapsible="1" filename="block.popular-articles.tpl"><![CDATA[]]></block>
<block name="sticky_articles" title="Sticky Articles" position="left" type="smarty" header="1" sticky="0" pages="index" collapsible="1" filename="block.sticky-articles.tpl"><![CDATA[]]></block>
<block name="top_categories" order="1" title="Top Categories" position="left" type="smarty" header="1" sticky="1" collapsible="1" pages="publishing_home" filename="block.top-categories.tpl"><![CDATA[]]></block>
<block name="priority_categories" order="2" title="Featured Categories" position="bottom" type="smarty" header="1" sticky="0" collapsible="1" pages="index" filename="block.priority-categories.tpl"><![CDATA[]]></block>
<block name="author_info" title="Author" position="bottom" type="smarty" sticky="0" header="1" pages="view_article" collapsible="1" order="-1" filename="block.author.tpl"><![CDATA[]]></block>
<block name="related_articles" title="Related Articles" position="bottom" type="smarty" sticky="0" header="1" pages="view_article" collapsible="1" filename="block.related-articles.tpl" status="inactive"><![CDATA[]]></block>
<block name="most_viewed_articles" title="Most Viewed Articles" position="bottom" type="smarty" sticky="0" header="1" pages="view_article" collapsible="1" filename="block.most-viewed-articles.tpl" status="inactive"><![CDATA[]]></block>
<block name="most_recent_articles" title="Most Recent Articles" position="bottom" type="smarty" sticky="0" header="1" pages="view_article" collapsible="1" filename="block.most-recent-articles.tpl"><![CDATA[]]></block>
<block name="author_articles" title="More Author Articles" position="bottom" type="smarty" sticky="0" header="1" pages="view_article" collapsible="1" filename="block.author-articles.tpl" status="inactive"><![CDATA[]]></block>
</blocks>
<hooks>
<hook name="phpCoreUrlRewrite" page_type="front" filename="hook.url-rewrite.php"><![CDATA[]]></hook>
<hook name="phpCoreBeforePageDisplay" page_type="front" filename="hook.blocks-load.php"><![CDATA[]]></hook>
<hook name="smartyFrontFiltersBeforeFields" type="smarty" page_type="front" filename="search.filters.tpl"><![CDATA[]]></hook>
<hook name="populateCommonStatisticsBlock" page_type="front">
<![CDATA[
$condition = iaDb::printf("`status` = ':status'", array('status' => iaCore::STATUS_ACTIVE));
$statistics['publishing'] = [
[
'title' => iaLanguage::get('articles'),
'value' => number_format((int)$iaDb->one(iaDb::STMT_COUNT_ROWS, $condition, 'articles'))
], [
'title' => iaLanguage::get('categories'),
'value' => number_format((int)$iaDb->one(iaDb::STMT_COUNT_ROWS, $condition . ' AND `parent_id` != 0', 'articles_categories'))
]
];
]]>
</hook>
<hook name="smartyFrontAfterHeadSection" page_type="front" type="smarty">
<![CDATA[
{if defined('IA_CURRENT_MODULE') && 'publishing' == $smarty.const.IA_CURRENT_MODULE}
<link rel="alternate" type="application/rss+xml" title="RSS" href="{$smarty.const.IA_MODULE_URL}rss/{if isset($rss_feed)}{$rss_feed}{else}latest.xml{/if}">
{/if}
]]>
</hook>
<hook name="adminDatabaseConsistency" type="smarty" page_type="admin" filename="hook.db-consistency.tpl"><![CDATA[]]></hook>
<hook name="phpAdminDatabaseConsistencyType" page_type="admin" pages="database">
<![CDATA[
if ('repair_article_categories' == $type) {
$iaCore->factoryItem('articlecat')->rebuild();
$iaView->setMessages(iaLanguage::get('categories_repaired'), iaView::SUCCESS);
}
]]>
</hook>
</hooks>
<install>
<sql>
<![CDATA[
CREATE TABLE `{prefix}articles` (
`id` mediumint(8) unsigned NOT NULL auto_increment,
`member_id` int(11) unsigned NOT NULL,
`title_alias` tinytext NOT NULL,
`category_id` mediumint(8) unsigned NOT NULL,
`status` enum('approval','active','rejected','hidden','suspended','draft','pending') NOT NULL default 'approval',
`date_added` datetime NOT NULL,
`date_modified` datetime NOT NULL,
`expire_date` date NOT NULL,
`ip` bigint(12) NOT NULL,
`session` varchar(32) NOT NULL,
`views_num` mediumint(7) unsigned NOT NULL,
`sticky` tinyint(1) unsigned NOT NULL,
`nofollow` tinyint(1) unsigned NOT NULL,
`featured` tinyint(1) unsigned NOT NULL,
`featured_start` datetime NULL,
`featured_end` datetime NULL,
`sponsored` tinyint(1) unsigned NOT NULL,
`sponsored_start` datetime NULL,
`sponsored_end` datetime NULL,
`sponsored_plan_id` smallint(5) unsigned NOT NULL,
PRIMARY KEY (`id`),
KEY `STATUS` (`status`),
KEY `DATE` (`date_added`),
KEY `VIEWS` (`views_num`)
) {mysql_version};
]]>
</sql>
<sql>
<![CDATA[
CREATE TABLE `{prefix}articles_categories` (
`id` mediumint(8) unsigned NOT NULL auto_increment,
`title_alias` tinytext NOT NULL,
`status` enum('inactive', 'active') NOT NULL default 'active',
`locked` tinyint(1) unsigned NOT NULL,
`nofollow` tinyint(1) unsigned NOT NULL,
`priority` tinyint(1) unsigned NOT NULL,
`date_added` datetime NOT NULL,
`order` mediumint(8) NOT NULL,
PRIMARY KEY (`id`)
) {mysql_version};
]]>
</sql>
<sql stage="end">
<![CDATA[
ALTER TABLE `{prefix}articles` ADD FULLTEXT (`title_{lang}`, `body_{lang}`);
]]>
</sql>
<sql stage="end">
<![CDATA[
ALTER TABLE `{prefix}members` ADD `articles_url` tinytext NOT NULL, ADD `articles_url_description` text NOT NULL;
]]>
</sql>
<code>
<![CDATA[
$iaCore->factoryModule('articlecat', 'publishing', iaCore::ADMIN)->setupDbStructure();
]]>
</code>
</install>
<uninstall>
<sql>
<![CDATA[
DROP TABLE IF EXISTS `{prefix}articles`, `{prefix}articles_categories`, `{prefix}articles_categories_flat`
]]>
</sql>
<sql>
<![CDATA[
ALTER TABLE `{prefix}members` DROP `articles_url`, `articles_url_description`
]]>
</sql>
</uninstall>
</module>