This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <form class="comments__form"> | |
| <span class="comments__marker"></span><input type="checkbox" class="comments__marker-checkbox"> | |
| <div class="comments__body"> | |
| <div class="comment"> | |
| <p class="comment__time">28.02.18 19:09:33</p> | |
| <p class="comment__message">Здесь будет комментарий</p> | |
| </div> | |
| <div class="comment"> | |
| <p class="comment__time">28.02.18 19:11:01</p> | |
| <p class="comment__message">А здесь будет многострочный комментарий, строки на 2 хотя бы.</p> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'use strict'; | |
| import hljs from 'highlight.js'; | |
| import Markdown from 'markdown-it'; | |
| const md = Markdown({ | |
| linkify: true, | |
| typographer: true, | |
| highlight: (str, lang) => { | |
| let content; | |
| if (lang && hljs.getLanguage(lang)) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'use strict' | |
| const mix = (Base, ...mixins) => mixins.reduce((Base, mixin) => mixin(Base), Base); | |
| const calculatorMixin = Base => class extends Base { | |
| calc() {} | |
| }; | |
| const randomizerMixin = Base => class extends Base { | |
| randomize() {} | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public function getFull($id) | |
| { | |
| return $this->db->selectOne( | |
| sprintf('%s t LEFT JOIN %s t1 ON t.md5=t1.md5 AND t.id<>t1.id', $this->dbTable, $this->dbTable), | |
| 't.*, COUNT(t1.id) AS linksCount', | |
| sprintf( | |
| 't.`id`="%s"', | |
| mysql_escape_string($id) | |
| ), | |
| 'GROUP BY t.id' |