فهرست منبع

Ticket #2139 - Integration with Polls and Shopify.

AntonLV 7 سال پیش
والد
کامیت
bb3752259e

+ 1 - 0
modules/boonex/polls/classes/BxPollsConfig.php

@@ -85,6 +85,7 @@ class BxPollsConfig extends BxBaseModTextConfig
             'OBJECT_VIEWS' => 'bx_polls',
             'OBJECT_VOTES' => 'bx_polls',
             'OBJECT_VOTES_SUBENTRIES' => 'bx_polls_subentries',
+            'OBJECT_REACTIONS' => 'bx_polls_reactions',
             'OBJECT_SCORES' => 'bx_polls',
             'OBJECT_FAVORITES' => 'bx_polls',
             'OBJECT_FEATURED' => 'bx_polls',

+ 2 - 1
modules/boonex/polls/install/sql/enable.sql

@@ -201,7 +201,8 @@ INSERT INTO `sys_menu_items`(`set_name`, `module`, `name`, `title_system`, `titl
 ('bx_polls_view_actions', 'bx_polls', 'delete-poll', '_bx_polls_menu_item_title_system_delete_entry', '', '', '', '', '', '', '', 0, 2147483647, 1, 0, 20),
 ('bx_polls_view_actions', 'bx_polls', 'comment', '_sys_menu_item_title_system_va_comment', '', '', '', '', '', '', '', 0, 2147483647, 0, 0, 200),
 ('bx_polls_view_actions', 'bx_polls', 'view', '_sys_menu_item_title_system_va_view', '', '', '', '', '', '', '', 0, 2147483647, 1, 0, 210),
-('bx_polls_view_actions', 'bx_polls', 'vote', '_sys_menu_item_title_system_va_vote', '', '', '', '', '', '', '', 0, 2147483647, 1, 0, 220),
+('bx_polls_view_actions', 'bx_polls', 'vote', '_sys_menu_item_title_system_va_vote', '', '', '', '', '', '', '', 0, 2147483647, 0, 0, 220),
+('bx_polls_view_actions', 'bx_polls', 'reaction', '_sys_menu_item_title_system_va_reaction', '', '', '', '', '', '', '', 0, 2147483647, 1, 0, 225),
 ('bx_polls_view_actions', 'bx_polls', 'score', '_sys_menu_item_title_system_va_score', '', '', '', '', '', '', '', 0, 2147483647, 1, 0, 230),
 ('bx_polls_view_actions', 'bx_polls', 'favorite', '_sys_menu_item_title_system_va_favorite', '', '', '', '', '', '', '', 0, 2147483647, 1, 0, 240),
 ('bx_polls_view_actions', 'bx_polls', 'feature', '_sys_menu_item_title_system_va_feature', '', '', '', '', '', '', '', 0, 2147483647, 1, 0, 250),

+ 25 - 1
modules/boonex/polls/install/sql/install.sql

@@ -13,6 +13,8 @@ CREATE TABLE IF NOT EXISTS `bx_polls_entries` (
   `views` int(11) NOT NULL default '0',
   `rate` float NOT NULL default '0',
   `votes` int(11) NOT NULL default '0',
+  `rrate` float NOT NULL default '0',
+  `rvotes` int(11) NOT NULL default '0',
   `score` int(11) NOT NULL default '0',
   `sc_up` int(11) NOT NULL default '0',
   `sc_down` int(11) NOT NULL default '0',
@@ -129,6 +131,26 @@ CREATE TABLE IF NOT EXISTS `bx_polls_votes_subentries_track` (
   KEY `vote` (`object_id`, `author_nip`)
 );
 
+CREATE TABLE IF NOT EXISTS `bx_polls_reactions` (
+  `object_id` int(11) NOT NULL default '0',
+  `reaction` varchar(32) NOT NULL default '',
+  `count` int(11) NOT NULL default '0',
+  `sum` int(11) NOT NULL default '0',
+  UNIQUE KEY `reaction` (`object_id`, `reaction`)
+);
+
+CREATE TABLE IF NOT EXISTS `bx_polls_reactions_track` (
+  `id` int(11) NOT NULL AUTO_INCREMENT,
+  `object_id` int(11) NOT NULL default '0',
+  `author_id` int(11) NOT NULL default '0',
+  `author_nip` int(11) unsigned NOT NULL default '0',
+  `reaction` varchar(32) NOT NULL default '',
+  `value` tinyint(4) NOT NULL default '0',
+  `date` int(11) NOT NULL default '0',
+  PRIMARY KEY (`id`),
+  KEY `vote` (`object_id`, `author_nip`)
+);
+
 -- TABLE: views
 CREATE TABLE `bx_polls_views_track` (
   `object_id` int(11) NOT NULL default '0',
@@ -321,7 +343,9 @@ INSERT INTO `sys_objects_cmts` (`Name`, `Module`, `Table`, `CharsPostMin`, `Char
 -- VOTES
 INSERT INTO `sys_objects_vote` (`Name`, `TableMain`, `TableTrack`, `PostTimeout`, `MinValue`, `MaxValue`, `IsUndo`, `IsOn`, `TriggerTable`, `TriggerFieldId`, `TriggerFieldAuthor`, `TriggerFieldRate`, `TriggerFieldRateCount`, `ClassName`, `ClassFile`) VALUES 
 ('bx_polls', 'bx_polls_votes', 'bx_polls_votes_track', '604800', '1', '1', '0', '1', 'bx_polls_entries', 'id', 'author', 'rate', 'votes', '', ''),
-('bx_polls_subentries', 'bx_polls_votes_subentries', 'bx_polls_votes_subentries_track', '604800', '1', '1', '0', '1', 'bx_polls_subentries', 'id', 'author', 'rate', 'votes', 'BxPollsVoteSubentries', 'modules/boonex/polls/classes/BxPollsVoteSubentries.php');
+('bx_polls_subentries', 'bx_polls_votes_subentries', 'bx_polls_votes_subentries_track', '604800', '1', '1', '0', '1', 'bx_polls_subentries', 'id', 'author', 'rate', 'votes', 'BxPollsVoteSubentries', 'modules/boonex/polls/classes/BxPollsVoteSubentries.php'),
+
+('bx_polls_reactions', 'bx_polls_reactions', 'bx_polls_reactions_track', '604800', '1', '1', '1', '1', 'bx_polls_entries', 'id', 'author', 'rrate', 'rvotes', 'BxTemplVoteReactions', '');
 
 
 -- SCORES

+ 2 - 2
modules/boonex/polls/install/sql/uninstall.sql

@@ -1,6 +1,6 @@
 
 -- TABLES
-DROP TABLE IF EXISTS `bx_polls_entries`, `bx_polls_subentries`, `bx_polls_files`, `bx_polls_photos_resized`, `bx_polls_cmts`, `bx_polls_votes`, `bx_polls_votes_track`, `bx_polls_votes_subentries`, `bx_polls_votes_subentries_track`, `bx_polls_views_track`, `bx_polls_meta_keywords`, `bx_polls_meta_locations`, `bx_polls_meta_mentions`, `bx_polls_reports`, `bx_polls_reports_track`, `bx_polls_favorites_track`, `bx_polls_scores`, `bx_polls_scores_track`;
+DROP TABLE IF EXISTS `bx_polls_entries`, `bx_polls_subentries`, `bx_polls_files`, `bx_polls_photos_resized`, `bx_polls_cmts`, `bx_polls_votes`, `bx_polls_votes_track`, `bx_polls_votes_subentries`, `bx_polls_votes_subentries_track`, `bx_polls_reactions`, `bx_polls_reactions_track`, `bx_polls_views_track`, `bx_polls_meta_keywords`, `bx_polls_meta_locations`, `bx_polls_meta_mentions`, `bx_polls_reports`, `bx_polls_reports_track`, `bx_polls_favorites_track`, `bx_polls_scores`, `bx_polls_scores_track`;
 
 
 -- STORAGES & TRANSCODERS
@@ -29,7 +29,7 @@ DELETE FROM `sys_objects_cmts` WHERE `Name` = 'bx_polls';
 
 
 -- VOTES
-DELETE FROM `sys_objects_vote` WHERE `Name` IN ('bx_polls', 'bx_polls_subentries');
+DELETE FROM `sys_objects_vote` WHERE `Name` IN ('bx_polls', 'bx_polls_subentries', 'bx_polls_reactions');
 
 
 -- SCORES

+ 14 - 10
modules/boonex/polls/template/entry-text-subentries.html

@@ -1,14 +1,18 @@
 <div class="bx-polls-entity-actions">__menu__</div>
 <div class="bx-polls-entity-entity-content bx-content-padding-block">
-    <div class="bx-pull-combined-entity-content bx-base-text-entity-content bx-def-constraint-list bx-def-constraint-pre bx-def-constraint-object bx-def-constraint-iframe bx-def-constraint-img">
-        __entry_text__
-    </div>
-    <bx_if:show_image>
-        <div class="bx-base-text-entity-image bx-def-margin-top bx-def-font-align-center">
-            <img class="bx-def-border-radius-block" src="__entry_image__" />
+    <div class="bx-content-description-before">__content_description_before__</div>
+    <div class="bx-content-description">
+        <div class="bx-pull-combined-entity-content bx-base-text-entity-content bx-def-constraint-list bx-def-constraint-pre bx-def-constraint-object bx-def-constraint-iframe bx-def-constraint-img">
+            __entry_text__
         </div>
-    </bx_if:show_image>
-    <bx_if:show_subentries>
-        <div class="bx-poll-entity-subentries bx-def-margin-top">__entry_subentries__</div>
-    </bx_if:show_subentries>
+        <bx_if:show_image>
+            <div class="bx-base-text-entity-image bx-def-margin-top bx-def-font-align-center">
+                <img class="bx-def-border-radius-block" src="__entry_image__" />
+            </div>
+        </bx_if:show_image>
+        <bx_if:show_subentries>
+            <div class="bx-poll-entity-subentries bx-def-margin-top">__entry_subentries__</div>
+        </bx_if:show_subentries>
+    </div>
+    <div class="bx-content-description-after">__content_description_after__</div>
 </div>

+ 19 - 18
modules/boonex/shopify/classes/BxShopifyConfig.php

@@ -37,18 +37,18 @@ class BxShopifyConfig extends BxBaseModTextConfig
             'FIELD_AUTHOR' => 'author',
             'FIELD_ADDED' => 'added',
             'FIELD_CHANGED' => 'changed',
-        	'FIELD_CODE' => 'code',
+            'FIELD_CODE' => 'code',
             'FIELD_TITLE' => 'title',
             'FIELD_TEXT' => 'text',
             'FIELD_TEXT_ID' => 'shopify-entry-text',
-        	'FIELD_CATEGORY' => 'cat',
+            'FIELD_CATEGORY' => 'cat',
             'FIELD_ALLOW_VIEW_TO' => 'allow_view_to',
             'FIELD_PHOTO' => '',
             'FIELD_THUMB' => '',
-        	'FIELD_VIEWS' => 'views',
+            'FIELD_VIEWS' => 'views',
             'FIELD_COMMENTS' => 'comments',
-	        'FIELD_STATUS' => 'status',
-        	'FIELD_STATUS_ADMIN' => 'status_admin',
+            'FIELD_STATUS' => 'status',
+            'FIELD_STATUS_ADMIN' => 'status_admin',
             'FIELD_LOCATION_PREFIX' => 'location',
             'FIELDS_WITH_KEYWORDS' => 'auto', // can be 'auto', array of fields or comma separated string of field names, works only when OBJECT_METATAGS is specified
 
@@ -57,44 +57,45 @@ class BxShopifyConfig extends BxBaseModTextConfig
             'URI_AUTHOR_ENTRIES' => 'shopify-author',
             'URI_ENTRIES_BY_CONTEXT' => 'shopify-context',
             'URI_ADD_ENTRY' => 'create-shopify-entry',
-        	'URI_EDIT_ENTRY' => 'edit-shopify-entry',
-        	'URI_MANAGE_COMMON' => 'shopify-manage',
+            'URI_EDIT_ENTRY' => 'edit-shopify-entry',
+            'URI_MANAGE_COMMON' => 'shopify-manage',
 
             'URL_HOME' => 'page.php?i=shopify-home',
             'URL_POPULAR' => 'page.php?i=shopify-popular',
             'URL_UPDATED' => 'page.php?i=shopify-updated',
-        	'URL_MANAGE_COMMON' => 'page.php?i=shopify-manage',
-        	'URL_MANAGE_ADMINISTRATION' => 'page.php?i=shopify-administration',
-        	'URL_SETTINGS' => 'page.php?i=shopify-settings',
+            'URL_MANAGE_COMMON' => 'page.php?i=shopify-manage',
+            'URL_MANAGE_ADMINISTRATION' => 'page.php?i=shopify-administration',
+            'URL_SETTINGS' => 'page.php?i=shopify-settings',
 
             // some params
             'PARAM_CHARS_SUMMARY' => 'bx_shopify_summary_chars',
             'PARAM_CHARS_SUMMARY_PLAIN' => 'bx_shopify_plain_summary_chars',
             'PARAM_NUM_RSS' => 'bx_shopify_rss_num',
-        	'PARAM_SEARCHABLE_FIELDS' => 'bx_shopify_searchable_fields',
+            'PARAM_SEARCHABLE_FIELDS' => 'bx_shopify_searchable_fields',
 
             // objects
             'OBJECT_STORAGE' => 'bx_shopify_files',
             'OBJECT_IMAGES_TRANSCODER_PREVIEW' => 'bx_shopify_preview',
             'OBJECT_IMAGES_TRANSCODER_GALLERY' => 'bx_shopify_gallery',
             'OBJECT_VIDEOS_TRANSCODERS' => array(),
-        	'OBJECT_REPORTS' => 'bx_shopify',
+            'OBJECT_REPORTS' => 'bx_shopify',
             'OBJECT_VIEWS' => 'bx_shopify',
             'OBJECT_VOTES' => 'bx_shopify',
-        	'OBJECT_SCORES' => 'bx_shopify',
-        	'OBJECT_FAVORITES' => 'bx_shopify',
+            'OBJECT_REACTIONS' => 'bx_shopify_reactions',
+            'OBJECT_SCORES' => 'bx_shopify',
+            'OBJECT_FAVORITES' => 'bx_shopify',
             'OBJECT_FEATURED' => 'bx_shopify',
             'OBJECT_METATAGS' => 'bx_shopify',
             'OBJECT_COMMENTS' => 'bx_shopify',
-        	'OBJECT_CATEGORY' => 'bx_shopify_cats',
+            'OBJECT_CATEGORY' => 'bx_shopify_cats',
             'OBJECT_PRIVACY_VIEW' => 'bx_shopify_allow_view_to',
             'OBJECT_FORM_ENTRY' => 'bx_shopify',
             'OBJECT_FORM_ENTRY_DISPLAY_VIEW' => 'bx_shopify_entry_view',
             'OBJECT_FORM_ENTRY_DISPLAY_ADD' => 'bx_shopify_entry_add',
             'OBJECT_FORM_ENTRY_DISPLAY_EDIT' => 'bx_shopify_entry_edit',
             'OBJECT_FORM_ENTRY_DISPLAY_DELETE' => 'bx_shopify_entry_delete',
-        	'OBJECT_FORM_SETTINGS' => 'bx_shopify_settings',
-        	'OBJECT_FORM_SETTINGS_DISPLAY_EDIT' => 'bx_shopify_settings_edit',
+            'OBJECT_FORM_SETTINGS' => 'bx_shopify_settings',
+            'OBJECT_FORM_SETTINGS_DISPLAY_EDIT' => 'bx_shopify_settings_edit',
             'OBJECT_MENU_ACTIONS_VIEW_ENTRY' => 'bx_shopify_view', // actions menu on view entry page
             'OBJECT_MENU_ACTIONS_VIEW_ENTRY_ALL' => 'bx_shopify_view_actions', // all actions menu on view entry page
             'OBJECT_MENU_ACTIONS_MY_ENTRIES' => 'bx_shopify_my', // actions menu on my entries page
@@ -104,7 +105,7 @@ class BxShopifyConfig extends BxBaseModTextConfig
             'OBJECT_MENU_SNIPPET_META' => 'bx_shopify_snippet_meta', // menu for snippet meta info
             'OBJECT_MENU_MANAGE_TOOLS' => 'bx_shopify_menu_manage_tools', //manage menu in content administration tools
             'OBJECT_GRID_ADMINISTRATION' => 'bx_shopify_administration',
-        	'OBJECT_GRID_COMMON' => 'bx_shopify_common',
+            'OBJECT_GRID_COMMON' => 'bx_shopify_common',
             'OBJECT_UPLOADERS' => array('sys_simple', 'sys_html5'),
 
             // menu items which visibility depends on custom visibility checking

+ 4 - 1
modules/boonex/shopify/classes/BxShopifyTemplate.php

@@ -71,12 +71,15 @@ class BxShopifyTemplate extends BxBaseModTextTemplate
     {
         $CNF = &$this->getModule()->_oConfig->CNF;
 
-        return $this->parseHtmlByName($sTemplateName, array(
+        $aVars = parent::getTmplVarsText($aData);
+        $aVars = array_merge($aVars, array(
             'js_object' => $this->_oConfig->getJsObjectShop($aData[$CNF['FIELD_AUTHOR']]),
             'html_id' => $this->_oConfig->getHtmlIds('entry_content'),
             'entry_title' => $this->getTitle($aData),
             'entry_code' => $aData[$CNF['FIELD_CODE']]
         ));
+
+        return $this->parseHtmlByName($sTemplateName, $aVars);
     }
 
     public function entryAttachments ($aData, $aParams = array())

+ 2 - 1
modules/boonex/shopify/install/sql/enable.sql

@@ -194,7 +194,8 @@ INSERT INTO `sys_menu_items`(`set_name`, `module`, `name`, `title_system`, `titl
 ('bx_shopify_view_actions', 'bx_shopify', 'delete-shopify-entry', '_bx_shopify_menu_item_title_system_delete_entry', '', '', '', '', '', '', '', 0, 2147483647, 1, 0, 20),
 ('bx_shopify_view_actions', 'bx_shopify', 'comment', '_sys_menu_item_title_system_va_comment', '', '', '', '', '', '', '', 0, 2147483647, 0, 0, 200),
 ('bx_shopify_view_actions', 'bx_shopify', 'view', '_sys_menu_item_title_system_va_view', '', '', '', '', '', '', '', 0, 2147483647, 1, 0, 210),
-('bx_shopify_view_actions', 'bx_shopify', 'vote', '_sys_menu_item_title_system_va_vote', '', '', '', '', '', '', '', 0, 2147483647, 1, 0, 220),
+('bx_shopify_view_actions', 'bx_shopify', 'vote', '_sys_menu_item_title_system_va_vote', '', '', '', '', '', '', '', 0, 2147483647, 0, 0, 220),
+('bx_shopify_view_actions', 'bx_shopify', 'reaction', '_sys_menu_item_title_system_va_reaction', '', '', '', '', '', '', '', 0, 2147483647, 1, 0, 225),
 ('bx_shopify_view_actions', 'bx_shopify', 'score', '_sys_menu_item_title_system_va_score', '', '', '', '', '', '', '', 0, 2147483647, 1, 0, 230),
 ('bx_shopify_view_actions', 'bx_shopify', 'favorite', '_sys_menu_item_title_system_va_favorite', '', '', '', '', '', '', '', 0, 2147483647, 1, 0, 240),
 ('bx_shopify_view_actions', 'bx_shopify', 'feature', '_sys_menu_item_title_system_va_feature', '', '', '', '', '', '', '', 0, 2147483647, 1, 0, 250),

+ 24 - 1
modules/boonex/shopify/install/sql/install.sql

@@ -13,6 +13,8 @@ CREATE TABLE IF NOT EXISTS `bx_shopify_entries` (
   `views` int(11) NOT NULL default '0',
   `rate` float NOT NULL default '0',
   `votes` int(11) NOT NULL default '0',
+  `rrate` float NOT NULL default '0',
+  `rvotes` int(11) NOT NULL default '0',
   `score` int(11) NOT NULL default '0',
   `sc_up` int(11) NOT NULL default '0',
   `sc_down` int(11) NOT NULL default '0',
@@ -75,6 +77,26 @@ CREATE TABLE IF NOT EXISTS `bx_shopify_votes_track` (
   KEY `vote` (`object_id`, `author_nip`)
 );
 
+CREATE TABLE IF NOT EXISTS `bx_shopify_reactions` (
+  `object_id` int(11) NOT NULL default '0',
+  `reaction` varchar(32) NOT NULL default '',
+  `count` int(11) NOT NULL default '0',
+  `sum` int(11) NOT NULL default '0',
+  UNIQUE KEY `reaction` (`object_id`, `reaction`)
+);
+
+CREATE TABLE IF NOT EXISTS `bx_shopify_reactions_track` (
+  `id` int(11) NOT NULL AUTO_INCREMENT,
+  `object_id` int(11) NOT NULL default '0',
+  `author_id` int(11) NOT NULL default '0',
+  `author_nip` int(11) unsigned NOT NULL default '0',
+  `reaction` varchar(32) NOT NULL default '',
+  `value` tinyint(4) NOT NULL default '0',
+  `date` int(11) NOT NULL default '0',
+  PRIMARY KEY (`id`),
+  KEY `vote` (`object_id`, `author_nip`)
+);
+
 -- TABLE: views
 CREATE TABLE IF NOT EXISTS `bx_shopify_views_track` (
   `object_id` int(11) NOT NULL default '0',
@@ -246,7 +268,8 @@ INSERT INTO `sys_objects_cmts` (`Name`, `Module`, `Table`, `CharsPostMin`, `Char
 
 -- VOTES
 INSERT INTO `sys_objects_vote` (`Name`, `TableMain`, `TableTrack`, `PostTimeout`, `MinValue`, `MaxValue`, `IsUndo`, `IsOn`, `TriggerTable`, `TriggerFieldId`, `TriggerFieldAuthor`, `TriggerFieldRate`, `TriggerFieldRateCount`, `ClassName`, `ClassFile`) VALUES 
-('bx_shopify', 'bx_shopify_votes', 'bx_shopify_votes_track', '604800', '1', '1', '0', '1', 'bx_shopify_entries', 'id', 'author', 'rate', 'votes', '', '');
+('bx_shopify', 'bx_shopify_votes', 'bx_shopify_votes_track', '604800', '1', '1', '0', '1', 'bx_shopify_entries', 'id', 'author', 'rate', 'votes', '', ''),
+('bx_shopify_reactions', 'bx_shopify_reactions', 'bx_shopify_reactions_track', '604800', '1', '1', '1', '1', 'bx_shopify_entries', 'id', 'author', 'rrate', 'rvotes', 'BxTemplVoteReactions', '');
 
 
 -- SCORES

+ 2 - 2
modules/boonex/shopify/install/sql/uninstall.sql

@@ -1,6 +1,6 @@
 
 -- TABLES
-DROP TABLE IF EXISTS `bx_shopify_entries`, `bx_shopify_settings`, `bx_shopify_cmts`, `bx_shopify_votes`, `bx_shopify_votes_track`, `bx_shopify_views_track`, `bx_shopify_meta_keywords`, `bx_shopify_meta_locations`, `bx_shopify_meta_mentions`, `bx_shopify_reports`, `bx_shopify_reports_track`, `bx_shopify_favorites_track`, `bx_shopify_scores`, `bx_shopify_scores_track`;
+DROP TABLE IF EXISTS `bx_shopify_entries`, `bx_shopify_settings`, `bx_shopify_cmts`, `bx_shopify_votes`, `bx_shopify_votes_track`, `bx_shopify_reactions`, `bx_shopify_reactions_track`, `bx_shopify_views_track`, `bx_shopify_meta_keywords`, `bx_shopify_meta_locations`, `bx_shopify_meta_mentions`, `bx_shopify_reports`, `bx_shopify_reports_track`, `bx_shopify_favorites_track`, `bx_shopify_scores`, `bx_shopify_scores_track`;
 
 
 -- FORMS
@@ -20,7 +20,7 @@ DELETE FROM `sys_objects_cmts` WHERE `Name` = 'bx_shopify';
 
 
 -- VOTES
-DELETE FROM `sys_objects_vote` WHERE `Name` = 'bx_shopify';
+DELETE FROM `sys_objects_vote` WHERE `Name` IN ('bx_shopify', 'bx_shopify_reactions');
 
 
 -- SCORES

+ 14 - 10
modules/boonex/shopify/template/entry-text.html

@@ -1,10 +1,14 @@
-<div id="__html_id__" class="bx-base-text-entity-content bx-def-constraint-list bx-def-constraint-pre bx-def-constraint-object bx-def-constraint-iframe bx-def-constraint-img">
-    <h1 class="bx-spf-title">__entry_title__</h1>
-    <div class="bx-spf-text"></div>
-    <div class="bx-spf-images"></div>
-    <script type="text/javascript">
-    $(document).ready(function() {
-        __js_object__.getEntry('__entry_code__');
-    });
-    </script>
-</div>
+<div class="bx-content-description-before">__content_description_before__</div>
+<div class="bx-content-description">
+    <div id="__html_id__" class="bx-base-text-entity-content bx-def-constraint-list bx-def-constraint-pre bx-def-constraint-object bx-def-constraint-iframe bx-def-constraint-img">
+        <h1 class="bx-spf-title">__entry_title__</h1>
+        <div class="bx-spf-text"></div>
+        <div class="bx-spf-images"></div>
+        <script type="text/javascript">
+        $(document).ready(function() {
+            __js_object__.getEntry('__entry_code__');
+        });
+        </script>
+    </div>
+</div>
+<div class="bx-content-description-after">__content_description_after__</div>