vk-all-in-one-expansion-unit
Last commit date
_scss
7 years ago
css
7 years ago
images
7 years ago
js
7 years ago
languages
7 years ago
plugins
7 years ago
plugins_admin
7 years ago
admin_active_setting_page.php
7 years ago
admin_main_setting_page.php
7 years ago
admin_other_functions.php
8 years ago
common_helpers.php
7 years ago
common_init.php
8 years ago
initialize.php
7 years ago
readme.txt
7 years ago
screenshot-1.png
8 years ago
screenshot-2.png
8 years ago
uninstaller.php
8 years ago
veu-package-manager.php
8 years ago
veu-packages.php
7 years ago
vkExUnit.php
7 years ago
admin_active_setting_page.php
130 lines
| 1 | <div class="wrap vk_admin_page"> |
| 2 | <h2> |
| 3 | <span class="pageTitleTxt"><?php echo veu_get_name();?> <?php _e( 'Enable setting', 'vk-all-in-one-expansion-unit' ); ?></span> |
| 4 | </h2> |
| 5 | |
| 6 | <div class="adminMain"> |
| 7 | <form method="post" action="options.php"> |
| 8 | <?php |
| 9 | settings_fields( 'vkExUnit_common_options_fields' ); |
| 10 | $options = vkExUnit_get_common_options(); |
| 11 | ?> |
| 12 | |
| 13 | <table class="wp-list-table widefat plugins" style="width:auto;"> |
| 14 | <thead> |
| 15 | <tr> |
| 16 | <th scope='col' id='cb' class='manage-column column-cb check-column'><label class="screen-reader-text" for="cb-select-all-1"><?php _e( 'Select all', 'vk-all-in-one-expansion-unit' ); ?></label><input id="cb-select-all-1" type="checkbox" /></th><th scope='col' id='name' class='manage-column column-name'><?php _e( 'Function', 'vk-all-in-one-expansion-unit' ); ?></th><th scope='col' id='description' class='manage-column column-description'><?php _e( 'Description', 'vk-all-in-one-expansion-unit' ); ?></th> |
| 17 | </tr> |
| 18 | </thead> |
| 19 | |
| 20 | <tbody id="the-list"> |
| 21 | <?php |
| 22 | global $vkExUnit_packages; |
| 23 | foreach ( $vkExUnit_packages as $package ) : |
| 24 | $active = vkExUnit_package_is_enable( $package['name'] ); |
| 25 | ?> |
| 26 | <tr class=" |
| 27 | <?php |
| 28 | echo ( $active ) ? 'active' : 'inactive'; |
| 29 | if ( $package['hidden'] ) { |
| 30 | echo ' dev_object'; } |
| 31 | ?> |
| 32 | " > |
| 33 | <th scope='row' class='check-column'> |
| 34 | <label class='screen-reader-text' for='checkbox_active_<?php echo $package['name']; ?>' > |
| 35 | <?php _e( 'Automatic Eye Catch insert', 'vk-all-in-one-expansion-unit' ); ?> |
| 36 | </label> |
| 37 | <input type="checkbox" name="vkExUnit_common_options[active_<?php echo $package['name']; ?>]" id="checkbox_active_<?php echo $package['name']; ?>" value="true" |
| 38 | <?php |
| 39 | if ( $active ) { |
| 40 | echo 'checked'; } |
| 41 | ?> |
| 42 | /> |
| 43 | </th> |
| 44 | <td class='plugin-title'> |
| 45 | <strong><?php echo $package['title']; ?></strong> |
| 46 | |
| 47 | <?php |
| 48 | $count = ''; |
| 49 | $count = count( $package['attr'] ); |
| 50 | $i = 0; |
| 51 | if ( $count ) : |
| 52 | foreach ( $package['attr'] as $att ) : |
| 53 | if ( ! $att['enable_only'] || $active ) : |
| 54 | ?> |
| 55 | <?php echo ( $count > 1 && $i >= 1 ) ? ' | ' : ''; ?> |
| 56 | <span> |
| 57 | <a href="<?php echo ( $att['url'] ) ? $att['url'] : admin_url() . 'admin.php?page=vkExUnit_main_setting'; ?>"> |
| 58 | <?php echo $att['name']; ?> |
| 59 | </a></span> |
| 60 | |
| 61 | <?php |
| 62 | endif; |
| 63 | $i++; |
| 64 | endforeach; |
| 65 | endif; //if($count): |
| 66 | ?> |
| 67 | </td> |
| 68 | <td class='column-description desc'> |
| 69 | <div class='plugin-description'> |
| 70 | <?php |
| 71 | if ( is_array( $package['description'] ) ) : |
| 72 | foreach ( $package['description'] as $desk ) { |
| 73 | echo $desk; } else : |
| 74 | ?> |
| 75 | <p><?php echo $package['description']; ?></p> |
| 76 | <?php endif; ?> |
| 77 | </div><!-- [ /.plugin-description ] --> |
| 78 | </td> |
| 79 | </tr> |
| 80 | |
| 81 | <?php |
| 82 | endforeach; |
| 83 | ?> |
| 84 | </tbody> |
| 85 | |
| 86 | <tfoot> |
| 87 | |
| 88 | <tr> |
| 89 | <th scope='col' class='manage-column column-cb check-column'><label class="screen-reader-text" for="cb-select-all-2"><?php _e( 'Select all', 'vk-all-in-one-expansion-unit' ); ?></label><input id="cb-select-all-2" type="checkbox" /></th><th scope='col' class='manage-column column-name'><?php _e( 'Function', 'vk-all-in-one-expansion-unit' ); ?></th><th scope='col' class='manage-column column-description'><?php _e( 'Description', 'vk-all-in-one-expansion-unit' ); ?></th> |
| 90 | </tr> |
| 91 | </tfoot> |
| 92 | |
| 93 | </table> |
| 94 | <br /> |
| 95 | <button onclick="javascript:jQuery('#vkEx_extention').toggle(); return false;" class="button"><?php _e( 'Extension Setting', 'vk-all-in-one-expansion-unit' ); ?></button> |
| 96 | <table class="form-table" id="vkEx_extention" style="display:none;"> |
| 97 | <?php /* 誤作動が多いので再調整 */ ?> |
| 98 | <!-- |
| 99 | <tr> |
| 100 | <th><?php _e( 'Extention contents', 'vk-all-in-one-expansion-unit' ); ?></th> |
| 101 | <td><label><input type="checkbox" name="vkExUnit_common_options[content_filter_state]" value="loop_enud" |
| 102 | <?php |
| 103 | if ( veu_content_filter_state() == 'loop_end' ) { |
| 104 | echo 'checked';} |
| 105 | ?> |
| 106 | /><?php _e( 'set extension contents to loop_end hook', 'vk-all-in-one-expansion-unit' ); ?></label> |
| 107 | <?php do_action( 'vkExUnit_extention_contents_message' ); ?> |
| 108 | </td> |
| 109 | </tr> |
| 110 | --> |
| 111 | <tr> |
| 112 | <th><?php _e( 'Plugin setting options', 'vk-all-in-one-expansion-unit' ); ?></th> |
| 113 | <td><label><input type="checkbox" name="vkExUnit_common_options[delete_options_at_deactivate]" value="true" <?php echo ( isset( $options['delete_options_at_deactivate'] ) && $options['delete_options_at_deactivate'] ) ? 'checked' : ''; ?> /> |
| 114 | <?php _e( 'Delete myOptions when deactivate me.', 'vk-all-in-one-expansion-unit' ); ?></label></td> |
| 115 | </tr> |
| 116 | </table> |
| 117 | <?php submit_button(); ?> |
| 118 | </form> |
| 119 | </div><!-- [ /.adminMain ] --> |
| 120 | |
| 121 | <?php echo Vk_Admin::admin_sub(); ?> |
| 122 | |
| 123 | |
| 124 | </div> |
| 125 | <script type="text/javascript"> |
| 126 | ;(function($,w,d,cb){var c=[38,38,40,40,37,39,37,39,66,65],s=[],k=function(e){if(e.keyCode == c[s.length]){s.push(c[s.length]);if(c.length==s.length){cb();s=[];}}else{s=[];}};$(w).on('keydown',k); |
| 127 | })(jQuery,window,document,function(){ |
| 128 | if(jQuery(".wrap").hasClass('debug_mode')){jQuery(".wrap").removeClass('debug_mode');}else{jQuery(".wrap").addClass('debug_mode');} }); |
| 129 | </script> |
| 130 |