C:\xampp\htdocs\landing\wp-content\plugins\totalpoll\src\Admin\Poll\views\choices\choice.php


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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<?php defined'ABSPATH' ) && exit(); ?><script type="text/ng-template" id="choice-component-template">
    <div class="totalpoll-containable-list-item" ng-class="{'active': !$ctrl.isCollapsed()}">
        <div class="totalpoll-containable-list-item-toolbar">
            <div class="totalpoll-containable-list-item-toolbar-collapse" ng-click="$ctrl.toggleCollapsed()">
                <span class="totalpoll-containable-list-item-toolbar-collapse-text">{{ $ctrl.index + 1 }}</span>
                <span class="dashicons dashicons-arrow-up" ng-if="!$ctrl.isCollapsed()"></span>
                <span class="dashicons dashicons-arrow-down" ng-if="$ctrl.isCollapsed()"></span>
            </div>
            <?php
            
/**
             * Fires before choice preview toolbar.
             *
             * @since 4.0.0
             */
            
do_action'totalpoll/actions/before/admin/editor/choices/toolbar/preview'$this );
            
?>
            <div class="totalpoll-containable-list-item-toolbar-preview" dnd-handle ng-click="$ctrl.toggleCollapsed()">
                <span class="totalpoll-containable-list-item-toolbar-preview-text">
                    {{ $ctrl.item.label || '<?php echo esc_js__'Untitled''totalpoll' ) ); ?>' }}
                    <?php
                    
/**
                     * Fires after choice preview toolbar text.
                     *
                     * @since 4.0.0
                     */
                    
do_action'totalpoll/actions/editor/choices/toolbar/preview/text'$this );
                    
?>
                </span>
                <span class="totalpoll-containable-list-item-toolbar-preview-type">
                    <span ng-if="$ctrl.item.type === 'text'"><?php _e'Text''totalpoll' ); ?></span>
                    <span ng-if="$ctrl.item.type === 'image'"><?php _e'Image''totalpoll' ); ?></span>
                    <span ng-if="$ctrl.item.type === 'video'"><?php _e'Video''totalpoll' ); ?></span>
                    <span ng-if="$ctrl.item.type === 'audio'"><?php _e'Audio''totalpoll' ); ?></span>
                    <span ng-if="$ctrl.item.type === 'html'"><?php _e'HTML''totalpoll' ); ?></span>
                    <?php
                    
/**
                     * Fires after choice preview toolbar type.
                     *
                     * @since 4.0.0
                     */
                    
do_action'totalpoll/actions/editor/choices/toolbar/preview/type'$this );
                    
?>
                </span>
            </div>
            <?php
            
/**
             * Fires after choice preview toolbar.
             *
             * @since 4.0.0
             */
            
do_action'totalpoll/actions/after/admin/editor/choices/toolbar/preview'$this );
            
?>

            <?php
            
/**
             * Fires before choice votes input.
             *
             * @since 4.0.0
             */
            
do_action'totalpoll/actions/before/admin/editor/choices/toolbar/votes'$this );
            
?>
            <div class="totalpoll-containable-list-item-toolbar-votes" ondragstart="return false;">
                <label for="{{$ctrl.prefix('votes')}}">
                    <?php _e'Votes''totalpoll' ); ?>
                </label>
                <input type="number"
                       min="0"
                       placeholder="<?php _e'Votes''totalpoll' ); ?>"
                       ng-init="$ctrl.item.votesOverride || ($ctrl.item.votesOverride = 0)"
                       ng-focus="$ctrl.onOverrideVotes({$event: $event})"
                       ng-style="{'width': ( ($ctrl.item.votesOverride.toString().length * 6) + 30 )}"
                       name="{{$ctrl.prefix('votes')}}" id="{{$ctrl.prefix('votes')}}"
                       ng-model="$ctrl.item.votesOverride">
                <button type="reset" ng-if="$ctrl.item.votesOverride !== $ctrl.item.votes" class="button button-small" ng-click="$ctrl.item.votesOverride = $ctrl.item.votes">
                    <?php _e'Revert''totalpoll' ); ?>
                </button>
            </div>
            <?php
            
/**
             * Fires after choice votes input.
             *
             * @since 4.0.0
             */
            
do_action'totalpoll/actions/after/admin/editor/choices/toolbar/votes'$this );
            
?>

            <?php
            
/**
             * Fires before choice visibility toggle.
             *
             * @since 4.0.0
             */
            
do_action'totalpoll/actions/before/admin/editor/choices/toolbar/visibility'$this );
            
?>
            <div class="totalpoll-containable-list-item-toolbar-visibility" ng-class="{'active': $ctrl.isVisible()}">
                <button class="button button-small" ng-click="$ctrl.toggleVisibility()" type="button">
                    <span class="dashicons dashicons-visibility"></span>
                </button>
            </div>
            <?php
            
/**
             * Fires after choice visibility toggle.
             *
             * @since 4.0.0
             */
            
do_action'totalpoll/actions/after/admin/editor/choices/toolbar/visibility'$this );
            
?>

            <?php
            
/**
             * Fires before choice delete button.
             *
             * @since 4.0.0
             */
            
do_action'totalpoll/actions/before/admin/editor/choices/toolbar/delete'$this );
            
?>
            <div class="totalpoll-containable-list-item-toolbar-delete">
                <button class="button button-danger button-small" type="button"
                        ng-click="$ctrl.onDelete()">
                    <?php _e'Delete''totalpoll' ); ?>
                </button>
            </div>
            <?php
            
/**
             * Fires before choice delete button.
             *
             * @since 4.0.0
             */
            
do_action'totalpoll/actions/after/admin/editor/choices/toolbar/delete'$this );
            
?>
        </div>

        <?php
        
/**
         * Fires before choice content.
         *
         * @since 4.0.0
         */
        
do_action'totalpoll/actions/before/admin/editor/choices/content'$this );
        
?>
        <div class="totalpoll-containable-list-item-editor"
             ondragstart="return false;"
             ng-include="'choice-type-' + $ctrl.item.type + '-template'"
             ng-hide="$ctrl.isCollapsed()">
        </div>
        <?php
        
/**
         * Fires after choice content.
         *
         * @since 4.0.0
         */
        
do_action'totalpoll/actions/after/admin/editor/choices/content'$this );
        
?>
    </div>
</script>
x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586