mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-11-30 20:27:07 +09:00
Replace usage of the bbmd filter
It's just an alias of the `markdown` one, so let's use that one directly and mark this one as deprecated
This commit is contained in:
1 parent
f170503e98
commit
64d8e2fef6
18 files changed
+20
-20
No files matched your search
@@ -329,10 +329,10 @@ function twig_truncate_filter(Twig\Environment $env, $value, $length = 30, $pres
|
||||
|
||||
/**
|
||||
* BoxBilling markdown.
|
||||
* @deprecated
|
||||
*/
|
||||
function twig_bbmd_filter(Twig\Environment $env, $value)
|
||||
{
|
||||
$value = twig_markdown_filter($env, $value);
|
||||
|
||||
return $value;
|
||||
error_log('Usage for deprected bbmd filter, please use the markdown filter instead for twig templates.');
|
||||
return twig_markdown_filter($env, $value);
|
||||
}
|
||||
@@ -19,7 +19,7 @@
|
||||
<h1>{{ page.title }}</h1>
|
||||
</header>
|
||||
<section>
|
||||
{{ page.content | bbmd }}
|
||||
{{ page.content | markdown }}
|
||||
</section>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
@@ -64,7 +64,7 @@
|
||||
<h5>{{ 'README'|trans }}</h5>
|
||||
</div>
|
||||
<div class="card-body markdown">
|
||||
{{ guest.example_readme | bbmd }}
|
||||
{{ guest.example_readme | markdown }}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
@@ -106,7 +106,7 @@
|
||||
<h3>{{ 'Automatic update'|trans }}</h3>
|
||||
<p class="text-muted">{{ 'Automatic updater is a tool to update FOSSBilling to latest version in one click. Works on these hosting environments where PHP has permissions to overwrite files uploaded via FTP.'|trans }}</p>
|
||||
|
||||
{{ admin.system_release_notes|bbmd }}
|
||||
{{ admin.system_release_notes|markdown }}
|
||||
<a href="{{ 'api/admin/extension/update_core'|link({ 'CSRFToken': CSRFToken }) }}" class="btn btn-primary api-link" data-api-confirm="Make sure that you have made database and files backups before proceeding with automatic update. You will need to log back into your account. Click OK when you are ready to continue." data-api-msg="Update complete. Please refresh your page to login back in.">
|
||||
<svg class="icon">
|
||||
<use xlink:href="#refresh" />
|
||||
|
||||
@@ -115,7 +115,7 @@
|
||||
{% if invoice.notes %}
|
||||
<tr>
|
||||
<td class="text-end">{{ 'Notes'|trans }}:</td>
|
||||
<td>{{ invoice.notes|bbmd }}</td>
|
||||
<td>{{ invoice.notes|markdown }}</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
</tbody>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<p>{{ 'Article views'|trans }}: {{ article.views }}</p>
|
||||
</header>
|
||||
<section>
|
||||
{{ article.content|bbmd }}
|
||||
{{ article.content|markdown }}
|
||||
<hr/>
|
||||
<p><a class="btn btn-small" href="{{ 'kb'|link }}">{{ 'Back to list'|trans }}</a></p>
|
||||
</section>
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
</header>
|
||||
<section>
|
||||
{% if post.image %}<img src="{{ post.image }}" alt="{{ post.title }}">{% endif %}
|
||||
{{ post.content|bbmd }}
|
||||
{{ post.content|markdown }}
|
||||
{# if post.tags %}Tags: {{ post.tags|join(', ') }}{% endif #}
|
||||
|
||||
{% if guest.extension_is_on({ "mod": "comment" }) %}{% include "mod_comment_block.html.twig" %}{% endif %}
|
||||
|
||||
@@ -75,7 +75,7 @@
|
||||
{% if order.notes %}
|
||||
<tr>
|
||||
<td><label>{{ 'Order notes'|trans }}</label></td>
|
||||
<td>{{ order.notes|bbmd }}</td>
|
||||
<td>{{ order.notes|markdown }}</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
<td>
|
||||
<label for="addon_{{ addon.id }}"><h3>{{ addon.title }}</h3></label>
|
||||
{{ addon.description|bbmd }}
|
||||
{{ addon.description|markdown }}
|
||||
</td>
|
||||
|
||||
<td class="currency">
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
{% set product_details %}
|
||||
<div class="well">
|
||||
<strong>{{ product.title }}</strong>
|
||||
{{ product.description | bbmd }}
|
||||
{{ product.description | markdown }}
|
||||
|
||||
{% if product.pricing.type == 'recurrent' %}
|
||||
{% set periods = guest.system_periods %}
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
<p>{{ company.signature }}</p>
|
||||
</header>
|
||||
<section>
|
||||
{{ company.note|bbmd }}
|
||||
{{ company.note|markdown }}
|
||||
</section>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
</head>
|
||||
<body style="background-color: white; padding:10px;">
|
||||
<div class="markdown">
|
||||
{{ post.content|bbmd }}
|
||||
{{ post.content|markdown }}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -18,7 +18,7 @@
|
||||
<p>{{ company.signature }}</p>
|
||||
</header>
|
||||
<section>
|
||||
{{ company.privacy_policy|bbmd }}
|
||||
{{ company.privacy_policy|markdown }}
|
||||
</section>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
<p>{{ company.signature }}</p>
|
||||
</header>
|
||||
<section>
|
||||
{{ company.tos|bbmd }}
|
||||
{{ company.tos|markdown }}
|
||||
</section>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
@@ -157,7 +157,7 @@
|
||||
<span class="ms-auto text-muted">{{ message.created_at|bb_datetime }}</span>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
{{ message.content|bbmd }}
|
||||
{{ message.content|markdown }}
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
@@ -287,7 +287,7 @@
|
||||
<span class="ms-auto text-muted">{{ message.created_at|bb_datetime }}</span>
|
||||
</div>
|
||||
<div class="card-body" style="display:{{ loop.last or loop.index + 1 == ticket.messages|length ? 'block' : 'none' }};">
|
||||
{{ message.content|bbmd }}
|
||||
{{ message.content|markdown }}
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
@@ -89,7 +89,7 @@
|
||||
</div>
|
||||
</header>
|
||||
<section>
|
||||
<div class="well" id="message-{{ message.id }}">{{ message.content|bbmd }}</div>
|
||||
<div class="well" id="message-{{ message.id }}">{{ message.content|markdown }}</div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -135,7 +135,7 @@
|
||||
{% endif %}
|
||||
</header>
|
||||
<section>
|
||||
<div class="well" id="message-{{message.id}}">{{ message.content|bbmd }}</div>
|
||||
<div class="well" id="message-{{message.id}}">{{ message.content|markdown }}</div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user