C:\xampp\htdocs\landing\wp-content\plugins\totalpoll\src\Admin\Poll\views\choices\choices.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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
<?php defined'ABSPATH' ) && exit(); ?><script type="text/ng-template" id="choices-component-template">
    <div ng-show="$ctrl.droppable" class="totalpoll-droppable">
        <span class="totalpoll-droppable-content"><?php _e'Drop to add''totalpoll' ); ?></span>
    </div>

    <?php
    
/**
     * Fires before choices.
     *
     * @since 4.0.0
     */
    
do_action'totalpoll/actions/before/admin/editor/choices'$this );
    
?>

    <div class="totalpoll-containable-toolbar">
        <div class="button-group">
            <?php
            
/**
             * Fires at the 1st position of toolbar buttons.
             *
             * @since 4.0.0
             */
            
do_action'totalpoll/actions/editor/choices/toolbar/1'$this );
            
?>
            <button type="button" class="button button-large" ng-click="$ctrl.collapseChoices()" ng-disabled="$ctrl.items.length === 0">
                <?php _e'Collapse''totalpoll' ); ?>
            </button>
            <?php
            
/**
             * Fires at the 2nd position of toolbar buttons.
             *
             * @since 4.0.0
             */
            
do_action'totalpoll/actions/editor/choices/toolbar/2'$this );
            
?>
            <button type="button" class="button button-large" ng-click="$ctrl.expandChoices()" ng-disabled="$ctrl.items.length === 0">
                <?php _e'Expand''totalpoll' ); ?>
            </button>
            <?php
            
/**
             * Fires at the 3rd position of toolbar buttons.
             *
             * @since 4.0.0
             */
            
do_action'totalpoll/actions/editor/choices/toolbar/3'$this );
            
?>
        </div>

        <div class="button-group">
            <?php
            
/**
             * Fires at the 4th position of toolbar buttons.
             *
             * @since 4.0.0
             */
            
do_action'totalpoll/actions/editor/choices/toolbar/4'$this );
            
?>
            <button type="button" class="button button-large" ng-click="$ctrl.toggleBulkInput()" >
                <?php _e'Bulk''totalpoll' ); ?>
                
            </button>
            <?php
            
/**
             * Fires at the 5th position of toolbar buttons.
             *
             * @since 4.0.0
             */
            
do_action'totalpoll/actions/editor/choices/toolbar/5'$this );
            
?>
            <button type="button" class="button button-large" ng-click="$ctrl.shuffleChoices()" ng-disabled="$ctrl.items.length < 2">
                <?php _e'Shuffle''totalpoll' ); ?>
            </button>
            <?php
            
/**
             * Fires at the 6th position of toolbar buttons.
             *
             * @since 4.0.0
             */
            
do_action'totalpoll/actions/editor/choices/toolbar/6'$this );
            
?>
            <button type="button" class="button button-large" ng-click="$ctrl.randomVotes()" ng-disabled="$ctrl.items.length === 0">
                <?php _e'Random Votes''totalpoll' ); ?>
            </button>
            <?php
            
/**
             * Fires at the 7th position of toolbar buttons.
             *
             * @since 4.0.0
             */
            
do_action'totalpoll/actions/editor/choices/toolbar/7'$this );
            
?>
        </div>

        <div class="button-group">
            <?php
            
/**
             * Fires at the 8th position of toolbar buttons.
             *
             * @since 4.0.0
             */
            
do_action'totalpoll/actions/editor/choices/toolbar/8'$this );
            
?>
            <button type="button" class="button button-large" ng-click="$ctrl.toggleFilterList()"  ng-disabled="$ctrl.items.length === 0">
                <?php _e'Filter''totalpoll' ); ?>
                
            </button>
            <?php
            
/**
             * Fires at the 9th position of toolbar buttons.
             *
             * @since 4.0.0
             */
            
do_action'totalpoll/actions/editor/choices/toolbar/9'$this );
            
?>
            <button type="button" class="button button-large button-danger" ng-click="$ctrl.deleteChoices()" ng-disabled="$ctrl.items.length === 0">
                <?php _e'Delete All''totalpoll' ); ?>
            </button>
            <?php
            
/**
             * Fires at the 10th position of toolbar buttons.
             *
             * @since 4.0.0
             */
            
do_action'totalpoll/actions/editor/choices/toolbar/10'$this );
            
?>
            <button type="button" class="button button-large button-danger" ng-click="$ctrl.resetVotes()" ng-disabled="$ctrl.items.length === 0">
                <?php _e'Reset Votes''totalpoll' ); ?>
            </button>
            <?php
            
/**
             * Fires at the 11th position of toolbar buttons.
             *
             * @since 4.0.0
             */
            
do_action'totalpoll/actions/editor/choices/toolbar/11'$this );
            
