update code to add design from main wp page

This commit is contained in:
usmannasir
2025-04-05 00:38:17 +05:00
parent 85a8fbef27
commit 722d804685
3 changed files with 7867 additions and 11 deletions

View File

@@ -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) {
var site = $scope.WebSitesList.find(function(site) {
return site.domain === domain;

View File

@@ -134,16 +134,16 @@
<div class="wp-site-content">
<div class="row">
<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 $}"
class="img-responsive"
style="max-width: 100%; margin-bottom: 10px;"
onerror="this.onerror=null; this.src='https://s.wordpress.org/style/images/about/WordPress-logotype-standard.png';">
<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
</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
</a>
</div>

File diff suppressed because it is too large Load Diff