فهرست منبع

#103 - block title with links for smb's Posts and Albums

Alex Trofimov 11 سال پیش
والد
کامیت
addcbe821c

+ 1 - 1
modules/base/profile/classes/BxBaseModProfilePageEntry.php

@@ -53,7 +53,7 @@ class BxBaseModProfilePageEntry extends BxBaseModGeneralPageEntry
 
         // add replaceable markers
         $this->addMarkers($this->_aProfileInfo); // every content field can be used as marker
-        $this->addMarkers(array('profile_id' => $this->_oProfile->id())); // profile id field is also suported
+        $this->addMarkers(array('profile_id' => $this->_oProfile->id())); // profile id field
         $this->addMarkers(array('display_name' => $this->_oProfile->getDisplayName())); // profile display name
         $this->addMarkers(array('profile_link' => $this->_oProfile->getUrl())); // profile link
 

+ 3 - 2
modules/base/text/classes/BxBaseModTextPageAuthor.php

@@ -43,8 +43,9 @@ class BxBaseModTextPageAuthor extends BxTemplPage
 
         // add replaceable markers
         $this->addMarkers($this->_aProfileInfo); // every profile field can be used as marker
-        $this->addMarkers(array('profile_id' => $this->_oProfile->id())); // profile id field is also suported
-        $this->addMarkers(array('display_name' => $this->_oProfile->getDisplayName())); // profile display name is also suported
+        $this->addMarkers(array('profile_id' => $this->_oProfile->id())); // profile id 
+        $this->addMarkers(array('display_name' => $this->_oProfile->getDisplayName())); // profile display name 
+        $this->addMarkers(array('profile_link' => $this->_oProfile->getUrl())); // profile link
     }
 
 }

+ 2 - 1
modules/boonex/albums/install/langs/en.xml

