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
|
<?php ! defined( 'ABSPATH' ) && exit(); ?><div class="totalpoll-integration-steps" ng-controller="SidebarIntegrationCtrl as $ctrl"> <div class="totalpoll-integration-steps-item"> <div class="totalpoll-integration-steps-item-number"> <div class="totalpoll-integration-steps-item-number-circle">1</div> </div> <div class="totalpoll-integration-steps-item-content"> <h3 class="totalpoll-h3"> <?php _e('Add it to sidebar', 'totalpoll'); ?> </h3> <p> <?php _e('Start by adding this poll to one of available sidebars:', 'totalpoll'); ?> </p> <div class="totalpoll-integration-steps-item-copy"> <select name="" ng-model="$ctrl.sidebar" ng-options="sidebar as sidebar.name for sidebar in information.sidebars"> <option value=""><?php _e('Select a sidebar', 'totalpoll'); ?></option> </select> <button type="button" class="button button-primary button-large" ng-disabled="!$ctrl.sidebar || $ctrl.sidebar.inserted" ng-click="$ctrl.addWidgetToSidebar()"> <span ng-if="!$ctrl.sidebar.inserted"><?php _e( 'Insert', 'totalpoll' ); ?></span> <span ng-if="$ctrl.sidebar.inserted"><?php _e( 'Inserted', 'totalpoll' ); ?></span> </button> </div> </div> </div> <div class="totalpoll-integration-steps-item"> <div class="totalpoll-integration-steps-item-number"> <div class="totalpoll-integration-steps-item-number-circle">2</div> </div> <div class="totalpoll-integration-steps-item-content"> <h3 class="totalpoll-h3"> <?php _e('Preview', 'totalpoll'); ?> </h3> <p> <?php _e('Open the page which you have the same sidebar and test poll functionality.', 'totalpoll'); ?> </p> </div> </div> </div>
|