additional setting for improved wp page

This commit is contained in:
usmannasir
2025-04-01 22:40:52 +05:00
parent 17669e4b17
commit ec6689f695
2 changed files with 9 additions and 3 deletions

View File

@@ -4,7 +4,14 @@
{% block header_scripts %}
<script>
// Get the existing CyberCP module instead of trying to create it
// Create or get the CyberCP module
try {
angular.module('CyberCP');
} catch(err) {
angular.module('CyberCP', []);
}
// Now add our controller to the module
angular.module('CyberCP').controller('listWordPressSites', function($scope, $http) {
// Initialize scope variables
$scope.wpSites = JSON.parse('{{ wpsite|escapejs }}');