C:\xampp\htdocs\landing\wp-content\plugins\totalpoll\src\Admin\Poll\views\questions\question.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
<?php defined'ABSPATH' ) && exit(); ?><script type="text/ng-template" id="question-component-template">
    <h3 class="totalpoll-h3">
        <?php _e'Content''totalpoll' ); ?>
    </h3>
    <?php
    
/**
     * Fires before question content.
     *
     * @since 4.0.0
     */
    
do_action'totalpoll/actions/before/admin/questions/content' );
    
?>
    <progressive-textarea ng-model="$ctrl.item.content" rows="2"></progressive-textarea>
    <?php
    
/**
     * Fires after question content.
     *
     * @since 4.0.0
     */
    
do_action'totalpoll/actions/after/admin/questions/content' );
    
?>

    <h3 class="totalpoll-h3">
        <?php _e'Settings''totalpoll' ); ?>
    </h3>
    <?php
    
/**
     * Fires before question settings.
     *
     * @since 4.0.0
     */
    
do_action'totalpoll/actions/before/admin/questions/settings' );
    
?>
    <div class="totalpoll-settings-item totalpoll-settings-item-inline">
        <div class="totalpoll-settings-field">
            <label class="totalpoll-settings-field-label">
                <span bindings="{minimum: '$ctrl.item.settings.selection.minimum'}"><?php _e'User must vote at least for {{minimum}} choice(s).''totalpoll' ); ?></span>
            </label>
            <input type="number"
                   min="0"
                   step="1"
                   class="totalpoll-settings-field-input widefat"
                   ng-attr-max="{{ $ctrl.item.choices.length || 1 }}"
                   ng-model="$ctrl.item.settings.selection.minimum"
                   ng-model-options="{ allowInvalid: true, debounce: 1 }"
                   ng-change="$ctrl.checkSettings()">
        </div>
        <div class="totalpoll-settings-field">
            <label class="totalpoll-settings-field-label">
                <span bindings="{maximum: '$ctrl.item.settings.selection.maximum'}"><?php _e'User can vote for up to {{maximum}} choice(s).''totalpoll' ); ?></span>
            </label>
            <input type="number" min="1" step="1"
                   class="totalpoll-settings-field-input widefat"
                   ng-attr-max="{{ $ctrl.item.choices.length || 1 }}"
                   ng-model="$ctrl.item.settings.selection.maximum"
                   ng-model-options="{ allowInvalid: true, debounce: 1 }"
                   ng-change="$ctrl.checkSettings()">
        </div>
        <div class="totalpoll-settings-field ">
            <label class="totalpoll-settings-field-label">
                <?php _e'Allow custom choice (other field).''totalpoll' ); ?>
            </label>
            <select name="" class="totalpoll-settings-field-input widefat" ng-model="$ctrl.item.settings.allowCustomChoice" >
                <option value=""><?php _e'No''totalpoll' ); ?></option>
                <option value="visible"><?php _e'Yes''totalpoll' ); ?></option>
                <option value="hidden"><?php _e'Yes, but hide it until reviewed below.''totalpoll' ); ?></option>
            </select>
            
        </div>
    </div>
    <?php
    
/**
     * Fires after question settings.
     *
     * @since 4.0.0
     */
    
do_action'totalpoll/actions/after/admin/questions/settings' );
    
?>

    <h3 class="totalpoll-h3">
        <?php _e'Choices''totalpoll' ); ?>
    </h3>
    <?php
    
/**
     * Fires before question choices.
     *
     * @since 4.0.0
     */
    
do_action'totalpoll/actions/before/admin/questions/choices' );
    
?>
    <choices items="$ctrl.item.choices" class="totalpoll-droppable-parent"></choices>
    <?php
    
/**
     * Fires after question choices.
     *
     * @since 4.0.0
     */
    
do_action'totalpoll/actions/after/admin/questions/choices' );
    
?>

</script>
x

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