mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-06 13:25:51 +01:00
update code to add design from main wp page
This commit is contained in:
@@ -384,14 +384,6 @@ app.controller('listWebsites', function ($scope, $http, $window) {
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.getFullUrl = function(url) {
|
|
||||||
if (!url) return '';
|
|
||||||
if (url.startsWith('http://') || url.startsWith('https://')) {
|
|
||||||
return url;
|
|
||||||
}
|
|
||||||
return 'https://' + url;
|
|
||||||
};
|
|
||||||
|
|
||||||
$scope.showWPSites = function(domain) {
|
$scope.showWPSites = function(domain) {
|
||||||
var site = $scope.WebSitesList.find(function(site) {
|
var site = $scope.WebSitesList.find(function(site) {
|
||||||
return site.domain === domain;
|
return site.domain === domain;
|
||||||
|
|||||||
@@ -134,16 +134,16 @@
|
|||||||
<div class="wp-site-content">
|
<div class="wp-site-content">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-3">
|
<div class="col-sm-3">
|
||||||
<img ng-src="https://api.microlink.io/?url={$ getFullUrl(wp.url) $}&screenshot=true&meta=false&embed=screenshot.url"
|
<img ng-src="{$ wp.screenshot $}"
|
||||||
alt="{$ wp.title $}"
|
alt="{$ wp.title $}"
|
||||||
class="img-responsive"
|
class="img-responsive"
|
||||||
style="max-width: 100%; margin-bottom: 10px;"
|
style="max-width: 100%; margin-bottom: 10px;"
|
||||||
onerror="this.onerror=null; this.src='https://s.wordpress.org/style/images/about/WordPress-logotype-standard.png';">
|
onerror="this.onerror=null; this.src='https://s.wordpress.org/style/images/about/WordPress-logotype-standard.png';">
|
||||||
<div class="text-center">
|
<div class="text-center">
|
||||||
<a ng-href="{$ getFullUrl(wp.url) $}" target="_blank" class="btn btn-default btn-sm">
|
<a ng-href="http://{$ wp.url $}" target="_blank" class="btn btn-default btn-sm">
|
||||||
<i class="fas fa-external-link-alt"></i> Visit Site
|
<i class="fas fa-external-link-alt"></i> Visit Site
|
||||||
</a>
|
</a>
|
||||||
<a ng-click="wpLogin(wp.id)" class="btn btn-primary btn-sm" style="cursor: pointer;">
|
<a href="{% url 'AutoLogin' %}?id={$ wp.id $}" target="_blank" class="btn btn-primary btn-sm">
|
||||||
<i class="fab fa-wordpress"></i> WP Login
|
<i class="fab fa-wordpress"></i> WP Login
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user