Skip to content

Commit

Permalink
4.8.0 all template changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sendtogeo committed Nov 28, 2020
1 parent 633b40b commit 924ad8f
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 64 deletions.
5 changes: 3 additions & 2 deletions themes/simple/views/adminpanel/adminleftmenu.ctp.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@
<?php if (isAdmin()) {?>
<li><a href="javascript:void(0);" onclick="scriptDoLoad('cron.php', 'content')"><?php echo $spTextPanel['Report Generation Manager']?></a></li>
<li><a href="javascript:void(0);" onclick="scriptDoLoad('reports.php?sec=report_gen_logs', 'content')"><?php echo $spTextPanel['Report Generation Logs']?></a></li>
<li><a href="javascript:void(0);" onclick="scriptDoLoad('cron.php?sec=croncommand', 'content')"><?php echo $spTextPanel['Cron Command']?></a></li>
<li><a href="javascript:void(0);" onclick="scriptDoLoad('settings.php?sec=reportsettings', 'content')"><?php echo $spTextPanel['Global Reports Settings']?></a></li>
<li><a href="javascript:void(0);" onclick="scriptDoLoad('cron.php?sec=croncommand', 'content')"><?php echo $spTextPanel['Cron Command']?></a></li>
<?php }?>
</ul>
<?php
Expand Down Expand Up @@ -177,8 +176,10 @@
<script type="text/javascript">scriptList[<?php echo $i?>] = 'settings.php';</script>
<ul id='subui'>
<li><a href="javascript:void(0);" onclick="scriptDoLoad('settings.php', 'content')"><?php echo $spTextPanel['System Settings']?></a></li>
<li><a href="javascript:void(0);" onclick="scriptDoLoad('settings.php?sec=reportsettings', 'content')"><?php echo $spTextPanel['Global Reports Settings']?></a></li>
<li><a href="javascript:void(0);" onclick="scriptDoLoad('settings.php?category=moz', 'content')"><?php echo $spTextPanel['MOZ Settings']?></a></li>
<li><a href="javascript:void(0);" onclick="scriptDoLoad('settings.php?category=google', 'content')"><?php echo $spTextPanel['Google Settings']?></a></li>
<li><a href="javascript:void(0);" onclick="scriptDoLoad('settings.php?category=dataforseo', 'content')"><?php echo $spTextPanel['DataForSEO Settings']?></a></li>
<li><a href="javascript:void(0);" onclick="scriptDoLoad('settings.php?category=mail', 'content')"><?php echo $spTextPanel['Mail Settings']?></a></li>
<li><a href="javascript:void(0);" onclick="scriptDoLoad('settings.php?sec=test_email', 'content')"><?php echo $spTextPanel['Test Email Settings']?></a></li>
</ul>
Expand Down
86 changes: 39 additions & 47 deletions themes/simple/views/log/showcrawllog.ctp.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,54 +18,54 @@

}
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="list">
<table class="list">
<tr class="listHead">
<td class="left" width='30%'><?php echo $spTextLog['Crawl Log Details']?></td>
<td class="right">&nbsp;</td>
<td width='30%'><?php echo $spTextLog['Crawl Log Details']?></td>
<td>&nbsp;</td>
</tr>
<tr class="white_row">
<td class="td_left_col"><?php echo $spText['label']['Report Type']?>:</td>
<td class="td_right_col"><?php echo $logInfo['crawl_type']?></td>
<tr>
<td><?php echo $spText['label']['Report Type']?>:</td>
<td><?php echo $logInfo['crawl_type']?></td>
</tr>
<tr class="blue_row">
<td class="td_left_col"><?php echo $spText['label']['Reference']?>:</td>
<td class="td_right_col"><?php echo $logInfo['ref_id']?></td>
<tr>
<td><?php echo $spText['label']['Reference']?>:</td>
<td><?php echo $logInfo['ref_id']?></td>
</tr>
<tr class="white_row">
<td class="td_left_col"><?php echo $spText['label']['Subject']?>:</td>
<td class="td_right_col"><?php echo $logInfo['subject']?></td>
<tr>
<td><?php echo $spText['label']['Subject']?>:</td>
<td><?php echo $logInfo['subject']?></td>
</tr>
<tr class="blue_row">
<td class="td_left_col"><?php echo $spText['common']['Url']?>:</td>
<td class="td_right_col"><?php echo $logInfo['crawl_link']?></td>
<tr>
<td><?php echo $spText['common']['Url']?>:</td>
<td><?php echo $logInfo['crawl_link']?></td>
</tr>
<tr class="white_row">
<td class="td_left_col"><?php echo $spText['label']['Referer']?>:</td>
<td class="td_right_col"><?php echo $logInfo['crawl_referer']?></td>
<tr>
<td><?php echo $spText['label']['Referer']?>:</td>
<td><?php echo $logInfo['crawl_referer']?></td>
</tr>
<tr class="blue_row">
<td class="td_left_col"><?php echo $spText['label']['Cookie']?>:</td>
<td class="td_right_col"><?php echo $logInfo['crawl_cookie']?></td>
<tr>
<td><?php echo $spText['label']['Cookie']?>:</td>
<td><?php echo $logInfo['crawl_cookie']?></td>
</tr>
<tr class="white_row">
<td class="td_left_col"><?php echo $spTextLog['Post Fields']?>:</td>
<td class="td_right_col"><?php echo $logInfo['crawl_post_fields']?></td>
<tr>
<td><?php echo $spTextLog['Post Fields']?>:</td>
<td><?php echo $logInfo['crawl_post_fields']?></td>
</tr>
<tr class="blue_row">
<td class="td_left_col"><?php echo $spText['label']['User agent']?>:</td>
<td class="td_right_col"><?php echo $logInfo['crawl_useragent']?></td>
<tr>
<td><?php echo $spText['label']['User agent']?>:</td>
<td><?php echo $logInfo['crawl_useragent']?></td>
</tr>
<tr class="white_row">
<td class="td_left_col"><?php echo $spText['label']['Proxy']?>:</td>
<td class="td_right_col"><?php echo $logInfo['proxy_id']?></td>
<tr>
<td><?php echo $spText['label']['Proxy']?>:</td>
<td><?php echo !empty($logInfo['proxy_id']) ? $logInfo['proxy_id'] : ""?></td>
</tr>
<tr class="blue_row">
<td class="td_left_col"><?php echo $spText['common']['Details']?>:</td>
<td class="td_right_col"><?php echo $logInfo['log_message']?></td>
<tr>
<td><?php echo $spText['common']['Details']?>:</td>
<td><?php echo $logInfo['log_message']?></td>
</tr>
<tr class="white_row">
<td class="td_left_col"><?php echo $spText['common']['Status']?>:</td>
<td class="td_right_col">
<tr>
<td><?php echo $spText['common']['Status']?>:</td>
<td>
<?php
if ($logInfo['crawl_status']) {
echo "<b class='success'>{$spText['label']['Success']}</b>";
Expand All @@ -75,17 +75,9 @@
?>
</td>
</tr>
<tr class="blue_row">
<td class="td_left_col"><?php echo $spText['label']['Updated']?>:</td>
<td class="td_right_col"><?php echo $logInfo['crawl_time']?></td>
</tr>
<tr class="white_row">
<td class="tab_left_bot_noborder"></td>
<td class="tab_right_bot"></td>
</tr>
<tr class="listBot">
<td class="left" colspan="1"></td>
<td class="right"></td>
<tr>
<td><?php echo $spText['label']['Updated']?>:</td>
<td><?php echo $logInfo['crawl_time']?></td>
</tr>
</table>
<br><br>
48 changes: 34 additions & 14 deletions themes/simple/views/settings/showsettings.ctp.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,20 @@
</a>
</div>
<?php
} else if ($category == "dataforseo") {
?>
<div id="topnewsbox" style="margin-bottom: 20px;">
<a class="bold_link" href="https://www.seopanel.org/blog/2020/11/how-to-integrate-dataforseo-with-seo-panel/" target="_blank">
<?php echo $spTextSettings['click-to-get-dataforseo-account']; ?> &gt;&gt;
</a>
</div>
<?php
}
?>
<form id="updateSettings">
<input type="hidden" value="update" name="sec">
<input type="hidden" value="<?php echo $category?>" name="category">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="list">
<table class="list">
<tr class="listHead">
<td width='30%'><?php echo $headLabel?></td>
<td>&nbsp;</td>
Expand Down Expand Up @@ -74,18 +82,20 @@
// sp demo settings
$demoCheckArr = array(
'SP_API_KEY', 'API_SECRET', 'SP_SMTP_PASSWORD', 'SP_MOZ_API_ACCESS_ID', 'SP_MOZ_API_SECRET', 'SP_GOOGLE_API_KEY',
'SP_GOOGLE_API_CLIENT_ID', 'SP_GOOGLE_API_CLIENT_SECRET', 'SP_GOOGLE_ANALYTICS_TRACK_CODE'
'SP_GOOGLE_API_CLIENT_ID', 'SP_GOOGLE_API_CLIENT_SECRET', 'SP_GOOGLE_ANALYTICS_TRACK_CODE', 'SP_RECAPTCHA_SITE_KEY',
'SP_RECAPTCHA_SECRET_KEY', 'SP_DFS_API_LOGIN', 'SP_DFS_API_PASSWORD',
);
if (SP_DEMO && in_array($listInfo['set_name'], $demoCheckArr)) {
$listInfo['set_val'] = "********";
}

}
?>
<tr>
<td class="td_left_col">
<?php
if ($listInfo['set_name'] == 'SP_PAYMENT_CURRENCY') {
echo $spTextSubscription["Currency"] . ":";
echo $spTextSubscription["Currency"] . ":";
} elseif ($listInfo['set_name'] == 'SP_DEFAULT_COUNTRY') {
echo $spText['common']["Country"] . ":";
} else {
echo $spTextSettings[$listInfo['set_name']] . ":";
}
Expand Down Expand Up @@ -133,6 +143,19 @@
}
?>
</select>
<?php } else if ($listInfo['set_name'] == 'SP_DEFAULT_COUNTRY') {?>
<select name="<?php echo $listInfo['set_name']?>">
<?php
foreach ($countryList as $countryCode => $countryName) {
$selectedVal = ($listInfo['set_val'] == $countryCode) ? "selected" : "";
?>
<option value="<?php echo $countryCode; ?>" <?php echo $selectedVal; ?>><?php echo $countryName; ?></option>
<?php
}
?>
</select>
<?php } else if ($listInfo['set_name'] == 'SP_DFS_BALANCE') {?>
<label id='sp_dfs_balance'><?php echo stripslashes($listInfo['set_val'])?></label>
<?php } else {
$passTypeList = array('SP_SMTP_PASSWORD', 'API_SECRET');
$type = in_array($listInfo['set_name'], $passTypeList) ? "password" : "text";
Expand All @@ -149,6 +172,11 @@
<a href="javascript:void(0);" onclick="checkGoogleAPIConnection('settings.php?sec=checkGoogleAPI', 'show_conn_res')" style="text-decoration: none;"><?php echo $spTextSettings['Verify connection']; ?> &gt;&gt;</a>
</div>
<div id="show_conn_res" style="padding: 10px 6px;"></div>
<?php } else if ($listInfo['set_name'] == 'SP_DFS_API_PASSWORD') {?>
<div style="padding: 10px 6px;">
<a href="javascript:void(0);" onclick="checkDataForSEOAPIConnection('settings.php?sec=checkDataForSEOAPI', 'show_conn_res')" style="text-decoration: none;"><?php echo $spTextSettings['Verify connection']; ?> &gt;&gt;</a>
</div>
<div id="show_conn_res" style="padding: 10px 6px;"></div>
<?php }?>

<?php }?>
Expand All @@ -170,16 +198,8 @@
<?php
}
?>
<tr class="blue_row">
<td class="tab_left_bot_noborder"></td>
<td class="tab_right_bot"></td>
</tr>
<tr class="listBot">
<td class="left" colspan="1"></td>
<td class="right"></td>
</tr>
</table>
<table width="100%" cellspacing="0" cellpadding="0" border="0" class="actionSec">
<table class="actionSec">
<tr>
<td style="padding-top: 6px;text-align:right;">
<a onclick="scriptDoLoad('settings.php?category=<?php echo $category?>', 'content', 'layout=ajax')" href="javascript:void(0);" class="actionbut">
Expand Down
2 changes: 1 addition & 1 deletion themes/simple/views/website/new.ctp.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<?php
}

$post['url'] = empty($post['url']) ? "http://" : $post['url'];
$post['url'] = empty($post['url']) ? "https://" : $post['url'];
?>
<form id="newWebsite">
<input type="hidden" name="sec" value="create"/>
Expand Down

0 comments on commit 924ad8f

Please sign in to comment.