- Joined
- Apr 10, 2023
- Messages
- 77
- Points
- 8
Reputation:
Desktop view
Mobile View
Thanks to @BattleKing who provided the code here, here and here.
May be code is messy clean it if you want or use it it will not gonna effect on security
Mobile View
Code:
<div style="font-size: 12px; display: flex; font-weight:lighter; border-style: solid;border-color: red;border-radius: 0.9px;color: red;background-color: #411900;align-items: center !important;">
<b style="font-weight: bold;">Content Locked <br />
<span style="font-weight:lighter; color: white;">You can unlock it with : </span></b>
<span style="margin-left: auto !important;">
<input
type="button"
class="button"
data-xf-click="overlay"
data-href="' . \XF::app()->router('public')->buildLink('dbtech-credits/currency/buy-content', $charge->Currency, ['content_type' => $charge->content_type, 'content_id' => $charge->content_id, 'content_hash' => $charge->content_hash]) . '"
value="' . \XF::phrase('dbtech_credits_view_for_x_y', [
'param1' => $charge->Currency->getFormattedValue($charge->cost),
'param2' => $charge->Currency->title
]) . '"
/>
</span>
</span>
</span>
</div>
Thanks to @BattleKing who provided the code here, here and here.
May be code is messy clean it if you want or use it it will not gonna effect on security