@@ -83,7 +83,8 @@
     <string name="_bx_albums_page_title_view_entry_comments"><![CDATA[Album Comments]]></string>
     <string name="_bx_albums_page_title_sys_entries_of_author"><![CDATA[Albums of author]]></string>
     <string name="_bx_albums_page_title_entries_of_author"><![CDATA[{display_name}'s albums]]></string>
-    <string name="_bx_albums_page_block_title_entries_of_author"><![CDATA[Albums of author]]></string>   
+    <string name="_bx_albums_page_block_title_entries_of_author"><![CDATA[Albums by <a href="{profile_link}">{display_name}</a>]]></string>   
+    <string name="_bx_albums_page_block_title_sys_entries_of_author"><![CDATA[Albums of author]]></string>   
     <string name="_bx_albums_page_block_title_entries_actions"><![CDATA[Albums actions]]></string>
     <string name="_bx_albums_page_block_title_browse_cmts"><![CDATA[Albums' Comments]]></string>
     <string name="_bx_albums_page_block_title_browse_cmts_media"><![CDATA[Images Comments]]></string>

+ 3 - 3
modules/boonex/albums/install/sql/enable.sql

@@ -98,9 +98,9 @@ INSERT INTO `sys_pages_blocks`(`object`, `cell_id`, `module`, `title`, `designbo
 INSERT INTO `sys_objects_page`(`object`, `uri`, `title_system`, `title`, `module`, `layout_id`, `visible_for_levels`, `visible_for_levels_editable`, `url`, `meta_description`, `meta_keywords`, `meta_robots`, `cache_lifetime`, `cache_editable`, `deletable`, `override_class_name`, `override_class_file`) VALUES 
 ('bx_albums_author', 'albums-author', '_bx_albums_page_title_sys_entries_of_author', '_bx_albums_page_title_entries_of_author', 'bx_albums', 5, 2147483647, 1, '', '', '', '', 0, 1, 0, 'BxAlbumsPageAuthor', 'modules/boonex/albums/classes/BxAlbumsPageAuthor.php');
 
-INSERT INTO `sys_pages_blocks`(`object`, `cell_id`, `module`, `title`, `designbox_id`, `visible_for_levels`, `type`, `content`, `deletable`, `copyable`, `order`) VALUES 
-('bx_albums_author', 1, 'bx_albums', '_bx_albums_page_block_title_entries_actions', 13, 2147483647, 'service', 'a:2:{s:6:\"module\";s:9:\"bx_albums\";s:6:\"method\";s:18:\"my_entries_actions\";}', 0, 0, 0),
-('bx_albums_author', 1, 'bx_albums', '_bx_albums_page_block_title_entries_of_author', 11, 2147483647, 'service', 'a:2:{s:6:\"module\";s:9:\"bx_albums\";s:6:\"method\";s:13:\"browse_author\";}', 0, 0, 1);
+INSERT INTO `sys_pages_blocks`(`object`, `cell_id`, `module`, `title_system`, `title`, `designbox_id`, `visible_for_levels`, `type`, `content`, `deletable`, `copyable`, `active`, `order`) VALUES 
+('bx_albums_author', 1, 'bx_albums', '', '_bx_albums_page_block_title_entries_actions', 13, 2147483647, 'service', 'a:2:{s:6:\"module\";s:9:\"bx_albums\";s:6:\"method\";s:18:\"my_entries_actions\";}', 0, 0, 1, 0),
+('bx_albums_author', 1, 'bx_albums', '_bx_albums_page_block_title_sys_entries_of_author', '_bx_albums_page_block_title_entries_of_author', 11, 2147483647, 'service', 'a:2:{s:6:\"module\";s:9:\"bx_albums\";s:6:\"method\";s:13:\"browse_author\";}', 0, 0, 1, 1);
 
 -- PAGE: module home
 

+ 3 - 2
modules/boonex/posts/install/langs/en.xml

@@ -76,8 +76,9 @@
     <string name="_bx_posts_page_title_sys_view_entry_comments"><![CDATA[Post Comments]]></string>
     <string name="_bx_posts_page_title_view_entry_comments"><![CDATA[Post Comments]]></string>
     <string name="_bx_posts_page_title_sys_entries_of_author"><![CDATA[Posts of author]]></string>
-    <string name="_bx_posts_page_title_entries_of_author"><![CDATA[Posts of {display_name}]]></string>
-    <string name="_bx_posts_page_block_title_entries_of_author"><![CDATA[Posts of author]]></string>   
+    <string name="_bx_posts_page_title_entries_of_author"><![CDATA[Posts by {display_name}]]></string>
+    <string name="_bx_posts_page_block_title_entries_of_author"><![CDATA[Posts by <a href="{profile_link}">{display_name}</a>]]></string>
+    <string name="_bx_posts_page_block_title_sys_entries_of_author"><![CDATA[Posts of author]]></string>   
     <string name="_bx_posts_page_block_title_entries_actions"><![CDATA[Posts actions]]></string>
     <string name="_bx_posts_page_block_title_browse_cmts"><![CDATA[Posts' Comments]]></string>
 	<string name="_bx_posts_page_title_sys_manage"><![CDATA[Manage Own Posts]]></string>

+ 3 - 3
modules/boonex/posts/install/sql/enable.sql

@@ -83,9 +83,9 @@ INSERT INTO `sys_pages_blocks`(`object`, `cell_id`, `module`, `title`, `designbo
 INSERT INTO `sys_objects_page`(`object`, `uri`, `title_system`, `title`, `module`, `layout_id`, `visible_for_levels`, `visible_for_levels_editable`, `url`, `meta_description`, `meta_keywords`, `meta_robots`, `cache_lifetime`, `cache_editable`, `deletable`, `override_class_name`, `override_class_file`) VALUES 
 ('bx_posts_author', 'posts-author', '_bx_posts_page_title_sys_entries_of_author', '_bx_posts_page_title_entries_of_author', 'bx_posts', 5, 2147483647, 1, '', '', '', '', 0, 1, 0, 'BxPostsPageAuthor', 'modules/boonex/posts/classes/BxPostsPageAuthor.php');
 
-INSERT INTO `sys_pages_blocks`(`object`, `cell_id`, `module`, `title`, `designbox_id`, `visible_for_levels`, `type`, `content`, `deletable`, `copyable`, `order`) VALUES 
-('bx_posts_author', 1, 'bx_posts', '_bx_posts_page_block_title_entries_actions', 13, 2147483647, 'service', 'a:2:{s:6:\"module\";s:8:\"bx_posts\";s:6:\"method\";s:18:\"my_entries_actions\";}', 0, 0, 0),
-('bx_posts_author', 1, 'bx_posts', '_bx_posts_page_block_title_entries_of_author', 11, 2147483647, 'service', 'a:2:{s:6:\"module\";s:8:\"bx_posts\";s:6:\"method\";s:13:\"browse_author\";}', 0, 0, 1);
+INSERT INTO `sys_pages_blocks`(`object`, `cell_id`, `module`, `title_system`, `title`, `designbox_id`, `visible_for_levels`, `type`, `content`, `deletable`, `copyable`, `active`, `order`) VALUES 
+('bx_posts_author', 1, 'bx_posts', '', '_bx_posts_page_block_title_entries_actions', 13, 2147483647, 'service', 'a:2:{s:6:\"module\";s:8:\"bx_posts\";s:6:\"method\";s:18:\"my_entries_actions\";}', 0, 0, 1, 0),
+('bx_posts_author', 1, 'bx_posts', '_bx_posts_page_block_title_sys_entries_of_author', '_bx_posts_page_block_title_entries_of_author', 11, 2147483647, 'service', 'a:2:{s:6:\"module\";s:8:\"bx_posts\";s:6:\"method\";s:13:\"browse_author\";}', 0, 0, 1, 1);
 
 -- PAGE: module home
 

+ 3 - 2
modules/boonex/russian/data/langs/bx_albums/ru.xml

@@ -82,8 +82,9 @@
     <string name="_bx_albums_page_title_sys_view_entry_comments"><![CDATA[Комментарии к альбому]]></string>
     <string name="_bx_albums_page_title_view_entry_comments"><![CDATA[Комментарии к альбому]]></string>
     <string name="_bx_albums_page_title_sys_entries_of_author"><![CDATA[Альбомы автора]]></string>
-    <string name="_bx_albums_page_title_entries_of_author"><![CDATA[Альбомы автора {display_name}]]></string>
-    <string name="_bx_albums_page_block_title_entries_of_author"><![CDATA[Альбомы автора]]></string>   
+    <string name="_bx_albums_page_title_entries_of_author"><![CDATA[{display_name} - Альбомы]]></string>
+    <string name="_bx_albums_page_block_title_entries_of_author"><![CDATA[<a href="{profile_link}">{display_name}</a> - Альбомы]]></string>
+    <string name="_bx_albums_page_block_title_sys_entries_of_author"><![CDATA[Альбомы автора]]></string>
     <string name="_bx_albums_page_block_title_entries_actions"><![CDATA[Альбомы - Действия]]></string>
     <string name="_bx_albums_page_block_title_browse_cmts"><![CDATA[Комментарии к альбому]]></string>
     <string name="_bx_albums_page_block_title_browse_cmts_media"><![CDATA[Комментарии к изображениям]]></string>

+ 3 - 2
modules/boonex/russian/data/langs/bx_posts/ru.xml

@@ -76,8 +76,9 @@
     <string name="_bx_posts_page_title_sys_view_entry_comments"><![CDATA[Публикации - Комментарии]]></string>
     <string name="_bx_posts_page_title_view_entry_comments"><![CDATA[Публикации Комментарии]]></string>
     <string name="_bx_posts_page_title_sys_entries_of_author"><![CDATA[Публикации автора]]></string>
-    <string name="_bx_posts_page_title_entries_of_author"><![CDATA[Публикации {display_name}]]></string>
-    <string name="_bx_posts_page_block_title_entries_of_author"><![CDATA[Публикации автора]]></string>   
+    <string name="_bx_posts_page_title_entries_of_author"><![CDATA[{display_name} - Публикации]]></string>
+    <string name="_bx_posts_page_block_title_entries_of_author"><![CDATA[<a href="{profile_link}">{display_name}</a> - Публикации]]></string>   
+    <string name="_bx_posts_page_block_title_sys_entries_of_author"><![CDATA[Публикации автора]]></string>   
     <string name="_bx_posts_page_block_title_entries_actions"><![CDATA[Публикации - Действия]]></string>
     <string name="_bx_posts_page_block_title_browse_cmts"><![CDATA[Публикации - Комментарии]]></string>
 	<string name="_bx_posts_page_title_sys_manage"><![CDATA[Управление собственными Публикациями]]></string>