C:\xampp\htdocs\landing\wp-content\plugins\totalpoll\src\Admin\Poll\views\form\fields.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
<?php defined'ABSPATH' ) && exit(); ?><script type="text/ng-template" id="fields-component-template">
    <div class="totalpoll-fields">
        <?php
        
/**
         * Fires before fields.
         *
         * @since 4.0.0
         */
        
do_action'totalpoll/actions/before/admin/editor/fields'$this );
        
?>
        <div class="totalpoll-fields-sidebar">
            <h3 class="totalpoll-h3"><?php _e'Preset''totalpoll' ); ?></h3>

            <button type="button" class="button button-large" ng-click="$ctrl.insertFieldFromPreset('First name*')"><?php _e'First name''totalpoll' ); ?></button>
            <button type="button" class="button button-large" ng-click="$ctrl.insertFieldFromPreset('Last name*')"><?php _e'Last name''totalpoll' ); ?></button>
            <button type="button" class="button button-large" ng-click="$ctrl.insertFieldFromPreset('Email*')"><?php _e'Email''totalpoll' ); ?></button>
            <button type="button" class="button button-large" ng-click="$ctrl.insertFieldFromPreset('Phone')" ><?php _e'Phone''totalpoll' ); ?></button>
            <button type="button" class="button button-large" ng-click="$ctrl.insertFieldFromPreset('Gender')" ><?php _e'Gender''totalpoll' ); ?></button>
            <button type="button" class="button button-large" ng-click="$ctrl.insertFieldFromPreset('Country')" ><?php _e'Country''totalpoll' ); ?></button>
            <button type="button" class="button button-large" ng-click="$ctrl.insertFieldFromPreset('Agree')" ><?php _e'Agreement''totalpoll' ); ?></button>
            <?php
            
/**
             * Fires after field presets.
             *
             * @since 4.0.0
             */
            
do_action'totalpoll/actions/before/admin/editor/fields/presets'$this );
            
?>
        </div>
        <div class="totalpoll-fields-content">
            <h3 class="totalpoll-h3"><?php _e'Fields''totalpoll' ); ?></h3>
            <?php
            
/**
             * Fires before fields toolbar.
             *
             * @since 4.0.0
             */
            
do_action'totalpoll/actions/before/admin/editor/fields/toolbar'$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/fields/toolbar'1$this );
                    
?>
                    <button type="button" class="button button-large" ng-click="$ctrl.collapseFields()"><?php _e'Collapse''totalpoll' ); ?></button>
                    <?php
                    
/**
                     * Fires at the 2nd position of toolbar buttons.
                     *
                     * @since 4.0.0
                     */
                    
do_action'totalpoll/actions/editor/fields/toolbar'2$this );
                    
?>
                    <button type="button" class="button button-large" ng-click="$ctrl.expandFields()"><?php _e'Expand''totalpoll' ); ?></button>
                    <?php
                    
/**
                     * Fires at the 3rd position of toolbar buttons.
                     *
                     * @since 4.0.0
                     */
                    
do_action'totalpoll/actions/editor/fields/toolbar'3$this );
                    
?>
                    <button type="button" class="button button-large" ng-click="$ctrl.toggleBulkInput()" ><?php _e'Bulk''totalpoll' ); ?></button>
                    <?php
                    
/**
                     * Fires at the 4th position of toolbar buttons.
                     *
                     * @since 4.0.0
                     */
                    
do_action'totalpoll/actions/editor/fields/toolbar'4$this );
                    
?>
                </div>

                <?php
                
/**
                 * Fires at the 5th position of toolbar buttons.
                 *
                 * @since 4.0.0
                 */
                
do_action'totalpoll/actions/editor/fields/toolbar'5$this );
                
?>
                <button type="button" class="button button-large button-danger" ng-click="$ctrl.deleteFields()">
                    <?php _e'Delete All''totalpoll' ); ?>
                </button>
                <?php
                
/**
                 * Fires at the 6th position of toolbar buttons.
                 *
                 * @since 4.0.0
                 */
                
do_action'totalpoll/actions/editor/fields/toolbar'6$this );
                
?>
            </div>
            <?php
            
/**
             * Fires after fields toolbar.
             *
             * @since 4.0.0
             */
            
do_action'totalpoll/actions/after/admin/editor/fields/toolbar'$this );
            
?>

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

            <div class="totalpoll-empty-state" ng-if="$ctrl.items.length === 0">
                <div class="totalpoll-empty-state-text"><?php _e'No custom fields 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"
                            dnd-moved="$ctrl.deleteField($index, true)">
                    <field item="item" index="$index" on-delete="$ctrl.deleteField($index)"></field>
                </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">
                <?php
                
/**
                 * Fires before field types.
                 *
                 * @since 4.0.0
                 */
                
do_action'totalpoll/actions/before/admin/editor/fields/types'$this );

                
$types apply_filters'totalpoll/filters/admin/editor/fields/types',
                    [
                        
'text'     => [ 'label' => __'Text''totalpoll' ), 'icon' => 'editor-textcolor''args' => [ 'type' => 'text' ] ],
                        
'textarea' => [ 'label' => __'Textarea''totalpoll' ), 'icon' => 'text''args' => [ 'type' => 'textarea' ] ],
                        
'select'   => [ 'label' => __'Select''totalpoll' ), 'icon' => 'menu''args' => [ 'type' => 'select' ] ],
                        
'checkbox' => [ 'label' => __'Checkbox''totalpoll' ), 'icon' => 'yes''args' => [ 'type' => 'checkbox' ] ],
                        
'radio'    => [ 'label' => __'Radio''totalpoll' ), 'icon' => 'marker''args' => [ 'type' => 'radio' ] ],
                    ]
                );
                
                
?>

                <?php foreach ( $types as $typeId => $type ): ?>
                    
                    <div class="totalpoll-buttons-horizontal-item" ng-click="$ctrl.insertField(<?php echo esc_jsjson_encode$type['args'] ) ); ?>)">
                        <div class="dashicons dashicons-<?php echo esc_attr$type['icon'] ); ?>"></div>
                        <div class="totalpoll-buttons-horizontal-item-title"><?php echo esc_html$type['label'] ); ?></div>
                    </div>
                    

                    
                <?php endforeach; ?>

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

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