Skip to content

Commit

Permalink
Working on #2972 Template Conversion to Twig Format (mycodes) (#3249)
Browse files Browse the repository at this point in the history
* Converted mycodes

* Deleted old parser/video.twig template

* Restored onclick and extraclass for smilie template

* Moved HTML from php to twig
  • Loading branch information
Shade- authored and euantorano committed Jun 2, 2019
1 parent 27c6cc4 commit b279b66
Show file tree
Hide file tree
Showing 10 changed files with 1,600 additions and 1,809 deletions.
3,384 changes: 1,575 additions & 1,809 deletions inc/class_parser.php

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions inc/views/base/parser/mycodes/code.twig
@@ -0,0 +1,7 @@
<div class="codeblock">
<div class="title">{{ lang.code }}</div>
<div class="body" dir="ltr">
<code>{{ code|raw }}</code>
</div>
</div>
<br />
1 change: 1 addition & 0 deletions inc/views/base/parser/mycodes/email.twig
@@ -0,0 +1 @@
<a href="mailto:{{ email }}" class="mycode_email">{{ name }}</a>
1 change: 1 addition & 0 deletions inc/views/base/parser/mycodes/img.twig
@@ -0,0 +1 @@
<img src="{{ image.url }}"{{ image.width }}{{ image.height }} alt="{{ image.alt }}"{{ image.css_align }} class="mycode_img" />
5 changes: 5 additions & 0 deletions inc/views/base/parser/mycodes/php.twig
@@ -0,0 +1,5 @@
<div class="codeblock phpcodeblock">
<div class="title">{{ lang.php_code }}</div>
<div class="body">{{ code|raw }}</div>
</div>
<br />
8 changes: 8 additions & 0 deletions inc/views/base/parser/mycodes/quote.twig
@@ -0,0 +1,8 @@
<blockquote class="mycode_quote">
<cite>
{% if delete_quote == false %}<span>{{ quote.date|raw }}</span>{% endif %}
{{ quote.username }} {{ lang.wrote }}{% if quote.linkback %} <a href="{{ quote.url }}" class="quick_jump"></a>{% endif %}
</cite>
{{ quote.message }}
</blockquote>
<br />
1 change: 1 addition & 0 deletions inc/views/base/parser/mycodes/size.twig
@@ -0,0 +1 @@
<span style="font-size: {{ size }}pt;" class="mycode_size">{{ text }}</span>
1 change: 1 addition & 0 deletions inc/views/base/parser/mycodes/smilie.twig
@@ -0,0 +1 @@
<img src="{{ smilie.image }}" alt="{{ smilie.name }}" title="{{ smilie.name }}" class="smilie smilie_{{ smilie.sid }}{% if smilie.extra_class %} smilie_pointer{% endif %}"{% if smilie.onclick %} onclick="MyBBEditor.insertText('{{ smilie.onclick }}');"{% endif %} />
1 change: 1 addition & 0 deletions inc/views/base/parser/mycodes/url.twig
@@ -0,0 +1 @@
<a href="{{ link.url }}" target="_blank"{{ link.rel }} class="mycode_url">{{ link.name }}</a>
File renamed without changes.

0 comments on commit b279b66

Please sign in to comment.