carousel.php
3 years ago
general.php
2 weeks ago
get-shortcodes.php
3 years ago
grid.php
3 years ago
sortable.php
3 years ago
style.php
3 years ago
carousel.php
181 lines
| 1 | <?php |
| 2 | $autoplay = ! empty( $autoplay ) ? $autoplay : 'yes'; |
| 3 | $pause_hover = ! empty( $pause_hover ) ? $pause_hover : 'no'; |
| 4 | $repeat_post = ! empty( $repeat_post ) ? $repeat_post : 'yes'; |
| 5 | $navigation = ! empty( $navigation ) ? $navigation : 'yes'; |
| 6 | $navigation_position = ! empty( $navigation_position ) ? $navigation_position : 'middle'; |
| 7 | ?> |
| 8 | <div id="tab-3" class="adl-tab-content"> |
| 9 | |
| 10 | <div class="cmb2-wrap form-table"> |
| 11 | <table class="cmb2-metabox"> |
| 12 | |
| 13 | <tr> |
| 14 | <th><label for="gc[post_column]"><?php esc_html_e('Post Column', PGCU_TEXTDOMAIN); ?></label></th> |
| 15 | <td> |
| 16 | <input type='number' class="cmb2-text-medium" name="gc[post_column]" value="<?php echo esc_attr( ! empty( $post_column ) ? $post_column : '3' ); ?>"/> |
| 17 | |
| 18 | </td> |
| 19 | </tr> |
| 20 | |
| 21 | <tr> |
| 22 | <th><label for="gc[post_column_laptop]"><?php esc_html_e('Post Column on Laptop', PGCU_TEXTDOMAIN); ?></label></th> |
| 23 | <td> |
| 24 | <input type='number' class="cmb2-text-medium" name="gc[post_column_laptop]" value="<?php echo esc_attr( ! empty( $post_column_laptop ) ? $post_column_laptop : '3' ); ?>"/> |
| 25 | |
| 26 | </td> |
| 27 | </tr> |
| 28 | |
| 29 | <tr> |
| 30 | <th><label for="gc[post_column_tablet]"><?php esc_html_e('Post column on Tablet', PGCU_TEXTDOMAIN); ?></label></th> |
| 31 | <td> |
| 32 | <input type='number' class="cmb2-text-medium" name="gc[post_column_tablet]" id="gc[post_column_tablet]" value="<?php echo esc_attr( ! empty( $post_column_tablet ) ? $post_column_tablet : '2' ); ?>" /> |
| 33 | </td> |
| 34 | </tr> |
| 35 | <tr> |
| 36 | <th><label for="gc[post_column_mobile]"><?php esc_html_e('Post column on Mobile', PGCU_TEXTDOMAIN); ?></label></th> |
| 37 | <td> |
| 38 | <input type='number' class="cmb2-text-medium" name="gc[post_column_mobile]" id="gc[post_column_mobile]" value="<?php echo esc_attr( ! empty( $post_column_mobile ) ? $post_column_mobile : '1' ); ?>" /> |
| 39 | |
| 40 | </td> |
| 41 | </tr> |
| 42 | |
| 43 | <tr> |
| 44 | <th><label for="gc[autoplay]"><?php esc_html_e('Autoplay', PGCU_TEXTDOMAIN); ?></label></th> |
| 45 | <td> |
| 46 | <ul class="cmb2-radio-list cmb2-list cmb2-radio-switch"> |
| 47 | <li> |
| 48 | <input type="radio" class="cmb2-option cmb2-radio-switch1" name="gc[autoplay]" id="gc[autoplay1]" value="yes" <?php checked( 'yes', $autoplay, true ); ?>> |
| 49 | <label for="gc[autoplay1]"><?php esc_html_e('Yes', PGCU_TEXTDOMAIN); ?></label> |
| 50 | </li> |
| 51 | <li> |
| 52 | <input type="radio" class="cmb2-option cmb2-radio-switch2" name="gc[autoplay]" id="gc[autoplay2]" value="no" <?php checked( 'no', $autoplay, true ); ?>> |
| 53 | <label for="gc[autoplay2]"><?php esc_html_e('No', PGCU_TEXTDOMAIN); ?></label> |
| 54 | </li> |
| 55 | </ul> |
| 56 | </td> |
| 57 | </tr> |
| 58 | |
| 59 | <tr> |
| 60 | <th><label for="gc[pause_hover]"><?php esc_html_e('Pause on Hover', PGCU_TEXTDOMAIN); ?></label></th> |
| 61 | <td> |
| 62 | <ul class="cmb2-radio-list cmb2-list cmb2-radio-switch"> |
| 63 | <li> |
| 64 | <input type="radio" class="cmb2-option cmb2-radio-switch1" name="gc[pause_hover]" id="gc[pause_hover1]" value="yes" <?php checked( 'yes', $pause_hover, true ); ?>> |
| 65 | <label for="gc[pause_hover1]"><?php esc_html_e('Yes', PGCU_TEXTDOMAIN); ?></label> |
| 66 | </li> |
| 67 | <li> |
| 68 | <input type="radio" class="cmb2-option cmb2-radio-switch2" name="gc[pause_hover]" id="gc[pause_hover2]" value="no" <?php checked( 'no', $pause_hover, true ); ?>> |
| 69 | <label for="gc[pause_hover2]"><?php esc_html_e('No', PGCU_TEXTDOMAIN); ?></label> |
| 70 | </li> |
| 71 | </ul> |
| 72 | </td> |
| 73 | </tr> |
| 74 | |
| 75 | <tr> |
| 76 | <th><label for="gc[repeat_post]"><?php esc_html_e('Repeat Post', PGCU_TEXTDOMAIN); ?></label></th> |
| 77 | <td> |
| 78 | <ul class="cmb2-radio-list cmb2-list cmb2-radio-switch"> |
| 79 | <li> |
| 80 | <input type="radio" class="cmb2-option cmb2-radio-switch1" name="gc[repeat_post]" id="gc[repeat_post1]" value="yes" <?php checked( 'yes', $repeat_post, true ); ?>> |
| 81 | <label for="gc[repeat_post1]"><?php esc_html_e('Yes', PGCU_TEXTDOMAIN); ?></label> |
| 82 | </li> |
| 83 | <li> |
| 84 | <input type="radio" class="cmb2-option cmb2-radio-switch2" name="gc[repeat_post]" id="gc[repeat_post2]" value="no" <?php checked( 'no', $repeat_post, true ); ?>> |
| 85 | <label for="gc[repeat_post2]"><?php esc_html_e('No', PGCU_TEXTDOMAIN); ?></label> |
| 86 | </li> |
| 87 | </ul> |
| 88 | </td> |
| 89 | </tr> |
| 90 | |
| 91 | <tr> |
| 92 | <th><label for="gc[c_autoplay_speed]"><?php esc_html_e('Slide Speed', PGCU_TEXTDOMAIN); ?></label></th> |
| 93 | <td><input type="number" class="cmb2-text-medium" id="gc[c_autoplay_speed]" name="gc[c_autoplay_speed]" value="<?php echo esc_attr( ! empty( $c_autoplay_speed ) ? $c_autoplay_speed : '2000' ); ?>"/><span class="description">(Millisecond)</span> |
| 94 | |
| 95 | </td> |
| 96 | |
| 97 | </tr> |
| 98 | |
| 99 | <tr> |
| 100 | <th><label for="gc[c_autoplay_time]"><?php esc_html_e('Slide Timeout', PGCU_TEXTDOMAIN); ?></label></th> |
| 101 | <td><input type="number" class="cmb2-text-medium" id="gc[c_autoplay_time]" name="gc[c_autoplay_time]" value="<?php echo esc_attr( ! empty( $c_autoplay_time ) ? $c_autoplay_time : '2000' ); ?>"/><span class="description">(Millisecond)</span> |
| 102 | |
| 103 | </td> |
| 104 | |
| 105 | </tr> |
| 106 | |
| 107 | <tr> |
| 108 | <th><label for="gc[navigation]"><?php esc_html_e('Navigation', PGCU_TEXTDOMAIN); ?></label></th> |
| 109 | <td> |
| 110 | <ul class="cmb2-radio-list cmb2-list cmb2-radio-switch"> |
| 111 | <li> |
| 112 | <input type="radio" class="cmb2-option cmb2-radio-switch1" name="gc[navigation]" id="gc[navigation1]" value="yes" <?php checked( 'yes', $navigation, true ); ?>> |
| 113 | <label for="gc[navigation1]"><?php esc_html_e('Yes', PGCU_TEXTDOMAIN); ?></label> |
| 114 | </li> |
| 115 | <li> |
| 116 | <input type="radio" class="cmb2-option cmb2-radio-switch2" name="gc[navigation]" id="gc[navigation2]" value="no" <?php checked( 'no', $navigation, true ); ?>> |
| 117 | <label for="gc[navigation2]"><?php esc_html_e('No', PGCU_TEXTDOMAIN); ?></label> |
| 118 | </li> |
| 119 | </ul> |
| 120 | </td> |
| 121 | </tr> |
| 122 | |
| 123 | <tr> |
| 124 | <th><label for="gc[navigation_position]"><?php esc_html_e('Navigation Position', PGCU_TEXTDOMAIN); ?></label></th> |
| 125 | <td> |
| 126 | <select class='pgcu_post_type_depend' id="gc[navigation_position]" name="gc[navigation_position]"> |
| 127 | <option value="top-left" <?php selected( $navigation_position, 'top-left' ); ?>>Top Left</option> |
| 128 | <option value="top-right" <?php selected( $navigation_position, 'top-right' ); ?>>Top Right</option> |
| 129 | <option value="middle" <?php selected( $navigation_position, 'middle' ); ?>>Middle</option> |
| 130 | <option value="bottom-left" <?php selected( $navigation_position, 'bottom-left' ); ?>>Bottom Left</option> |
| 131 | <option value="bottom-right" <?php selected( $navigation_position, 'bottom-right' ); ?>>Bottom Right</option> |
| 132 | </select> |
| 133 | </td> |
| 134 | </tr> |
| 135 | |
| 136 | <tr> |
| 137 | <th><label for="gc[navigation_arrow_color]"><?php esc_html_e('Navigation Arrow Color', PGCU_TEXTDOMAIN); ?></label></th> |
| 138 | <td><input type="text" name="gc[navigation_arrow_color]" id="gc[navigation_arrow_color]" class="cpa-color-picker" value="<?php echo esc_attr( ! empty( $navigation_arrow_color ) ? $navigation_arrow_color : '#030517' ); ?>" /> |
| 139 | |
| 140 | </td> |
| 141 | </tr> |
| 142 | |
| 143 | <tr> |
| 144 | <th><label for="gc[navigation_arrow_hover_color]"><?php esc_html_e('Navigation Arrow Hover Color', PGCU_TEXTDOMAIN); ?></label></th> |
| 145 | <td><input type="text" name="gc[navigation_arrow_hover_color]" id="gc[navigation_arrow_hover_color]" class="cpa-color-picker" value="<?php echo esc_attr( ! empty( $navigation_arrow_hover_color ) ? $navigation_arrow_hover_color : '#fff' ); ?>" /> |
| 146 | |
| 147 | </td> |
| 148 | </tr> |
| 149 | |
| 150 | <tr> |
| 151 | <th><label for="gc[navigation_back_color]"><?php esc_html_e('Navigation Background Color', PGCU_TEXTDOMAIN); ?></label></th> |
| 152 | <td><input type="text" name="gc[navigation_back_color]" id="gc[navigation_back_color]" class="cpa-color-picker" value="<?php echo esc_attr( ! empty( $navigation_back_color ) ? $navigation_back_color : '#f5f5f5' ); ?>" /> |
| 153 | |
| 154 | </td> |
| 155 | </tr> |
| 156 | |
| 157 | <tr> |
| 158 | <th><label for="gc[navigation_back_hover_color]"><?php esc_html_e('Navigation Background Hover Color', PGCU_TEXTDOMAIN); ?></label></th> |
| 159 | <td><input type="text" name="gc[navigation_back_hover_color]" id="gc[navigation_back_hover_color]" class="cpa-color-picker" value="<?php echo esc_attr( ! empty( $navigation_back_hover_color ) ? $navigation_back_hover_color : '#F31C1C' ); ?>" /> |
| 160 | |
| 161 | </td> |
| 162 | </tr> |
| 163 | |
| 164 | <tr> |
| 165 | <th><label for="gc[navigation_border_color]"><?php esc_html_e('Navigation Border Color', PGCU_TEXTDOMAIN); ?></label></th> |
| 166 | <td><input type="text" name="gc[navigation_border_color]" id="gc[navigation_border_color]" class="cpa-color-picker" value="<?php echo esc_attr( ! empty( $navigation_border_color ) ? $navigation_border_color : '#f5f5f5' ); ?>" /> |
| 167 | |
| 168 | </td> |
| 169 | </tr> |
| 170 | |
| 171 | <tr> |
| 172 | <th><label for="gc[navigation_border_hover_color]"><?php esc_html_e('Navigation Border Hover Color', PGCU_TEXTDOMAIN); ?></label></th> |
| 173 | <td><input type="text" name="gc[navigation_border_hover_color]" id="gc[navigation_border_hover_color]" class="cpa-color-picker" value="<?php echo esc_attr( ! empty( $navigation_border_hover_color ) ? $navigation_border_hover_color : '#F31C1C' ); ?>" /> |
| 174 | |
| 175 | </td> |
| 176 | </tr> |
| 177 | |
| 178 | </table> |
| 179 | </div> |
| 180 | |
| 181 | </div> |