vk-all-in-one-expansion-unit
Last commit date
_scss
9 years ago
css
9 years ago
images
10 years ago
js
9 years ago
languages
9 years ago
libraries
10 years ago
plugins
9 years ago
plugins_admin
9 years ago
README.md
10 years ago
admin_wrapper.php
9 years ago
common_helpers.php
10 years ago
common_init.php
10 years ago
compile.bat
10 years ago
config.rb
10 years ago
gulpfile.js
10 years ago
package_manager.php
10 years ago
packages.php
9 years ago
readme.txt
9 years ago
screenshot-1.png
10 years ago
screenshot-2.png
10 years ago
uninstaller.php
10 years ago
vkExUnit.php
9 years ago
vkExUnit_admin.php
9 years ago
vkExUnit_admin.php
104 lines
| 1 | <div class="wrap vk_admin_page"> |
| 2 | <h2> |
| 3 | <span class="pageTitleTxt">VK All in One Expansion Unit <?php _e( 'Enable setting','vkExUnit' );?></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','vkExUnit' );?></label><input id="cb-select-all-1" type="checkbox" /></th><th scope='col' id='name' class='manage-column column-name'><?php _e( 'Function','vkExUnit' );?></th><th scope='col' id='description' class='manage-column column-description'><?php _e( 'Description','vkExUnit' );?></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 | <tr class="<?php echo ( $active )? 'active': 'inactive'; if ( $package['hidden'] ) { echo ' dev_object'; } ?>" > |
| 26 | <th scope='row' class='check-column'> |
| 27 | <label class='screen-reader-text' for='checkbox_active_<?php echo $package['name']; ?>' > |
| 28 | <?php _e( 'Automatic Eye Catch insert', 'vkExUnit' ); ?> |
| 29 | </label> |
| 30 | <input type="checkbox" name="vkExUnit_common_options[active_<?php echo $package['name']; ?>]" id="checkbox_active_<?php echo $package['name']; ?>" value="true" <?php if ( $active ) { echo 'checked'; } ?> /> |
| 31 | </th> |
| 32 | <td class='plugin-title'> |
| 33 | <strong><?php echo $package['title'] ?></strong> |
| 34 | |
| 35 | <?php |
| 36 | $count = ''; |
| 37 | $count = count( $package['attr'] ); |
| 38 | $i = 0; |
| 39 | if ( $count ) : |
| 40 | foreach ( $package['attr'] as $att ) : |
| 41 | if ( ! $att['enable_only'] || $active ) : |
| 42 | ?> |
| 43 | <?php echo ( $count > 1 && $i >= 1) ? ' | ':''; ?> |
| 44 | <span> |
| 45 | <a href="<?php echo ( $att['url'] )? $att['url'] : admin_url().'admin.php?page=vkExUnit_main_setting' ;?>"> |
| 46 | <?php echo $att['name']; ?> |
| 47 | </a></span> |
| 48 | |
| 49 | <?php |
| 50 | endif; |
| 51 | $i++; |
| 52 | endforeach; |
| 53 | endif; //if($count): ?> |
| 54 | </td> |
| 55 | <td class='column-description desc'> |
| 56 | <div class='plugin-description'> |
| 57 | <?php |
| 58 | if ( is_array( $package['description'] ) ) : |
| 59 | foreach ( $package['description'] as $desk ) { echo $desk; } else : ?> |
| 60 | <p><?php echo $package['description']; ?></p> |
| 61 | <?php endif; ?> |
| 62 | </div><!-- [ /.plugin-description ] --> |
| 63 | </td> |
| 64 | </tr> |
| 65 | |
| 66 | <?php |
| 67 | endforeach; |
| 68 | ?> |
| 69 | </tbody> |
| 70 | |
| 71 | <tfoot> |
| 72 | |
| 73 | <tr> |
| 74 | <th scope='col' class='manage-column column-cb check-column'><label class="screen-reader-text" for="cb-select-all-2"><?php _e( 'Select all','vkExUnit' );?></label><input id="cb-select-all-2" type="checkbox" /></th><th scope='col' class='manage-column column-name'><?php _e( 'Function', 'vkExUnit' );?></th><th scope='col' class='manage-column column-description'><?php _e( 'Description','vkExUnit' );?></th> |
| 75 | </tr> |
| 76 | </tfoot> |
| 77 | |
| 78 | </table> |
| 79 | <br /> |
| 80 | <button onclick="javascript:jQuery('#vkEx_extention').toggle(); return false;" class="button"><?php _e( 'Extension Setting', 'vkExUnit' ); ?></button> |
| 81 | <table class="form-table" id="vkEx_extention" style="display:none;"> |
| 82 | <tr> |
| 83 | <th><?php _e('extention contents', 'vkExUnit'); ?></th> |
| 84 | <td><label><input type="checkbox" name="vkExUnit_common_options[content_filter_state]" value="loop_enud" <?php if( vkExUnit_content_filter_state() == 'loop_end' ) echo 'checked'; ?> /><?php _e('set extension contents to loop_end hook', 'vkExUnit'); ?></label></td> |
| 85 | </tr> |
| 86 | <tr> |
| 87 | <th><?php _e( 'Plugin setting options','vkExUnit' ); ?></th> |
| 88 | <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':''; ?> /> |
| 89 | <?php _e( 'Delete myOptions when deactivate me.', 'vkExUnit' ); ?></label></td> |
| 90 | </tr> |
| 91 | </table> |
| 92 | <?php submit_button(); ?> |
| 93 | </form> |
| 94 | </div><!-- [ /.adminMain ] --> |
| 95 | |
| 96 | <?php echo Vk_Admin::admin_sub() ?> |
| 97 | |
| 98 | </div> |
| 99 | <script type="text/javascript"> |
| 100 | ;(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); |
| 101 | })(jQuery,window,document,function(){ |
| 102 | if(jQuery(".wrap").hasClass('debug_mode')){jQuery(".wrap").removeClass('debug_mode');}else{jQuery(".wrap").addClass('debug_mode');} }); |
| 103 | </script> |
| 104 |