1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
<?php ! defined( 'ABSPATH' ) && exit(); ?><script type="text/ng-template" id="modules-manager-component-template"> <div class="totalpoll-modules-list" ng-class="{'totalpoll-processing': $ctrl.modules === null}" ng-init="$root.$manager = $ctrl"> <div class="totalpoll-row"> <div class="totalpoll-column totalpoll-column-6" ng-repeat="module in $ctrl.getModules()" ng-if="($root.isCurrentTab('modules>installed') && module.isInstalled()) || ($root.isCurrentTab('modules>store') && !module.isInstalled())"> <div class="totalpoll-modules-list-item" ng-class="{'totalpoll-processing': $ctrl.isProcessing(module), 'totalpoll-successful': $ctrl.isSuccessful(module)}"> <div class="totalpoll-modules-list-item-error" ng-show="$ctrl.getError(module)" ng-click="$ctrl.dismissError(module)"> {{$ctrl.getError(module)}}
<button type="button" class="notice-dismiss"></button> </div>
<div class="totalpoll-modules-list-item-body"> <div class="totalpoll-modules-list-item-image"> <img ng-src="{{module.getImage('icon')}}"> </div> <div class="totalpoll-modules-list-item-details"> <div class="totalpoll-modules-list-item-title"> <a ng-href="{{module.getPermalink()}}" target="_blank">{{module.getName()}}</a> </div> <div class="totalpoll-modules-list-item-author"><?php _e( 'By', 'totalpoll' ); ?> <a ng-href="{{module.getAuthorUrl()}}">{{module.getAuthorName()}}</a> </div> <div class="totalpoll-modules-list-item-description"> <p ng-bind-html="module.get('description')"></p> </div> </div> <div class="totalpoll-modules-list-item-actions"> <div ng-show="module.isPurchased() && !module.isInstalled()"> <button ng-click="$ctrl.applyAction('installFromStore', module)" class="widefat button button-primary button-large"> <span class="dashicons dashicons-arrow-down-alt"></span> <?php _e( 'Install', 'totalpoll' ); ?> </button> </div> <div ng-show="!module.isPurchased() && !module.isInstalled()"> <a target="_blank" ng-href="{{module.getPermalink()}}" class="widefat button button-primary button-large"> <span class="dashicons dashicons-external"></span> <?php _e( 'Get it', 'totalpoll' ); ?> </a> </div> <div ng-show="module.isInstalled() && module.hasUpdate()"> <button ng-click="$ctrl.applyAction('update', module)" class="widefat button button-primary button-large"> <span class="dashicons dashicons-update"></span> <?php _e( 'Update', 'totalpoll' ); ?> </button> </div> <div ng-show="module.isInstalled() && !module.isActivated()"> <button ng-click="$ctrl.applyAction('activate', module)" class="widefat button button-large"> <span class="dashicons dashicons-admin-plugins"></span> <?php _e( 'Activate', 'totalpoll' ); ?> </button> </div> <div ng-show="module.isInstalled() && !module.isActivated()"> <button ng-click="$ctrl.applyAction('uninstall', module)" class="widefat button button-danger button-large"> <span class="dashicons dashicons-trash"></span> <?php _e( 'Uninstall', 'totalpoll' ); ?> </button> </div> <div ng-show="module.isInstalled() && module.isActivated()"> <button class="widefat button button-danger button-large" ng-disabled="module.getId() === 'basic-template'" ng-click="$ctrl.applyAction('deactivate', module)"> <span class="dashicons dashicons-warning"></span> <?php _e( 'Deactivate', 'totalpoll' ); ?> </button> </div> </div> </div> <div class="totalpoll-modules-list-item-footer"> <div class="totalpoll-modules-list-item-version"> <strong><?php _e( 'Version', 'totalpoll' ); ?> {{module.getVersion()}}</strong> </div> </div> </div> </div> </div>
</div> </script>
|