Changeset 2832536
- Timestamp:
- 12/12/2022 07:09:37 PM (3 years ago)
- Location:
- hyvor-talk/trunk
- Files:
-
- 5 edited
-
inc/class-hyvor-talk-webpage.php (modified) (2 diffs)
-
inc/class-hyvor-talk.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
-
static/talk-icon.svg (modified) (1 diff)
-
static/talk-logo.png (modified) (previous)
Legend:
- Unmodified
- Added
- Removed
-
hyvor-talk/trunk/inc/class-hyvor-talk-webpage.php
r2557965 r2832536 45 45 * @since 1.0 46 46 */ 47 public function getCommentsPluginTemplate() { 48 if ($this -> isPluginLoadable()) { 49 $this -> setEmbedVariables(true); 50 return HYVOR_TALK_DIR_PATH . '/html/embed.php'; 51 } 52 53 } 47 public function getCommentsPluginTemplate() 48 { 49 if ($this->isPluginLoadable()) { 50 $this->setEmbedVariables(true); 51 return HYVOR_TALK_DIR_PATH . '/html/embed.php'; 52 } 53 54 } 55 56 public function getCommentsPluginTemplateForBlock($preRender, $parsedBlock) { 57 58 if ($parsedBlock['blockName'] === 'core/comments' && $this -> isPluginLoadable()) { 59 $this -> setEmbedVariables(true); 60 61 ob_start(); 62 include(HYVOR_TALK_DIR_PATH . '/html/embed.php'); 63 $content = ob_get_contents(); 64 ob_end_clean(); 65 66 return $content; 67 } 68 69 } 70 54 71 55 72 /** … … 241 258 242 259 260 243 261 /** 244 262 * Get the title of the page -
hyvor-talk/trunk/inc/class-hyvor-talk.php
r2557965 r2832536 120 120 $webpage = new WebPage($this -> pluginIdentifier, $this -> pluginVersion, $this -> websiteId); 121 121 122 add_filter('pre_render_block', array($webpage, 'getCommentsPluginTemplateForBlock'), 10, 2); 122 123 add_filter('comments_number', array ($webpage, 'getCommentsCountTemplate')); 123 124 add_filter('comments_template', array($webpage, 'getCommentsPluginTemplate')); -
hyvor-talk/trunk/readme.txt
r2760299 r2832536 3 3 Tags: comments, commenting system, commenting platform, commenting plugin 4 4 Requires at least: 4.6 5 Tested up to: 6. 0.16 Stable tag: 1.2. 67 Requires PHP: 5.45 Tested up to: 6.1.1 6 Stable tag: 1.2.7 7 Requires PHP: 7.4 8 8 License: GPLv2 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 90 90 == Change Log == 91 91 92 = 1.2.7 = 93 * Added support for Block-based themes 94 92 95 = 1.2.6 = 93 96 * New logo -
hyvor-talk/trunk/static/talk-icon.svg
r2557965 r2832536 1 data:image/svg+xml;base64,CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHhtbG5zOnY9Imh0dHBzOi8vdmVjdGEuaW8vbmFubyI+PHBhdGggZD0iTTYyMy42MjUgMTM5Ny4yNDdoMzUuMTkydjM3LjUzOGgtMzUuMTkyeiIgZmlsbD0iI2ZmZiIgZmlsbC1ydWxlPSJldmVub2RkIi8+PHRleHQgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgZm9udC13ZWlnaHQ9ImJvbGQiIGZvbnQtc2l6ZT0iMi44MjIiIGZvbnQtZmFtaWx5PSJTZWdvZSBTY3JpcHQiPjx0c3BhbiB4PSItMjAuMjE1IiB5PSIzLjUzOSIgdmlzaWJpbGl0eT0iaGlkZGVuIj48dHNwYW4gZHg9IjAgMi4zNjQ3MTE4IiB4PSItMjAuMjE1IiB5PSItMTYxLjE2OSI+SEg8L3RzcGFuPjwvdHNwYW4+PC90ZXh0PjxjaXJjbGUgY3g9IjIwIiBjeT0iMjAiIHI9IjIwIiBmaWxsPSIjZmZmMmQwIi8+PHBhdGggZD0iTTI3LjY5NCAzMi42MDhjLS4yMjItLjA4OC0uNDMxLS4zMDktLjk4My0xLjAzNi0uNTI4LS42OTYtLjg5My0xLjA2OC0xLjEzOS0xLjE2MS0uMjU0LS4wOTctLjUxNS0uMDYxLTEuMTAyLjE1Mi0xLjQwNS41MDktMi44Mi43NDQtNC40ODMuNzQ0LTIuMTY2IDAtMy45MDMtLjM5MS01Ljc2NS0xLjI5Ni0zLjcxLTEuODA1LTYuMTU4LTUuMDU1LTYuNzg2LTkuMDEyLS4xNDgtLjkyOS0uMTMzLTIuNjA2LjAzLTMuNTM0LjQzNC0yLjQ2NCAxLjUwNC00LjU0NyAzLjI0LTYuMzA1IDIuMDcxLTIuMDk3IDQuNTcyLTMuMzIzIDcuNjU5LTMuNzU0Ljc1LS4xMDUgMi42MjEtLjA4OCAzLjQ0Ny4wMzEgMS45OTkuMjg3IDMuNzQyLjkzNSA1LjM1OSAxLjk5Mi44MDUuNTI2IDEuMjM0Ljg3NSAxLjk5MSAxLjYyMiAyLjQ0NCAyLjQxMSAzLjc0IDUuODEgMy40NjUgOS4wODgtLjExNiAxLjM4NC0uMzQ0IDIuMzM4LS44NzkgMy42NzQtLjE4NS40NjQtLjY0MyAxLjc5My0xLjAxNiAyLjk1NS0xLjI0NyAzLjg3Ny0xLjkxNyA1LjQzNy0yLjQ4NiA1Ljc4OS0uMjA5LjEyOS0uMzMzLjE0MS0uNTU0LjA1M3oiIGZpbGw9IiNmZmQ5NjkiLz48L3N2Zz4= 1 <svg xmlns="http://www.w3.org/2000/svg" width="500" height="500" viewBox="0 0 132.292 132.292"><g stroke-width="7.158" stroke="#000" fill-rule="evenodd"><rect width="77.87" height="123.577" x="26.535" y="5.026" ry="38.935" transform="rotate(359.418)" fill="#fff3d3"/><path d="M105.079 65.75l.232 22.852c.219 21.569-16.969 39.11-38.538 39.329s-39.11-16.969-39.329-38.538l-.232-22.852z" fill="#ffd969"/></g><path d="M59.3 31.89c0-2.555-3.289-4.625-7.346-4.625s-7.346 2.071-7.346 4.625m43.076 0c0-2.555-3.289-4.625-7.346-4.625s-7.346 2.071-7.346 4.625m.271 15.859c0 2.555-3.289 4.625-7.346 4.625s-7.346-2.071-7.346-4.625" stroke="#000" paint-order="stroke fill markers" fill="none" stroke-linecap="round" stroke-linejoin="round" stroke-width="6.65"/></svg>
Note: See TracChangeset
for help on using the changeset viewer.