?>
        </div>
    </div>

    <div class="totalpoll-containable-bulk" ng-if="$ctrl.bulkInput">
        <textarea name="" ng-model="$ctrl.bulkContent" rows="6" placeholder="<?php _e'One choice per line.''totalpoll' ); ?>"></textarea>
        <button type="button" class="button button-large" ng-click="$ctrl.insertBulkChoices()">
            <?php _e'Insert''totalpoll' ); ?>
        </button>
    </div>

    <div class="totalpoll-containable-types" ng-if="$ctrl.filterList">
        <label class="totalpoll-containable-types-item">
            <input type="checkbox" ng-model="$ctrl.types.text">
            <?php _e'Text''totalpoll' ); ?>
        </label>
        <label class="totalpoll-containable-types-item">
            <input type="checkbox" ng-model="$ctrl.types.image">
            <?php _e'Image''totalpoll' ); ?>
        </label>
        <label class="totalpoll-containable-types-item">
            <input type="checkbox" ng-model="$ctrl.types.video">
            <?php _e'Video''totalpoll' ); ?>
        </label>
        <label class="totalpoll-containable-types-item">
            <input type="checkbox" ng-model="$ctrl.types.audio">
            <?php _e'Audio''totalpoll' ); ?>
        </label>
        <label class="totalpoll-containable-types-item">
            <input type="checkbox" ng-model="$ctrl.types.html">
            <?php _e'HTML''totalpoll' ); ?>
        </label>
    </div>

    <div class="totalpoll-empty-state" ng-if="$ctrl.items.length === 0" ondragstart="return false;">
        <div class="totalpoll-empty-state-text">
            <?php _e'No choices yet. Add some by clicking on buttons bellow.''totalpoll' ); ?>
        </div>
    </div>
    <div class="totalpoll-containable-list"
         dnd-list="$ctrl.items"
         dnd-disable-if="$ctrl.items.length < 2">
        <dnd-nodrag ng-repeat="item in $ctrl.items"
                    dnd-draggable="item"
                    dnd-effect-allowed="move"
                    ng-show="$ctrl.isTypeActive(item.type)"
                    dnd-moved="$ctrl.deleteChoice($index, true)">
            <choice item="item"
                    index="$index"
                    on-delete="$ctrl.deleteChoice($index)"
                    on-override-votes="$ctrl.confirmOverride($event)"></choice>
        </dnd-nodrag>
        <div class="dndPlaceholder totalpoll-list-placeholder">
            <div class="totalpoll-list-placeholder-text">
                <?php _e'Move here''totalpoll' ); ?>
            </div>
        </div>
    </div>

    <div class="totalpoll-buttons-horizontal">
        <div class="totalpoll-buttons-horizontal-item" ng-click="$ctrl.insertChoice({type: 'text'})">
            <div class="dashicons dashicons-editor-textcolor"></div>
            <div class="totalpoll-buttons-horizontal-item-title">
                <?php _e'Text''totalpoll' ); ?>
            </div>
        </div>
        <div class="totalpoll-buttons-horizontal-item " ng-click="$ctrl.insertChoice({type: 'image', image: {full: '', thumbnail:''}})" >
            <div class="dashicons dashicons-format-image"></div>
            <div class="totalpoll-buttons-horizontal-item-title">
                <?php _e'Image''totalpoll' ); ?>
            </div>
            
        </div>
        <div class="totalpoll-buttons-horizontal-item " ng-click="$ctrl.insertChoice({type: 'video', video: {full: '', thumbnail:'', html: ''}})" >
            <div class="dashicons dashicons-format-video"></div>
            <div class="totalpoll-buttons-horizontal-item-title">
                <?php _e'Video''totalpoll' ); ?>
            </div>
            
        </div>
        <div class="totalpoll-buttons-horizontal-item " ng-click="$ctrl.insertChoice({type: 'audio', audio: {full: '', thumbnail:'', html: ''}})" >
            <div class="dashicons dashicons-format-audio"></div>
            <div class="totalpoll-buttons-horizontal-item-title">
                <?php _e'Audio''totalpoll' ); ?>
            </div>
            
        </div>
        <div class="totalpoll-buttons-horizontal-item " ng-click="$ctrl.insertChoice({type: 'html', html: ''})" >
            <div class="dashicons dashicons-editor-code"></div>
            <div class="totalpoll-buttons-horizontal-item-title">
                <?php _e'HTML''totalpoll' ); ?>
            </div>
            
        </div>
        <?php do_action'totalpoll/actions/editor/choices/types'$this ); ?>
    </div>


    <?php
    
/**
     * Fires after choices.
     *
     * @since 4.0.0
     */
    
do_action'totalpoll/actions/after/admin/editor/choices'$this );
    
?>
</script>
x

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