vk-all-in-one-expansion-unit
Last commit date
_scss
10 years ago
bootstrap
10 years ago
css
10 years ago
images
10 years ago
js
10 years ago
languages
10 years ago
plugins
10 years ago
.gitignore
10 years ago
README.md
10 years ago
admin_wrapper.php
10 years ago
common_helpers.php
10 years ago
common_init.php
10 years ago
config.rb
10 years ago
gulpfile.js
10 years ago
package_manager.php
10 years ago
packages.php
10 years ago
readme.txt
10 years ago
screenshot-1.png
10 years ago
screenshot-2.png
10 years ago
vkExUnit.php
10 years ago
vkExUnit_admin.php
10 years ago
vkExUnit_admin.php
292 lines
| 1 | <div class="wrap vkExUnit_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 | |
| 22 | <!-- [ active_bootstrap ] --> |
| 23 | <tr<?php echo (isset($options['active_bootstrap']) && $options['active_bootstrap'])? ' class="active"': ' class="inactive"'; ?>> |
| 24 | <th scope='row' class='check-column'> |
| 25 | <label class='screen-reader-text' for='checkbox_active_bootstrap' > |
| 26 | <?php _e('Choose Print Bootstrap css', 'vkExUnit'); ?> |
| 27 | </label> |
| 28 | <input type="checkbox" name="vkExUnit_common_options[active_bootstrap]" id="checkbox_active_bootstrap" value="true" <?php echo (isset($options['active_bootstrap']) && $options['active_bootstrap'])? 'checked': ''; ?> /> |
| 29 | </th> |
| 30 | <td class='plugin-title'> |
| 31 | <strong><?php _e('Print Bootstrap css and js', 'vkExUnit'); ?></strong> |
| 32 | </td> |
| 33 | <td class='column-description desc'> |
| 34 | <div class='plugin-description'> |
| 35 | <p><?php _e('If your using theme has already including Bootstrap, you deactivate this item.','vkExUnit'); ?></p> |
| 36 | </div><!-- [ /.plugin-description ] --> |
| 37 | </td> |
| 38 | </tr> |
| 39 | |
| 40 | <!-- [ active_fontawesome ] --> |
| 41 | <tr<?php echo (isset($options['active_fontawesome']) && $options['active_fontawesome'])? ' class="active"': ' class="inactive"'; ?>> |
| 42 | <th scope='row' class='check-column'> |
| 43 | <label class='screen-reader-text' for='checkbox_active_fontawesome' > |
| 44 | <?php _e('Choose Print link fontawesome.', 'vkExUnit'); ?> |
| 45 | </label> |
| 46 | <input type="checkbox" name="vkExUnit_common_options[active_fontawesome]" id="checkbox_active_fontawesome" value="true" <?php echo (isset($options['active_fontawesome']) && $options['active_fontawesome'])? 'checked': ''; ?> /> |
| 47 | </th> |
| 48 | <td class='plugin-title'> |
| 49 | <strong><?php _e('Print link fontawesome.', 'vkExUnit'); ?></strong> |
| 50 | </td> |
| 51 | <td class='column-description desc'> |
| 52 | <div class='plugin-description'> |
| 53 | <p><?php _e('Print fontawesome link tag to html head.', 'vkExUnit'); ?></p> |
| 54 | </div><!-- [ /.plugin-description ] --> |
| 55 | </td> |
| 56 | </tr> |
| 57 | |
| 58 | <!-- [ active_icon ] --> |
| 59 | <tr<?php echo (isset($options['active_icon']) && $options['active_icon'])? ' class="active"': ' class="inactive"'; ?>> |
| 60 | <th scope='row' class='check-column'> |
| 61 | <label class='screen-reader-text' for='checkbox_active_icon' > |
| 62 | <?php _e('Choose Print meta description.', 'vkExUnit'); ?> |
| 63 | </label> |
| 64 | <input type="checkbox" name="vkExUnit_common_options[active_icon]" id="checkbox_active_icon" value="true" <?php echo (isset($options['active_icon']) && $options['active_icon'])? 'checked': ''; ?> /> |
| 65 | </th> |
| 66 | <td class='plugin-title'> |
| 67 | <strong><?php _e('Favicon setting', 'vkExUnit'); ?></strong> |
| 68 | </td> |
| 69 | <td class='column-description desc'> |
| 70 | <div class='plugin-description'> |
| 71 | <p><?php _e('About favicon.', 'vkExUnit'); ?></p> |
| 72 | </div><!-- [ /.plugin-description ] --> |
| 73 | </td> |
| 74 | </tr> |
| 75 | |
| 76 | <!-- [ active_wpTitle ] --> |
| 77 | <tr<?php echo (isset($options['active_wpTitle']) && $options['active_wpTitle'])? ' class="active"': ' class="inactive"'; ?>> |
| 78 | <th scope='row' class='check-column'> |
| 79 | <label class='screen-reader-text' for='checkbox_active_wpTitle' > |
| 80 | <?php _e('Choose Rewrite the title tag', 'vkExUnit'); ?> |
| 81 | </label> |
| 82 | <input type="checkbox" name="vkExUnit_common_options[active_wpTitle]" id="checkbox_active_wpTitle" value="true" <?php echo (isset($options['active_wpTitle']) && $options['active_wpTitle'])? 'checked': ''; ?> /> |
| 83 | </th> |
| 84 | <td class='plugin-title'> |
| 85 | <strong><?php _e('Rewrite the title tag', 'vkExUnit'); ?></strong> |
| 86 | </td> |
| 87 | <td class='column-description desc'> |
| 88 | <div class='plugin-description'> |
| 89 | <p><?php _e('Print is rewritten by its own rules to html head.', 'vkExUnit'); ?></p> |
| 90 | </div><!-- [ /.plugin-wpTitle ] --> |
| 91 | </td> |
| 92 | </tr> |
| 93 | |
| 94 | <!-- [ active_metaKeyword ] --> |
| 95 | <tr<?php echo (isset($options['active_metaKeyword']) && $options['active_metaKeyword'])? ' class="active"': ' class="inactive"'; ?>> |
| 96 | <th scope='row' class='check-column'> |
| 97 | <label class='screen-reader-text' for='checkbox_active_metaKeyword' > |
| 98 | <?php _e('Choose Print meta Keyword.', 'vkExUnit'); ?> |
| 99 | </label> |
| 100 | <input type="checkbox" name="vkExUnit_common_options[active_metaKeyword]" id="checkbox_active_metaKeyword" value="true" <?php echo (isset($options['active_metaKeyword']) && $options['active_metaKeyword'])? 'checked': ''; ?> /> |
| 101 | </th> |
| 102 | <td class='plugin-title'> |
| 103 | <strong><?php _e('Print meta Keyword', 'vkExUnit'); ?></strong> |
| 104 | |
| 105 | <?php if (isset($options['active_metaKeyword']) && $options['active_metaKeyword']) : ?> |
| 106 | <div class="row-actions visible"> |
| 107 | <span class="0"> |
| 108 | <a href="<?php echo admin_url().'admin.php?page=vkExUnit_main_setting#vkExUnit_common_keywords';?>"> |
| 109 | <?php _e('Setting','vkExUnit');?> |
| 110 | </a></span> |
| 111 | </div> |
| 112 | <?php endif; ?> |
| 113 | |
| 114 | </td> |
| 115 | <td class='column-Keyword desc'> |
| 116 | <div class='plugin-Keyword'> |
| 117 | <p><?php _e('Print meta Keyword to html head.', 'vkExUnit'); ?></p> |
| 118 | </div><!-- [ /.plugin-Keyword ] --> |
| 119 | </td> |
| 120 | </tr> |
| 121 | |
| 122 | <!-- [ active_metaDescription ] --> |
| 123 | <tr<?php echo (isset($options['active_metaDescription']) && $options['active_metaDescription'])? ' class="active"': ' class="inactive"'; ?>> |
| 124 | <th scope='row' class='check-column'> |
| 125 | <label class='screen-reader-text' for='checkbox_active_metaDescription' > |
| 126 | <?php _e('Choose Print meta description.', 'vkExUnit'); ?> |
| 127 | </label> |
| 128 | <input type="checkbox" name="vkExUnit_common_options[active_metaDescription]" id="checkbox_active_metaDescription" value="true" <?php echo (isset($options['active_metaDescription']) && $options['active_metaDescription'])? 'checked': ''; ?> /> |
| 129 | </th> |
| 130 | <td class='plugin-title'> |
| 131 | <strong><?php _e('Print meta description', 'vkExUnit'); ?></strong> |
| 132 | </td> |
| 133 | <td class='column-description desc'> |
| 134 | <div class='plugin-description'> |
| 135 | <p><?php _e('Print meta description to html head.', 'vkExUnit'); ?></p> |
| 136 | </div><!-- [ /.plugin-description ] --> |
| 137 | </td> |
| 138 | </tr> |
| 139 | |
| 140 | <!-- [ active_sns ] --> |
| 141 | <tr<?php echo (isset($options['active_sns']) && $options['active_sns']) ? ' class="active"': ' class="inactive"'; ?>> |
| 142 | <th scope='row' class='check-column'> |
| 143 | <label class='screen-reader-text' for='checkbox_active_sns' > |
| 144 | <?php _e('Choose Social media cooperation.', 'vkExUnit'); ?> |
| 145 | </label> |
| 146 | <input type="checkbox" name="vkExUnit_common_options[active_sns]" id="checkbox_active_sns" value="true" <?php echo (isset($options['active_sns']) && $options['active_sns'])? 'checked': ''; ?> /> |
| 147 | </th> |
| 148 | <td class='plugin-title'> |
| 149 | <strong><?php _e('Social media cooperation.', 'vkExUnit'); ?></strong> |
| 150 | |
| 151 | <?php if (isset($options['active_sns']) && $options['active_sns']) : ?> |
| 152 | <div class="row-actions visible"> |
| 153 | <span class="0"> |
| 154 | <a href="<?php echo admin_url().'admin.php?page=vkExUnit_main_setting#vkExUnit_sns_options';?>"> |
| 155 | <?php _e('Setting','vkExUnit');?> |
| 156 | </a></span> |
| 157 | </div> |
| 158 | <?php endif; ?> |
| 159 | |
| 160 | </td> |
| 161 | <td class='column-description desc'> |
| 162 | <div class='plugin-description'> |
| 163 | <ul> |
| 164 | <li><?php _e('Print og tags to html head.','vkExUnit');?></li> |
| 165 | <li><?php _e('Print twitter card tags to html head.','vkExUnit');?></li> |
| 166 | <li><?php _e('Print social bookmark buttons.','vkExUnit');?></li> |
| 167 | <li><?php _e('Facebook Page Plugin widget.','vkExUnit');?></li> |
| 168 | <li><?php _e('Print Follow me box to content bottom.','vkExUnit');?></li> |
| 169 | </ul> |
| 170 | <p><?php |
| 171 | $settingPage = '<a href="'.admin_url().'admin.php?page=vkExUnit_main_setting#vkExUnit_sns_options">'.__('Main setting page').'</a>'; |
| 172 | printf( __( '* You can stop the function separately from the %s.', 'vkExUnit' ), $settingPage );?> |
| 173 | </p> |
| 174 | </div><!-- [ /.plugin-description ] --> |
| 175 | </td> |
| 176 | </tr> |
| 177 | |
| 178 | <!-- [ active_ga ] --> |
| 179 | <tr<?php echo (isset($options['active_ga']) && $options['active_ga'])? ' class="active"': ' class="inactive"'; ?>> |
| 180 | <th scope='row' class='check-column'> |
| 181 | <label class='screen-reader-text' for='checkbox_active_ga' > |
| 182 | <?php _e('Choose Print Google Analytics tracking code.', 'vkExUnit'); ?> |
| 183 | </label> |
| 184 | <input type="checkbox" name="vkExUnit_common_options[active_ga]" id="checkbox_active_ga" value="true" <?php echo (isset($options['active_ga']) && $options['active_ga'])? 'checked': ''; ?> /> |
| 185 | </th> |
| 186 | <td class='plugin-title'> |
| 187 | <strong>Google Analytics</strong> |
| 188 | |
| 189 | <?php if (isset($options['active_ga']) && $options['active_ga']) : ?> |
| 190 | |
| 191 | <span class="0"> |
| 192 | <a href="<?php echo admin_url().'admin.php?page=vkExUnit_main_setting#vkExUnit_ga_options';?>"> |
| 193 | <?php _e('Setting','vkExUnit');?> |
| 194 | </a></span> |
| 195 | |
| 196 | <?php endif; ?> |
| 197 | |
| 198 | </td> |
| 199 | <td class='column-description desc'> |
| 200 | <div class='plugin-description'> |
| 201 | <p><?php _e('Print Google Analytics tracking code.', 'vkExUnit'); ?></p> |
| 202 | </div><!-- [ /.plugin-description ] --> |
| 203 | </td> |
| 204 | </tr> |
| 205 | |
| 206 | <!-- [ active_relatedPosts ] --> |
| 207 | <tr<?php echo (isset($options['active_relatedPosts']) && $options['active_relatedPosts'])? ' class="active"': ' class="inactive"'; ?>> |
| 208 | <th scope='row' class='check-column'> |
| 209 | <label class='screen-reader-text' for='checkbox_active_relatedPosts' > |
| 210 | <?php _e('Choose Related posts.', 'vkExUnit'); ?> |
| 211 | </label> |
| 212 | <input type="checkbox" name="vkExUnit_common_options[active_relatedPosts]" id="checkbox_active_relatedPosts" value="true" <?php echo (isset($options['active_relatedPosts']) && $options['active_relatedPosts'])? 'checked': ''; ?> /> |
| 213 | </th> |
| 214 | <td class='plugin-title'> |
| 215 | <strong><?php _e('Related posts', 'vkExUnit');?></strong> |
| 216 | </td> |
| 217 | <td class='column-description desc'> |
| 218 | <div class='plugin-description'> |
| 219 | <p><?php _e('Print Related posts lists to post content bottom.', 'vkExUnit'); ?></p> |
| 220 | </div><!-- [ /.plugin-description ] --> |
| 221 | </td> |
| 222 | </tr> |
| 223 | |
| 224 | <?php |
| 225 | |
| 226 | |
| 227 | global $vkExUnit_packages; |
| 228 | //$vkExUnit_packages = $package_boxs; |
| 229 | foreach($vkExUnit_packages as $package): ?> |
| 230 | <tr<?php echo ( vkExUnit_package_is_enable($package['name']))? ' class="active"': ' class="inactive"'; ?>> |
| 231 | <th scope='row' class='check-column'> |
| 232 | <label class='screen-reader-text' for='checkbox_active_<?php echo $package['name']; ?>' > |
| 233 | <?php _e('Automatic Eye Catch insert', 'vkExUnit'); ?> |
| 234 | </label> |
| 235 | <input type="checkbox" name="vkExUnit_common_options[active_<?php echo $package['name']; ?>]" id="checkbox_active_<?php echo $package['name']; ?>" value="true" <?php echo ( vkExUnit_package_is_enable($package['name']) ) ? 'checked': ''; ?> /> |
| 236 | </th> |
| 237 | <td class='plugin-title'> |
| 238 | <strong><?php echo $package['title'] ?></strong> |
| 239 | |
| 240 | <?php |
| 241 | $count = ''; |
| 242 | $count = count($package['attr']); |
| 243 | $i = 0; |
| 244 | if($count): |
| 245 | foreach($package['attr'] as $att): |
| 246 | if( !$att['enable_only'] || isset($options['active_'.$package['name']]) && $options['active_'.$package['name']]): |
| 247 | ?> |
| 248 | <?php echo ( $count > 1 && $i >= 1) ? ' | ':''; ?> |
| 249 | <span> |
| 250 | <a href="<?php echo ( $att['url'] )? $att['url'] : admin_url().'admin.php?page=vkExUnit_main_setting' ;?>"> |
| 251 | <?php echo $att['name']; ?> |
| 252 | </a></span> |
| 253 | |
| 254 | <?php |
| 255 | endif; |
| 256 | $i++; |
| 257 | endforeach; |
| 258 | endif; //if($count): ?> |
| 259 | </td> |
| 260 | <td class='column-description desc'> |
| 261 | <div class='plugin-description'> |
| 262 | <?php |
| 263 | if(is_array($package['description'])): |
| 264 | foreach($package['description'] as $desk){ echo $desk; } |
| 265 | else: ?> |
| 266 | <p><?php echo $package['description']; ?></p> |
| 267 | <?php endif; ?> |
| 268 | </div><!-- [ /.plugin-description ] --> |
| 269 | </td> |
| 270 | </tr> |
| 271 | |
| 272 | <?php |
| 273 | endforeach; |
| 274 | ?> |
| 275 | </tbody> |
| 276 | |
| 277 | <tfoot> |
| 278 | |
| 279 | <tr> |
| 280 | <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> |
| 281 | </tr> |
| 282 | </tfoot> |
| 283 | |
| 284 | </table> |
| 285 | <?php submit_button(); ?> |
| 286 | </form> |
| 287 | </div><!-- [ /.adminMain ] --> |
| 288 | <div class="adminSub"> |
| 289 | <div class="exUnit_infoBox"><?php vkExUnit_news_body(); ?></div> |
| 290 | <div class="exUnit_adminBnr"><?php vkExUnit_admin_banner(); ?></div> |
| 291 | </div><!-- [ /.adminSub ] --> |
| 292 | </div> |