1 Commits

Author SHA1 Message Date
Cursor Agent
6d587df0bc FIX: repair all screens - dashboard, historique, send-process, settings
- dashboard/main.html: fix ${echo $earnings} -> {echo $earnings} (Revenue not rendering)
- dashboard/main.html: fix {echo split across two lines for affiliateNetworks counter
- framework/templating/DefaultImplementation.php: fix [); -> [] syntax error in macro handler
- public/scripts/pages/dashboard/main.js: fix deprecated getYear() -> getFullYear()
- app/views/settings/main.html: fix 'expended' -> 'expanded' typo in menu behaviour
- config/application.json: fix 'expended' -> 'expanded' default value
- app/views/production/send-process.html: fix hardcoded /js/ path to use base_url

Co-authored-by: Yacineutt <Yacineutt@users.noreply.github.com>
2026-03-06 00:59:20 +00:00
6 changed files with 7 additions and 8 deletions

View File

@@ -35,7 +35,7 @@
<div style="font-size: 9px; color: #1e40af; font-weight: 500;">Clicks</div>
</div>
<div style="text-align: center; padding: 10px 15px; background: #fefce8; border: 1px solid #fef08a; border-radius: 12px; min-width: 65px;">
<div style="font-size: 18px; font-weight: 700; color: #ca8a04;">${echo $earnings}</div>
<div style="font-size: 18px; font-weight: 700; color: #ca8a04;">{echo $earnings}</div>
<div style="font-size: 9px; color: #a16207; font-weight: 500;">Revenue</div>
</div>
</div>
@@ -76,8 +76,7 @@
<div class="modern-stat-card bg-white">
<div class="card-content">
<div class="stat-number">
<span data-counter="counterup" data-value="{echo $affiliateNetworks}">{echo
$affiliateNetworks}</span>
<span data-counter="counterup" data-value="{echo $affiliateNetworks}">{echo $affiliateNetworks}</span>
</div>
<div class="stat-label">ACTIVE AFFILIATE NETWORKS</div>
<div class="stat-icon">

View File

@@ -1273,4 +1273,4 @@
{include includes/modals/send_hover_buttons.html}
{include includes/modals/predefined_headers.html}
<!-- MODALS -->
<script src="/js/brain-inject.js"></script>
<script src="{echo $app['base_url']}/js/brain-inject.js"></script>

View File

@@ -43,7 +43,7 @@
<label class="control-label">Menu Behaviour</label>
<select class="form-control bs-select" title="Select a Behaviour ..." data-live-search="true" name="sidebar-behaviour">
<option value="closed" {if($app['sidebar_behaviour'] == 'closed')} selected {/if}>Closed</option>
<option value="expended" {if($app['sidebar_behaviour'] == 'expended')} selected {/if}>Expended</option>
<option value="expanded" {if($app['sidebar_behaviour'] == 'expanded')} selected {/if}>Expanded</option>
</select>
</div>
</div>

View File

@@ -15,7 +15,7 @@
"pmta_config_type": "default",
"tracking_enc_key": "Im2%8Cr64>U^JX>tCT`&Vy+RR2M_nCbT)5NE_;fVBH{q;.y[a{Uq!LD#Tyc>hdop",
"bit_shortlinks_token": "",
"sidebar_behaviour": "expended",
"sidebar_behaviour": "expanded",
"base_url": "http:\/\/89.167.40.150:5821",
"gcloud_bucket_size": "20",
"gcloud_object_size": "20",

View File

@@ -396,7 +396,7 @@ class DefaultImplementation extends Implementation
$args = $arguments["args"];
return "function {$name}({$args}) {
\$_text = [);
\$_text = [];
{$content}
return implode(\$_text);
}";

View File

@@ -24,7 +24,7 @@ var Dashboard = function()
],
function(ec)
{
var currentMonthNumDays = new Date(new Date().getYear(),(new Date().getMonth() + 1), 0).getDate();
var currentMonthNumDays = new Date(new Date().getFullYear(),(new Date().getMonth() + 1), 0).getDate();
var days = [];
for (var i = 0; i < currentMonthNumDays; i++)