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
sortable.php
50 lines
| 1 | <?php |
| 2 | $post_type = ! empty( $post_type ) ? $post_type : 'post'; |
| 3 | $g_sort = ! empty( $g_sort ) ? $g_sort : 'category'; |
| 4 | $terms = get_object_taxonomies( (object) array( 'post_type' => $post_type, 'hide_empty' => false ) ); |
| 5 | ?> |
| 6 | <div id="tab-5" class="adl-tab-content"> |
| 7 | <div class="cmb2-wrap form-table"> |
| 8 | |
| 9 | <table class="cmb2-metabox"> |
| 10 | |
| 11 | <tr> |
| 12 | <th><label for="gc[g_sort]"><?php esc_html_e('Select Sortable Grid Type', PGCU_TEXTDOMAIN); ?></label></th> |
| 13 | <td> |
| 14 | <select id="gc[g_sort]" name="gc[g_sort]" class='pgcu_post_type_depend'> |
| 15 | <?php |
| 16 | if( $terms ) { |
| 17 | foreach( $terms as $term ) { |
| 18 | ?> |
| 19 | <option value="<?php echo esc_attr( $term ); ?>" <?php selected( $g_sort, $term ); ?>><?php echo $term; ?></option> |
| 20 | <?php } } ?> |
| 21 | </select> |
| 22 | </td> |
| 23 | </tr> |
| 24 | |
| 25 | <tr> |
| 26 | <th><label for="gc[sortable_menu_text_color]"><?php esc_html_e('Sortable Menu Text Color', PGCU_TEXTDOMAIN); ?></label></th> |
| 27 | <td><input type="text" name="gc[sortable_menu_text_color]" class="cpa-color-picker" value="<?php echo esc_attr( ! empty( $sortable_menu_text_color ) ? $sortable_menu_text_color : '#4F515A' ); ?>" /> |
| 28 | |
| 29 | </td> |
| 30 | |
| 31 | </tr> |
| 32 | |
| 33 | <tr> |
| 34 | <th><label for="gc[sortable_menu_active_back_color]"><?php esc_html_e('Sortable Menu Active Background Color', PGCU_TEXTDOMAIN); ?></label></th> |
| 35 | <td><input type="text" name="gc[sortable_menu_active_back_color]" class="cpa-color-picker" value="<?php echo esc_attr( ! empty( $sortable_menu_active_back_color ) ? $sortable_menu_active_back_color : '#030213' ); ?>" /> |
| 36 | |
| 37 | </td> |
| 38 | |
| 39 | </tr> |
| 40 | |
| 41 | <tr> |
| 42 | <th><label for="gc[sortable_menu_active__text_color]"><?php esc_html_e('Sortable Menu Active Text Color', PGCU_TEXTDOMAIN); ?></label></th> |
| 43 | <td><input type="text" name="gc[sortable_menu_active__text_color]" class="cpa-color-picker" value="<?php echo esc_attr( ! empty( $sortable_menu_active__text_color ) ? $sortable_menu_active__text_color : '#ffffff' ); ?>" /> |
| 44 | |
| 45 | </td> |
| 46 | |
| 47 | </tr> |
| 48 | </table> |
| 49 | </div> |
| 50 | </div> |