Wiki source code of قیمت چمن مصنوعی
Version 14.1 by KhaneChaman on 2022/10/10
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | /~*~*/ | ||
2 | /~*~*~/~/~*~*/ | ||
3 | /~*~*~/~/~*~*/ | ||
4 | \\~/~/ | ||
5 | require.config({"paths":{"jquery":"/xwiki/webjars/wiki%3Axwiki/jquery/2.2.4/jquery.min.js?r=1","bootstrap":"/xwiki/webjars/wiki%3Axwiki/bootstrap/3.4.1/js/bootstrap.min.js?r=1","xwiki-meta":"/xwiki/resources/js/xwiki/meta.min.js?cache-version=1645012345000","xwiki-entityReference":"/xwiki/resources/uicomponents/model/entityReference.min.js?cache-version=1645012346000","xwiki-events-bridge":"/xwiki/resources/js/xwiki/eventsBridge.min.js?cache-version=1645012345000","xwiki-locale-picker":"/xwiki/bin/skin/skins/flamingo/localePicker.min.js?cache-version=1645012346000","xwiki-l10n":"/xwiki/webjars/wiki%3Axwiki/xwiki-platform-localization-webjar/13.10.3/l10n.min.js?r=1","iscroll":"/xwiki/webjars/wiki%3Axwiki/iscroll/5.1.3/build/iscroll-lite.js?r=1","drawer":"/xwiki/webjars/wiki%3Axwiki/drawer/2.4.0/js/jquery.drawer.min.js?r=1","deferred":"/xwiki/resources/uicomponents/require/deferred.min.js?cache-version=1645012346000","xwiki-ckeditor-inline":"/xwiki/bin/jsx/CKEditor/InlineEditor?v=1.59&xwiki-version=13.10.3","xwiki-ckeditor":"/xwiki/bin/jsx/CKEditor/EditSheet?v=1.59&xwiki-version=13.10.3&fast-diff-version=&bs3typeahead-version=4.0.2"},"shim":{"bootstrap":["jquery"],"drawer":["jquery","iscroll"],"xwiki-entityReference":{"exports":"XWiki"}},"bundles":{},"config":{},"map":{"*":{"jquery":"jQueryNoConflict"},"jQueryNoConflict":{"jquery":"jquery"}}}); | ||
6 | define('jQueryNoConflict', ['jquery'], function ($) { | ||
7 | return $.noConflict(); | ||
8 | }); | ||
9 | if (window.Prototype && Prototype.BrowserFeatures.ElementExtensions) { | ||
10 | require(['jquery', 'bootstrap'], function ($) { | ||
11 | ~/~/ Fix incompatibilities between BootStrap and Prototype | ||
12 | var disablePrototypeJS = function (method, pluginsToDisable) { | ||
13 | var handler = function (event) { | ||
14 | event.target[method] = undefined; | ||
15 | setTimeout(function () { | ||
16 | delete event.target[method]; | ||
17 | }, 0); | ||
18 | }; | ||
19 | pluginsToDisable.each(function (plugin) { | ||
20 | $(window).on(method + '.bs.' + plugin, handler); | ||
21 | }); | ||
22 | }, | ||
23 | pluginsToDisable = ['collapse', 'dropdown', 'modal', 'tooltip', 'tab', 'popover']; | ||
24 | disablePrototypeJS('show', pluginsToDisable); | ||
25 | disablePrototypeJS('hide', pluginsToDisable); | ||
26 | }); | ||
27 | } | ||
28 | require(['jquery', 'drawer'], function($) { | ||
29 | $(document).ready(function() { | ||
30 | $('.drawer-main').closest('body').drawer(); | ||
31 | }); | ||
32 | }); | ||
33 | window.XWiki = window.XWiki || {}; | ||
34 | XWiki.webapppath = "xwiki/"; | ||
35 | XWiki.servletpath = "bin/"; | ||
36 | XWiki.contextPath = "/xwiki"; | ||
37 | XWiki.mainWiki = "xwiki"; | ||
38 | ~/~/ Deprecated: replaced by meta data in the HTML element | ||
39 | XWiki.currentWiki = "xwiki"; | ||
40 | XWiki.currentSpace = "Documentation.UserGuide.Features"; | ||
41 | XWiki.currentPage = "WebHome"; | ||
42 | XWiki.editor = "wysiwyg"; | ||
43 | XWiki.viewer = ""; | ||
44 | XWiki.contextaction = "edit"; | ||
45 | XWiki.skin = 'xwiki:XWikiOrgCode.Skin'; | ||
46 | XWiki.docisnew = false; | ||
47 | XWiki.docsyntax = "xwiki/2.1"; | ||
48 | XWiki.docvariant = ""; | ||
49 | XWiki.blacklistedSpaces = [ "Import","Panels","Scheduler","Stats","XAppClasses","XAppSheets","XAppTemplates","XWiki","WatchCode","WatchSheets","XApp","WatchAdmin","Watch","ColorThemes","AnnotationCode" ]; | ||
50 | XWiki.hasEdit = true; | ||
51 | XWiki.hasProgramming = false; | ||
52 | XWiki.hasBackupPackImportRights = false; | ||
53 | XWiki.hasRenderer = true; | ||
54 | window.docviewurl = "/xwiki/bin/view/Documentation/UserGuide/Features/"; | ||
55 | window.docediturl = "/xwiki/bin/edit/Documentation/UserGuide/Features/WebHome"; | ||
56 | window.docsaveurl = "/xwiki/bin/save/Documentation/UserGuide/Features/WebHome"; | ||
57 | window.docgeturl = "/xwiki/bin/get/Documentation/UserGuide/Features/WebHome"; | ||
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 | {{velocity filter="html"}} | ||
91 | #macro(displayFeatures $map) | ||
92 | (%class='row'%)((( | ||
93 | #foreach ($item in $map) | ||
94 | #if ($foreach.count % 2 == 1) | ||
95 | (%class="clearfix"%)((())) | ||
96 | #end | ||
97 | (%class="col-xs-12 col-sm-6"%)((( | ||
98 | (%class="row"%)((( | ||
99 | (%class='col-xs-2 col-sm-1 featureIcon'%)((( | ||
100 | [[image:$item['icon']]] | ||
101 | ))) | ||
102 | (%class='col-xs-10 col-sm-11 featureDescription'%)((( | ||
103 | $item['link']$nl | ||
104 | $item['description'] | ||
105 | ))) | ||
106 | ))) | ||
107 | ))) | ||
108 | #end | ||
109 | ))) | ||
110 | #end | ||
111 | {{/velocity}} | ||
112 | |||
113 | {{velocity}} | ||
114 | ## ============= | ||
115 | ## Base Features | ||
116 | ## ============= | ||
117 | #set ($discard=$xwiki.ssx.use('platform:Features.FeaturesExtract')) | ||
118 | #set ($basicMap = [ | ||
119 | {'icon' : 'Documentation.UserGuide.Features.FeaturesExtract@edit-select-all.png', 'link' : '[[Page editing>>platform:Features.PageEditing]]', 'description' : 'Use simple [[wiki syntax>>platform:Main.XWikiSyntax]] to format text, create tables, create links, display images, etc. Alternatively use a powerful [[WYSIWYG editor>>extensions:Extension.CKEditor Integration.WebHome]] to edit the content of pages.'}, | ||
120 | {'icon' : 'Documentation.UserGuide.Features.FeaturesExtract@document-open.png', 'link' : '[[History>>platform:Features.VersionControl]]', 'description' : 'Any change made in XWiki is saved under version control, meaning you can view any previous version of a page, compare different versions or rollback to any past version.'}, | ||
121 | {'icon' : 'Documentation.UserGuide.Features.FeaturesExtract@edit-find-replace.png', 'link' : '[[Navigation>>Documentation.UserGuide.Features.Navigate.WebHome]]', 'description' : 'Navigate to wiki pages easily (search, page index, breadcrumb, URL, jump to page, etc).'}, | ||
122 | {'icon' : 'Documentation.UserGuide.Features.FeaturesExtract@applications-internet.png', 'link' : '[[Content Organization>>platform:Features.ContentOrganization]]', 'description' : 'Organize your pages by grouping them together by domain.'}, | ||
123 | {'icon' : 'Documentation.UserGuide.Features.FeaturesExtract@edit-undo.png', 'link' : '[[Imports>>platform:Features.Imports]]', 'description' : 'Import content inside XWiki: Office, XWiki pages, Other wiki content, Excel, CSV, etc.'}, | ||
124 | {'icon' : 'Documentation.UserGuide.Features.FeaturesExtract@edit-redo.png', 'link' : '[[Exports>>platform:Features.Exports]]', 'description' : 'Export wiki pages to PDF, ODT, RTF, XML or HTML.'}, | ||
125 | {'icon' : 'Documentation.UserGuide.Features.FeaturesExtract@accessories-text-editor.png', 'link' : '[[Programming>>platform:Features.Programming]]', 'description' : "Use XWiki's programming API directly into your pages (Velocity or Groovy) to perform advanced formatting, layout or anything really."}, | ||
126 | {'icon' : 'Documentation.UserGuide.Features.FeaturesExtract@package-x-generic.png', 'link' : '[[Applications, Extensions & Flavors>>platform:Features.Applications]]', 'description' : 'Create or use add-ons to your wiki in the form of Applications, Extensions and Flavors.'}, | ||
127 | {'icon' : 'Documentation.UserGuide.Features.FeaturesExtract@view-refresh.png', 'link' : '[[RESTful>>platform:Features.XWikiRESTfulAPI]] remote API', 'description' : "Use XWiki's RESTful remote API to easily integrate XWiki with your application."}, | ||
128 | {'icon' : 'Documentation.UserGuide.Features.FeaturesExtract@network-server.png', 'link' : '[[Database Support>>platform:Features.DatabaseSupport]]', 'description' : "Pages are stored in a relational database. Use your favorite database."}, | ||
129 | {'icon' : 'Documentation.UserGuide.Features.FeaturesExtract@keyboard-shortcuts.png', 'link' : '[[Keyboard Shortcuts>>platform:Features.KeyboardShortcuts]]', 'description' : "Keyboard shortcuts help you save time since you never have to take your hands off the keyboard to use the mouse."}, | ||
130 | {'icon' : 'Documentation.UserGuide.Features.FeaturesExtract@edit-find-replace.png', 'link' : '[[Page Lifecycle>>platform:Features.DocumentLifecycle]]', 'description' : "Create, Edit, Show, Print, Delete, Copy, Rename, Comment and Send By Mail pages."}, | ||
131 | {'icon' : 'Documentation.UserGuide.Features.FeaturesExtract@mail-attachment.png', 'link' : '[[Attachments>>platform:Features.Attachments]]', 'description' : "Attach as many files as you want to any page. These files can then be referenced and used in page contents."}, | ||
132 | {'icon' : 'Documentation.UserGuide.Features.FeaturesExtract@system-lock-screen.png', 'link' : '[[Rights Management>>platform:Features.RightsManagement]]', 'description' : "Control who can view, edit or delete pages in a flexible manner. Apply rights to a page, children pages or an entire wiki."}, | ||
133 | {'icon' : 'Documentation.UserGuide.Features.FeaturesExtract@user-groups-management.png', 'link' : '[[Users and Groups Management>>platform:Features.UsersAndGroupsManagement]]', 'description' : "Add, delete and edit the users and groups in your wiki."}, | ||
134 | {'icon' : 'Documentation.UserGuide.Features.FeaturesExtract@black-rss.png', 'link' : '[[Notifications>>platform:Features.Notifications]]', 'description' : "You can stay up to date with changes made to your wiki using RSS feeds, the Watchlist application and more."}, | ||
135 | {'icon' : 'Documentation.UserGuide.Features.FeaturesExtract@preferences-desktop-theme.png', 'link' : '[[Skins>>platform:Features.Skins]]', 'description' : "Completely customize page templates, add menus, modify CSS files. You're in complete control of the look & feel."}, | ||
136 | {'icon' : 'Documentation.UserGuide.Features.FeaturesExtract@preferences-desktop-locale', 'link' : '[[Internationalization>>platform:Features.I18N]]', 'description' : "Support different translations of your pages and have your users be automatically directed to version in their own language."}, | ||
137 | {'icon' : 'Documentation.UserGuide.Features.FeaturesExtract@utilities-system-monitor.png', 'link' : '[[Scalability & Performance>>platform:Features.ScalabilityPerformance]]', 'description' : "XWiki supports virtual wikis and allows Farms of wikis to be set up easily."}, | ||
138 | {'icon' : 'Documentation.UserGuide.Features.FeaturesExtract@document-new.png', 'link' : '[[Document Templates & Forms>>platform:Features.Forms]]', 'description' : "Easily creates forms by simple visual editing, attach these forms to pages and query them."}, | ||
139 | {'icon' : 'Documentation.UserGuide.Features.FeaturesExtract@system-lock-screen.png', 'link' : '[[Authentication>>platform:Features.Authentication]]', 'description' : "Describes the various authentication mechanisms suported by XWiki (Form, Basic, LDAP, Custom, etc)."}, | ||
140 | {'icon' : 'Documentation.UserGuide.Features.FeaturesExtract@system-lock-screen.png', 'link' : '[[Distribution Wizard>>platform:Features.DistributionWizard]]', 'description' : "Allows installing and upgrading your XWiki instances automatically."} | ||
141 | ]) | ||
142 | |||
143 | = Base Features = | ||
144 | {{/velocity}} | ||
145 | |||
146 | {{velocity filter="html"}} | ||
147 | #displayFeatures($basicMap) | ||
148 | {{/velocity}} | ||
149 | |||
150 | {{cache id="flavorFeatures2" timeToLive="86400"}} | ||
151 | {{velocity}} | ||
152 | #set ($xwql = "from doc.object(ExtensionCode.ExtensionClass) as extension, doc.object(EXOExtensionCode.ExtensionClass) as exoextension where extension.type = 'xar' and extension.name not like '% Macro' and (exoextension.bundledWith like '%flavor%')") | ||
153 | #set ($extensions = $services.query.xwql($xwql).setWiki('extensions').execute()) | ||
154 | #set ($flavorMap = []) | ||
155 | #set ($wikiReference = $services.model.createWikiReference('extensions')) | ||
156 | #foreach ($extension in $extensions) | ||
157 | #set ($reference = $services.model.resolveDocument($extension, $wikiReference)) | ||
158 | #set ($extensionDoc = $xwiki.getDocument($reference)) | ||
159 | #set ($dummy = $extensionDoc.use("ExtensionCode.ExtensionClass")) | ||
160 | #set ($icon = $extensionDoc.getValue("icon")) | ||
161 | #if ("$!icon" == "") | ||
162 | #set ($icon = "icon:cog") | ||
163 | #end | ||
164 | ## Remove "Application" suffix if it's there for better integration with other features | ||
165 | #set ($name = $extensionDoc.plainTitle) | ||
166 | #if ($name.endsWith("Application")) | ||
167 | #set ($name = $name.substring(0, $mathtool.sub($name.length(), 11))) | ||
168 | #end | ||
169 | #set ($discard = $flavorMap.add({'icon' : "$icon", 'link' : "[[$name>>extensions:$extensionDoc.fullName]]", 'description' : "$extensionDoc.getValue('summary')"})) | ||
170 | #end | ||
171 | |||
172 | = XWiki Standard Features = | ||
173 | |||
174 | [[XWiki Standard>>http://extensions.xwiki.org/xwiki/bin/view/Extension/XWiki%20Standard%20Flavor/]] is the [[Flavor>>Documentation.UserGuide.Features.Applications||anchor="HFlavors"]] developed by the XWiki Dev Team. It contains the following features (in addition to the base features listed above), which are [[Extensions>>Documentation.UserGuide.Features.Applications||anchor="HExtensions"]] installed by default. | ||
175 | |||
176 | {{/velocity}} | ||
177 | |||
178 | {{velocity filter="html"}} | ||
179 | #displayFeatures($flavorMap) | ||
180 | {{/velocity}} | ||
181 | {{/cache}} | ||
182 | |||
183 | {{velocity}} | ||
184 | = Other Features = | ||
185 | |||
186 | Other features can be added to your wiki by [[installing>>extensions:Extension.Extension Manager Application]] extensions not listed above. Check the [[Extensions wiki>>extensions:Main.WebHome]] for a full list of available extensions. | ||
187 | {{/velocity}} |