VK All in One Expansion Unit - Version 9.3.1-beta

Version Description

Download this release

Release Info

Developer kurudrive
Plugin Icon 128x128 VK All in One Expansion Unit
Version 9.3.1-beta
Comparing to
See all releases

Code changes from version 7.3.0 to 9.3.1-beta

Files changed (212) hide show
  1. _scss/vkExUnit_admin.scss +0 -6
  2. admin_active_setting_page.php → admin/admin-active-setting-page.php +16 -11
  3. common_init.php → admin/admin-common-init.php +12 -10
  4. admin/admin-main-setting-page.php +160 -0
  5. admin/admin-post-metabox.php +55 -0
  6. admin/admin.php +103 -0
  7. {plugins_admin → admin}/admin_bar.php +2 -2
  8. admin/class-veu-metabox-insert-items.php +28 -0
  9. admin/class-veu-metabox.php +156 -0
  10. {plugins_admin → admin}/customizer.php +1 -1
  11. plugins_admin/disable_guide.php → admin/disable-guide.php +1 -1
  12. {plugins_admin/vk-admin → admin/vk-admin/package}/_scss/vk_admin.scss +0 -0
  13. {plugins_admin/vk-admin → admin/vk-admin/package}/class-vk-admin-info.php +0 -0
  14. {plugins_admin/vk-admin → admin/vk-admin/package}/class-vk-admin.php +35 -24
  15. {plugins_admin/vk-admin → admin/vk-admin/package}/config.rb +0 -0
  16. {plugins_admin/vk-admin → admin/vk-admin/package}/css/vk_admin.css +0 -0
  17. {plugins_admin/vk-admin → admin/vk-admin/package}/images/ExUnit_bnr.png +0 -0
  18. admin/vk-admin/package/images/admin_banner_recruit.jpg +0 -0
  19. {plugins_admin/vk-admin → admin/vk-admin/package}/images/billvektor_banner.png +0 -0
  20. {plugins_admin/vk-admin → admin/vk-admin/package}/images/fort-bnr.jpg +0 -0
  21. {plugins_admin/vk-admin → admin/vk-admin/package}/images/jpnstyle-bnr.jpg +0 -0
  22. {plugins_admin/vk-admin → admin/vk-admin/package}/images/lightning-pro-bnr.jpg +0 -0
  23. {plugins_admin/vk-admin → admin/vk-admin/package}/images/lightning_bnr_en.jpg +0 -0
  24. {plugins_admin/vk-admin → admin/vk-admin/package}/images/lightning_bnr_ja.jpg +0 -0
  25. {plugins_admin/vk-admin → admin/vk-admin/package}/images/pale-bnr.jpg +0 -0
  26. {plugins_admin/vk-admin → admin/vk-admin/package}/images/post_author_display_bnr_en.jpg +0 -0
  27. {plugins_admin/vk-admin → admin/vk-admin/package}/images/post_author_display_bnr_ja.jpg +0 -0
  28. {plugins_admin/vk-admin → admin/vk-admin/package}/images/variety-bnr.jpg +0 -0
  29. {plugins_admin/vk-admin → admin/vk-admin/package}/images/vektor_logo.png +0 -0
  30. {plugins_admin/vk-admin → admin/vk-admin/package}/images/vk-link-target-controller_bnr.jpg +0 -0
  31. {plugins_admin/vk-admin → admin/vk-admin/package}/images/vk-link-target-controller_notxt_bnr.jpg +0 -0
  32. {plugins_admin/vk-admin → admin/vk-admin/package}/js/vk_admin.js +5 -5
  33. admin/vk-admin/vk-admin-config.php +31 -0
  34. admin_main_setting_page.php +0 -132
  35. admin_other_functions.php +0 -19
  36. {_scss → assets/_scss}/_bootstrap.scss +0 -0
  37. {_scss → assets/_scss}/_contents_option_style.scss +0 -0
  38. assets/_scss/vkExUnit_admin.scss +92 -0
  39. {_scss → assets/_scss}/vkExUnit_editor_style.scss +0 -0
  40. {_scss → assets/_scss}/vkExUnit_style.scss +53 -41
  41. {_scss → assets/_scss}/vkExUnit_style_in_bs.scss +0 -0
  42. assets/css/vkExUnit_admin.css +1 -0
  43. {css → assets/css}/vkExUnit_editor_style.css +0 -0
  44. assets/css/vkExUnit_style.css +1 -0
  45. assets/css/vkExUnit_style_in_bs.css +12 -0
  46. {images → assets/images}/arrow_bottom.svg +0 -0
  47. {images → assets/images}/head_logo_ExUnit.png +0 -0
  48. {images → assets/images}/to-top-btn-icon.svg +0 -0
  49. {js → assets/js}/all.js +0 -30
  50. {js → assets/js}/all.min.js +1 -4
  51. {js → assets/js}/jquery.flatheights.js +0 -0
  52. {js → assets/js}/master.js +0 -30
  53. assets/js/vkExUnit_admin.js +40 -0
  54. common_helpers.php +0 -48
  55. css/vkExUnit_admin.css +0 -1
  56. css/vkExUnit_style.css +0 -1
  57. css/vkExUnit_style_in_bs.css +0 -12
  58. {plugins → inc}/add-body-class.php +0 -0
  59. inc/auto-eyecatch/auto-eyecatch.php +13 -0
  60. inc/auto-eyecatch/class-veu-auto-eyecatch.php +91 -0
  61. inc/auto-eyecatch/class-veu-metabox-eyecatch.php +45 -0
  62. {plugins → inc}/bootstrap.php +3 -3
  63. inc/call-to-action/call-to-action-config.php +11 -0
  64. {plugins/call-to-action → inc/call-to-action/package}/_scss/_call-to-action.scss +0 -0
  65. inc/call-to-action/package/class-veu-metabox-cta.php +71 -0
  66. {plugins/call-to-action → inc/call-to-action/package}/class-vk-call-to-action.php +160 -170
  67. {plugins/call-to-action → inc/call-to-action/package}/view-actionbox.php +2 -9
  68. {plugins/call-to-action → inc/call-to-action/package}/view-adminsetting.php +0 -0
  69. {plugins/call-to-action → inc/call-to-action/package}/widget-call-to-action.php +0 -0
  70. plugins/child_page_index.php → inc/child-page-index.php +13 -21
  71. {plugins → inc}/contact-section/contact-section.php +88 -68
  72. {plugins → inc}/contact-section/customizer.php +49 -28
  73. inc/css-customize/class-veu-metabox-css-customize.php +39 -0
  74. plugins/css_customize/css_customize-edit.php → inc/css-customize/css-customize-edit.php +5 -5
  75. inc/css-customize/css-customize-single.php +41 -0
  76. plugins/css_customize/css_customize.php → inc/css-customize/css-customize.php +66 -35
  77. plugins/disable_dashbord.php → inc/disable-dashbord.php +0 -0
  78. {plugins → inc}/disable_ping-back.php +0 -0
  79. {plugins → inc/font-awesome}/font-awesome-config.php +3 -3
  80. {plugins/font-awesome → inc/font-awesome/package}/class-vk-font-awesome-versions.php +12 -7
  81. {plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/HELP-US-OUT.txt +0 -0
  82. {plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/css/font-awesome.css +0 -0
  83. {plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/css/font-awesome.min.css +0 -0
  84. {plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/fonts/FontAwesome.otf +0 -0
  85. {plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/fonts/fontawesome-webfont.eot +0 -0
  86. {plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/fonts/fontawesome-webfont.svg +0 -0
  87. {plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/fonts/fontawesome-webfont.ttf +0 -0
  88. {plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/fonts/fontawesome-webfont.woff +0 -0
  89. {plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/fonts/fontawesome-webfont.woff2 +0 -0
  90. {plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/less/animated.less +0 -0
  91. {plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/less/bordered-pulled.less +0 -0
  92. {plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/less/core.less +0 -0
  93. {plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/less/fixed-width.less +0 -0
  94. {plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/less/font-awesome.less +0 -0
  95. {plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/less/icons.less +0 -0
  96. {plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/less/larger.less +0 -0
  97. {plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/less/list.less +0 -0
  98. {plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/less/mixins.less +0 -0
  99. {plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/less/path.less +0 -0
  100. {plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/less/rotated-flipped.less +0 -0
  101. {plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/less/screen-reader.less +0 -0
  102. {plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/less/stacked.less +0 -0
  103. {plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/less/variables.less +0 -0
  104. {plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/scss/_animated.scss +0 -0
  105. {plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/scss/_bordered-pulled.scss +0 -0
  106. {plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/scss/_core.scss +0 -0
  107. {plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/scss/_fixed-width.scss +0 -0
  108. {plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/scss/_icons.scss +0 -0
  109. {plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/scss/_larger.scss +0 -0
  110. {plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/scss/_list.scss +0 -0
  111. {plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/scss/_mixins.scss +0 -0
  112. {plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/scss/_path.scss +0 -0
  113. {plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/scss/_rotated-flipped.scss +0 -0
  114. {plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/scss/_screen-reader.scss +0 -0
  115. {plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/scss/_stacked.scss +0 -0
  116. {plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/scss/_variables.scss +0 -0
  117. {plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/scss/font-awesome.scss +0 -0
  118. {plugins/font-awesome → inc/font-awesome/package}/versions/5.6.0/LICENSE.txt +0 -0
  119. {plugins/font-awesome → inc/font-awesome/package}/versions/5.6.0/css/all.min.css +0 -0
  120. {plugins/font-awesome → inc/font-awesome/package}/versions/5.6.0/js/all.min.js +0 -0
  121. {plugins/font-awesome → inc/font-awesome/package}/versions/5.6.0/metadata/categories.yml +0 -0
  122. {plugins/font-awesome → inc/font-awesome/package}/versions/5.6.0/metadata/icons.json +0 -0
  123. {plugins/font-awesome → inc/font-awesome/package}/versions/5.6.0/metadata/icons.yml +0 -0
  124. {plugins/font-awesome → inc/font-awesome/package}/versions/5.6.0/metadata/shims.json +0 -0
  125. {plugins/font-awesome → inc/font-awesome/package}/versions/5.6.0/metadata/shims.yml +0 -0
  126. {plugins/font-awesome → inc/font-awesome/package}/versions/5.6.0/metadata/sponsors.yml +0 -0
  127. {plugins/font-awesome → inc/font-awesome/package}/versions/5.6.0/sprites/brands.svg +0 -0
  128. {plugins/font-awesome → inc/font-awesome/package}/versions/5.6.0/sprites/regular.svg +0 -0
  129. {plugins/font-awesome → inc/font-awesome/package}/versions/5.6.0/sprites/solid.svg +0 -0
  130. {plugins/font-awesome → inc/font-awesome/package}/versions/5.6.0/webfonts/fa-brands-400.eot +0 -0
  131. {plugins/font-awesome → inc/font-awesome/package}/versions/5.6.0/webfonts/fa-brands-400.svg +0 -0
  132. {plugins/font-awesome → inc/font-awesome/package}/versions/5.6.0/webfonts/fa-brands-400.ttf +0 -0
  133. {plugins/font-awesome → inc/font-awesome/package}/versions/5.6.0/webfonts/fa-brands-400.woff +0 -0
  134. {plugins/font-awesome → inc/font-awesome/package}/versions/5.6.0/webfonts/fa-brands-400.woff2 +0 -0
  135. {plugins/font-awesome → inc/font-awesome/package}/versions/5.6.0/webfonts/fa-regular-400.eot +0 -0
  136. {plugins/font-awesome → inc/font-awesome/package}/versions/5.6.0/webfonts/fa-regular-400.svg +0 -0
  137. {plugins/font-awesome → inc/font-awesome/package}/versions/5.6.0/webfonts/fa-regular-400.ttf +0 -0
  138. {plugins/font-awesome → inc/font-awesome/package}/versions/5.6.0/webfonts/fa-regular-400.woff +0 -0
  139. {plugins/font-awesome → inc/font-awesome/package}/versions/5.6.0/webfonts/fa-regular-400.woff2 +0 -0
  140. {plugins/font-awesome → inc/font-awesome/package}/versions/5.6.0/webfonts/fa-solid-900.eot +0 -0
  141. {plugins/font-awesome → inc/font-awesome/package}/versions/5.6.0/webfonts/fa-solid-900.svg +0 -0
  142. {plugins/font-awesome → inc/font-awesome/package}/versions/5.6.0/webfonts/fa-solid-900.ttf +0 -0
  143. {plugins/font-awesome → inc/font-awesome/package}/versions/5.6.0/webfonts/fa-solid-900.woff +0 -0
  144. {plugins/font-awesome → inc/font-awesome/package}/versions/5.6.0/webfonts/fa-solid-900.woff2 +0 -0
  145. plugins/footer_copyright_change.php → inc/footer-copyright-change.php +1 -1
  146. {plugins → inc}/google_analytics/ga_admin.php +8 -8
  147. {plugins → inc}/google_analytics/ga_customizer.php +8 -8
  148. {plugins → inc}/google_analytics/google_analytics.php +2 -2
  149. {plugins → inc}/icons.php +7 -7
  150. plugins/insert_ads.php → inc/insert-ads.php +98 -22
  151. plugins/meta_description.php → inc/meta-description.php +11 -13
  152. inc/meta-keyword/class-veu-metabox-meta-keyword.php +43 -0
  153. inc/meta-keyword/meta-keyword.php +124 -0
  154. inc/nav-menu-class-custom.php +116 -0
  155. inc/noindex/class-veu-metabox-noindex.php +45 -0
  156. inc/noindex/noindex.php +34 -0
  157. {plugins/other_widget → inc/other-widget}/js/admin-widget.js +6 -1
  158. inc/other-widget/other-widget.php +99 -0
  159. {plugins/other_widget → inc/other-widget}/widget-3pr-area.php +18 -18
  160. {plugins/other_widget → inc/other-widget}/widget-archives.php +9 -9
  161. {plugins/other_widget → inc/other-widget}/widget-banner.php +5 -5
  162. {plugins/other_widget → inc/other-widget}/widget-button.php +22 -22
  163. {plugins/other_widget → inc/other-widget}/widget-child-page-list.php +3 -3
  164. {plugins/other_widget → inc/other-widget}/widget-new-posts.php +131 -48
  165. {plugins/other_widget → inc/other-widget}/widget-page.php +10 -10
  166. {plugins/other_widget → inc/other-widget}/widget-pr-blocks.php +29 -29
  167. {plugins/other_widget → inc/other-widget}/widget-profile.php +26 -26
  168. {plugins/other_widget → inc/other-widget}/widget-side-child-page-list.php +2 -2
  169. {plugins/other_widget → inc/other-widget}/widget-taxonomies.php +10 -10
  170. plugins/pageList_ancestor.php → inc/page-list-ancestor.php +26 -28
  171. {plugins → inc}/pagetop-btn/_scss/_pagetop-btn.scss +0 -0
  172. {plugins → inc}/pagetop-btn/js/pagetop-btn.js +0 -0
  173. {plugins → inc}/pagetop-btn/pagetop-btn.php +0 -0
  174. {plugins/post-type-manager → inc/post-type-manager/package}/class.post-type-manager.php +0 -0
  175. inc/post-type-manager/post-type-manager-config.php +18 -0
  176. {plugins → inc}/related_posts/related_posts.php +4 -4
  177. inc/sitemap-page/class-veu-metabox-sitemap.php +49 -0
  178. inc/sitemap-page/sitemap-page-admin-main-setting.php +54 -0
  179. inc/sitemap-page/sitemap-page-helpers.php +54 -0
  180. plugins/sitemap_page/sitemap_page.php → inc/sitemap-page/sitemap-page.php +7 -51
  181. inc/smooth-scroll/js/smooth-scroll.js +50 -0
  182. inc/smooth-scroll/js/smooth-scroll.min.js +10 -0
  183. inc/smooth-scroll/smooth-scroll.php +10 -0
  184. inc/sns/class-veu-metabox-sns-button.php +62 -0
  185. inc/sns/class-veu-metabox-sns-title.php +39 -0
  186. {plugins → inc}/sns/function_follow.php +2 -2
  187. {plugins → inc}/sns/function_og.php +5 -12
  188. {plugins → inc}/sns/function_snsBtns.php +43 -19
  189. {plugins → inc}/sns/function_twitterCard.php +1 -8
  190. {plugins → inc}/sns/icons/Read Me.txt +0 -0
  191. {plugins → inc}/sns/icons/demo-files/demo.css +0 -0
  192. {plugins → inc}/sns/icons/demo-files/demo.js +0 -0
  193. {plugins → inc}/sns/icons/demo.html +0 -0
  194. {plugins → inc}/sns/icons/fonts/vk_sns.eot +0 -0
  195. {plugins → inc}/sns/icons/fonts/vk_sns.svg +0 -0
  196. {plugins → inc}/sns/icons/fonts/vk_sns.ttf +0 -0
  197. {plugins → inc}/sns/icons/fonts/vk_sns.woff +0 -0
  198. {plugins → inc}/sns/icons/selection.json +0 -0
  199. {plugins → inc}/sns/icons/style.css +0 -0
  200. inc/sns/sns.php +212 -0
  201. {plugins → inc}/sns/sns_admin.php +68 -42
  202. {plugins → inc}/sns/sns_customizer.php +209 -96
  203. {plugins → inc}/sns/widget-fb-page-plugin.php +6 -6
  204. {plugins → inc}/sns/widget-twitter.php +9 -9
  205. inc/template-tags/template-tags-veu-old.php +69 -0
  206. {plugins → inc}/template-tags/template-tags-veu.php +19 -3
  207. {plugins → inc}/template-tags/template-tags.php +111 -47
  208. plugins/tiny_mce_style_tags.php → inc/tiny-mce-styletags.php +0 -0
  209. inc/vk-blocks/package/build/block-build-editor.css +1 -0
  210. inc/vk-blocks/package/build/block-build.css +30 -0
  211. inc/vk-blocks/package/build/block-build.js +39 -0
  212. inc/vk-blocks/package/build/block-build.js.map +1 -0
_scss/vkExUnit_admin.scss DELETED
@@ -1,6 +0,0 @@
1
- @charset "utf-8";
2
- // @import "compass";
3
-
4
- .wrap.debug_mode{
5
- tr.dev_object{ display:table-row; }
6
- }
 
 
 
 
 
 
admin_active_setting_page.php → admin/admin-active-setting-page.php RENAMED
@@ -1,19 +1,19 @@
1
  <div class="wrap vk_admin_page">
2
  <h2>
3
- <span class="pageTitleTxt"><?php echo veu_get_name();?> <?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
 
@@ -21,7 +21,7 @@
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
@@ -32,7 +32,7 @@ foreach ( $vkExUnit_packages as $package ) :
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', 'vkExUnit' ); ?>
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
@@ -86,32 +86,37 @@ foreach ( $vkExUnit_packages as $package ) :
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', '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>
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', 'vkExUnit' ); ?></button>
96
  <table class="form-table" id="vkEx_extention" style="display:none;">
97
  <?php /* 誤作動が多いので再調整 */ ?>
98
  <!--
99
  <tr>
100
- <th><?php _e( 'Extention contents', 'vkExUnit' ); ?></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', 'vkExUnit' ); ?></label>
107
  <?php do_action( 'vkExUnit_extention_contents_message' ); ?>
108
  </td>
109
  </tr>
110
  -->
111
  <tr>
112
- <th><?php _e( 'Plugin setting options', 'vkExUnit' ); ?></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.', 'vkExUnit' ); ?></label></td>
115
  </tr>
116
  </table>
117
  <?php submit_button(); ?>
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 = veu_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
 
21
  <?php
22
  global $vkExUnit_packages;
23
  foreach ( $vkExUnit_packages as $package ) :
24
+ $active = veu_package_is_enable( $package['name'] );
25
  ?>
26
  <tr class="
27
  <?php
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
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( 'Post edit page metabox settings', 'vk-all-in-one-expansion-unit' ); ?></th>
113
+ <td><label><input type="checkbox" name="vkExUnit_common_options[post_metabox_individual]" value="true" <?php echo ( isset( $options['post_metabox_individual'] ) && $options['post_metabox_individual'] ) ? 'checked' : ''; ?> />
114
+ <?php _e( 'Do not combine ExUnit\'s meta box', 'vk-all-in-one-expansion-unit' ); ?></label></td>
115
+ </tr>
116
+ <tr>
117
+ <th><?php _e( 'Plugin setting options', 'vk-all-in-one-expansion-unit' ); ?></th>
118
  <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' : ''; ?> />
119
+ <?php _e( 'Delete myOptions when deactivate me.', 'vk-all-in-one-expansion-unit' ); ?></label></td>
120
  </tr>
121
  </table>
122
  <?php submit_button(); ?>
common_init.php → admin/admin-common-init.php RENAMED
@@ -1,22 +1,23 @@
1
  <?php
2
- function vkExUnit_common_options_init() {
 
3
  register_setting(
4
  'vkExUnit_common_options_fields', // Immediately following form tag of edit page.
5
  'vkExUnit_common_options', // name attr
6
- 'vkExUnit_common_options_validate'
7
  );
8
  }
9
- add_action( 'admin_init', 'vkExUnit_common_options_init' );
10
 
11
- function vkExUnit_get_common_options() {
12
- $dafault = vkExUnit_get_common_options_default();
13
  $options = get_option( 'vkExUnit_common_options' );
14
  $options = wp_parse_args( $options, $dafault );
15
  return apply_filters( 'vkExUnit_common_options', $options );
16
  }
17
 
18
- function vkExUnit_get_common_options_default() {
19
- // hook vkExUnit_package_is_enable()
20
  // パッケージの情報を取得してデフォルトの配列を作成
21
  $defaults = array();
22
  $packages = vkExUnit_get_packages();
@@ -24,6 +25,7 @@ function vkExUnit_get_common_options_default() {
24
  $name = $value['name'];
25
  $default_options[ 'active_' . $name ] = $value['default'];
26
  }
 
27
  $default_options['delete_options_at_deactivate'] = false;
28
  $default_options['content_filter_state'] = 'content';
29
  return apply_filters( 'vkExUnit_common_options_default', $default_options );
@@ -33,13 +35,13 @@ function vkExUnit_get_common_options_default() {
33
  /* validate
34
  /*-------------------------------------------*/
35
 
36
- function vkExUnit_common_options_validate( $input ) {
37
  /*
38
  入力された値の無害化
39
  ここでは機能の有効化有無に関する項目が殆どで、手動で項目を記載すると機能の増減の際に項目の編集漏れが出るため、
40
- vkExUnit_get_common_options_default() の中で package に登録してある項目・デフォルト値を読み込み、それをループ処理する
41
  */
42
- $defaults = vkExUnit_get_common_options_default();
43
  foreach ( $defaults as $key => $default_value ) {
44
  // 'content_filter_state' 以外は true か false しか返ってこない
45
  if ( $key != 'content_filter_state' ) {
1
  <?php
2
+
3
+ function veu_common_options_init() {
4
  register_setting(
5
  'vkExUnit_common_options_fields', // Immediately following form tag of edit page.
6
  'vkExUnit_common_options', // name attr
7
+ 'veu_common_options_validate'
8
  );
9
  }
10
+ add_action( 'admin_init', 'veu_common_options_init' );
11
 
12
+ function veu_get_common_options() {
13
+ $dafault = veu_get_common_options_default();
14
  $options = get_option( 'vkExUnit_common_options' );
15
  $options = wp_parse_args( $options, $dafault );
16
  return apply_filters( 'vkExUnit_common_options', $options );
17
  }
18
 
19
+ function veu_get_common_options_default() {
20
+ // hook veu_package_is_enable()
21
  // パッケージの情報を取得してデフォルトの配列を作成
22
  $defaults = array();
23
  $packages = vkExUnit_get_packages();
25
  $name = $value['name'];
26
  $default_options[ 'active_' . $name ] = $value['default'];
27
  }
28
+ $default_options['post_metabox_individual'] = false;
29
  $default_options['delete_options_at_deactivate'] = false;
30
  $default_options['content_filter_state'] = 'content';
31
  return apply_filters( 'vkExUnit_common_options_default', $default_options );
35
  /* validate
36
  /*-------------------------------------------*/
37
 
38
+ function veu_common_options_validate( $input ) {
39
  /*
40
  入力された値の無害化
41
  ここでは機能の有効化有無に関する項目が殆どで、手動で項目を記載すると機能の増減の際に項目の編集漏れが出るため、
42
+ veu_get_common_options_default() の中で package に登録してある項目・デフォルト値を読み込み、それをループ処理する
43
  */
44
+ $defaults = veu_get_common_options_default();
45
  foreach ( $defaults as $key => $default_value ) {
46
  // 'content_filter_state' 以外は true か false しか返ってこない
47
  if ( $key != 'content_filter_state' ) {
admin/admin-main-setting-page.php ADDED
@@ -0,0 +1,160 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Main Setting Page _ ExUnit > メイン設定 メニューを追加
4
+ Main Setting Page _ ページのフレーム( メニューとメインエリア両方 )
5
+ Main Setting Page _ メインエリアの中身
6
+
7
+
8
+
9
+ /*
10
+ Main Setting Page _ ExUnit > メイン設定 メニューを追加
11
+ /*-------------------------------------------*/
12
+ function veu_add_main_setting() {
13
+ // $capability_required = veu_get_capability_required();
14
+ $custom_page = add_submenu_page(
15
+ 'vkExUnit_setting_page', // parent
16
+ __( 'Main setting', 'vk-all-in-one-expansion-unit' ), // Name of page
17
+ __( 'Main setting', 'vk-all-in-one-expansion-unit' ), // Label in menu
18
+ 'activate_plugins', // veu_get_capability_required()でないのは edit_theme_options権限を付与したユーザーにもアクセスさせないためにactivate_pluginsにしている。
19
+ // $capability_required, // Capability
20
+ 'vkExUnit_main_setting', // ユニークなこのサブメニューページの識別子
21
+ 'veu_render_main_frame' // メニューページのコンテンツを出力する関数
22
+ );
23
+ if ( ! $custom_page ) {
24
+ return; }
25
+ }
26
+ add_action( 'admin_menu', 'veu_add_main_setting' );
27
+
28
+
29
+ /*
30
+ Main Setting Page _ ページのフレーム( メニューとメインエリア両方 )
31
+ /*-------------------------------------------*/
32
+ function veu_render_main_frame() {
33
+
34
+ // nonce
35
+ if ( isset( $_POST['_nonce_vkExUnit'] ) && wp_verify_nonce( $_POST['_nonce_vkExUnit'], 'standing_on_the_shoulder_of_giants' ) ) {
36
+
37
+ // sanitize & update
38
+ veu_main_sanitaize_and_update( $_POST );
39
+ }
40
+
41
+ // Left menu area top Title
42
+ $get_page_title = veu_get_little_short_name() . ' Main setting';
43
+
44
+ // Left menu area top logo
45
+ $get_logo_html = veu_get_systemlogo_html();
46
+
47
+ // $menu
48
+ /*--------------------------------------------------*/
49
+ global $vkExUnit_options;
50
+ if ( ! isset( $vkExUnit_options ) ) {
51
+ $vkExUnit_options = array();
52
+ }
53
+ $get_menu_html = '';
54
+
55
+ foreach ( $vkExUnit_options as $vkoption ) {
56
+ if ( ! isset( $vkoption['render_page'] ) ) {
57
+ continue; }
58
+ // $linkUrl = ($i == 0) ? 'wpwrap':$vkoption['option_name'];
59
+ $linkUrl = $vkoption['option_name'];
60
+ $get_menu_html .= '<li id="btn_"' . $vkoption['option_name'] . '" class="' . $vkoption['option_name'] . '"><a href="#' . $linkUrl . '">';
61
+ $get_menu_html .= $vkoption['tab_label'];
62
+ $get_menu_html .= '</a></li>';
63
+ }
64
+
65
+ Vk_Admin::admin_page_frame( $get_page_title, 'vkExUnit_the_main_setting_body', $get_logo_html, $get_menu_html );
66
+
67
+ }
68
+
69
+ /*
70
+ Main Setting Page _ メインエリアの中身
71
+ /*-------------------------------------------*/
72
+ function vkExUnit_the_main_setting_body() {
73
+ global $vkExUnit_options;?>
74
+ <form method="post" action="">
75
+ <?php
76
+ wp_nonce_field( 'standing_on_the_shoulder_of_giants', '_nonce_vkExUnit' );
77
+ if ( is_array( $vkExUnit_options ) ) {
78
+ echo '<div>'; // jsでfirst-child取得用
79
+ foreach ( $vkExUnit_options as $vkoption ) {
80
+
81
+ if ( empty( $vkoption['render_page'] ) ) {
82
+ continue; }
83
+
84
+ echo '<section id="' . $vkoption['option_name'] . '">';
85
+
86
+ call_user_func_array( $vkoption['render_page'], array() );
87
+
88
+ echo '</section>';
89
+ }
90
+ echo '</div>';
91
+
92
+ } else {
93
+
94
+ echo __( 'Activated Packages is noting. please activate some package.', 'vk-all-in-one-expansion-unit' );
95
+
96
+ }
97
+ echo '</form>';
98
+ }
99
+
100
+ /*
101
+ Main Setting Page _ 値をアップデート
102
+ Main Setting Page で複数のoption値が送信される。
103
+ それらをループしながらサニタイズしながらアップデートする
104
+ /*-------------------------------------------*/
105
+ function veu_main_sanitaize_and_update( $_post ) {
106
+
107
+ // ExUnitで保存しているoption項目の配列
108
+ global $vkExUnit_options;
109
+
110
+ if ( ! empty( $vkExUnit_options ) ) {
111
+
112
+ // ExUnitで利用しているoption項目をループしながらサニタイズ&アップデートする
113
+ foreach ( $vkExUnit_options as $veu_option ) {
114
+
115
+ // サニタイズ Call back が登録されている場合にサニタイズ実行
116
+ // ※サニタイズ call back がないものは保存されない
117
+ if ( ! empty( $veu_option['callback'] ) ) {
118
+
119
+ // コールバック関数にわたす入力値を指定
120
+ $option_name = $veu_option['option_name'];
121
+
122
+ if ( ! empty( $_post[ $option_name ] ) ) {
123
+ $before = $_post[ $option_name ];
124
+ } else {
125
+ $before = null;
126
+ } // if ( ! empty( $_post[ $option_name ] ){
127
+
128
+ // サニタイズコールバックを実行
129
+ $option = call_user_func_array( $veu_option['callback'], array( $before ) );
130
+ } // if ( ! empty( $veu_option['callback'] ) ) {
131
+
132
+ update_option( $veu_option['option_name'], $option );
133
+ }
134
+ }
135
+ }
136
+
137
+ /*
138
+ global $vkExUnit_options に各種値を登録するための関数
139
+ */
140
+ /**
141
+ * [vkExUnit_register_setting description]
142
+ * @param string $tab_label 管理画面に表示される機能の名前
143
+ * @param string $option_name option保存値
144
+ * @param string $sanitize_callback 保存時のサニタイズ関数
145
+ * @param string $render_page メイン設定画面を出力する関数
146
+ * @return [type] [description]
147
+ */
148
+ function vkExUnit_register_setting( $tab_label = 'tab_label', $option_name, $sanitize_callback, $render_page ) {
149
+ global $vkExUnit_options;
150
+ if ( ! isset( $vkExUnit_options ) ) {
151
+ $vkExUnit_options = array();
152
+ }
153
+ $vkExUnit_options[] =
154
+ array(
155
+ 'option_name' => $option_name,
156
+ 'callback' => $sanitize_callback,
157
+ 'tab_label' => $tab_label,
158
+ 'render_page' => $render_page,
159
+ );
160
+ }
admin/admin-post-metabox.php ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ add page custom field
4
+ /*-------------------------------------------*/
5
+
6
+ require_once( dirname( __FILE__ ) . '/class-veu-metabox.php' );
7
+
8
+ /**
9
+ * Add Content meta box use for "Child Page List" , "Sitemap" , "Contact section" and more fields
10
+ */
11
+ function veu_add_parent_metabox() {
12
+ if ( apply_filters( 'veu_parent_metabox_activation', false ) ) {
13
+
14
+ $meta_box_name = veu_get_name();
15
+
16
+ /*
17
+ Original Brand Unit で 名前を未入力にされた時にメタボックスが表示されなくなってしまうので、
18
+ とりあえずスペースを代入
19
+ */
20
+ if ( ! $meta_box_name ) {
21
+ $meta_box_name = ' ';
22
+ }
23
+
24
+ $args = array(
25
+ 'public' => true,
26
+ );
27
+ $post_types = get_post_types( $args );
28
+ foreach ( $post_types as $key => $post_type ) {
29
+ add_meta_box( 'veu_parent_post_metabox', $meta_box_name, 'veu_parent_metabox_body', $post_type, 'normal', 'high' );
30
+ }
31
+ }
32
+ /*
33
+ VEU_Metabox 内の get_post_type が実行タイミングによっては
34
+ カスタム投稿タイプマネージャーで作成した投稿タイプが取得できないために
35
+ admin_menu のタイミングで読み込んでいる
36
+ */
37
+ require_once( dirname( __FILE__ ) . '/class-veu-metabox-insert-items.php' );
38
+ }
39
+ add_action( 'admin_menu', 'veu_add_parent_metabox' );
40
+
41
+ /**
42
+ * Insert ExUnit Settings.
43
+ */
44
+ function veu_parent_metabox_body() {
45
+ echo '<div class="veu_metabox_nav">';
46
+ echo '<p class="veu_metabox_all_section_toggle close">';
47
+ echo '<button class="button button-default veu_metabox_all_section_toggle_btn_open">' . __( 'Open all', 'vk-all-in-one-expansion-unit' ) . ' <i class="fas fa-caret-down"></i></button> ';
48
+ echo '<button class="button button-default veu_metabox_all_section_toggle_btn_close">' . __( 'Close all', 'vk-all-in-one-expansion-unit' ) . ' <i class="fas fa-caret-up"></i></button>';
49
+ echo '</p>';
50
+ echo '</div>';
51
+ do_action( 'veu_post_metabox_body' );
52
+ echo '<div class="veu_metabox_footer">';
53
+ echo veu_get_systemlogo_html();
54
+ echo '</div>';
55
+ }
admin/admin.php ADDED
@@ -0,0 +1,103 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Add Parent menu
4
+ Load master setting page
5
+ Print admin js
6
+ */
7
+
8
+ require dirname( __FILE__ ) . '/admin-common-init.php';
9
+ require dirname( __FILE__ ) . '/disable-guide.php';
10
+ require dirname( __FILE__ ) . '/customizer.php';
11
+
12
+ // plugins_loaded の位置ではmetaboxを統合しない設定にしても個別のmetaboxが表示されない
13
+ require dirname( __FILE__ ) . '/admin-post-metabox.php';
14
+
15
+ // 親メニューが出力される前に フックを通さずに直接読み込むとページが表示されなくなる
16
+ add_action( 'plugin_loaded', 'veu_load_main_setting_page' );
17
+ function veu_load_main_setting_page() {
18
+ require_once dirname( __FILE__ ) . '/admin-main-setting-page.php';
19
+ require_once dirname( __FILE__ ) . '/vk-admin/vk-admin-config.php';
20
+ }
21
+
22
+ /*
23
+ Add Parent menu
24
+ /*-------------------------------------------*/
25
+ add_action( 'admin_menu', 'veu_setting_menu_parent' );
26
+ function veu_setting_menu_parent() {
27
+ global $menu;
28
+
29
+ $parent_name = veu_get_little_short_name();
30
+
31
+ $capability_required = 'activate_plugins';
32
+
33
+ $custom_page = add_menu_page(
34
+ $parent_name, // Name of page
35
+ $parent_name, // Label in menu
36
+ $capability_required,
37
+ 'vkExUnit_setting_page', // ユニークなこのサブメニューページの識別子
38
+ 'vkExUnit_add_setting_page' // メニューページのコンテンツを出力する関数
39
+ );
40
+ if ( ! $custom_page ) {
41
+ return; }
42
+ }
43
+
44
+ /*
45
+ Load master setting page
46
+ /*-------------------------------------------*/
47
+ function vkExUnit_add_setting_page() {
48
+ require dirname( __FILE__ ) . '/admin-active-setting-page.php';
49
+ }
50
+
51
+ /*
52
+ Print admin js
53
+ /*-------------------------------------------*/
54
+ // add_action( 'admin_print_scripts-exunit_page_vkExUnit_main_setting', 'veu_admin_add_js' );
55
+ add_action( 'admin_enqueue_scripts', 'veu_admin_add_js' );
56
+ function veu_admin_add_js( $hook_suffix ) {
57
+ global $vkExUnit_version;
58
+ wp_enqueue_media();
59
+ wp_register_script( 'vkExUnit_admin_js', veu_get_directory_uri() . '/assets/js/vkExUnit_admin.js', array( 'jquery' ), $vkExUnit_version );
60
+ wp_enqueue_script( 'jquery' );
61
+ wp_enqueue_script( 'vkExUnit_admin_js' );
62
+ }
63
+
64
+ add_action( 'admin_enqueue_scripts', 'veu_admin_css' );
65
+ function veu_admin_css() {
66
+ global $vkExUnit_version;
67
+ wp_enqueue_style( 'veu_admin_css', veu_get_directory_uri() . '/assets/css/vkExUnit_admin.css', array(), $vkExUnit_version, 'all' );
68
+ }
69
+
70
+ /*
71
+ 管理画面_admin_head JavaScriptのデバッグコンソールにhook_suffixの値を出力
72
+ /*-------------------------------------------*/
73
+ // add_action("admin_head", 'vkExUnit_suffix2console');
74
+ // function vkExUnit_suffix2console() {
75
+ // global $hook_suffix;
76
+ // if (is_user_logged_in()) {
77
+ // $str = "<script type=\"text/javascript\">console.log('%s')</script>";
78
+ // printf($str, $hook_suffix);
79
+ // }
80
+ // }
81
+
82
+ add_action( 'admin_bar_menu', 'vkExUnit_package_adminbar', 43 );
83
+ function vkExUnit_package_adminbar( $wp_admin_bar ) {
84
+
85
+ if ( ! current_user_can( 'activate_plugins' ) ) {
86
+ return; }
87
+
88
+ global $vkExUnit_options;
89
+ if ( ! isset( $vkExUnit_options ) || ! count( $vkExUnit_options ) ) {
90
+ return;
91
+ }
92
+
93
+ foreach ( $vkExUnit_options as $opt ) {
94
+ $wp_admin_bar->add_node(
95
+ array(
96
+ 'parent' => 'veu_adminlink_main',
97
+ 'title' => $opt['tab_label'],
98
+ 'id' => 'vew_configbar_' . $opt['option_name'],
99
+ 'href' => admin_url() . 'admin.php?page=vkExUnit_main_setting#' . $opt['option_name'],
100
+ )
101
+ );
102
+ }
103
+ }
{plugins_admin → admin}/admin_bar.php RENAMED
@@ -30,7 +30,7 @@ function vkExUnit_adminbar_link( $wp_admin_bar ) {
30
  array(
31
  'parent' => 'veu_adminlink',
32
  'id' => 'veu_adminlink_active',
33
- 'title' => __( 'Active Setting', 'vkExUnit' ),
34
  'href' => admin_url() . 'admin.php?page=vkExUnit_setting_page',
35
  )
36
  );
@@ -41,7 +41,7 @@ function vkExUnit_adminbar_link( $wp_admin_bar ) {
41
  array(
42
  'parent' => 'veu_adminlink',
43
  'id' => 'veu_adminlink_main',
44
- 'title' => __( 'Main Setting', 'vkExUnit' ),
45
  'href' => admin_url() . 'admin.php?page=vkExUnit_main_setting',
46
  )
47
  );
30
  array(
31
  'parent' => 'veu_adminlink',
32
  'id' => 'veu_adminlink_active',
33
+ 'title' => __( 'Active Setting', 'vk-all-in-one-expansion-unit' ),
34
  'href' => admin_url() . 'admin.php?page=vkExUnit_setting_page',
35
  )
36
  );
41
  array(
42
  'parent' => 'veu_adminlink',
43
  'id' => 'veu_adminlink_main',
44
+ 'title' => __( 'Main Setting', 'vk-all-in-one-expansion-unit' ),
45
  'href' => admin_url() . 'admin.php?page=vkExUnit_main_setting',
46
  )
47
  );
admin/class-veu-metabox-insert-items.php ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ require_once( veu_get_directory() . '/admin/class-veu-metabox.php' );
4
+
5
+ class VEU_Metabox_Insert_Items extends VEU_Metabox {
6
+
7
+ public function __construct( $args = array() ) {
8
+
9
+ $this->args = array(
10
+ 'slug' => 'veu_insert_items',
11
+ 'cf_name' => '',
12
+ 'title' => __( 'Setting of insert items', 'vk-all-in-one-expansion-unit' ),
13
+ 'priority' => 10,
14
+ 'post_types' => array( 'page' ),
15
+ );
16
+
17
+ parent::__construct( $this->args );
18
+
19
+ }
20
+
21
+ public function metabox_body( $display = true ) {
22
+ do_action( 'veu_metabox_insert_items' );
23
+ }
24
+
25
+
26
+ } // class VEU_Metabox_Insert_Items {
27
+
28
+ $veu_metabox_insert_items = new VEU_Metabox_Insert_Items();
admin/class-veu-metabox.php ADDED
@@ -0,0 +1,156 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class VEU_Metabox {
4
+
5
+ public $args;
6
+ public $veu_get_common_options;
7
+
8
+ public function __construct( $args = array() ) {
9
+
10
+ $this->veu_get_common_options = veu_get_common_options();
11
+
12
+ $post_type_paras = array(
13
+ 'public' => true,
14
+ );
15
+
16
+ $defaults = array(
17
+ 'slug' => '',
18
+ 'cf_name' => '',
19
+ 'title' => '',
20
+ 'priority' => 10,
21
+ 'individual' => $this->veu_get_common_options['post_metabox_individual'],
22
+ 'post_types' => get_post_types( $post_type_paras ),
23
+ );
24
+
25
+ $this->args = wp_parse_args( $args, $defaults );
26
+
27
+ if ( $this->args['individual'] ) {
28
+ // 通常メタボックスの追加タイミングは admin_menu だが,
29
+ // ここでは admin_init でないと反映されないため
30
+ add_action( 'admin_init', array( $this, 'add_individual_metabox' ) );
31
+ } else {
32
+ // Parent metabox activate
33
+ add_filter( 'veu_parent_metabox_activation', array( $this, 'metabox_activate' ), 10, 1 );
34
+ // 共通のメタボックスの中身を呼び込む
35
+ add_action( 'veu_post_metabox_body', array( $this, 'the_meta_section' ), $this->args['priority'] );
36
+ }
37
+
38
+ add_action( 'save_post', array( $this, 'save_custom_field' ) );
39
+
40
+ }
41
+
42
+ public function metabox_activate( $flag ) {
43
+ return true;
44
+ }
45
+
46
+ /**
47
+ * add_individual_metabox
48
+ * === Now use common metabox that this function is not used
49
+ */
50
+ public function add_individual_metabox() {
51
+ // add_meta_box( 'aaa', 'ArrayIterator', array( $this, 'metabox_body' ), 'page', 'normal', 'high' );
52
+ foreach ( $this->args['post_types'] as $key => $post_type ) {
53
+ add_meta_box( $this->args['slug'], $this->args['title'], array( $this, 'metabox_body' ), $post_type, 'normal', 'high' );
54
+ }
55
+ }
56
+
57
+ /**
58
+ * the_meta_section
59
+ *
60
+ * @return [type] [description]
61
+ */
62
+ public function the_meta_section() {
63
+
64
+ // 今編集しているページの投稿タイプ
65
+ $now_post_type = get_post_type();
66
+
67
+ // このメタボックスを表示する投稿タイプの時
68
+ if ( is_array( $this->args['post_types'] ) && in_array( $now_post_type, $this->args['post_types'] ) ) {
69
+ // Outer class
70
+ $outer_class = '';
71
+ if ( ! empty( $this->args['slug'] ) ) {
72
+ $outer_class = ' ' . $this->args['slug'];
73
+ }
74
+ echo '<div class="veu_metabox_section' . $outer_class . '">';
75
+ // Section title
76
+ if ( ! empty( $this->args['title'] ) ) {
77
+ echo '<h3 class="veu_metabox_section_title">' . wp_kses_post( $this->args['title'] ) . '';
78
+ echo '<span class="veu_metabox_section_title_status_btn close"><i class="fas fa-caret-down"></i></span>';
79
+ echo '<span class="veu_metabox_section_title_status_btn open"><i class="fas fa-caret-up"></i></span>';
80
+ echo '</h3>';
81
+ }
82
+ echo '<div class="veu_metabox_section_body">';
83
+ echo $this->metabox_body( false );
84
+ echo '</div><!-- [ /.veu_metabox_section_body ] -->';
85
+ echo '</div><!-- [ /.veu_metabox_section ] -->';
86
+ }
87
+
88
+ } // if ( is_array( $this->args['post_types'] ) && in_array( $now_post_type, $this->args['post_types'] ) ) {
89
+
90
+ /**
91
+ * metabox_body
92
+ * フォームの外側共通部分
93
+ *
94
+ * @return [type] [description]
95
+ */
96
+ public function metabox_body( $display = true ) {
97
+
98
+ $cf_value = get_post_meta( get_the_id(), $this->args['cf_name'], true );
99
+
100
+ $body = '';
101
+ $body .= wp_nonce_field( wp_create_nonce( __FILE__ ), 'noncename__' . $this->args['cf_name'], true, false );
102
+
103
+ $body .= $this->metabox_body_form( $cf_value );
104
+
105
+ if ( $display ) {
106
+ echo $body;
107
+ } else {
108
+ return $body;
109
+ }
110
+ }
111
+
112
+ /**
113
+ * metabox_body_form
114
+ * フォーム内側部分。クラスの継承で上書きする前提
115
+ *
116
+ * @return [type] [description]
117
+ */
118
+ public function metabox_body_form( $cf_value ) {
119
+
120
+ if ( $cf_value ) {
121
+ $checked = ' checked';
122
+ } else {
123
+ $checked = '';
124
+ }
125
+
126
+ $label = __( 'Hide this page to HTML Sitemap.', 'vk-all-in-one-expansion-unit' );
127
+
128
+ $form = '';
129
+ $form .= '<ul>';
130
+ $form .= '<li><label>' . '<input type="checkbox" id="' . esc_attr( $this->args['cf_name'] ) . '" name="' . esc_attr( $this->args['cf_name'] ) . '" value="true"' . $checked . '> ' . $label . '</label></li>';
131
+ $form .= '</ul>';
132
+
133
+ return $form;
134
+ }
135
+
136
+ public function save_custom_field( $post_id ) {
137
+
138
+ // if autosave then deny
139
+ if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {
140
+ return $post_id; }
141
+
142
+ // 設定したnonce を取得(CSRF対策)
143
+ $noncename__value = isset( $_POST[ 'noncename__' . $this->args['cf_name'] ] ) ? $_POST[ 'noncename__' . $this->args['cf_name'] ] : null;
144
+
145
+ // nonce を確認し、値が書き換えられていれば、何もしない(CSRF対策)
146
+ if ( ! wp_verify_nonce( $noncename__value, wp_create_nonce( __FILE__ ) ) ) {
147
+ return $post_id;
148
+ }
149
+
150
+ delete_post_meta( $post_id, $this->args['cf_name'] );
151
+ if ( ! empty( $_POST[ $this->args['cf_name'] ] ) ) {
152
+ add_post_meta( $post_id, $this->args['cf_name'], $_POST[ $this->args['cf_name'] ] );
153
+ }
154
+
155
+ }
156
+ } // class VEU_Metabox {
{plugins_admin → admin}/customizer.php RENAMED
@@ -35,7 +35,7 @@ function veu_customize_register( $wp_customize ) {
35
  'priority' => 1000,
36
  'capability' => 'edit_theme_options',
37
  'theme_supports' => '',
38
- 'title' => veu_get_prefix_customize_panel() . ' ' . __( 'Settings', 'vkExUnit' ),
39
  )
40
  );
41
 
35
  'priority' => 1000,
36
  'capability' => 'edit_theme_options',
37
  'theme_supports' => '',
38
+ 'title' => veu_get_prefix_customize_panel() . ' ' . __( 'Settings', 'vk-all-in-one-expansion-unit' ),
39
  )
40
  );
41
 
plugins_admin/disable_guide.php → admin/disable-guide.php RENAMED
@@ -14,7 +14,7 @@ function vkExUnit_adminbar_disable( $wp_admin_bar ) {
14
  if ( is_user_logged_in() && ! is_admin() && current_user_can( 'administrator' ) || current_user_can( 'editor' ) ) {
15
  $args = array(
16
  'id' => 'veu_disable_admin_edit',
17
- 'title' => __( 'Edit Guide', 'vkExUnit' ).' : <span class="_show">SHOW</span><span class="_hide">HIDE</span>',
18
  'meta' => array( 'class' => 'veu_admin_bar_disable_button' , 'onClick' => 'javascript:void(0);' ),
19
  );
20
  $wp_admin_bar->add_node( $args );
14
  if ( is_user_logged_in() && ! is_admin() && current_user_can( 'administrator' ) || current_user_can( 'editor' ) ) {
15
  $args = array(
16
  'id' => 'veu_disable_admin_edit',
17
+ 'title' => __( 'Edit Guide', 'vk-all-in-one-expansion-unit' ).' : <span class="_show">SHOW</span><span class="_hide">HIDE</span>',
18
  'meta' => array( 'class' => 'veu_admin_bar_disable_button' , 'onClick' => 'javascript:void(0);' ),
19
  );
20
  $wp_admin_bar->add_node( $args );
{plugins_admin/vk-admin → admin/vk-admin/package}/_scss/vk_admin.scss RENAMED
File without changes
{plugins_admin/vk-admin → admin/vk-admin/package}/class-vk-admin-info.php RENAMED
File without changes
{plugins_admin/vk-admin → admin/vk-admin/package}/class-vk-admin.php RENAMED
@@ -21,8 +21,6 @@ if ( ! class_exists( 'Vk_Admin' ) ) {
21
 
22
  static function init() {
23
  add_action( 'admin_enqueue_scripts', array( __CLASS__, 'admin_common_css' ) );
24
- // メイン設定画面などで画像アップロードに必要
25
- add_action( 'admin_enqueue_scripts', array( __CLASS__, 'admin_enqueue_scripts' ) );
26
  add_action( 'customize_register', array( __CLASS__, 'admin_common_css' ) );
27
  add_action( 'wp_dashboard_setup', array( __CLASS__, 'dashboard_widget' ), 1 );
28
  }
@@ -46,22 +44,27 @@ if ( ! class_exists( 'Vk_Admin' ) ) {
46
  }
47
  }
48
 
 
 
49
  /*--------------------------------------------------*/
50
- /* get_admin_banner
 
51
  /*--------------------------------------------------*/
52
- /* get_news_body_api
 
53
  /*--------------------------------------------------*/
54
- /* get_news_from_rss
 
55
  /*--------------------------------------------------*/
56
- /* admin _ Dashboard Widget
 
57
  /*--------------------------------------------------*/
58
- /* admin _ sub
59
- /*--------------------------------------------------*/
60
- /* admin _ page_frame
61
  /*--------------------------------------------------*/
62
 
63
- /*--------------------------------------------------*/
64
- /* get_admin_banner
65
  /*--------------------------------------------------*/
66
  public static function get_admin_banner() {
67
  $banner = '';
@@ -69,6 +72,14 @@ if ( ! class_exists( 'Vk_Admin' ) ) {
69
  $lang = ( get_locale() == 'ja' ) ? 'ja' : 'en';
70
 
71
  $banner .= '<div class="vk-admin-banner">';
 
 
 
 
 
 
 
 
72
  $banner .= '<div class="vk-admin-banner-grid">';
73
 
74
  // プラグイン Link Target Controller を有効化していない人にバナーを表示
@@ -143,8 +154,8 @@ if ( ! class_exists( 'Vk_Admin' ) ) {
143
  return apply_filters( 'vk_admin_banner_html', $banner );
144
  }
145
 
146
- /*--------------------------------------------------*/
147
- /* get_news_body
148
  /*--------------------------------------------------*/
149
  public static function get_news_body() {
150
  if ( 'ja' == get_locale() ) {
@@ -156,8 +167,8 @@ if ( ! class_exists( 'Vk_Admin' ) ) {
156
  }
157
  }
158
 
159
- /*--------------------------------------------------*/
160
- /* get_news_body_api
161
  /*--------------------------------------------------*/
162
 
163
  public static function get_news_from_rest_api() {
@@ -241,8 +252,8 @@ if ( ! class_exists( 'Vk_Admin' ) ) {
241
  <?php
242
  }
243
 
244
- /*--------------------------------------------------*/
245
- /* get_news_from_rss
246
  /* RSS方針で現在は日本語以外でのみ使用
247
  /*--------------------------------------------------*/
248
  public static function get_news_from_rss() {
@@ -268,7 +279,7 @@ if ( ! class_exists( 'Vk_Admin' ) ) {
268
  if ( ! is_wp_error( $rss ) ) {
269
  $output = '';
270
 
271
- $maxitems = $rss->get_item_quantity( 5 ); //number of news to display (maximum)
272
  $rss_items = $rss->get_items( 0, $maxitems );
273
  $output .= '<div class="rss-widget">';
274
  $output .= '<h4 class="vk-metabox-sub-title">' . apply_filters( 'vk-admin-sub-title-text', 'Information' ) . '</h4>';
@@ -322,8 +333,8 @@ if ( ! class_exists( 'Vk_Admin' ) ) {
322
 
323
  return apply_filters( 'vk-admin-is-dashboard-active', $flag );
324
  }
325
- /*--------------------------------------------------*/
326
- /* admin _ Dashboard Widget
327
  /*--------------------------------------------------*/
328
  public static function dashboard_widget() {
329
  global $vk_admin_textdomain;
@@ -341,8 +352,8 @@ if ( ! class_exists( 'Vk_Admin' ) ) {
341
  echo Vk_Admin::get_admin_banner();
342
  }
343
 
344
- /*--------------------------------------------------*/
345
- /* admin _ sub
346
  /*--------------------------------------------------*/
347
  // 2016.08.07 ExUnitの有効化ページでは直接 admin_subを呼び出しているので注意
348
  public static function admin_sub() {
@@ -357,8 +368,8 @@ if ( ! class_exists( 'Vk_Admin' ) ) {
357
  return $adminSub;
358
  }
359
 
360
- /*--------------------------------------------------*/
361
- /* admin _ page_frame
362
  /*--------------------------------------------------*/
363
  public static function admin_page_frame( $get_page_title, $the_body_callback, $get_logo_html = '', $get_menu_html = '', $get_layout = 'column_3' ) {
364
  ?>
21
 
22
  static function init() {
23
  add_action( 'admin_enqueue_scripts', array( __CLASS__, 'admin_common_css' ) );
 
 
24
  add_action( 'customize_register', array( __CLASS__, 'admin_common_css' ) );
25
  add_action( 'wp_dashboard_setup', array( __CLASS__, 'dashboard_widget' ), 1 );
26
  }
44
  }
45
  }
46
 
47
+ /*
48
+ get_admin_banner
49
  /*--------------------------------------------------*/
50
+ /*
51
+ get_news_body_api
52
  /*--------------------------------------------------*/
53
+ /*
54
+ get_news_from_rss
55
  /*--------------------------------------------------*/
56
+ /*
57
+ admin _ Dashboard Widget
58
  /*--------------------------------------------------*/
59
+ /*
60
+ admin _ sub
61
  /*--------------------------------------------------*/
62
+ /*
63
+ admin _ page_frame
 
64
  /*--------------------------------------------------*/
65
 
66
+ /*
67
+ get_admin_banner
68
  /*--------------------------------------------------*/
69
  public static function get_admin_banner() {
70
  $banner = '';
72
  $lang = ( get_locale() == 'ja' ) ? 'ja' : 'en';
73
 
74
  $banner .= '<div class="vk-admin-banner">';
75
+ if ( $lang == 'ja' ) {
76
+ $banner .= '<a class="admin_banner" href="https://recruit.vektor-inc.co.jp/?rel=vkadmin" target="_blank">';
77
+ $banner .= '<img src="' . $dir_url . 'images/admin_banner_recruit.jpg" alt="[ Vektor,Inc. 採用情報 ]" />';
78
+ $banner .= '</a>';
79
+ } else {
80
+ $banner .= '<a href="https://lightning.nagoya/lightning_copyright_customizer/?rel=vkadmin" target="_blank" class="button button-primary button-primary button-block" style="margin-bottom:1em;">Lightning Copyright Customizer <span class="screen-reader-text">(opens in a new tab)</span><span aria-hidden="true" class="dashicons dashicons-external" style="position:relative;top:3px;"></span></a>';
81
+ }
82
+
83
  $banner .= '<div class="vk-admin-banner-grid">';
84
 
85
  // プラグイン Link Target Controller を有効化していない人にバナーを表示
154
  return apply_filters( 'vk_admin_banner_html', $banner );
155
  }
156
 
157
+ /*
158
+ get_news_body
159
  /*--------------------------------------------------*/
160
  public static function get_news_body() {
161
  if ( 'ja' == get_locale() ) {
167
  }
168
  }
169
 
170
+ /*
171
+ get_news_body_api
172
  /*--------------------------------------------------*/
173
 
174
  public static function get_news_from_rest_api() {
252
  <?php
253
  }
254
 
255
+ /*
256
+ get_news_from_rss
257
  /* RSS方針で現在は日本語以外でのみ使用
258
  /*--------------------------------------------------*/
259
  public static function get_news_from_rss() {
279
  if ( ! is_wp_error( $rss ) ) {
280
  $output = '';
281
 
282
+ $maxitems = $rss->get_item_quantity( 5 ); // number of news to display (maximum)
283
  $rss_items = $rss->get_items( 0, $maxitems );
284
  $output .= '<div class="rss-widget">';
285
  $output .= '<h4 class="vk-metabox-sub-title">' . apply_filters( 'vk-admin-sub-title-text', 'Information' ) . '</h4>';
333
 
334
  return apply_filters( 'vk-admin-is-dashboard-active', $flag );
335
  }
336
+ /*
337
+ admin _ Dashboard Widget
338
  /*--------------------------------------------------*/
339
  public static function dashboard_widget() {
340
  global $vk_admin_textdomain;
352
  echo Vk_Admin::get_admin_banner();
353
  }
354
 
355
+ /*
356
+ admin _ sub
357
  /*--------------------------------------------------*/
358
  // 2016.08.07 ExUnitの有効化ページでは直接 admin_subを呼び出しているので注意
359
  public static function admin_sub() {
368
  return $adminSub;
369
  }
370
 
371
+ /*
372
+ admin _ page_frame
373
  /*--------------------------------------------------*/
374
  public static function admin_page_frame( $get_page_title, $the_body_callback, $get_logo_html = '', $get_menu_html = '', $get_layout = 'column_3' ) {
375
  ?>
{plugins_admin/vk-admin → admin/vk-admin/package}/config.rb RENAMED
File without changes
{plugins_admin/vk-admin → admin/vk-admin/package}/css/vk_admin.css RENAMED
File without changes
{plugins_admin/vk-admin → admin/vk-admin/package}/images/ExUnit_bnr.png RENAMED
File without changes
admin/vk-admin/package/images/admin_banner_recruit.jpg ADDED
Binary file
{plugins_admin/vk-admin → admin/vk-admin/package}/images/billvektor_banner.png RENAMED
File without changes
{plugins_admin/vk-admin → admin/vk-admin/package}/images/fort-bnr.jpg RENAMED
File without changes
{plugins_admin/vk-admin → admin/vk-admin/package}/images/jpnstyle-bnr.jpg RENAMED
File without changes
{plugins_admin/vk-admin → admin/vk-admin/package}/images/lightning-pro-bnr.jpg RENAMED
File without changes
{plugins_admin/vk-admin → admin/vk-admin/package}/images/lightning_bnr_en.jpg RENAMED
File without changes
{plugins_admin/vk-admin → admin/vk-admin/package}/images/lightning_bnr_ja.jpg RENAMED
File without changes
{plugins_admin/vk-admin → admin/vk-admin/package}/images/pale-bnr.jpg RENAMED
File without changes
{plugins_admin/vk-admin → admin/vk-admin/package}/images/post_author_display_bnr_en.jpg RENAMED
File without changes
{plugins_admin/vk-admin → admin/vk-admin/package}/images/post_author_display_bnr_ja.jpg RENAMED
File without changes
{plugins_admin/vk-admin → admin/vk-admin/package}/images/variety-bnr.jpg RENAMED
File without changes
{plugins_admin/vk-admin → admin/vk-admin/package}/images/vektor_logo.png RENAMED
File without changes
{plugins_admin/vk-admin → admin/vk-admin/package}/images/vk-link-target-controller_bnr.jpg RENAMED
File without changes
{plugins_admin/vk-admin → admin/vk-admin/package}/images/vk-link-target-controller_notxt_bnr.jpg RENAMED
File without changes
{plugins_admin/vk-admin → admin/vk-admin/package}/js/vk_admin.js RENAMED
@@ -25,14 +25,14 @@ jQuery(document).ready(function($){
25
  return;
26
  }
27
  custom_uploader = wp.media({
28
- title: 'Choose Image',
29
  // 以下のコメントアウトを解除すると画像のみに限定される。 → されないみたい
30
  library: {
31
  type: 'image'
32
  },
33
- button: {
34
- text: 'Choose Image'
35
- },
36
  multiple: false, // falseにすると画像を1つしか選択できなくなる
37
  });
38
  custom_uploader.on('select', function() {
@@ -133,7 +133,7 @@ function navMove( default_offset, contentHeight ){
133
  /* ページ内リンクで頭出しの余白を適切にする
134
  /*-------------------------------------------*/
135
  jQuery(document).ready(function(){
136
- if(!jQuery('body').hasClass('vk-exunit_page_vkExUnit_main_setting')){ return; }
137
  // 一つ目のセクションの位置を取得
138
  var default_offset = jQuery('.adminMain section:first-child').offset();
139
 
25
  return;
26
  }
27
  custom_uploader = wp.media({
28
+ // title: 'Choose Image',
29
  // 以下のコメントアウトを解除すると画像のみに限定される。 → されないみたい
30
  library: {
31
  type: 'image'
32
  },
33
+ // button: {
34
+ // text: 'Choose Image'
35
+ // },
36
  multiple: false, // falseにすると画像を1つしか選択できなくなる
37
  });
38
  custom_uploader.on('select', function() {
133
  /* ページ内リンクで頭出しの余白を適切にする
134
  /*-------------------------------------------*/
135
  jQuery(document).ready(function(){
136
+ if(!jQuery('body').hasClass('exunit_page_vkExUnit_main_setting')){ return; }
137
  // 一つ目のセクションの位置を取得
138
  var default_offset = jQuery('.adminMain section:first-child').offset();
139
 
admin/vk-admin/vk-admin-config.php ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /*
4
+ Load modules
5
+ /*-------------------------------------------*/
6
+ if ( ! class_exists( 'Vk_Admin' ) ) {
7
+ require_once( 'package/class-vk-admin.php' );
8
+ }
9
+
10
+ global $vk_admin_textdomain;
11
+ $vk_admin_textdomain = 'vk-all-in-one-expansion-unit';
12
+
13
+ /*
14
+ $admin_pages の配列にいれる識別値は下記をコメントアウトすればとれる
15
+ /*-------------------------------------------*/
16
+
17
+ // add_action("admin_head", 'suffix2console');
18
+ // function suffix2console() {
19
+ // global $hook_suffix;
20
+ // if (is_user_logged_in()) {
21
+ // $str = "<script type=\"text/javascript\">console.log('%s')</script>";
22
+ // printf($str, $hook_suffix);
23
+ // }
24
+ // }
25
+ $admin_pages = array(
26
+ 'toplevel_page_vkExUnit_setting_page',
27
+ 'exunit_page_vkExUnit_main_setting',
28
+ 'widgets-php',
29
+ 'index.php',
30
+ );
31
+ Vk_Admin::admin_scripts( $admin_pages );
admin_main_setting_page.php DELETED
@@ -1,132 +0,0 @@
1
- <?php
2
-
3
- /*-------------------------------------------*/
4
- /* Main Setting Page _ メニューに追加
5
- /*-------------------------------------------*/
6
- function vkExUnit_add_main_setting() {
7
- // $capability_required = veu_get_capability_required();
8
- $custom_page = add_submenu_page(
9
- 'vkExUnit_setting_page', // parent
10
- __( 'Main setting', 'vkExUnit' ), // Name of page
11
- __( 'Main setting', 'vkExUnit' ), // Label in menu
12
- 'activate_plugins', // veu_get_capability_required()でないのは edit_theme_options権限を付与したユーザーにもアクセスさせないためにactivate_pluginsにしている。
13
- // $capability_required, // Capability
14
- 'vkExUnit_main_setting', // ユニークなこのサブメニューページの識別子
15
- 'vkExUnit_render_main_frame' // メニューページのコンテンツを出力する関数
16
- );
17
- if ( ! $custom_page ) {
18
- return; }
19
- }
20
- add_action( 'admin_menu', 'vkExUnit_add_main_setting' );
21
-
22
-
23
- /*-------------------------------------------*/
24
- /* Main Setting Page _ ページのフレーム
25
- /*-------------------------------------------*/
26
- function vkExUnit_render_main_frame() {
27
-
28
- vkExUnit_save_main_config();
29
-
30
- // Left menu area top Title
31
- $get_page_title = veu_get_little_short_name() . ' Main setting';
32
-
33
- // Left menu area top logo
34
- $get_logo_html = veu_get_systemlogo_html();
35
-
36
- // $menu
37
- /*--------------------------------------------------*/
38
- global $vkExUnit_options;
39
- if ( ! isset( $vkExUnit_options ) ) {
40
- $vkExUnit_options = array();
41
- }
42
- $get_menu_html = '';
43
- foreach ( $vkExUnit_options as $vkoption ) {
44
- if ( ! isset( $vkoption['render_page'] ) ) {
45
- continue; }
46
- // $linkUrl = ($i == 0) ? 'wpwrap':$vkoption['option_name'];
47
- $linkUrl = $vkoption['option_name'];
48
- $get_menu_html .= '<li id="btn_"' . $vkoption['option_name'] . '" class="' . $vkoption['option_name'] . '"><a href="#' . $linkUrl . '">';
49
- $get_menu_html .= $vkoption['tab_label'];
50
- $get_menu_html .= '</a></li>';
51
- }
52
-
53
- Vk_Admin::admin_page_frame( $get_page_title, 'vkExUnit_the_main_setting_body', $get_logo_html, $get_menu_html );
54
-
55
- }
56
-
57
- /*-------------------------------------------*/
58
- /* Main Setting Page _ ページのメインエリアの中身
59
- /*-------------------------------------------*/
60
- function vkExUnit_the_main_setting_body() {
61
- global $vkExUnit_options;?>
62
- <form method="post" action="">
63
- <?php
64
- wp_nonce_field( 'standing_on_the_shoulder_of_giants', '_nonce_vkExUnit' );
65
- if ( is_array( $vkExUnit_options ) ) {
66
- echo '<div>'; // jsでfirst-child取得用
67
- foreach ( $vkExUnit_options as $vkoption ) {
68
-
69
- if ( empty( $vkoption['render_page'] ) ) {
70
- continue; }
71
-
72
- echo '<section id="' . $vkoption['option_name'] . '">';
73
-
74
- call_user_func_array( $vkoption['render_page'], array() );
75
-
76
- echo '</section>';
77
- }
78
- echo '</div>';
79
-
80
- } else {
81
-
82
- echo __( 'Activated Packages is noting. please activate some package.', 'vkExUnit' );
83
-
84
- }
85
- echo '</form>';
86
- }
87
-
88
- function vkExUnit_register_setting( $tab_label = 'tab_label', $option_name, $sanitize_callback, $render_page ) {
89
- global $vkExUnit_options;
90
- if ( ! isset( $vkExUnit_options ) ) {
91
- $vkExUnit_options = array();
92
- }
93
- $vkExUnit_options[] =
94
- array(
95
- 'option_name' => $option_name,
96
- 'callback' => $sanitize_callback,
97
- 'tab_label' => $tab_label,
98
- 'render_page' => $render_page,
99
- );
100
- }
101
-
102
- /*-------------------------------------------*/
103
- /* Main Setting Page _ 値をアップデート
104
- /*-------------------------------------------*/
105
- function vkExUnit_main_config_sanitaize( $post ) {
106
- global $vkExUnit_options;
107
-
108
- if ( ! empty( $vkExUnit_options ) ) {
109
- foreach ( $vkExUnit_options as $opt ) {
110
-
111
- if ( ! empty( $opt['callback'] ) ) {
112
- $before = ( ! empty( $post[ $opt['option_name'] ] ) ? $post[ $opt['option_name'] ] : null );
113
- $option = call_user_func_array( $opt['callback'], array( $before ) );
114
- }
115
-
116
- update_option( $opt['option_name'], $option );
117
- }
118
- }
119
- }
120
-
121
- function vkExUnit_save_main_config() {
122
-
123
- // nonce
124
- if ( ! isset( $_POST['_nonce_vkExUnit'] ) ) {
125
- return;
126
- }
127
- if ( ! wp_verify_nonce( $_POST['_nonce_vkExUnit'], 'standing_on_the_shoulder_of_giants' ) ) {
128
- return;
129
- }
130
-
131
- vkExUnit_main_config_sanitaize( $_POST );
132
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
admin_other_functions.php DELETED
@@ -1,19 +0,0 @@
1
- <?php
2
-
3
- add_action( 'admin_bar_menu', 'vkExUnit_package_adminbar', 43 );
4
- function vkExUnit_package_adminbar( $wp_admin_bar ) {
5
-
6
- if ( ! current_user_can( 'activate_plugins' ) ) { return; }
7
-
8
- global $vkExUnit_options;
9
- if (!isset($vkExUnit_options) || !count($vkExUnit_options)) return;
10
-
11
- foreach ($vkExUnit_options as $opt) {
12
- $wp_admin_bar->add_node( array(
13
- 'parent' => 'veu_adminlink_main',
14
- 'title' => $opt['tab_label'],
15
- 'id' => 'vew_configbar_'.$opt['option_name'],
16
- 'href' => admin_url() . 'admin.php?page=vkExUnit_main_setting#'.$opt['option_name']
17
- ));
18
- }
19
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
{_scss → assets/_scss}/_bootstrap.scss RENAMED
File without changes
{_scss → assets/_scss}/_contents_option_style.scss RENAMED
File without changes
assets/_scss/vkExUnit_admin.scss ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @charset "utf-8";
2
+ // @import "compass";
3
+
4
+ .wrap.debug_mode{
5
+ tr.dev_object{ display:table-row; }
6
+ }
7
+ .veu_metabox_nav {
8
+ position: relative;
9
+ display:block; overflow:hidden;
10
+ .veu_metabox_all_section_toggle {
11
+ position: relative;
12
+ right:0;
13
+ top:0;
14
+ // 以下スキンなどによって負けないように指定しているので消さないように
15
+ opacity: 1;
16
+ float:none;
17
+ }
18
+ }
19
+ .veu_metabox_footer {
20
+ padding-top:5px;
21
+ .logo_exUnit {
22
+ text-align: right;
23
+ border: none;
24
+ img { width:100px; }
25
+ }
26
+ }
27
+
28
+ .veu_metabox_all_section_toggle.close {
29
+ .veu_metabox_all_section_toggle_btn_open { display: block; }
30
+ .veu_metabox_all_section_toggle_btn_close { display: none; }
31
+ }
32
+ .veu_metabox_all_section_toggle.open {
33
+ .veu_metabox_all_section_toggle_btn_open { display: none; }
34
+ .veu_metabox_all_section_toggle_btn_close { display: block; }
35
+ }
36
+
37
+
38
+ .veu_metabox_section {
39
+ label {
40
+ font-weight: normal;
41
+ }
42
+ input[type=checkbox] {
43
+ margin-top:0;
44
+ margin-right:4px;
45
+ }
46
+ input,
47
+ select,
48
+ textarea {
49
+ margin-bottom:5px;
50
+ }
51
+ &_title {
52
+ position: relative;
53
+ border:1px solid #e5e5e5;
54
+ padding: 7px 1rem;
55
+ background-color: #f5f5f5;
56
+ margin:0 0 2px;
57
+ font-size: 14px;
58
+ cursor: pointer;
59
+ &_status_btn {
60
+ display:block; overflow:hidden;
61
+ position: absolute;
62
+ right:10px;
63
+ top:5px;
64
+ &.close{ display: block; }
65
+ &.open{ display: none;}
66
+ }
67
+ }
68
+ &_body {
69
+ display: none;
70
+ padding: 1rem 1rem 2rem;
71
+ }
72
+ }
73
+ .veu_metabox_section.open {
74
+ .veu_metabox_section_title_status_btn{
75
+ &.close{ display: none; }
76
+ &.open{ display: block;}
77
+
78
+ }
79
+ .veu_metabox_section_body{
80
+ display: block;
81
+ }
82
+ }
83
+
84
+ .body-open {
85
+ border:1px solid #ff0000;
86
+ }
87
+
88
+ .veu_sns_title {
89
+ input[type="text"] {
90
+ width: 100%;
91
+ }
92
+ }
{_scss → assets/_scss}/vkExUnit_editor_style.scss RENAMED
File without changes
{_scss → assets/_scss}/vkExUnit_style.scss RENAMED
@@ -55,7 +55,6 @@ $section_margin : 30px;
55
  /* .common
56
  /*-------------------------------------------*/
57
 
58
- html { font-size: inherit; } /* reset bootstrap */
59
  .link-list li { padding:0.5em; }
60
  iframe.wp-embedded-content { width:100%; }
61
 
@@ -139,42 +138,59 @@ iframe.wp-embedded-content { width:100%; }
139
  /*-------------------------------------------*/
140
  /* .veu_socialSet
141
  /*-------------------------------------------*/
142
- .veu_socialSet { margin-top:3em; }
143
- /*
144
- .veu_socialSet と .veu_contentAddSection 2つつけているのは一つだと .content ul などの継承に負けるため
145
- */
146
- .veu_socialSet.veu_contentAddSection ul { margin:0px;padding:0;display: flex;
147
- li { position:relative; display:block;overflow:visible; width: 50%; margin:3px; padding:0px; background:none;
148
- &.sb_icon a {display:block; overflow:hidden; padding: 7px 10px;border-radius: 4px; color:#fff;text-decoration: none; line-height: 100%; font-size: 90%;}
149
- &.sb_icon a:hover{
150
- box-shadow: none; transform: translate3d(0, 2px, 0); -webkit-transform: translate3d(0, 2px, 0);
151
- }
152
- &.sb_icon a .sns_txt { position: relative;top:-1px; }
153
- iframe { border:none; }
154
- a .icon_sns { font-size:100%;padding: 5px 8px 5px 0; display: inline-block; }
155
- &.sb_icon.sb_facebook a{ background: #425dab; box-shadow: 0 4px 0 rgb(52, 78, 132); }
156
- &.sb_icon.sb_hatena a { background: #007fc5; box-shadow: 0 4px 0 rgba(0,103,159,1); }
157
- &.sb_icon.sb_twitter a { background:#00abec; box-shadow: 0 4px 0 rgba(0,126,170,1); }
158
- &.sb_icon.sb_google a { background:#dd4b39; box-shadow: 0 4px 0 rgba(160,53,36,1); }
159
- &.sb_icon.sb_line a { background:#6ebd30; box-shadow: 0 4px 0 #5b9c28; }
160
- &.sb_icon.sb_pocket a { background: #ea4654; box-shadow: 0 4px 0 #c1303c; }//li.sb_pocket
161
- }//li
 
 
 
 
162
  }//.veu_socialSet ul
163
 
164
  .veu_count_sns_pocket,
165
  .veu_count_sns_fb,
166
- .veu_count_sns_hb { position: absolute; bottom: 5px; right: 5px; font-size:77%; line-height:1;font-weight: bold; }
 
167
 
168
  @media (max-width: 767px){
 
 
 
 
 
 
 
 
 
 
169
  /*
170
  .veu_socialSet と .veu_contentAddSection 2つつけているのは一つだと .content ul などの継承に負けるため
171
  */
172
- .veu_socialSet.veu_contentAddSection ul { flex-wrap:wrap; }
173
- .veu_socialSet.veu_contentAddSection ul li { width: 48%; margin-bottom: 9px;
174
- &:nth-child(even) { margin-right:0; }
175
- &.sb_icon a { padding: 8px 10px; }
176
  }
177
- .pocket-count, .veu_count_sns_fb, .veu_count_sns_hb { bottom: 2px;}
 
 
 
178
  }
179
 
180
 
@@ -185,11 +201,11 @@ iframe.wp-embedded-content { width:100%; }
185
  font-weight: normal;
186
  font-style: normal;
187
  font-family: 'vk_sns';
188
- src:url('../plugins/sns/icons/fonts/vk_sns.eot?-bq20cj');
189
- src:url('../plugins/sns/icons/fonts/vk_sns.eot?#iefix-bq20cj') format('embedded-opentype'),
190
- url('../plugins/sns/icons/fonts/vk_sns.woff?-bq20cj') format('woff'),
191
- url('../plugins/sns/icons/fonts/vk_sns.ttf?-bq20cj') format('truetype'),
192
- url('../plugins/sns/icons/fonts/vk_sns.svg?-bq20cj#vk_sns') format('svg');
193
  }
194
 
195
  [class^="vk_icon_w_r_sns_"], [class*=" vk_icon_w_r_sns_"] {
@@ -257,7 +273,7 @@ $section_pagelist_margin:2.5em 0 1em;
257
  -webkit-flex-wrap: wrap; /* Safari */
258
  justify-content: space-between;
259
  -webkit-justify-content: space-between; /* Safari */
260
- .childPage_list_box { width: 48%;display: flex; }
261
  }
262
  } // @media (max-width: 767px){
263
 
@@ -386,7 +402,7 @@ $section_pagelist_margin:2.5em 0 1em;
386
  /*-------------------------------------------*/
387
  /* .veu_cta
388
  /*-------------------------------------------*/
389
- @import "../plugins/call-to-action/_scss/_call-to-action";
390
 
391
  /*-------------------------------------------*/
392
  /* .veu_contact
@@ -398,7 +414,8 @@ $section_pagelist_margin:2.5em 0 1em;
398
  .contact_txt_time { display:block; overflow:hidden; }
399
  .contact_txt_catch,
400
  .contact_txt_time {font-size: 14px; line-height: 128.6%; }
401
- .contact_txt_tel {padding:4px 0; font-size: 28px;line-height: 105%; }
 
402
  .contact_bt_subTxt { display:block; overflow:hidden;font-size:12px;margin-top:0.4rem; }
403
  .contact_txt { text-align: center; }
404
  .contact_bt { display: block; }
@@ -478,7 +495,7 @@ $section_pagelist_margin:2.5em 0 1em;
478
  /*-------------------------------------------*/
479
  /* .veu_pagetop-btn
480
  /*-------------------------------------------*/
481
- @import "../plugins/pagetop-btn/_scss/_pagetop-btn.scss";
482
 
483
  /*-------------------------------------------*/
484
  /* Widget .veu_fbPagePlugin
@@ -644,11 +661,6 @@ iframe.twitter-timeline {margin-right:auto; margin-left:auto; width: 740px !impo
644
  }
645
  .prBlock_summary{ margin-bottom: 0.5em; text-align: center; font-size: 14px; line-height: 1.6em; }
646
  }
647
- /*
648
- 入れ子にするとLightning テーマ埋め込みの3PRブロックのアイコンカラーが負けるので、各スキンの方で継承を強くするまで旦軽くする為に個別記載とする
649
- */
650
- .prBlock_icon { color: #fff; }
651
- // }
652
 
653
  @media screen and (max-width:992px){
654
  // .veu_prBlocks{
55
  /* .common
56
  /*-------------------------------------------*/
57
 
 
58
  .link-list li { padding:0.5em; }
59
  iframe.wp-embedded-content { width:100%; }
60
 
138
  /*-------------------------------------------*/
139
  /* .veu_socialSet
140
  /*-------------------------------------------*/
141
+ /* 通常タイトルと本文の間に一定の余白があるが、余白分離れてSNSボタンが表示されると微妙なのでマイナスオフセットで余白を詰めている */
142
+ .veu_socialSet-position-before {
143
+ margin-top:-1em;margin-bottom:2em
144
+ }
145
+ .veu_socialSet-position-after { margin-top:3em; }
146
+
147
+ .veu_socialSet {
148
+ ul {
149
+ display: flex;
150
+ }
151
+ li { width: 50%;background:none;position:relative; display:block;overflow:visible;box-sizing: border-box; }
152
+ .sb_icon a {display:block; overflow:hidden; padding: 5px 10px;border-radius: 4px; color:#fff;text-decoration: none; line-height: 100%; font-size: 90%;}
153
+ .sb_icon a:hover{
154
+ box-shadow: none; transform: translate3d(0, 2px, 0); -webkit-transform: translate3d(0, 2px, 0);
155
+ }
156
+ .sb_icon a .sns_txt { position: relative;top:-1px; }
157
+ iframe { border:none; }
158
+ a .icon_sns { font-size:100%;padding: 5px 8px 5px 0; display: inline-block; }
159
+ .sb_icon.sb_facebook a{ background: #425dab; box-shadow: 0 4px 0 rgb(52, 78, 132); }
160
+ .sb_icon.sb_hatena a { background: #007fc5; box-shadow: 0 4px 0 rgba(0,103,159,1); }
161
+ .sb_icon.sb_twitter a { background:#00abec; box-shadow: 0 4px 0 rgba(0,126,170,1); }
162
+ .sb_icon.sb_google a { background:#dd4b39; box-shadow: 0 4px 0 rgba(160,53,36,1); }
163
+ .sb_icon.sb_line a { background:#6ebd30; box-shadow: 0 4px 0 #5b9c28; }
164
+ .sb_icon.sb_pocket a { background: #ea4654; box-shadow: 0 4px 0 #c1303c; }//li.sb_pocket
165
  }//.veu_socialSet ul
166
 
167
  .veu_count_sns_pocket,
168
  .veu_count_sns_fb,
169
+ .veu_count_sns_hb { position: absolute; bottom: 5px; right: 5px; font-size:77%; line-height:1;font-weight: bold;
170
+ }
171
 
172
  @media (max-width: 767px){
173
+ .veu_socialSet {
174
+ ul { flex-wrap:wrap; }
175
+ li { width:calc( 50% - 6px); }
176
+ .veu_count_sns_pocket,
177
+ .veu_count_sns_fb,
178
+ .veu_count_sns_hb { bottom: 2px; }
179
+ .sb_icon a { padding: 8px 10px; }
180
+ }
181
+ }
182
+
183
  /*
184
  .veu_socialSet と .veu_contentAddSection 2つつけているのは一つだと .content ul などの継承に負けるため
185
  */
186
+ .veu_socialSet.veu_contentAddSection ul {
187
+ margin:0px;padding:0;
188
+ li { margin:3px; padding:0px; }//li
 
189
  }
190
+ @media (max-width: 767px){
191
+ .veu_socialSet.veu_contentAddSection ul li {
192
+ margin-bottom: 9px;
193
+ }
194
  }
195
 
196
 
201
  font-weight: normal;
202
  font-style: normal;
203
  font-family: 'vk_sns';
204
+ src:url('../../inc/sns/icons/fonts/vk_sns.eot?-bq20cj');
205
+ src:url('../../inc/sns/icons/fonts/vk_sns.eot?#iefix-bq20cj') format('embedded-opentype'),
206
+ url('../../inc/sns/icons/fonts/vk_sns.woff?-bq20cj') format('woff'),
207
+ url('../../inc/sns/icons/fonts/vk_sns.ttf?-bq20cj') format('truetype'),
208
+ url('../../inc/sns/icons/fonts/vk_sns.svg?-bq20cj#vk_sns') format('svg');
209
  }
210
 
211
  [class^="vk_icon_w_r_sns_"], [class*=" vk_icon_w_r_sns_"] {
273
  -webkit-flex-wrap: wrap; /* Safari */
274
  justify-content: space-between;
275
  -webkit-justify-content: space-between; /* Safari */
276
+ .childPage_list_box { width: 48%; }
277
  }
278
  } // @media (max-width: 767px){
279
 
402
  /*-------------------------------------------*/
403
  /* .veu_cta
404
  /*-------------------------------------------*/
405
+ @import "../../inc/call-to-action/package/_scss/_call-to-action";
406
 
407
  /*-------------------------------------------*/
408
  /* .veu_contact
414
  .contact_txt_time { display:block; overflow:hidden; }
415
  .contact_txt_catch,
416
  .contact_txt_time {font-size: 14px; line-height: 128.6%; }
417
+ .contact_txt_tel {padding:4px 0; font-size: 28px;line-height: 105%;font-weight: 700;}
418
+ .contact_txt_tel_icon { margin-right:0.3rem; }
419
  .contact_bt_subTxt { display:block; overflow:hidden;font-size:12px;margin-top:0.4rem; }
420
  .contact_txt { text-align: center; }
421
  .contact_bt { display: block; }
495
  /*-------------------------------------------*/
496
  /* .veu_pagetop-btn
497
  /*-------------------------------------------*/
498
+ @import "../../inc/pagetop-btn/_scss/_pagetop-btn.scss";
499
 
500
  /*-------------------------------------------*/
501
  /* Widget .veu_fbPagePlugin
661
  }
662
  .prBlock_summary{ margin-bottom: 0.5em; text-align: center; font-size: 14px; line-height: 1.6em; }
663
  }
 
 
 
 
 
664
 
665
  @media screen and (max-width:992px){
666
  // .veu_prBlocks{
{_scss → assets/_scss}/vkExUnit_style_in_bs.scss RENAMED
File without changes
assets/css/vkExUnit_admin.css ADDED
@@ -0,0 +1 @@
 
1
+ .wrap.debug_mode tr.dev_object{display:table-row}.veu_metabox_nav{position:relative;display:block;overflow:hidden}.veu_metabox_nav .veu_metabox_all_section_toggle{position:relative;right:0;top:0;opacity:1;float:none}.veu_metabox_footer{padding-top:5px}.veu_metabox_footer .logo_exUnit{text-align:right;border:none}.veu_metabox_footer .logo_exUnit img{width:100px}.veu_metabox_all_section_toggle.close .veu_metabox_all_section_toggle_btn_open{display:block}.veu_metabox_all_section_toggle.close .veu_metabox_all_section_toggle_btn_close{display:none}.veu_metabox_all_section_toggle.open .veu_metabox_all_section_toggle_btn_open{display:none}.veu_metabox_all_section_toggle.open .veu_metabox_all_section_toggle_btn_close{display:block}.veu_metabox_section label{font-weight:400}.veu_metabox_section input[type=checkbox]{margin-top:0;margin-right:4px}.veu_metabox_section input,.veu_metabox_section select,.veu_metabox_section textarea{margin-bottom:5px}.veu_metabox_section_title{position:relative;border:1px solid #e5e5e5;padding:7px 1rem;background-color:#f5f5f5;margin:0 0 2px;font-size:14px;cursor:pointer}.veu_metabox_section_title_status_btn{display:block;overflow:hidden;position:absolute;right:10px;top:5px}.veu_metabox_section_title_status_btn.close{display:block}.veu_metabox_section_title_status_btn.open{display:none}.veu_metabox_section_body{display:none;padding:1rem 1rem 2rem}.veu_metabox_section.open .veu_metabox_section_title_status_btn.close{display:none}.veu_metabox_section.open .veu_metabox_section_title_status_btn.open{display:block}.veu_metabox_section.open .veu_metabox_section_body{display:block}.body-open{border:1px solid red}.veu_sns_title input[type=text]{width:100%}
{css → assets/css}/vkExUnit_editor_style.css RENAMED
File without changes
assets/css/vkExUnit_style.css ADDED
@@ -0,0 +1 @@
 
1
+ .veu_leadTxt,p.veu_leadTxt{font-size:1.6em;line-height:150%;padding:0}.veu_caption{font-size:.8em}.fa_v4 .btn.btn-blank::after{margin-left:.7em;font-family:FontAwesome;content:"\f08e"}.fa_v5_css .btn.btn-blank::after{margin-left:.7em;font-family:Font Awesome\ 5 Free;content:"\f35d";font-weight:900}dl.veu_qaItem{display:block;overflow:hidden;border-bottom:1px dotted #ccc;padding:0 0 25px;margin:25px 0;width:100%;position:relative}dl.veu_qaItem dd,dl.veu_qaItem dt{border:none;padding-left:35px}dl.veu_qaItem dd:before,dl.veu_qaItem dt:before{position:absolute;left:0;font-size:24px;line-height:105%}dl.veu_qaItem dt{margin-bottom:15px;font-size:18px}dl.veu_qaItem dt:before{font-family:areal;content:"Q ";color:#e50000}dl.veu_qaItem dd{margin-bottom:0}dl.veu_qaItem dd:before{content:"A ";color:#337ab7;font-family:""}.veu_flowBox{display:block;overflow:hidden}.veu_flowBox:after{content:"";background:url(../images/arrow_bottom.svg) center 50% no-repeat;background-size:50px 50px;display:block;overflow:hidden;height:50px;width:50px;margin:0 auto}.veu_flowBox:last-child{padding-bottom:0;margin-bottom:30px}.veu_flowBox:last-child:after{content:"";font-size:0;background-image:none}.veu_flowBox dl{display:block;overflow:hidden;padding:20px 25px;border:3px solid #e5e5e5;margin:0}.veu_flowBox dl dd,.veu_flowBox dl dt{padding-left:0;border:none}.veu_flowBox dl dt{border-bottom:1px dotted #ccc;margin-bottom:10px;font-size:1.2em}.veu_flowBox dl dd{margin-bottom:0}.veu_flowBox dl dd h4{margin:0;padding:0}.veu_flowBox dl dd p{margin-bottom:10px}.veu_flowBox dl dd ul{margin-bottom:0}.veu_dummyImage{padding:20px;display:block;vertical-align:middle;text-align:center;background-color:#f5f5f5;border:1px solid #ccc;margin-bottom:15px}.veu_floatLeft{float:left;margin-right:20px}.veu_floatRight{float:right;margin-left:20px}.veu_feat_list{background:0 0;border:none;padding:0 0 0 2em;font-size:2em;margin-top:1.5em;position:relative}.veu_feat_list::after,.veu_feat_list::before{border:none;background:0 0}.veu_feat_list::before{position:absolute;left:0;top:-.2em;background-color:#4e7729;color:#fff;border-radius:100%;margin-right:.5em;padding:.2em .5em}.veu_feat_list_1::before{content:"1"}.veu_feat_list_2::before{content:"2"}.veu_feat_list_3::before{content:"3"}.veu_feat_list_4::before{content:"4"}.veu_feat_list_5::before{content:"5"}.veu_feat_list_6::before{content:"6"}.veu_feat_list_7::before{content:"7"}.veu_feat_list_8::before{content:"8"}.veu_feat_list_9::before{content:"9"}.link-list li{padding:.5em}iframe.wp-embedded-content{width:100%}.veu_adminEdit{margin-top:5px}.veu_contentAddSection{display:block;clear:both;overflow:hidden;margin-top:20px}.btn{white-space:inherit}.media{border-bottom:1px solid #e5e5e5;padding:2em 0;margin-top:0}.media:first-child{border-top:1px solid #e5e5e5}.media .postList_thumbnail{width:160px;margin-bottom:.5em;padding-right:30px;display:block;overflow:hidden;float:left}.media .postList_thumbnail a{position:relative;display:block;overflow:hidden}.media .postList_thumbnail img{width:100%;height:auto}.media .postList_thumbnail .postList_cateLabel{position:absolute;bottom:0;left:0}.media .media-heading{font-size:1.8em;line-height:1.3em;margin-top:0;margin-bottom:.5em;font-weight:400}.media .media-heading a{color:#464646}.media .media-heading a:hover{text-decoration:none}.media p{margin-bottom:0}.media a.media-body_excerpt{color:#464646}.relatedPosts h2{margin-bottom:10px}.veu_autoEyeCatchBox{display:block;overflow:hidden;margin-bottom:2em}.veu_sitemap .sectionBox{padding-top:0}.veu_sitemap .sitemap-col{padding-bottom:2em}.veu_sitemap .sitemap-col{margin-top:1em}.veu_sitemap .sitemap-col .link-list{margin-top:0;margin-bottom:0}.veu_sitemap .sitemap-col .page_item{padding:0}.veu_sitemap .sitemap-col .cat-item{padding:0}.veu_socialSet-position-before{margin-top:-1em;margin-bottom:2em}.veu_socialSet-position-after{margin-top:3em}.veu_socialSet ul{display:-webkit-box;display:-ms-flexbox;display:flex}.veu_socialSet li{width:50%;background:0 0;position:relative;display:block;overflow:visible;-webkit-box-sizing:border-box;box-sizing:border-box}.veu_socialSet .sb_icon a{display:block;overflow:hidden;padding:5px 10px;border-radius:4px;color:#fff;text-decoration:none;line-height:100%;font-size:90%}.veu_socialSet .sb_icon a:hover{-webkit-box-shadow:none;box-shadow:none;transform:translate3d(0,2px,0);-webkit-transform:translate3d(0,2px,0)}.veu_socialSet .sb_icon a .sns_txt{position:relative;top:-1px}.veu_socialSet iframe{border:none}.veu_socialSet a .icon_sns{font-size:100%;padding:5px 8px 5px 0;display:inline-block}.veu_socialSet .sb_icon.sb_facebook a{background:#425dab;-webkit-box-shadow:0 4px 0 #344e84;box-shadow:0 4px 0 #344e84}.veu_socialSet .sb_icon.sb_hatena a{background:#007fc5;-webkit-box-shadow:0 4px 0 #00679f;box-shadow:0 4px 0 #00679f}.veu_socialSet .sb_icon.sb_twitter a{background:#00abec;-webkit-box-shadow:0 4px 0 #007eaa;box-shadow:0 4px 0 #007eaa}.veu_socialSet .sb_icon.sb_google a{background:#dd4b39;-webkit-box-shadow:0 4px 0 #a03524;box-shadow:0 4px 0 #a03524}.veu_socialSet .sb_icon.sb_line a{background:#6ebd30;-webkit-box-shadow:0 4px 0 #5b9c28;box-shadow:0 4px 0 #5b9c28}.veu_socialSet .sb_icon.sb_pocket a{background:#ea4654;-webkit-box-shadow:0 4px 0 #c1303c;box-shadow:0 4px 0 #c1303c}.veu_count_sns_fb,.veu_count_sns_hb,.veu_count_sns_pocket{position:absolute;bottom:5px;right:5px;font-size:77%;line-height:1;font-weight:700}.veu_socialSet.veu_contentAddSection ul{margin:0;padding:0}.veu_socialSet.veu_contentAddSection ul li{margin:3px;padding:0}@font-face{font-weight:400;font-style:normal;font-family:vk_sns;src:url(../../inc/sns/icons/fonts/vk_sns.eot?-bq20cj);src:url(../../inc/sns/icons/fonts/vk_sns.eot?#iefix-bq20cj) format("embedded-opentype"),url(../../inc/sns/icons/fonts/vk_sns.woff?-bq20cj) format("woff"),url(../../inc/sns/icons/fonts/vk_sns.ttf?-bq20cj) format("truetype"),url(../../inc/sns/icons/fonts/vk_sns.svg?-bq20cj#vk_sns) format("svg")}[class*=" vk_icon_w_r_sns_"],[class^=vk_icon_w_r_sns_]{text-transform:none;font-weight:400;font-style:normal;font-variant:normal;font-family:vk_sns;line-height:1;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.vk_icon_w_r_sns_twitter:before{content:"\e600"}.vk_icon_w_r_sns_line:before{content:"\e601"}.vk_icon_w_r_sns_hatena:before{content:"\e602"}.vk_icon_w_r_sns_google:before{content:"\e603"}.vk_icon_w_r_sns_fb:before{content:"\e604"}.vk_icon_w_r_sns_pocket:before{content:"\e605"}.veu_childPage_list{margin:2.5em 0 1em}.veu_childPage_list .childPage_list_box{display:block;margin-bottom:1.5em;width:100%;text-decoration:none}.veu_childPage_list .childPage_list_box_inner{position:relative;display:block;overflow:hidden;padding:0 20px;border:3px solid #efefef;-webkit-box-shadow:inset 0 0 0 1px #fff;box-shadow:inset 0 0 0 1px #fff}.veu_childPage_list .childPage_list_title{margin-top:20px;color:#464646;font-size:16px;line-height:1.4}.veu_childPage_list .wp-post-image{float:left;margin-right:1em;margin-bottom:1em;width:30%;height:auto;border:solid 1px #ddd}.veu_childPage_list .childPage_list_body{overflow:hidden;margin-bottom:5px;color:#333;font-size:14px}.veu_childPage_list .childPage_list_body:hover{text-decoration:underline}.veu_childPage_list p{line-height:1.5em}.veu_childPage_list .childPage_list_text{overflow:hidden;margin-bottom:1em}.veu_childPage_list .childPage_list_more{float:right;margin-bottom:20px}.veu_pageList_ancestor{clear:both;margin:2.5em 0 1em;padding:20px 20px 0;border:3px solid #efefef;-webkit-box-shadow:inset 0 0 0 1px #fff;box-shadow:inset 0 0 0 1px #fff}.veu_pageList_ancestor h3{margin:.5em 0}.veu_pageList_ancestor h3 a{color:#333;font-size:16px}.veu_pageList_ancestor ul.pageList{margin-top:1em;padding-left:0}.veu_pageList_ancestor ul.pageList a{display:block;padding:8px 5px;border-bottom:solid 1px #ddd;color:#333;font-size:14px}.veu_pageList_ancestor ul.pageList a:hover{text-decoration:underline}.veu_pageList_ancestor ul.pageList>.page_item{list-style:none}.veu_pageList_ancestor ul.pageList li{margin-bottom:0}.veu_pageList_ancestor ul.pageList ul{margin:0;padding-left:0;padding-bottom:0}.veu_pageList_ancestor ul.pageList ul li{position:relative;list-style:none}.veu_pageList_ancestor ul.pageList ul li:before{position:absolute;top:.26em;left:5px;display:inline-block}.veu_pageList_ancestor ul.pageList ul li a{padding-left:20px}.veu_pageList_ancestor ul.pageList ul li li a{padding-left:30px}.veu_pageList_ancestor ul.pageList ul li li li a{padding-left:40px}.veu_pageList_ancestor .current_page_item>a{font-weight:700}.veu_followSet{margin:30px 0;display:table;table-layout:fixed;width:100%;background-color:#2b2b2b;color:#fff}.veu_followSet .followSet_img{display:table-cell;min-width:240px;background-position:center;background-size:cover}.veu_followSet .followSet_body{display:table-cell;padding:15px;text-align:center;vertical-align:middle;line-height:1.4;font-size:20px}.veu_followSet .followSet_fb_page{margin-top:0;display:block;width:100%;-webkit-transform:scale(1.2);transform:scale(1.2)}.veu_followSet .followSet_tw_follow{width:100%;padding:15px 0 0}.veu_followSet .followSet_feedly{text-align:center}.veu_cta{display:block;overflow:hidden;margin-top:30px;margin-bottom:30px;background-color:#efefef}.veu_cta .cta_title{display:block;overflow:hidden;margin:0;padding:12px 20px 10px;background-color:#333;color:#fff;font-size:22px;line-height:1.2em}.veu_cta .cta_body{display:block;overflow:hidden;padding:1.5em 1.5em 2em;line-height:170%}.veu_cta .cta_body_image{margin-bottom:1.5em}.veu_cta .cta_body_image img{max-width:250px}.veu_cta .cta_body_image_center{display:block;overflow:hidden;text-align:center}.veu_cta .cta_body_image_center img{display:block;margin:0 auto 15px;max-width:100%}.veu_cta .cta_body_txt{display:block;overflow:hidden}.veu_cta .cta_body_link{clear:both;margin-top:1.5em}.veu_contact{display:block;overflow:hidden}.veu_contact .contact_frame{display:block;overflow:hidden;padding:25px 24px 21px;border:3px solid #efefef;background-color:#f9f9f9;-webkit-box-shadow:inset 0 0 0 1px #fff;box-shadow:inset 0 0 0 1px #fff}.veu_contact .contact_txt_catch,.veu_contact .contact_txt_tel,.veu_contact .contact_txt_time{display:block;overflow:hidden}.veu_contact .contact_txt_catch,.veu_contact .contact_txt_time{font-size:14px;line-height:128.6%}.veu_contact .contact_txt_tel{padding:4px 0;font-size:28px;line-height:105%;font-weight:700}.veu_contact .contact_txt_tel_icon{margin-right:.3rem}.veu_contact .contact_bt_subTxt{display:block;overflow:hidden;font-size:12px;margin-top:.4rem}.veu_contact .contact_txt{text-align:center}.veu_contact .contact_bt{display:block}.widget .veu_contact>.contact_bt{display:inline-block;float:none}.veu_insertAds{margin-top:1em;margin-bottom:2em}.veu_relatedPosts>.row{display:-ms-flexbox;display:-webkit-box;display:flex;margin:0;margin-right:-3%;-ms-flex-wrap:wrap;flex-wrap:wrap}.veu_relatedPosts .relatedPosts_item{float:none;margin-right:2.9%;padding-right:0;padding-left:0;width:47%;border-bottom:solid 1px #e5e5e5}.veu_relatedPosts .relatedPosts_item>.media:first-child{border:none}.veu_relatedPosts .relatedPosts_item>.media{padding:1em 0 .8em;margin-top:0;border:none}.veu_relatedPosts .relatedPosts_item>.media .media-body{font-size:14px}.veu_relatedPosts .relatedPosts_item>.media .postList_thumbnail{width:80px;padding-right:15px;margin-bottom:0}.veu_relatedPosts .relatedPosts_item>.media .media-heading{font-size:14px}.veu_relatedPosts .relatedPosts_item:nth-child(1){border-top:solid 1px #e5e5e5}.veu_relatedPosts .relatedPosts_item:nth-child(2){border-top:solid 1px #e5e5e5}.page_top_btn{position:fixed;right:2%;bottom:3%;z-index:99999;width:40px;height:38px;text-indent:100%;white-space:nowrap;overflow:hidden;border:none;background:rgba(0,0,0,.8);outline:1px solid rgba(0,0,0,.8);border:1px solid rgba(255,255,255,.8);background-image:url(../images/to-top-btn-icon.svg);background-size:50%;background-repeat:no-repeat;background-position:center;opacity:0;-webkit-transition:opacity .3s;transition:opacity .3s}.page_top_btn:hover{-webkit-transition:opacity .3s;transition:opacity .3s}.scrolled .page_top_btn{display:block;opacity:1}.veu_fbPagePlugin .fbPagePlugin_body{margin:0 auto;border:4px solid #efefef;background-color:#f9f9f9;text-align:center}iframe.twitter-timeline{margin-right:auto;margin-left:auto;width:740px!important}.veu_postList{margin-bottom:30px}.veu_postList .subSection-title,.veu_postList h1.mainSection-title{margin-bottom:0}.veu_postList ul.postList{margin:0;padding:0}.veu_postList ul.postList li{display:block;clear:both;overflow:hidden;margin:0;padding:15px 0;border-bottom:1px dotted #666;line-height:1.4em}.veu_postList .postList a{color:#464646;text-decoration:none}.veu_postList .postList a:hover{text-decoration:underline}.veu_postList .postList_title{display:block;clear:both;margin:3px 0 0}.veu_postList .postList_meta_items{font-size:14px;color:#666}.veu_postList .postList_date{margin-right:10px;color:#d44950}.veu_postList .postList_date:before{content:"";margin-right:0}.veu_postList .postList_terms a{margin-right:3px;padding:2px 5px 1px;border-radius:3px;background-color:#efefef;font-size:12px}.veu_postList .postList_more{margin:10px 5px 0 0;text-align:right}.veu_postList .postList_miniThumb .postList_item{display:block;overflow:hidden;clear:both;position:relative;padding:15px 0;border-bottom:1px dotted #666;margin-bottom:0}.veu_postList .postList_miniThumb .postList_thumbnail{float:left;margin-right:15px}.veu_postList .postList_miniThumb .postList_thumbnail a{position:relative;display:block;overflow:hidden;border:1px solid #e5e5e5}.veu_postList .postList_miniThumb .postList_thumbnail img{width:80px;height:auto}.veu_postList .postList_miniThumb .postList_body{display:block;overflow:hidden;width:auto}.veu_postList .postList_miniThumb .postList_title{font-size:14px}.mainSection .veu_postList.pt_0 .postList.postList_miniThumb{padding:0;margin-left:0;margin-right:0}.veu_profile .profile{overflow:hidden}.veu_profile .media_outer{position:relative;display:block;overflow:hidden;margin:.8em 0 .8em;-webkit-box-sizing:border-box;box-sizing:border-box}.veu_profile .media_outer img{max-width:100%;height:auto}.veu_profile .media_round{border-radius:50%;width:120px;height:120px;position:relative}.veu_profile .media_round img{position:absolute;left:-9999px}.veu_profile .media_center{margin-left:auto;margin-right:auto}.veu_profile .media_center img{display:block;margin-left:auto;margin-right:auto}.veu_profile .media_float{float:left;margin-right:1em}.veu_profile .media_float+.profile_text{padding-top:.8em}.veu_profile .profile_text{margin-bottom:1em;font-size:14px}.veu_profile .sns_btns{margin:0;padding:0;width:100%}.veu_profile .sns_btns li{float:left;margin-right:.45em;list-style:none;text-align:center}.veu_profile .sns_btns a{display:block;position:relative;width:40px;height:40px;border-radius:23px;color:#fff;text-decoration:none;font-size:20px}.veu_profile .sns_btns a:hover{color:#fff;text-decoration:none;opacity:.8}.veu_profile .sns_btns .icon{position:absolute;top:50%;left:50%;-webkit-transform:translateY(-50%) translateX(-50%);transform:translateY(-50%) translateX(-50%)}.veu_profile .sns_btns .facebook_btn a{background:#3b5998}.veu_profile .sns_btns .twitter_btn a{background:#55acee}.veu_profile .sns_btns .mail_btn a{background:#2f915f}.veu_profile .sns_btns .youtube_btn a{background:#c81d1c}.veu_profile .sns_btns .rss_btn a{background:#f26522}.veu_profile .sns_btns .instagram_btn a{background:#3f729b}.veu_profile .sns_btns .linkedin_btn a{background:#0077b5}.veu_3prArea .subSection-title{font-size:18px;margin-top:.8em}.veu_3prArea .summary{margin-bottom:.5em;font-size:14px;line-height:1.6em}.veu_3prArea .linkurl a{text-decoration:none}.veu_3prArea_image{margin-bottom:.8em;border:1px solid #e5e5e5}.veu_3prArea_image .image_pc{display:block}.veu_3prArea_image .image_sp{display:none}.veu_3prArea_image img{width:100%}.veu_3prArea_image_link{border:1px solid #fff;display:block;overflow:hidden}.prBlock a{color:#333}.prBlock a:hover{color:#333;text-decoration:none}.prBlock a .prBlock_summary:hover{text-decoration:underline}.prBlock .prBlock_icon_outer{display:block;position:relative;margin:0 auto;width:80px;height:80px;border-radius:50%}.prBlock .prBlock_icon{position:absolute;top:50%;left:50%;-webkit-transform:translateY(-50%) translateX(-50%);transform:translateY(-50%) translateX(-50%);font-size:36px}.prBlock .prBlock_title{margin-top:.9em;margin-bottom:.7em;text-align:center;font-size:18px;line-height:1.4em}.prBlock .prBlock_image{position:relative;display:block;width:120px;height:120px;margin:0 auto;overflow:hidden;border-radius:50%;text-indent:-9999px}.prBlock .prBlock_summary{margin-bottom:.5em;text-align:center;font-size:14px;line-height:1.6em}.veu_button i,.veu_button svg{margin-left:.3em;margin-right:.3em}.veu_button .button_mainText,.veu_button .button_subText{display:block}.veu_button .btn.btn-sm{padding-top:.6em;padding-bottom:.45em}.veu_button .btn{padding-top:.8em;padding-bottom:.6em}.veu_button .btn.btn-lg{padding-top:.8em;padding-bottom:.7em}.veu_banner{text-align:center;display:block;overflow:hidden}@media (min-width:481px){.veu_followSet .followSet_body{padding:40px}.veu_followSet .followSet_title{font-size:18px;margin-bottom:10px}}@media (min-width:541px){.veu_childPage_list{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-flex-wrap:wrap;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-justify-content:space-between}.veu_childPage_list .childPage_list_box{width:48%}}@media (min-width:768px){.veu_leadTxt,p.veu_leadTxt{font-size:2em;margin-bottom:.7em}.veu_cta .cta_body_image_right{float:right;margin-left:30px}.veu_cta .cta_body_image_left{float:left;margin-right:30px}}@media (min-width:992px){.mainSection .veu_postList.pt_0.postList_item .postList_thumbnail{margin-right:30px;margin-left:0}.mainSection .veu_postList.pt_0.postList_item.even .postList_thumbnail{margin-left:30px;margin-right:0}}@media (min-width:1200px){.veu_contact p.contact_txt{margin-bottom:0}.veu_contact .contact_txt{float:left;text-align:left}.veu_contact .contact_bt{float:right;padding:.7em 2em}}@media screen and (max-width:992px){.prBlock{margin-bottom:1.5em}}@media (max-width:971px){.veu_insertAds{margin-bottom:.5em}.veu_insertAds .col-md-6{margin-bottom:1em}}@media (max-width:768px){.veu_relatedPosts .relatedPosts_item{display:block;width:100%}.veu_relatedPosts .relatedPosts_item:nth-child(2){border-top:none}}@media screen and (max-width:768px){.veu_3prArea .prArea{margin-bottom:1em;display:block;overflow:hidden}.veu_3prArea .image_pc{display:none}.veu_3prArea .image_sp{display:block}.veu_3prArea .linkurl{margin-bottom:1.5em}.veu_3prArea_image{width:138px;margin:0 1em 0 0;float:left}}@media (max-width:767px){.media .postList_thumbnail{padding-right:20px}.media .media-body .media-heading{font-size:1.2em;line-height:1.3em;margin-bottom:.5em}.veu_socialSet ul{-ms-flex-wrap:wrap;flex-wrap:wrap}.veu_socialSet li{width:calc(50% - 6px)}.veu_socialSet .veu_count_sns_fb,.veu_socialSet .veu_count_sns_hb,.veu_socialSet .veu_count_sns_pocket{bottom:2px}.veu_socialSet .sb_icon a{padding:8px 10px}.veu_socialSet.veu_contentAddSection ul li{margin-bottom:9px}.veu_childPage_list .wp-post-image{width:25%}.veu_cta .cta_body_image img{display:block;margin:0 auto 1.5em;max-width:100%}}@media (max-width:500px){.media .postList_thumbnail{width:100px}}@media (max-width:480px){.veu_followSet .followSet_title{font-size:12px;margin-bottom:0}}
assets/css/vkExUnit_style_in_bs.css ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*!
2
+ * Bootstrap v3.3.7 (http://getbootstrap.com)
3
+ * Copyright 2011-2017 Twitter, Inc.
4
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
5
+ *//*!
6
+ * Generated using the Bootstrap Customizer (http://getbootstrap.com/customize/?id=a2c5715a18a0533068e5185c0f8861a9)
7
+ * Config saved to config.json and https://gist.github.com/a2c5715a18a0533068e5185c0f8861a9
8
+ *//*!
9
+ * Bootstrap v3.3.7 (http://getbootstrap.com)
10
+ * Copyright 2011-2016 Twitter, Inc.
11
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
12
+ *//*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */[role=button]{cursor:pointer}.container{margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px}.container-fluid{margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px}.row{margin-left:-15px;margin-right:-15px}.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{position:relative;min-height:1px;padding-left:15px;padding-right:15px}.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{float:left}.col-xs-12{width:100%}.col-xs-11{width:91.66666667%}.col-xs-10{width:83.33333333%}.col-xs-9{width:75%}.col-xs-8{width:66.66666667%}.col-xs-7{width:58.33333333%}.col-xs-6{width:50%}.col-xs-5{width:41.66666667%}.col-xs-4{width:33.33333333%}.col-xs-3{width:25%}.col-xs-2{width:16.66666667%}.col-xs-1{width:8.33333333%}.col-xs-pull-12{right:100%}.col-xs-pull-11{right:91.66666667%}.col-xs-pull-10{right:83.33333333%}.col-xs-pull-9{right:75%}.col-xs-pull-8{right:66.66666667%}.col-xs-pull-7{right:58.33333333%}.col-xs-pull-6{right:50%}.col-xs-pull-5{right:41.66666667%}.col-xs-pull-4{right:33.33333333%}.col-xs-pull-3{right:25%}.col-xs-pull-2{right:16.66666667%}.col-xs-pull-1{right:8.33333333%}.col-xs-pull-0{right:auto}.col-xs-push-12{left:100%}.col-xs-push-11{left:91.66666667%}.col-xs-push-10{left:83.33333333%}.col-xs-push-9{left:75%}.col-xs-push-8{left:66.66666667%}.col-xs-push-7{left:58.33333333%}.col-xs-push-6{left:50%}.col-xs-push-5{left:41.66666667%}.col-xs-push-4{left:33.33333333%}.col-xs-push-3{left:25%}.col-xs-push-2{left:16.66666667%}.col-xs-push-1{left:8.33333333%}.col-xs-push-0{left:auto}.col-xs-offset-12{margin-left:100%}.col-xs-offset-11{margin-left:91.66666667%}.col-xs-offset-10{margin-left:83.33333333%}.col-xs-offset-9{margin-left:75%}.col-xs-offset-8{margin-left:66.66666667%}.col-xs-offset-7{margin-left:58.33333333%}.col-xs-offset-6{margin-left:50%}.col-xs-offset-5{margin-left:41.66666667%}.col-xs-offset-4{margin-left:33.33333333%}.col-xs-offset-3{margin-left:25%}.col-xs-offset-2{margin-left:16.66666667%}.col-xs-offset-1{margin-left:8.33333333%}.col-xs-offset-0{margin-left:0}table{background-color:transparent}caption{padding-top:8px;padding-bottom:8px;color:#777;text-align:left}th{text-align:left}.table{width:100%;max-width:100%;margin-bottom:20px}.table>tbody>tr>td,.table>tbody>tr>th,.table>tfoot>tr>td,.table>tfoot>tr>th,.table>thead>tr>td,.table>thead>tr>th{padding:8px;line-height:1.42857143;vertical-align:top;border-top:1px solid #ddd}.table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd}.table>caption+thead>tr:first-child>td,.table>caption+thead>tr:first-child>th,.table>colgroup+thead>tr:first-child>td,.table>colgroup+thead>tr:first-child>th,.table>thead:first-child>tr:first-child>td,.table>thead:first-child>tr:first-child>th{border-top:0}.table>tbody+tbody{border-top:2px solid #ddd}.table .table{background-color:#fff}.table-condensed>tbody>tr>td,.table-condensed>tbody>tr>th,.table-condensed>tfoot>tr>td,.table-condensed>tfoot>tr>th,.table-condensed>thead>tr>td,.table-condensed>thead>tr>th{padding:5px}.table-bordered{border:1px solid #ddd}.table-bordered>tbody>tr>td,.table-bordered>tbody>tr>th,.table-bordered>tfoot>tr>td,.table-bordered>tfoot>tr>th,.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border:1px solid #ddd}.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border-bottom-width:2px}.table-striped>tbody>tr:nth-of-type(odd){background-color:#f9f9f9}.table-hover>tbody>tr:hover{background-color:#f5f5f5}table col[class*=col-]{position:static;float:none;display:table-column}table td[class*=col-],table th[class*=col-]{position:static;float:none;display:table-cell}.table>tbody>tr.active>td,.table>tbody>tr.active>th,.table>tbody>tr>td.active,.table>tbody>tr>th.active,.table>tfoot>tr.active>td,.table>tfoot>tr.active>th,.table>tfoot>tr>td.active,.table>tfoot>tr>th.active,.table>thead>tr.active>td,.table>thead>tr.active>th,.table>thead>tr>td.active,.table>thead>tr>th.active{background-color:#f5f5f5}.table-hover>tbody>tr.active:hover>td,.table-hover>tbody>tr.active:hover>th,.table-hover>tbody>tr:hover>.active,.table-hover>tbody>tr>td.active:hover,.table-hover>tbody>tr>th.active:hover{background-color:#e8e8e8}.table>tbody>tr.success>td,.table>tbody>tr.success>th,.table>tbody>tr>td.success,.table>tbody>tr>th.success,.table>tfoot>tr.success>td,.table>tfoot>tr.success>th,.table>tfoot>tr>td.success,.table>tfoot>tr>th.success,.table>thead>tr.success>td,.table>thead>tr.success>th,.table>thead>tr>td.success,.table>thead>tr>th.success{background-color:#dff0d8}.table-hover>tbody>tr.success:hover>td,.table-hover>tbody>tr.success:hover>th,.table-hover>tbody>tr:hover>.success,.table-hover>tbody>tr>td.success:hover,.table-hover>tbody>tr>th.success:hover{background-color:#d0e9c6}.table>tbody>tr.info>td,.table>tbody>tr.info>th,.table>tbody>tr>td.info,.table>tbody>tr>th.info,.table>tfoot>tr.info>td,.table>tfoot>tr.info>th,.table>tfoot>tr>td.info,.table>tfoot>tr>th.info,.table>thead>tr.info>td,.table>thead>tr.info>th,.table>thead>tr>td.info,.table>thead>tr>th.info{background-color:#d9edf7}.table-hover>tbody>tr.info:hover>td,.table-hover>tbody>tr.info:hover>th,.table-hover>tbody>tr:hover>.info,.table-hover>tbody>tr>td.info:hover,.table-hover>tbody>tr>th.info:hover{background-color:#c4e3f3}.table>tbody>tr.warning>td,.table>tbody>tr.warning>th,.table>tbody>tr>td.warning,.table>tbody>tr>th.warning,.table>tfoot>tr.warning>td,.table>tfoot>tr.warning>th,.table>tfoot>tr>td.warning,.table>tfoot>tr>th.warning,.table>thead>tr.warning>td,.table>thead>tr.warning>th,.table>thead>tr>td.warning,.table>thead>tr>th.warning{background-color:#fcf8e3}.table-hover>tbody>tr.warning:hover>td,.table-hover>tbody>tr.warning:hover>th,.table-hover>tbody>tr:hover>.warning,.table-hover>tbody>tr>td.warning:hover,.table-hover>tbody>tr>th.warning:hover{background-color:#faf2cc}.table>tbody>tr.danger>td,.table>tbody>tr.danger>th,.table>tbody>tr>td.danger,.table>tbody>tr>th.danger,.table>tfoot>tr.danger>td,.table>tfoot>tr.danger>th,.table>tfoot>tr>td.danger,.table>tfoot>tr>th.danger,.table>thead>tr.danger>td,.table>thead>tr.danger>th,.table>thead>tr>td.danger,.table>thead>tr>th.danger{background-color:#f2dede}.table-hover>tbody>tr.danger:hover>td,.table-hover>tbody>tr.danger:hover>th,.table-hover>tbody>tr:hover>.danger,.table-hover>tbody>tr>td.danger:hover,.table-hover>tbody>tr>th.danger:hover{background-color:#ebcccc}.table-responsive{overflow-x:auto;min-height:.01%}.btn{display:inline-block;margin-bottom:0;font-weight:400;text-align:center;vertical-align:middle;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;background-image:none;border:1px solid transparent;white-space:nowrap;padding:6px 12px;font-size:14px;line-height:1.42857143;border-radius:4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.btn.active.focus,.btn.active:focus,.btn.focus,.btn:active.focus,.btn:active:focus,.btn:focus{outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.btn.focus,.btn:focus,.btn:hover{color:#333;text-decoration:none}.btn.active,.btn:active{outline:0;background-image:none;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn.disabled,.btn[disabled],fieldset[disabled] .btn{cursor:not-allowed;opacity:.65;-webkit-box-shadow:none;box-shadow:none}a.btn.disabled,fieldset[disabled] a.btn{pointer-events:none}.btn-default{color:#333;background-color:#fff;border-color:#ccc}.btn-default.focus,.btn-default:focus{color:#333;background-color:#e6e6e6;border-color:#8c8c8c}.btn-default:hover{color:#333;background-color:#e6e6e6;border-color:#adadad}.btn-default.active,.btn-default:active,.open>.dropdown-toggle.btn-default{color:#333;background-color:#e6e6e6;border-color:#adadad}.btn-default.active.focus,.btn-default.active:focus,.btn-default.active:hover,.btn-default:active.focus,.btn-default:active:focus,.btn-default:active:hover,.open>.dropdown-toggle.btn-default.focus,.open>.dropdown-toggle.btn-default:focus,.open>.dropdown-toggle.btn-default:hover{color:#333;background-color:#d4d4d4;border-color:#8c8c8c}.btn-default.active,.btn-default:active,.open>.dropdown-toggle.btn-default{background-image:none}.btn-default.disabled.focus,.btn-default.disabled:focus,.btn-default.disabled:hover,.btn-default[disabled].focus,.btn-default[disabled]:focus,.btn-default[disabled]:hover,fieldset[disabled] .btn-default.focus,fieldset[disabled] .btn-default:focus,fieldset[disabled] .btn-default:hover{background-color:#fff;border-color:#ccc}.btn-default .badge{color:#fff;background-color:#333}.btn-primary{color:#fff;background-color:#337ab7;border-color:#2e6da4}.btn-primary.focus,.btn-primary:focus{color:#fff;background-color:#286090;border-color:#122b40}.btn-primary:hover{color:#fff;background-color:#286090;border-color:#204d74}.btn-primary.active,.btn-primary:active,.open>.dropdown-toggle.btn-primary{color:#fff;background-color:#286090;border-color:#204d74}.btn-primary.active.focus,.btn-primary.active:focus,.btn-primary.active:hover,.btn-primary:active.focus,.btn-primary:active:focus,.btn-primary:active:hover,.open>.dropdown-toggle.btn-primary.focus,.open>.dropdown-toggle.btn-primary:focus,.open>.dropdown-toggle.btn-primary:hover{color:#fff;background-color:#204d74;border-color:#122b40}.btn-primary.active,.btn-primary:active,.open>.dropdown-toggle.btn-primary{background-image:none}.btn-primary.disabled.focus,.btn-primary.disabled:focus,.btn-primary.disabled:hover,.btn-primary[disabled].focus,.btn-primary[disabled]:focus,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary.focus,fieldset[disabled] .btn-primary:focus,fieldset[disabled] .btn-primary:hover{background-color:#337ab7;border-color:#2e6da4}.btn-primary .badge{color:#337ab7;background-color:#fff}.btn-success{color:#fff;background-color:#5cb85c;border-color:#4cae4c}.btn-success.focus,.btn-success:focus{color:#fff;background-color:#449d44;border-color:#255625}.btn-success:hover{color:#fff;background-color:#449d44;border-color:#398439}.btn-success.active,.btn-success:active,.open>.dropdown-toggle.btn-success{color:#fff;background-color:#449d44;border-color:#398439}.btn-success.active.focus,.btn-success.active:focus,.btn-success.active:hover,.btn-success:active.focus,.btn-success:active:focus,.btn-success:active:hover,.open>.dropdown-toggle.btn-success.focus,.open>.dropdown-toggle.btn-success:focus,.open>.dropdown-toggle.btn-success:hover{color:#fff;background-color:#398439;border-color:#255625}.btn-success.active,.btn-success:active,.open>.dropdown-toggle.btn-success{background-image:none}.btn-success.disabled.focus,.btn-success.disabled:focus,.btn-success.disabled:hover,.btn-success[disabled].focus,.btn-success[disabled]:focus,.btn-success[disabled]:hover,fieldset[disabled] .btn-success.focus,fieldset[disabled] .btn-success:focus,fieldset[disabled] .btn-success:hover{background-color:#5cb85c;border-color:#4cae4c}.btn-success .badge{color:#5cb85c;background-color:#fff}.btn-info{color:#fff;background-color:#5bc0de;border-color:#46b8da}.btn-info.focus,.btn-info:focus{color:#fff;background-color:#31b0d5;border-color:#1b6d85}.btn-info:hover{color:#fff;background-color:#31b0d5;border-color:#269abc}.btn-info.active,.btn-info:active,.open>.dropdown-toggle.btn-info{color:#fff;background-color:#31b0d5;border-color:#269abc}.btn-info.active.focus,.btn-info.active:focus,.btn-info.active:hover,.btn-info:active.focus,.btn-info:active:focus,.btn-info:active:hover,.open>.dropdown-toggle.btn-info.focus,.open>.dropdown-toggle.btn-info:focus,.open>.dropdown-toggle.btn-info:hover{color:#fff;background-color:#269abc;border-color:#1b6d85}.btn-info.active,.btn-info:active,.open>.dropdown-toggle.btn-info{background-image:none}.btn-info.disabled.focus,.btn-info.disabled:focus,.btn-info.disabled:hover,.btn-info[disabled].focus,.btn-info[disabled]:focus,.btn-info[disabled]:hover,fieldset[disabled] .btn-info.focus,fieldset[disabled] .btn-info:focus,fieldset[disabled] .btn-info:hover{background-color:#5bc0de;border-color:#46b8da}.btn-info .badge{color:#5bc0de;background-color:#fff}.btn-warning{color:#fff;background-color:#f0ad4e;border-color:#eea236}.btn-warning.focus,.btn-warning:focus{color:#fff;background-color:#ec971f;border-color:#985f0d}.btn-warning:hover{color:#fff;background-color:#ec971f;border-color:#d58512}.btn-warning.active,.btn-warning:active,.open>.dropdown-toggle.btn-warning{color:#fff;background-color:#ec971f;border-color:#d58512}.btn-warning.active.focus,.btn-warning.active:focus,.btn-warning.active:hover,.btn-warning:active.focus,.btn-warning:active:focus,.btn-warning:active:hover,.open>.dropdown-toggle.btn-warning.focus,.open>.dropdown-toggle.btn-warning:focus,.open>.dropdown-toggle.btn-warning:hover{color:#fff;background-color:#d58512;border-color:#985f0d}.btn-warning.active,.btn-warning:active,.open>.dropdown-toggle.btn-warning{background-image:none}.btn-warning.disabled.focus,.btn-warning.disabled:focus,.btn-warning.disabled:hover,.btn-warning[disabled].focus,.btn-warning[disabled]:focus,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning.focus,fieldset[disabled] .btn-warning:focus,fieldset[disabled] .btn-warning:hover{background-color:#f0ad4e;border-color:#eea236}.btn-warning .badge{color:#f0ad4e;background-color:#fff}.btn-danger{color:#fff;background-color:#d9534f;border-color:#d43f3a}.btn-danger.focus,.btn-danger:focus{color:#fff;background-color:#c9302c;border-color:#761c19}.btn-danger:hover{color:#fff;background-color:#c9302c;border-color:#ac2925}.btn-danger.active,.btn-danger:active,.open>.dropdown-toggle.btn-danger{color:#fff;background-color:#c9302c;border-color:#ac2925}.btn-danger.active.focus,.btn-danger.active:focus,.btn-danger.active:hover,.btn-danger:active.focus,.btn-danger:active:focus,.btn-danger:active:hover,.open>.dropdown-toggle.btn-danger.focus,.open>.dropdown-toggle.btn-danger:focus,.open>.dropdown-toggle.btn-danger:hover{color:#fff;background-color:#ac2925;border-color:#761c19}.btn-danger.active,.btn-danger:active,.open>.dropdown-toggle.btn-danger{background-image:none}.btn-danger.disabled.focus,.btn-danger.disabled:focus,.btn-danger.disabled:hover,.btn-danger[disabled].focus,.btn-danger[disabled]:focus,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger.focus,fieldset[disabled] .btn-danger:focus,fieldset[disabled] .btn-danger:hover{background-color:#d9534f;border-color:#d43f3a}.btn-danger .badge{color:#d9534f;background-color:#fff}.btn-link{color:#337ab7;font-weight:400;border-radius:0}.btn-link,.btn-link.active,.btn-link:active,.btn-link[disabled],fieldset[disabled] .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.btn-link,.btn-link:active,.btn-link:focus,.btn-link:hover{border-color:transparent}.btn-link:focus,.btn-link:hover{color:#23527c;text-decoration:underline;background-color:transparent}.btn-link[disabled]:focus,.btn-link[disabled]:hover,fieldset[disabled] .btn-link:focus,fieldset[disabled] .btn-link:hover{color:#777;text-decoration:none}.btn-lg{padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}.btn-sm{padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.btn-xs{padding:1px 5px;font-size:12px;line-height:1.5;border-radius:3px}.btn-block{display:block;width:100%}.btn-block+.btn-block{margin-top:5px}input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-block{width:100%}.veu_leadTxt,p.veu_leadTxt{font-size:1.6em;line-height:150%;padding:0}.veu_caption{font-size:.8em}.fa_v4 .btn.btn-blank::after{margin-left:.7em;font-family:FontAwesome;content:"\f08e"}.fa_v5_css .btn.btn-blank::after{margin-left:.7em;font-family:Font Awesome\ 5 Free;content:"\f35d";font-weight:900}dl.veu_qaItem{display:block;overflow:hidden;border-bottom:1px dotted #ccc;padding:0 0 25px;margin:25px 0;width:100%;position:relative}dl.veu_qaItem dd,dl.veu_qaItem dt{border:none;padding-left:35px}dl.veu_qaItem dd:before,dl.veu_qaItem dt:before{position:absolute;left:0;font-size:24px;line-height:105%}dl.veu_qaItem dt{margin-bottom:15px;font-size:18px}dl.veu_qaItem dt:before{font-family:areal;content:"Q ";color:#e50000}dl.veu_qaItem dd{margin-bottom:0}dl.veu_qaItem dd:before{content:"A ";color:#337ab7;font-family:""}.veu_flowBox{display:block;overflow:hidden}.veu_flowBox:after{content:"";background:url(../images/arrow_bottom.svg) center 50% no-repeat;background-size:50px 50px;display:block;overflow:hidden;height:50px;width:50px;margin:0 auto}.veu_flowBox:last-child{padding-bottom:0;margin-bottom:30px}.veu_flowBox:last-child:after{content:"";font-size:0;background-image:none}.veu_flowBox dl{display:block;overflow:hidden;padding:20px 25px;border:3px solid #e5e5e5;margin:0}.veu_flowBox dl dd,.veu_flowBox dl dt{padding-left:0;border:none}.veu_flowBox dl dt{border-bottom:1px dotted #ccc;margin-bottom:10px;font-size:1.2em}.veu_flowBox dl dd{margin-bottom:0}.veu_flowBox dl dd h4{margin:0;padding:0}.veu_flowBox dl dd p{margin-bottom:10px}.veu_flowBox dl dd ul{margin-bottom:0}.veu_dummyImage{padding:20px;display:block;vertical-align:middle;text-align:center;background-color:#f5f5f5;border:1px solid #ccc;margin-bottom:15px}.veu_floatLeft{float:left;margin-right:20px}.veu_floatRight{float:right;margin-left:20px}.veu_feat_list{background:0 0;border:none;padding:0 0 0 2em;font-size:2em;margin-top:1.5em;position:relative}.veu_feat_list::after,.veu_feat_list::before{border:none;background:0 0}.veu_feat_list::before{position:absolute;left:0;top:-.2em;background-color:#4e7729;color:#fff;border-radius:100%;margin-right:.5em;padding:.2em .5em}.veu_feat_list_1::before{content:"1"}.veu_feat_list_2::before{content:"2"}.veu_feat_list_3::before{content:"3"}.veu_feat_list_4::before{content:"4"}.veu_feat_list_5::before{content:"5"}.veu_feat_list_6::before{content:"6"}.veu_feat_list_7::before{content:"7"}.veu_feat_list_8::before{content:"8"}.veu_feat_list_9::before{content:"9"}.link-list li{padding:.5em}iframe.wp-embedded-content{width:100%}.veu_adminEdit{margin-top:5px}.veu_contentAddSection{display:block;clear:both;overflow:hidden;margin-top:20px}.btn{white-space:inherit}.media{border-bottom:1px solid #e5e5e5;padding:2em 0;margin-top:0}.media:first-child{border-top:1px solid #e5e5e5}.media .postList_thumbnail{width:160px;margin-bottom:.5em;padding-right:30px;display:block;overflow:hidden;float:left}.media .postList_thumbnail a{position:relative;display:block;overflow:hidden}.media .postList_thumbnail img{width:100%;height:auto}.media .postList_thumbnail .postList_cateLabel{position:absolute;bottom:0;left:0}.media .media-heading{font-size:1.8em;line-height:1.3em;margin-top:0;margin-bottom:.5em;font-weight:400}.media .media-heading a{color:#464646}.media .media-heading a:hover{text-decoration:none}.media p{margin-bottom:0}.media a.media-body_excerpt{color:#464646}.relatedPosts h2{margin-bottom:10px}.veu_autoEyeCatchBox{display:block;overflow:hidden;margin-bottom:2em}.veu_sitemap .sectionBox{padding-top:0}.veu_sitemap .sitemap-col{padding-bottom:2em}.veu_sitemap .sitemap-col{margin-top:1em}.veu_sitemap .sitemap-col .link-list{margin-top:0;margin-bottom:0}.veu_sitemap .sitemap-col .page_item{padding:0}.veu_sitemap .sitemap-col .cat-item{padding:0}.veu_socialSet-position-before{margin-top:-1em;margin-bottom:2em}.veu_socialSet-position-after{margin-top:3em}.veu_socialSet ul{display:-webkit-box;display:-ms-flexbox;display:flex}.veu_socialSet li{width:50%;background:0 0;position:relative;display:block;overflow:visible;-webkit-box-sizing:border-box;box-sizing:border-box}.veu_socialSet .sb_icon a{display:block;overflow:hidden;padding:5px 10px;border-radius:4px;color:#fff;text-decoration:none;line-height:100%;font-size:90%}.veu_socialSet .sb_icon a:hover{-webkit-box-shadow:none;box-shadow:none;transform:translate3d(0,2px,0);-webkit-transform:translate3d(0,2px,0)}.veu_socialSet .sb_icon a .sns_txt{position:relative;top:-1px}.veu_socialSet iframe{border:none}.veu_socialSet a .icon_sns{font-size:100%;padding:5px 8px 5px 0;display:inline-block}.veu_socialSet .sb_icon.sb_facebook a{background:#425dab;-webkit-box-shadow:0 4px 0 #344e84;box-shadow:0 4px 0 #344e84}.veu_socialSet .sb_icon.sb_hatena a{background:#007fc5;-webkit-box-shadow:0 4px 0 #00679f;box-shadow:0 4px 0 #00679f}.veu_socialSet .sb_icon.sb_twitter a{background:#00abec;-webkit-box-shadow:0 4px 0 #007eaa;box-shadow:0 4px 0 #007eaa}.veu_socialSet .sb_icon.sb_google a{background:#dd4b39;-webkit-box-shadow:0 4px 0 #a03524;box-shadow:0 4px 0 #a03524}.veu_socialSet .sb_icon.sb_line a{background:#6ebd30;-webkit-box-shadow:0 4px 0 #5b9c28;box-shadow:0 4px 0 #5b9c28}.veu_socialSet .sb_icon.sb_pocket a{background:#ea4654;-webkit-box-shadow:0 4px 0 #c1303c;box-shadow:0 4px 0 #c1303c}.veu_count_sns_fb,.veu_count_sns_hb,.veu_count_sns_pocket{position:absolute;bottom:5px;right:5px;font-size:77%;line-height:1;font-weight:700}.veu_socialSet.veu_contentAddSection ul{margin:0;padding:0}.veu_socialSet.veu_contentAddSection ul li{margin:3px;padding:0}@font-face{font-weight:400;font-style:normal;font-family:vk_sns;src:url(../../inc/sns/icons/fonts/vk_sns.eot?-bq20cj);src:url(../../inc/sns/icons/fonts/vk_sns.eot?#iefix-bq20cj) format("embedded-opentype"),url(../../inc/sns/icons/fonts/vk_sns.woff?-bq20cj) format("woff"),url(../../inc/sns/icons/fonts/vk_sns.ttf?-bq20cj) format("truetype"),url(../../inc/sns/icons/fonts/vk_sns.svg?-bq20cj#vk_sns) format("svg")}[class*=" vk_icon_w_r_sns_"],[class^=vk_icon_w_r_sns_]{text-transform:none;font-weight:400;font-style:normal;font-variant:normal;font-family:vk_sns;line-height:1;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.vk_icon_w_r_sns_twitter:before{content:"\e600"}.vk_icon_w_r_sns_line:before{content:"\e601"}.vk_icon_w_r_sns_hatena:before{content:"\e602"}.vk_icon_w_r_sns_google:before{content:"\e603"}.vk_icon_w_r_sns_fb:before{content:"\e604"}.vk_icon_w_r_sns_pocket:before{content:"\e605"}.veu_childPage_list{margin:2.5em 0 1em}.veu_childPage_list .childPage_list_box{display:block;margin-bottom:1.5em;width:100%;text-decoration:none}.veu_childPage_list .childPage_list_box_inner{position:relative;display:block;overflow:hidden;padding:0 20px;border:3px solid #efefef;-webkit-box-shadow:inset 0 0 0 1px #fff;box-shadow:inset 0 0 0 1px #fff}.veu_childPage_list .childPage_list_title{margin-top:20px;color:#464646;font-size:16px;line-height:1.4}.veu_childPage_list .wp-post-image{float:left;margin-right:1em;margin-bottom:1em;width:30%;height:auto;border:solid 1px #ddd}.veu_childPage_list .childPage_list_body{overflow:hidden;margin-bottom:5px;color:#333;font-size:14px}.veu_childPage_list .childPage_list_body:hover{text-decoration:underline}.veu_childPage_list p{line-height:1.5em}.veu_childPage_list .childPage_list_text{overflow:hidden;margin-bottom:1em}.veu_childPage_list .childPage_list_more{float:right;margin-bottom:20px}.veu_pageList_ancestor{clear:both;margin:2.5em 0 1em;padding:20px 20px 0;border:3px solid #efefef;-webkit-box-shadow:inset 0 0 0 1px #fff;box-shadow:inset 0 0 0 1px #fff}.veu_pageList_ancestor h3{margin:.5em 0}.veu_pageList_ancestor h3 a{color:#333;font-size:16px}.veu_pageList_ancestor ul.pageList{margin-top:1em;padding-left:0}.veu_pageList_ancestor ul.pageList a{display:block;padding:8px 5px;border-bottom:solid 1px #ddd;color:#333;font-size:14px}.veu_pageList_ancestor ul.pageList a:hover{text-decoration:underline}.veu_pageList_ancestor ul.pageList>.page_item{list-style:none}.veu_pageList_ancestor ul.pageList li{margin-bottom:0}.veu_pageList_ancestor ul.pageList ul{margin:0;padding-left:0;padding-bottom:0}.veu_pageList_ancestor ul.pageList ul li{position:relative;list-style:none}.veu_pageList_ancestor ul.pageList ul li:before{position:absolute;top:.26em;left:5px;display:inline-block}.veu_pageList_ancestor ul.pageList ul li a{padding-left:20px}.veu_pageList_ancestor ul.pageList ul li li a{padding-left:30px}.veu_pageList_ancestor ul.pageList ul li li li a{padding-left:40px}.veu_pageList_ancestor .current_page_item>a{font-weight:700}.veu_followSet{margin:30px 0;display:table;table-layout:fixed;width:100%;background-color:#2b2b2b;color:#fff}.veu_followSet .followSet_img{display:table-cell;min-width:240px;background-position:center;background-size:cover}.veu_followSet .followSet_body{display:table-cell;padding:15px;text-align:center;vertical-align:middle;line-height:1.4;font-size:20px}.veu_followSet .followSet_fb_page{margin-top:0;display:block;width:100%;-webkit-transform:scale(1.2);transform:scale(1.2)}.veu_followSet .followSet_tw_follow{width:100%;padding:15px 0 0}.veu_followSet .followSet_feedly{text-align:center}.veu_cta{display:block;overflow:hidden;margin-top:30px;margin-bottom:30px;background-color:#efefef}.veu_cta .cta_title{display:block;overflow:hidden;margin:0;padding:12px 20px 10px;background-color:#333;color:#fff;font-size:22px;line-height:1.2em}.veu_cta .cta_body{display:block;overflow:hidden;padding:1.5em 1.5em 2em;line-height:170%}.veu_cta .cta_body_image{margin-bottom:1.5em}.veu_cta .cta_body_image img{max-width:250px}.veu_cta .cta_body_image_center{display:block;overflow:hidden;text-align:center}.veu_cta .cta_body_image_center img{display:block;margin:0 auto 15px;max-width:100%}.veu_cta .cta_body_txt{display:block;overflow:hidden}.veu_cta .cta_body_link{clear:both;margin-top:1.5em}.veu_contact{display:block;overflow:hidden}.veu_contact .contact_frame{display:block;overflow:hidden;padding:25px 24px 21px;border:3px solid #efefef;background-color:#f9f9f9;-webkit-box-shadow:inset 0 0 0 1px #fff;box-shadow:inset 0 0 0 1px #fff}.veu_contact .contact_txt_catch,.veu_contact .contact_txt_tel,.veu_contact .contact_txt_time{display:block;overflow:hidden}.veu_contact .contact_txt_catch,.veu_contact .contact_txt_time{font-size:14px;line-height:128.6%}.veu_contact .contact_txt_tel{padding:4px 0;font-size:28px;line-height:105%;font-weight:700}.veu_contact .contact_txt_tel_icon{margin-right:.3rem}.veu_contact .contact_bt_subTxt{display:block;overflow:hidden;font-size:12px;margin-top:.4rem}.veu_contact .contact_txt{text-align:center}.veu_contact .contact_bt{display:block}.widget .veu_contact>.contact_bt{display:inline-block;float:none}.veu_insertAds{margin-top:1em;margin-bottom:2em}.veu_relatedPosts>.row{display:-ms-flexbox;display:-webkit-box;display:flex;margin:0;margin-right:-3%;-ms-flex-wrap:wrap;flex-wrap:wrap}.veu_relatedPosts .relatedPosts_item{float:none;margin-right:2.9%;padding-right:0;padding-left:0;width:47%;border-bottom:solid 1px #e5e5e5}.veu_relatedPosts .relatedPosts_item>.media:first-child{border:none}.veu_relatedPosts .relatedPosts_item>.media{padding:1em 0 .8em;margin-top:0;border:none}.veu_relatedPosts .relatedPosts_item>.media .media-body{font-size:14px}.veu_relatedPosts .relatedPosts_item>.media .postList_thumbnail{width:80px;padding-right:15px;margin-bottom:0}.veu_relatedPosts .relatedPosts_item>.media .media-heading{font-size:14px}.veu_relatedPosts .relatedPosts_item:nth-child(1){border-top:solid 1px #e5e5e5}.veu_relatedPosts .relatedPosts_item:nth-child(2){border-top:solid 1px #e5e5e5}.page_top_btn{position:fixed;right:2%;bottom:3%;z-index:99999;width:40px;height:38px;text-indent:100%;white-space:nowrap;overflow:hidden;border:none;background:rgba(0,0,0,.8);outline:1px solid rgba(0,0,0,.8);border:1px solid rgba(255,255,255,.8);background-image:url(../images/to-top-btn-icon.svg);background-size:50%;background-repeat:no-repeat;background-position:center;opacity:0;-webkit-transition:opacity .3s;transition:opacity .3s}.page_top_btn:hover{-webkit-transition:opacity .3s;transition:opacity .3s}.scrolled .page_top_btn{display:block;opacity:1}.veu_fbPagePlugin .fbPagePlugin_body{margin:0 auto;border:4px solid #efefef;background-color:#f9f9f9;text-align:center}iframe.twitter-timeline{margin-right:auto;margin-left:auto;width:740px!important}.veu_postList{margin-bottom:30px}.veu_postList .subSection-title,.veu_postList h1.mainSection-title{margin-bottom:0}.veu_postList ul.postList{margin:0;padding:0}.veu_postList ul.postList li{display:block;clear:both;overflow:hidden;margin:0;padding:15px 0;border-bottom:1px dotted #666;line-height:1.4em}.veu_postList .postList a{color:#464646;text-decoration:none}.veu_postList .postList a:hover{text-decoration:underline}.veu_postList .postList_title{display:block;clear:both;margin:3px 0 0}.veu_postList .postList_meta_items{font-size:14px;color:#666}.veu_postList .postList_date{margin-right:10px;color:#d44950}.veu_postList .postList_date:before{content:"";margin-right:0}.veu_postList .postList_terms a{margin-right:3px;padding:2px 5px 1px;border-radius:3px;background-color:#efefef;font-size:12px}.veu_postList .postList_more{margin:10px 5px 0 0;text-align:right}.veu_postList .postList_miniThumb .postList_item{display:block;overflow:hidden;clear:both;position:relative;padding:15px 0;border-bottom:1px dotted #666;margin-bottom:0}.veu_postList .postList_miniThumb .postList_thumbnail{float:left;margin-right:15px}.veu_postList .postList_miniThumb .postList_thumbnail a{position:relative;display:block;overflow:hidden;border:1px solid #e5e5e5}.veu_postList .postList_miniThumb .postList_thumbnail img{width:80px;height:auto}.veu_postList .postList_miniThumb .postList_body{display:block;overflow:hidden;width:auto}.veu_postList .postList_miniThumb .postList_title{font-size:14px}.mainSection .veu_postList.pt_0 .postList.postList_miniThumb{padding:0;margin-left:0;margin-right:0}.veu_profile .profile{overflow:hidden}.veu_profile .media_outer{position:relative;display:block;overflow:hidden;margin:.8em 0 .8em;-webkit-box-sizing:border-box;box-sizing:border-box}.veu_profile .media_outer img{max-width:100%;height:auto}.veu_profile .media_round{border-radius:50%;width:120px;height:120px;position:relative}.veu_profile .media_round img{position:absolute;left:-9999px}.veu_profile .media_center{margin-left:auto;margin-right:auto}.veu_profile .media_center img{display:block;margin-left:auto;margin-right:auto}.veu_profile .media_float{float:left;margin-right:1em}.veu_profile .media_float+.profile_text{padding-top:.8em}.veu_profile .profile_text{margin-bottom:1em;font-size:14px}.veu_profile .sns_btns{margin:0;padding:0;width:100%}.veu_profile .sns_btns li{float:left;margin-right:.45em;list-style:none;text-align:center}.veu_profile .sns_btns a{display:block;position:relative;width:40px;height:40px;border-radius:23px;color:#fff;text-decoration:none;font-size:20px}.veu_profile .sns_btns a:hover{color:#fff;text-decoration:none;opacity:.8}.veu_profile .sns_btns .icon{position:absolute;top:50%;left:50%;-webkit-transform:translateY(-50%) translateX(-50%);transform:translateY(-50%) translateX(-50%)}.veu_profile .sns_btns .facebook_btn a{background:#3b5998}.veu_profile .sns_btns .twitter_btn a{background:#55acee}.veu_profile .sns_btns .mail_btn a{background:#2f915f}.veu_profile .sns_btns .youtube_btn a{background:#c81d1c}.veu_profile .sns_btns .rss_btn a{background:#f26522}.veu_profile .sns_btns .instagram_btn a{background:#3f729b}.veu_profile .sns_btns .linkedin_btn a{background:#0077b5}.veu_3prArea .subSection-title{font-size:18px;margin-top:.8em}.veu_3prArea .summary{margin-bottom:.5em;font-size:14px;line-height:1.6em}.veu_3prArea .linkurl a{text-decoration:none}.veu_3prArea_image{margin-bottom:.8em;border:1px solid #e5e5e5}.veu_3prArea_image .image_pc{display:block}.veu_3prArea_image .image_sp{display:none}.veu_3prArea_image img{width:100%}.veu_3prArea_image_link{border:1px solid #fff;display:block;overflow:hidden}.prBlock a{color:#333}.prBlock a:hover{color:#333;text-decoration:none}.prBlock a .prBlock_summary:hover{text-decoration:underline}.prBlock .prBlock_icon_outer{display:block;position:relative;margin:0 auto;width:80px;height:80px;border-radius:50%}.prBlock .prBlock_icon{position:absolute;top:50%;left:50%;-webkit-transform:translateY(-50%) translateX(-50%);transform:translateY(-50%) translateX(-50%);font-size:36px}.prBlock .prBlock_title{margin-top:.9em;margin-bottom:.7em;text-align:center;font-size:18px;line-height:1.4em}.prBlock .prBlock_image{position:relative;display:block;width:120px;height:120px;margin:0 auto;overflow:hidden;border-radius:50%;text-indent:-9999px}.prBlock .prBlock_summary{margin-bottom:.5em;text-align:center;font-size:14px;line-height:1.6em}.veu_button i,.veu_button svg{margin-left:.3em;margin-right:.3em}.veu_button .button_mainText,.veu_button .button_subText{display:block}.veu_button .btn.btn-sm{padding-top:.6em;padding-bottom:.45em}.veu_button .btn{padding-top:.8em;padding-bottom:.6em}.veu_button .btn.btn-lg{padding-top:.8em;padding-bottom:.7em}.veu_banner{text-align:center;display:block;overflow:hidden}@media (min-width:481px){.veu_followSet .followSet_body{padding:40px}.veu_followSet .followSet_title{font-size:18px;margin-bottom:10px}}@media (min-width:541px){.veu_childPage_list{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-flex-wrap:wrap;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-justify-content:space-between}.veu_childPage_list .childPage_list_box{width:48%}}@media (min-width:768px){.container{width:750px}.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9{float:left}.col-sm-12{width:100%}.col-sm-11{width:91.66666667%}.col-sm-10{width:83.33333333%}.col-sm-9{width:75%}.col-sm-8{width:66.66666667%}.col-sm-7{width:58.33333333%}.col-sm-6{width:50%}.col-sm-5{width:41.66666667%}.col-sm-4{width:33.33333333%}.col-sm-3{width:25%}.col-sm-2{width:16.66666667%}.col-sm-1{width:8.33333333%}.col-sm-pull-12{right:100%}.col-sm-pull-11{right:91.66666667%}.col-sm-pull-10{right:83.33333333%}.col-sm-pull-9{right:75%}.col-sm-pull-8{right:66.66666667%}.col-sm-pull-7{right:58.33333333%}.col-sm-pull-6{right:50%}.col-sm-pull-5{right:41.66666667%}.col-sm-pull-4{right:33.33333333%}.col-sm-pull-3{right:25%}.col-sm-pull-2{right:16.66666667%}.col-sm-pull-1{right:8.33333333%}.col-sm-pull-0{right:auto}.col-sm-push-12{left:100%}.col-sm-push-11{left:91.66666667%}.col-sm-push-10{left:83.33333333%}.col-sm-push-9{left:75%}.col-sm-push-8{left:66.66666667%}.col-sm-push-7{left:58.33333333%}.col-sm-push-6{left:50%}.col-sm-push-5{left:41.66666667%}.col-sm-push-4{left:33.33333333%}.col-sm-push-3{left:25%}.col-sm-push-2{left:16.66666667%}.col-sm-push-1{left:8.33333333%}.col-sm-push-0{left:auto}.col-sm-offset-12{margin-left:100%}.col-sm-offset-11{margin-left:91.66666667%}.col-sm-offset-10{margin-left:83.33333333%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-8{margin-left:66.66666667%}.col-sm-offset-7{margin-left:58.33333333%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-5{margin-left:41.66666667%}.col-sm-offset-4{margin-left:33.33333333%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-2{margin-left:16.66666667%}.col-sm-offset-1{margin-left:8.33333333%}.col-sm-offset-0{margin-left:0}.veu_leadTxt,p.veu_leadTxt{font-size:2em;margin-bottom:.7em}.veu_cta .cta_body_image_right{float:right;margin-left:30px}.veu_cta .cta_body_image_left{float:left;margin-right:30px}}@media (min-width:992px){.container{width:970px}.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9{float:left}.col-md-12{width:100%}.col-md-11{width:91.66666667%}.col-md-10{width:83.33333333%}.col-md-9{width:75%}.col-md-8{width:66.66666667%}.col-md-7{width:58.33333333%}.col-md-6{width:50%}.col-md-5{width:41.66666667%}.col-md-4{width:33.33333333%}.col-md-3{width:25%}.col-md-2{width:16.66666667%}.col-md-1{width:8.33333333%}.col-md-pull-12{right:100%}.col-md-pull-11{right:91.66666667%}.col-md-pull-10{right:83.33333333%}.col-md-pull-9{right:75%}.col-md-pull-8{right:66.66666667%}.col-md-pull-7{right:58.33333333%}.col-md-pull-6{right:50%}.col-md-pull-5{right:41.66666667%}.col-md-pull-4{right:33.33333333%}.col-md-pull-3{right:25%}.col-md-pull-2{right:16.66666667%}.col-md-pull-1{right:8.33333333%}.col-md-pull-0{right:auto}.col-md-push-12{left:100%}.col-md-push-11{left:91.66666667%}.col-md-push-10{left:83.33333333%}.col-md-push-9{left:75%}.col-md-push-8{left:66.66666667%}.col-md-push-7{left:58.33333333%}.col-md-push-6{left:50%}.col-md-push-5{left:41.66666667%}.col-md-push-4{left:33.33333333%}.col-md-push-3{left:25%}.col-md-push-2{left:16.66666667%}.col-md-push-1{left:8.33333333%}.col-md-push-0{left:auto}.col-md-offset-12{margin-left:100%}.col-md-offset-11{margin-left:91.66666667%}.col-md-offset-10{margin-left:83.33333333%}.col-md-offset-9{margin-left:75%}.col-md-offset-8{margin-left:66.66666667%}.col-md-offset-7{margin-left:58.33333333%}.col-md-offset-6{margin-left:50%}.col-md-offset-5{margin-left:41.66666667%}.col-md-offset-4{margin-left:33.33333333%}.col-md-offset-3{margin-left:25%}.col-md-offset-2{margin-left:16.66666667%}.col-md-offset-1{margin-left:8.33333333%}.col-md-offset-0{margin-left:0}.mainSection .veu_postList.pt_0.postList_item .postList_thumbnail{margin-right:30px;margin-left:0}.mainSection .veu_postList.pt_0.postList_item.even .postList_thumbnail{margin-left:30px;margin-right:0}}@media (min-width:1200px){.container{width:1170px}.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9{float:left}.col-lg-12{width:100%}.col-lg-11{width:91.66666667%}.col-lg-10{width:83.33333333%}.col-lg-9{width:75%}.col-lg-8{width:66.66666667%}.col-lg-7{width:58.33333333%}.col-lg-6{width:50%}.col-lg-5{width:41.66666667%}.col-lg-4{width:33.33333333%}.col-lg-3{width:25%}.col-lg-2{width:16.66666667%}.col-lg-1{width:8.33333333%}.col-lg-pull-12{right:100%}.col-lg-pull-11{right:91.66666667%}.col-lg-pull-10{right:83.33333333%}.col-lg-pull-9{right:75%}.col-lg-pull-8{right:66.66666667%}.col-lg-pull-7{right:58.33333333%}.col-lg-pull-6{right:50%}.col-lg-pull-5{right:41.66666667%}.col-lg-pull-4{right:33.33333333%}.col-lg-pull-3{right:25%}.col-lg-pull-2{right:16.66666667%}.col-lg-pull-1{right:8.33333333%}.col-lg-pull-0{right:auto}.col-lg-push-12{left:100%}.col-lg-push-11{left:91.66666667%}.col-lg-push-10{left:83.33333333%}.col-lg-push-9{left:75%}.col-lg-push-8{left:66.66666667%}.col-lg-push-7{left:58.33333333%}.col-lg-push-6{left:50%}.col-lg-push-5{left:41.66666667%}.col-lg-push-4{left:33.33333333%}.col-lg-push-3{left:25%}.col-lg-push-2{left:16.66666667%}.col-lg-push-1{left:8.33333333%}.col-lg-push-0{left:auto}.col-lg-offset-12{margin-left:100%}.col-lg-offset-11{margin-left:91.66666667%}.col-lg-offset-10{margin-left:83.33333333%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-8{margin-left:66.66666667%}.col-lg-offset-7{margin-left:58.33333333%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-5{margin-left:41.66666667%}.col-lg-offset-4{margin-left:33.33333333%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-2{margin-left:16.66666667%}.col-lg-offset-1{margin-left:8.33333333%}.col-lg-offset-0{margin-left:0}.veu_contact p.contact_txt{margin-bottom:0}.veu_contact .contact_txt{float:left;text-align:left}.veu_contact .contact_bt{float:right;padding:.7em 2em}}@media screen and (max-width:992px){.prBlock{margin-bottom:1.5em}}@media (max-width:971px){.veu_insertAds{margin-bottom:.5em}.veu_insertAds .col-md-6{margin-bottom:1em}}@media (max-width:768px){.veu_relatedPosts .relatedPosts_item{display:block;width:100%}.veu_relatedPosts .relatedPosts_item:nth-child(2){border-top:none}}@media screen and (max-width:768px){.veu_3prArea .prArea{margin-bottom:1em;display:block;overflow:hidden}.veu_3prArea .image_pc{display:none}.veu_3prArea .image_sp{display:block}.veu_3prArea .linkurl{margin-bottom:1.5em}.veu_3prArea_image{width:138px;margin:0 1em 0 0;float:left}}@media screen and (max-width:767px){.table-responsive{width:100%;margin-bottom:15px;overflow-y:hidden;-ms-overflow-style:-ms-autohiding-scrollbar;border:1px solid #ddd}.table-responsive>.table{margin-bottom:0}.table-responsive>.table>tbody>tr>td,.table-responsive>.table>tbody>tr>th,.table-responsive>.table>tfoot>tr>td,.table-responsive>.table>tfoot>tr>th,.table-responsive>.table>thead>tr>td,.table-responsive>.table>thead>tr>th{white-space:nowrap}.table-responsive>.table-bordered{border:0}.table-responsive>.table-bordered>tbody>tr>td:first-child,.table-responsive>.table-bordered>tbody>tr>th:first-child,.table-responsive>.table-bordered>tfoot>tr>td:first-child,.table-responsive>.table-bordered>tfoot>tr>th:first-child,.table-responsive>.table-bordered>thead>tr>td:first-child,.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.table-responsive>.table-bordered>tbody>tr>td:last-child,.table-responsive>.table-bordered>tbody>tr>th:last-child,.table-responsive>.table-bordered>tfoot>tr>td:last-child,.table-responsive>.table-bordered>tfoot>tr>th:last-child,.table-responsive>.table-bordered>thead>tr>td:last-child,.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.table-responsive>.table-bordered>tbody>tr:last-child>td,.table-responsive>.table-bordered>tbody>tr:last-child>th,.table-responsive>.table-bordered>tfoot>tr:last-child>td,.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}}@media (max-width:767px){.media .postList_thumbnail{padding-right:20px}.media .media-body .media-heading{font-size:1.2em;line-height:1.3em;margin-bottom:.5em}.veu_socialSet ul{-ms-flex-wrap:wrap;flex-wrap:wrap}.veu_socialSet li{width:calc(50% - 6px)}.veu_socialSet .veu_count_sns_fb,.veu_socialSet .veu_count_sns_hb,.veu_socialSet .veu_count_sns_pocket{bottom:2px}.veu_socialSet .sb_icon a{padding:8px 10px}.veu_socialSet.veu_contentAddSection ul li{margin-bottom:9px}.veu_childPage_list .wp-post-image{width:25%}.veu_cta .cta_body_image img{display:block;margin:0 auto 1.5em;max-width:100%}}@media (max-width:500px){.media .postList_thumbnail{width:100px}}@media (max-width:480px){.veu_followSet .followSet_title{font-size:12px;margin-bottom:0}}
{images → assets/images}/arrow_bottom.svg RENAMED
File without changes
{images → assets/images}/head_logo_ExUnit.png RENAMED
File without changes
{images → assets/images}/to-top-btn-icon.svg RENAMED
File without changes
{js → assets/js}/all.js RENAMED
@@ -118,41 +118,11 @@ jQuery(document).ready(function($){
118
  jQuery('.child_page_block h4 a').flatHeights();
119
  });
120
  /*-------------------------------------------*/
121
- /* ページ内するするスクロール
122
- /*-------------------------------------------*/
123
  /* jquery.flatheights.js
124
  /*-------------------------------------------*/
125
  /* snsCount
126
  /*-------------------------------------------*/
127
 
128
- /*-------------------------------------------*/
129
- /* ページ内するするスクロール
130
- /*-------------------------------------------*/
131
- (function($) {
132
- // #にダブルクォーテーションが必要
133
- $('a[href^="#"]').click(function() {
134
- if ( jQuery(this).attr("href") === "#" ){
135
- return;
136
- }
137
- // .carousel-control を除外しないとLightningのスライダーの左右ボタンでページトップになってしまう。
138
- if ( ! $(this).hasClass('carousel-control') ){
139
- if ( id )
140
- var speed = 400;
141
- var href= $(this).attr("href");
142
- var target = $(href == "#" || href == "" ? 'html' : href);
143
- var id = jQuery(this).attr('id');
144
- if ( id == 'page_top' ){
145
- var position = 0;
146
- } else {
147
- var position = target.offset().top;
148
- }
149
- $('body,html').animate({scrollTop:position}, speed, 'swing');
150
- return false;
151
- }
152
- })
153
- })(jQuery);
154
-
155
-
156
  /*-------------------------------------------*/
157
  /* jquery.flatheights.js
158
  /*-------------------------------------------*/
118
  jQuery('.child_page_block h4 a').flatHeights();
119
  });
120
  /*-------------------------------------------*/
 
 
121
  /* jquery.flatheights.js
122
  /*-------------------------------------------*/
123
  /* snsCount
124
  /*-------------------------------------------*/
125
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
126
  /*-------------------------------------------*/
127
  /* jquery.flatheights.js
128
  /*-------------------------------------------*/
{js → assets/js}/all.min.js RENAMED
@@ -1,9 +1,6 @@
1
 
2
  jQuery.changeLetterSize={handlers:[],interval:1000,currentSize:0};(function($){var self=$.changeLetterSize;var ins=$('<ins>M</ins>').css({display:'block',visibility:'hidden',position:'absolute',padding:'0',top:'0'});var isChanged=function(){ins.appendTo('body');var size=ins[0].offsetHeight;ins.remove();if(self.currentSize==size)return false;self.currentSize=size;return true;};$(isChanged);var observer=function(){if(!isChanged())return;$.each(self.handlers,function(i,handler){handler();});};self.addHandler=function(func){self.handlers.push(func);if(self.handlers.length==1){}};})(jQuery);(function($){var sets=[];var flatHeights=function(set){var maxHeight=0;set.each(function(){var height=this.offsetHeight;if(height>maxHeight)maxHeight=height;});set.css('height',maxHeight+'px');};jQuery.fn.flatHeights=function(){if(this.length>1){flatHeights(this);sets.push(this);}
3
- return this;};var reflatting=function(){$.each(sets,function(){this.height('auto');flatHeights(this);});};$.changeLetterSize.addHandler(reflatting);$(window).resize(reflatting);})(jQuery);jQuery(document).ready(function($){jQuery('.topPrTit a').flatHeights();jQuery('.topPrDescription').flatHeights();jQuery('.child_page_block h4 a').flatHeights();});(function($){$('a[href^="#"]').click(function(){if(jQuery(this).attr("href")==="#"){return;}
4
- if(!$(this).hasClass('carousel-control')){if(id)
5
- var speed=400;var href=$(this).attr("href");var target=$(href=="#"||href==""?'html':href);var id=jQuery(this).attr('id');if(id=='page_top'){var position=0;}else{var position=target.offset().top;}
6
- $('body,html').animate({scrollTop:position},speed,'swing');return false;}})})(jQuery);(function($){$(function(){$('.prArea > .subSection-title').flatHeights();$('.prArea > .summary').flatHeights();});window.addEventListener('DOMContentLoaded',function(){$('.childPage_list_text').flatHeights();})})(jQuery);(function($){var socials=$('.veu_socialSet');if(typeof socials[0]==="undefined")return;var linkurl=encodeURIComponent((typeof vkExOpt!=="undefined"&&vkExOpt.sns_linkurl)||location.href);var facebook={init:function(){var url='https://graph.facebook.com/?id='+linkurl;$.ajax({url:url,dataType:'jsonp',success:function(response){if(!response.share||response.share.share_count===undefined)return;socials.find('.veu_count_sns_fb').html(response.share.share_count);}});}}
7
  var hatena={init:function(){var url=(location.protocol==='https:'?'https://b.hatena.ne.jp':'http://api.b.st-hatena.com')+'/entry.count?url='+linkurl;$.ajax({url:url,dataType:'jsonp',success:function(response){var count=response?response:0;socials.find('.veu_count_sns_hb').html(count);if(typeof(count)=='undefined'){count=0;}}});}}
8
  var pocket={init:function(){$.ajax({url:vkExOpt.ajax_url,type:'POST',data:{'action':'vkex_pocket_tunnel','linkurl':linkurl},dataType:'html',success:function(response){var count=$(response).find("#cnt").html();if(count===undefined)return;socials.find('.veu_count_sns_pocket').html(count);}})}}
9
  facebook.init();hatena.init();pocket.init();})(jQuery);;(function($,d){var a=false,b='',c='',f=function(){if(a){a=false;c.show();b.removeClass('active');}else{a=true;c.hide();b.addClass('active');}};$(d).ready(function(){b=$('#wp-admin-bar-veu_disable_admin_edit .ab-item').on('click',f);c=$('.veu_adminEdit');});})(jQuery,document);(function($){$(window).scroll(function(){var scroll=$(this).scrollTop();if($(this).scrollTop()>1){$('body').addClass('scrolled');}else{$('body').removeClass('scrolled');}});})(jQuery);
1
 
2
  jQuery.changeLetterSize={handlers:[],interval:1000,currentSize:0};(function($){var self=$.changeLetterSize;var ins=$('<ins>M</ins>').css({display:'block',visibility:'hidden',position:'absolute',padding:'0',top:'0'});var isChanged=function(){ins.appendTo('body');var size=ins[0].offsetHeight;ins.remove();if(self.currentSize==size)return false;self.currentSize=size;return true;};$(isChanged);var observer=function(){if(!isChanged())return;$.each(self.handlers,function(i,handler){handler();});};self.addHandler=function(func){self.handlers.push(func);if(self.handlers.length==1){}};})(jQuery);(function($){var sets=[];var flatHeights=function(set){var maxHeight=0;set.each(function(){var height=this.offsetHeight;if(height>maxHeight)maxHeight=height;});set.css('height',maxHeight+'px');};jQuery.fn.flatHeights=function(){if(this.length>1){flatHeights(this);sets.push(this);}
3
+ return this;};var reflatting=function(){$.each(sets,function(){this.height('auto');flatHeights(this);});};$.changeLetterSize.addHandler(reflatting);$(window).resize(reflatting);})(jQuery);jQuery(document).ready(function($){jQuery('.topPrTit a').flatHeights();jQuery('.topPrDescription').flatHeights();jQuery('.child_page_block h4 a').flatHeights();});(function($){$(function(){$('.prArea > .subSection-title').flatHeights();$('.prArea > .summary').flatHeights();});window.addEventListener('DOMContentLoaded',function(){$('.childPage_list_text').flatHeights();})})(jQuery);(function($){var socials=$('.veu_socialSet');if(typeof socials[0]==="undefined")return;var linkurl=encodeURIComponent((typeof vkExOpt!=="undefined"&&vkExOpt.sns_linkurl)||location.href);var facebook={init:function(){var url='https://graph.facebook.com/?id='+linkurl;$.ajax({url:url,dataType:'jsonp',success:function(response){if(!response.share||response.share.share_count===undefined)return;socials.find('.veu_count_sns_fb').html(response.share.share_count);}});}}
 
 
 
4
  var hatena={init:function(){var url=(location.protocol==='https:'?'https://b.hatena.ne.jp':'http://api.b.st-hatena.com')+'/entry.count?url='+linkurl;$.ajax({url:url,dataType:'jsonp',success:function(response){var count=response?response:0;socials.find('.veu_count_sns_hb').html(count);if(typeof(count)=='undefined'){count=0;}}});}}
5
  var pocket={init:function(){$.ajax({url:vkExOpt.ajax_url,type:'POST',data:{'action':'vkex_pocket_tunnel','linkurl':linkurl},dataType:'html',success:function(response){var count=$(response).find("#cnt").html();if(count===undefined)return;socials.find('.veu_count_sns_pocket').html(count);}})}}
6
  facebook.init();hatena.init();pocket.init();})(jQuery);;(function($,d){var a=false,b='',c='',f=function(){if(a){a=false;c.show();b.removeClass('active');}else{a=true;c.hide();b.addClass('active');}};$(d).ready(function(){b=$('#wp-admin-bar-veu_disable_admin_edit .ab-item').on('click',f);c=$('.veu_adminEdit');});})(jQuery,document);(function($){$(window).scroll(function(){var scroll=$(this).scrollTop();if($(this).scrollTop()>1){$('body').addClass('scrolled');}else{$('body').removeClass('scrolled');}});})(jQuery);
{js → assets/js}/jquery.flatheights.js RENAMED
File without changes
{js → assets/js}/master.js RENAMED
@@ -1,39 +1,9 @@
1
  /*-------------------------------------------*/
2
- /* ページ内するするスクロール
3
- /*-------------------------------------------*/
4
  /* jquery.flatheights.js
5
  /*-------------------------------------------*/
6
  /* snsCount
7
  /*-------------------------------------------*/
8
 
9
- /*-------------------------------------------*/
10
- /* ページ内するするスクロール
11
- /*-------------------------------------------*/
12
- (function($) {
13
- // #にダブルクォーテーションが必要
14
- $('a[href^="#"]').click(function() {
15
- if ( jQuery(this).attr("href") === "#" ){
16
- return;
17
- }
18
- // .carousel-control を除外しないとLightningのスライダーの左右ボタンでページトップになってしまう。
19
- if ( ! $(this).hasClass('carousel-control') ){
20
- if ( id )
21
- var speed = 400;
22
- var href= $(this).attr("href");
23
- var target = $(href == "#" || href == "" ? 'html' : href);
24
- var id = jQuery(this).attr('id');
25
- if ( id == 'page_top' ){
26
- var position = 0;
27
- } else {
28
- var position = target.offset().top;
29
- }
30
- $('body,html').animate({scrollTop:position}, speed, 'swing');
31
- return false;
32
- }
33
- })
34
- })(jQuery);
35
-
36
-
37
  /*-------------------------------------------*/
38
  /* jquery.flatheights.js
39
  /*-------------------------------------------*/
1
  /*-------------------------------------------*/
 
 
2
  /* jquery.flatheights.js
3
  /*-------------------------------------------*/
4
  /* snsCount
5
  /*-------------------------------------------*/
6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  /*-------------------------------------------*/
8
  /* jquery.flatheights.js
9
  /*-------------------------------------------*/
assets/js/vkExUnit_admin.js ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function($) {
2
+ $(function() {
3
+ // サブセクションタイトルがクリックされたらセクションに open class をつける
4
+ $('.veu_metabox_section .veu_metabox_section_title').each(function(){
5
+ jQuery(this).click(function() {
6
+ if ( ! jQuery(this).parent().hasClass('open') ) {
7
+ jQuery(this).parent().addClass('open');
8
+ } else {
9
+ jQuery(this).parent().removeClass('open');
10
+ }
11
+ });
12
+ });
13
+
14
+ // 全展開ボタン
15
+ jQuery('.veu_metabox_all_section_toggle_btn_open').click(function() {
16
+ // 開閉ボタンの親クラス処理
17
+ jQuery(this).parent().removeClass('close');
18
+ jQuery(this).parent().addClass('open');
19
+ // 各セクションのouter
20
+ jQuery('.veu_metabox_section').each(function(){
21
+ jQuery(this).addClass('open');
22
+ });
23
+ });
24
+ jQuery('.veu_metabox_all_section_toggle_btn_close').click(function() {
25
+ // 開閉ボタンの親クラス処理
26
+ jQuery(this).parent().removeClass('open');
27
+ jQuery(this).parent().addClass('close');
28
+ // 各セクションのouter
29
+ jQuery('.veu_metabox_section').each(function(){
30
+ jQuery(this).removeClass('open');
31
+ });
32
+ });
33
+ }); // $(function() {
34
+ })(jQuery);
35
+
36
+
37
+ /// all.jsのも同じコードがあるので注意
38
+ ;(function($,d){var a=false,b='',c='',f=function(){
39
+ if(a){a=false;c.show();b.removeClass('active');}else{a=true;c.hide();b.addClass('active');}
40
+ };$(d).ready(function(){b=$('#wp-admin-bar-veu_disable_admin_edit .ab-item').on('click',f);c=$('.veu_adminEdit');});})(jQuery,document);
common_helpers.php DELETED
@@ -1,48 +0,0 @@
1
- <?php
2
- /*-------------------------------------------*/
3
- /* basic setting
4
- /*-------------------------------------------*/
5
- /* Chack use post top page
6
- /*-------------------------------------------*/
7
- /* Chack post type info
8
- /*-------------------------------------------*/
9
- /* Page description
10
- /*-------------------------------------------*/
11
- /* Archive title
12
- /*-------------------------------------------*/
13
- /* Sanitize
14
- /*-------------------------------------------*/
15
-
16
- /*-------------------------------------------*/
17
- /* basic setting
18
- /*-------------------------------------------*/
19
-
20
- require_once( vkExUnit_get_directory() . '/plugins/template-tags/template-tags.php' );
21
- require_once( vkExUnit_get_directory() . '/plugins/template-tags/template-tags-veu.php' );
22
- require_once( vkExUnit_get_directory() . '/plugins/template-tags/template-tags-veu-old.php' );
23
-
24
- /*
25
- ExUnit独自の関数
26
- template-tags-veu.php に書かれているのもExUnit固有の関数だが、
27
- ExUnitの機能を複製しているために独立化したプラグインにも使用される関数
28
- */
29
- function veu_get_capability_required() {
30
- return add_filter( 'veu_get_capability_required', 'edit_theme_options' );
31
- }
32
-
33
- function veu_get_systemlogo_html() {
34
- $logo = '<div class="logo_exUnit">';
35
- $logo .= '<img src="' . apply_filters( 'vkExUnit_news_image_URL_small', vkExUnit_get_directory_uri( '/images/head_logo_ExUnit.png' ) ) . '" alt="VK ExUnit" />';
36
- $logo .= '</div>';
37
- $logo = apply_filters( 'veu_get_systemlogo_html', $logo );
38
- return $logo;
39
- }
40
- /*
41
- 7.0 になったら削除
42
- */
43
- function vkExUnit_get_capability_required() {
44
- return veu_get_capability_required();
45
- }
46
- function vkExUnit_get_systemlogo() {
47
- return veu_get_systemlogo_html();
48
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
css/vkExUnit_admin.css DELETED
@@ -1 +0,0 @@
1
- .wrap.debug_mode tr.dev_object{display:table-row}
 
css/vkExUnit_style.css DELETED
@@ -1 +0,0 @@
1
- .veu_leadTxt,p.veu_leadTxt{font-size:1.6em;line-height:150%;padding:0}.veu_caption{font-size:.8em}.fa_v4 .btn.btn-blank::after{margin-left:.7em;font-family:FontAwesome;content:"\f08e"}.fa_v5_css .btn.btn-blank::after{margin-left:.7em;font-family:Font Awesome\ 5 Free;content:"\f35d";font-weight:900}dl.veu_qaItem{display:block;overflow:hidden;border-bottom:1px dotted #ccc;padding:0 0 25px;margin:25px 0;width:100%;position:relative}dl.veu_qaItem dd,dl.veu_qaItem dt{border:none;padding-left:35px}dl.veu_qaItem dd:before,dl.veu_qaItem dt:before{position:absolute;left:0;font-size:24px;line-height:105%}dl.veu_qaItem dt{margin-bottom:15px;font-size:18px}dl.veu_qaItem dt:before{font-family:areal;content:"Q ";color:#e50000}dl.veu_qaItem dd{margin-bottom:0}dl.veu_qaItem dd:before{content:"A ";color:#337ab7;font-family:""}.veu_flowBox{display:block;overflow:hidden}.veu_flowBox:after{content:"";background:url(../images/arrow_bottom.svg) center 50% no-repeat;background-size:50px 50px;display:block;overflow:hidden;height:50px;width:50px;margin:0 auto}.veu_flowBox:last-child{padding-bottom:0;margin-bottom:30px}.veu_flowBox:last-child:after{content:"";font-size:0;background-image:none}.veu_flowBox dl{display:block;overflow:hidden;padding:20px 25px;border:3px solid #e5e5e5;margin:0}.veu_flowBox dl dd,.veu_flowBox dl dt{padding-left:0;border:none}.veu_flowBox dl dt{border-bottom:1px dotted #ccc;margin-bottom:10px;font-size:1.2em}.veu_flowBox dl dd{margin-bottom:0}.veu_flowBox dl dd h4{margin:0;padding:0}.veu_flowBox dl dd p{margin-bottom:10px}.veu_flowBox dl dd ul{margin-bottom:0}.veu_dummyImage{padding:20px;display:block;vertical-align:middle;text-align:center;background-color:#f5f5f5;border:1px solid #ccc;margin-bottom:15px}.veu_floatLeft{float:left;margin-right:20px}.veu_floatRight{float:right;margin-left:20px}.veu_feat_list{background:0 0;border:none;padding:0 0 0 2em;font-size:2em;margin-top:1.5em;position:relative}.veu_feat_list::after,.veu_feat_list::before{border:none;background:0 0}.veu_feat_list::before{position:absolute;left:0;top:-.2em;background-color:#4e7729;color:#fff;border-radius:100%;margin-right:.5em;padding:.2em .5em}.veu_feat_list_1::before{content:"1"}.veu_feat_list_2::before{content:"2"}.veu_feat_list_3::before{content:"3"}.veu_feat_list_4::before{content:"4"}.veu_feat_list_5::before{content:"5"}.veu_feat_list_6::before{content:"6"}.veu_feat_list_7::before{content:"7"}.veu_feat_list_8::before{content:"8"}.veu_feat_list_9::before{content:"9"}html{font-size:inherit}.link-list li{padding:.5em}iframe.wp-embedded-content{width:100%}.veu_adminEdit{margin-top:5px}.veu_contentAddSection{display:block;clear:both;overflow:hidden;margin-top:20px}.btn{white-space:inherit}.media{border-bottom:1px solid #e5e5e5;padding:2em 0;margin-top:0}.media:first-child{border-top:1px solid #e5e5e5}.media .postList_thumbnail{width:160px;margin-bottom:.5em;padding-right:30px;display:block;overflow:hidden;float:left}.media .postList_thumbnail a{position:relative;display:block;overflow:hidden}.media .postList_thumbnail img{width:100%;height:auto}.media .postList_thumbnail .postList_cateLabel{position:absolute;bottom:0;left:0}.media .media-heading{font-size:1.8em;line-height:1.3em;margin-top:0;margin-bottom:.5em;font-weight:400}.media .media-heading a{color:#464646}.media .media-heading a:hover{text-decoration:none}.media p{margin-bottom:0}.media a.media-body_excerpt{color:#464646}.relatedPosts h2{margin-bottom:10px}.veu_autoEyeCatchBox{display:block;overflow:hidden;margin-bottom:2em}.veu_sitemap .sectionBox{padding-top:0}.veu_sitemap .sitemap-col{padding-bottom:2em}.veu_sitemap .sitemap-col{margin-top:1em}.veu_sitemap .sitemap-col .link-list{margin-top:0;margin-bottom:0}.veu_sitemap .sitemap-col .page_item{padding:0}.veu_sitemap .sitemap-col .cat-item{padding:0}.veu_socialSet{margin-top:3em}.veu_socialSet.veu_contentAddSection ul{margin:0;padding:0;display:-webkit-box;display:-ms-flexbox;display:flex}.veu_socialSet.veu_contentAddSection ul li{position:relative;display:block;overflow:visible;width:50%;margin:3px;padding:0;background:0 0}.veu_socialSet.veu_contentAddSection ul li.sb_icon a{display:block;overflow:hidden;padding:7px 10px;border-radius:4px;color:#fff;text-decoration:none;line-height:100%;font-size:90%}.veu_socialSet.veu_contentAddSection ul li.sb_icon a:hover{-webkit-box-shadow:none;box-shadow:none;transform:translate3d(0,2px,0);-webkit-transform:translate3d(0,2px,0)}.veu_socialSet.veu_contentAddSection ul li.sb_icon a .sns_txt{position:relative;top:-1px}.veu_socialSet.veu_contentAddSection ul li iframe{border:none}.veu_socialSet.veu_contentAddSection ul li a .icon_sns{font-size:100%;padding:5px 8px 5px 0;display:inline-block}.veu_socialSet.veu_contentAddSection ul li.sb_icon.sb_facebook a{background:#425dab;-webkit-box-shadow:0 4px 0 #344e84;box-shadow:0 4px 0 #344e84}.veu_socialSet.veu_contentAddSection ul li.sb_icon.sb_hatena a{background:#007fc5;-webkit-box-shadow:0 4px 0 #00679f;box-shadow:0 4px 0 #00679f}.veu_socialSet.veu_contentAddSection ul li.sb_icon.sb_twitter a{background:#00abec;-webkit-box-shadow:0 4px 0 #007eaa;box-shadow:0 4px 0 #007eaa}.veu_socialSet.veu_contentAddSection ul li.sb_icon.sb_google a{background:#dd4b39;-webkit-box-shadow:0 4px 0 #a03524;box-shadow:0 4px 0 #a03524}.veu_socialSet.veu_contentAddSection ul li.sb_icon.sb_line a{background:#6ebd30;-webkit-box-shadow:0 4px 0 #5b9c28;box-shadow:0 4px 0 #5b9c28}.veu_socialSet.veu_contentAddSection ul li.sb_icon.sb_pocket a{background:#ea4654;-webkit-box-shadow:0 4px 0 #c1303c;box-shadow:0 4px 0 #c1303c}.veu_count_sns_fb,.veu_count_sns_hb,.veu_count_sns_pocket{position:absolute;bottom:5px;right:5px;font-size:77%;line-height:1;font-weight:700}@font-face{font-weight:400;font-style:normal;font-family:vk_sns;src:url(../plugins/sns/icons/fonts/vk_sns.eot?-bq20cj);src:url(../plugins/sns/icons/fonts/vk_sns.eot?#iefix-bq20cj) format("embedded-opentype"),url(../plugins/sns/icons/fonts/vk_sns.woff?-bq20cj) format("woff"),url(../plugins/sns/icons/fonts/vk_sns.ttf?-bq20cj) format("truetype"),url(../plugins/sns/icons/fonts/vk_sns.svg?-bq20cj#vk_sns) format("svg")}[class*=" vk_icon_w_r_sns_"],[class^=vk_icon_w_r_sns_]{text-transform:none;font-weight:400;font-style:normal;font-variant:normal;font-family:vk_sns;line-height:1;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.vk_icon_w_r_sns_twitter:before{content:"\e600"}.vk_icon_w_r_sns_line:before{content:"\e601"}.vk_icon_w_r_sns_hatena:before{content:"\e602"}.vk_icon_w_r_sns_google:before{content:"\e603"}.vk_icon_w_r_sns_fb:before{content:"\e604"}.vk_icon_w_r_sns_pocket:before{content:"\e605"}.veu_childPage_list{margin:2.5em 0 1em}.veu_childPage_list .childPage_list_box{display:block;margin-bottom:1.5em;width:100%;text-decoration:none}.veu_childPage_list .childPage_list_box_inner{position:relative;display:block;overflow:hidden;padding:0 20px;border:3px solid #efefef;-webkit-box-shadow:inset 0 0 0 1px #fff;box-shadow:inset 0 0 0 1px #fff}.veu_childPage_list .childPage_list_title{margin-top:20px;color:#464646;font-size:16px;line-height:1.4}.veu_childPage_list .wp-post-image{float:left;margin-right:1em;margin-bottom:1em;width:30%;height:auto;border:solid 1px #ddd}.veu_childPage_list .childPage_list_body{overflow:hidden;margin-bottom:5px;color:#333;font-size:14px}.veu_childPage_list .childPage_list_body:hover{text-decoration:underline}.veu_childPage_list p{line-height:1.5em}.veu_childPage_list .childPage_list_text{overflow:hidden;margin-bottom:1em}.veu_childPage_list .childPage_list_more{float:right;margin-bottom:20px}.veu_pageList_ancestor{clear:both;margin:2.5em 0 1em;padding:20px 20px 0;border:3px solid #efefef;-webkit-box-shadow:inset 0 0 0 1px #fff;box-shadow:inset 0 0 0 1px #fff}.veu_pageList_ancestor h3{margin:.5em 0}.veu_pageList_ancestor h3 a{color:#333;font-size:16px}.veu_pageList_ancestor ul.pageList{margin-top:1em;padding-left:0}.veu_pageList_ancestor ul.pageList a{display:block;padding:8px 5px;border-bottom:solid 1px #ddd;color:#333;font-size:14px}.veu_pageList_ancestor ul.pageList a:hover{text-decoration:underline}.veu_pageList_ancestor ul.pageList>.page_item{list-style:none}.veu_pageList_ancestor ul.pageList li{margin-bottom:0}.veu_pageList_ancestor ul.pageList ul{margin:0;padding-left:0;padding-bottom:0}.veu_pageList_ancestor ul.pageList ul li{position:relative;list-style:none}.veu_pageList_ancestor ul.pageList ul li:before{position:absolute;top:.26em;left:5px;display:inline-block}.veu_pageList_ancestor ul.pageList ul li a{padding-left:20px}.veu_pageList_ancestor ul.pageList ul li li a{padding-left:30px}.veu_pageList_ancestor ul.pageList ul li li li a{padding-left:40px}.veu_pageList_ancestor .current_page_item>a{font-weight:700}.veu_followSet{margin:30px 0;display:table;table-layout:fixed;width:100%;background-color:#2b2b2b;color:#fff}.veu_followSet .followSet_img{display:table-cell;min-width:240px;background-position:center;background-size:cover}.veu_followSet .followSet_body{display:table-cell;padding:15px;text-align:center;vertical-align:middle;line-height:1.4;font-size:20px}.veu_followSet .followSet_fb_page{margin-top:0;display:block;width:100%;-webkit-transform:scale(1.2);transform:scale(1.2)}.veu_followSet .followSet_tw_follow{width:100%;padding:15px 0 0}.veu_followSet .followSet_feedly{text-align:center}.veu_cta{display:block;overflow:hidden;margin-top:30px;margin-bottom:30px;background-color:#efefef}.veu_cta .cta_title{display:block;overflow:hidden;margin:0;padding:12px 20px 10px;background-color:#333;color:#fff;font-size:22px;line-height:1.2em}.veu_cta .cta_body{display:block;overflow:hidden;padding:1.5em 1.5em 2em;line-height:170%}.veu_cta .cta_body_image{margin-bottom:1.5em}.veu_cta .cta_body_image img{max-width:250px}.veu_cta .cta_body_image_center{display:block;overflow:hidden;text-align:center}.veu_cta .cta_body_image_center img{display:block;margin:0 auto 15px;max-width:100%}.veu_cta .cta_body_txt{display:block;overflow:hidden}.veu_cta .cta_body_link{clear:both;margin-top:1.5em}.veu_contact{display:block;overflow:hidden}.veu_contact .contact_frame{display:block;overflow:hidden;padding:25px 24px 21px;border:3px solid #efefef;background-color:#f9f9f9;-webkit-box-shadow:inset 0 0 0 1px #fff;box-shadow:inset 0 0 0 1px #fff}.veu_contact .contact_txt_catch,.veu_contact .contact_txt_tel,.veu_contact .contact_txt_time{display:block;overflow:hidden}.veu_contact .contact_txt_catch,.veu_contact .contact_txt_time{font-size:14px;line-height:128.6%}.veu_contact .contact_txt_tel{padding:4px 0;font-size:28px;line-height:105%}.veu_contact .contact_bt_subTxt{display:block;overflow:hidden;font-size:12px;margin-top:.4rem}.veu_contact .contact_txt{text-align:center}.veu_contact .contact_bt{display:block}.widget .veu_contact>.contact_bt{display:inline-block;float:none}.veu_insertAds{margin-top:1em;margin-bottom:2em}.veu_relatedPosts>.row{display:-ms-flexbox;display:-webkit-box;display:flex;margin:0;margin-right:-3%;-ms-flex-wrap:wrap;flex-wrap:wrap}.veu_relatedPosts .relatedPosts_item{float:none;margin-right:2.9%;padding-right:0;padding-left:0;width:47%;border-bottom:solid 1px #e5e5e5}.veu_relatedPosts .relatedPosts_item>.media:first-child{border:none}.veu_relatedPosts .relatedPosts_item>.media{padding:1em 0 .8em;margin-top:0;border:none}.veu_relatedPosts .relatedPosts_item>.media .media-body{font-size:14px}.veu_relatedPosts .relatedPosts_item>.media .postList_thumbnail{width:80px;padding-right:15px;margin-bottom:0}.veu_relatedPosts .relatedPosts_item>.media .media-heading{font-size:14px}.veu_relatedPosts .relatedPosts_item:nth-child(1){border-top:solid 1px #e5e5e5}.veu_relatedPosts .relatedPosts_item:nth-child(2){border-top:solid 1px #e5e5e5}.page_top_btn{position:fixed;right:2%;bottom:3%;z-index:99999;width:40px;height:38px;text-indent:100%;white-space:nowrap;overflow:hidden;border:none;background:rgba(0,0,0,.8);outline:1px solid rgba(0,0,0,.8);border:1px solid rgba(255,255,255,.8);background-image:url(../images/to-top-btn-icon.svg);background-size:50%;background-repeat:no-repeat;background-position:center;opacity:0;-webkit-transition:opacity .3s;transition:opacity .3s}.page_top_btn:hover{-webkit-transition:opacity .3s;transition:opacity .3s}.scrolled .page_top_btn{display:block;opacity:1}.veu_fbPagePlugin .fbPagePlugin_body{margin:0 auto;border:4px solid #efefef;background-color:#f9f9f9;text-align:center}iframe.twitter-timeline{margin-right:auto;margin-left:auto;width:740px!important}.veu_postList{margin-bottom:30px}.veu_postList .subSection-title,.veu_postList h1.mainSection-title{margin-bottom:0}.veu_postList ul.postList{margin:0;padding:0}.veu_postList ul.postList li{display:block;clear:both;overflow:hidden;margin:0;padding:15px 0;border-bottom:1px dotted #666;line-height:1.4em}.veu_postList .postList a{color:#464646;text-decoration:none}.veu_postList .postList a:hover{text-decoration:underline}.veu_postList .postList_title{display:block;clear:both;margin:3px 0 0}.veu_postList .postList_meta_items{font-size:14px;color:#666}.veu_postList .postList_date{margin-right:10px;color:#d44950}.veu_postList .postList_date:before{content:"";margin-right:0}.veu_postList .postList_terms a{margin-right:3px;padding:2px 5px 1px;border-radius:3px;background-color:#efefef;font-size:12px}.veu_postList .postList_more{margin:10px 5px 0 0;text-align:right}.veu_postList .postList_miniThumb .postList_item{display:block;overflow:hidden;clear:both;position:relative;padding:15px 0;border-bottom:1px dotted #666;margin-bottom:0}.veu_postList .postList_miniThumb .postList_thumbnail{float:left;margin-right:15px}.veu_postList .postList_miniThumb .postList_thumbnail a{position:relative;display:block;overflow:hidden;border:1px solid #e5e5e5}.veu_postList .postList_miniThumb .postList_thumbnail img{width:80px;height:auto}.veu_postList .postList_miniThumb .postList_body{display:block;overflow:hidden;width:auto}.veu_postList .postList_miniThumb .postList_title{font-size:14px}.mainSection .veu_postList.pt_0 .postList.postList_miniThumb{padding:0;margin-left:0;margin-right:0}.veu_profile .profile{overflow:hidden}.veu_profile .media_outer{position:relative;display:block;overflow:hidden;margin:.8em 0 .8em;-webkit-box-sizing:border-box;box-sizing:border-box}.veu_profile .media_outer img{max-width:100%;height:auto}.veu_profile .media_round{border-radius:50%;width:120px;height:120px;position:relative}.veu_profile .media_round img{position:absolute;left:-9999px}.veu_profile .media_center{margin-left:auto;margin-right:auto}.veu_profile .media_center img{display:block;margin-left:auto;margin-right:auto}.veu_profile .media_float{float:left;margin-right:1em}.veu_profile .media_float+.profile_text{padding-top:.8em}.veu_profile .profile_text{margin-bottom:1em;font-size:14px}.veu_profile .sns_btns{margin:0;padding:0;width:100%}.veu_profile .sns_btns li{float:left;margin-right:.45em;list-style:none;text-align:center}.veu_profile .sns_btns a{display:block;position:relative;width:40px;height:40px;border-radius:23px;color:#fff;text-decoration:none;font-size:20px}.veu_profile .sns_btns a:hover{color:#fff;text-decoration:none;opacity:.8}.veu_profile .sns_btns .icon{position:absolute;top:50%;left:50%;-webkit-transform:translateY(-50%) translateX(-50%);transform:translateY(-50%) translateX(-50%)}.veu_profile .sns_btns .facebook_btn a{background:#3b5998}.veu_profile .sns_btns .twitter_btn a{background:#55acee}.veu_profile .sns_btns .mail_btn a{background:#2f915f}.veu_profile .sns_btns .youtube_btn a{background:#c81d1c}.veu_profile .sns_btns .rss_btn a{background:#f26522}.veu_profile .sns_btns .instagram_btn a{background:#3f729b}.veu_profile .sns_btns .linkedin_btn a{background:#0077b5}.veu_3prArea .subSection-title{font-size:18px;margin-top:.8em}.veu_3prArea .summary{margin-bottom:.5em;font-size:14px;line-height:1.6em}.veu_3prArea .linkurl a{text-decoration:none}.veu_3prArea_image{margin-bottom:.8em;border:1px solid #e5e5e5}.veu_3prArea_image .image_pc{display:block}.veu_3prArea_image .image_sp{display:none}.veu_3prArea_image img{width:100%}.veu_3prArea_image_link{border:1px solid #fff;display:block;overflow:hidden}.prBlock a{color:#333}.prBlock a:hover{color:#333;text-decoration:none}.prBlock a .prBlock_summary:hover{text-decoration:underline}.prBlock .prBlock_icon_outer{display:block;position:relative;margin:0 auto;width:80px;height:80px;border-radius:50%}.prBlock .prBlock_icon{position:absolute;top:50%;left:50%;-webkit-transform:translateY(-50%) translateX(-50%);transform:translateY(-50%) translateX(-50%);font-size:36px}.prBlock .prBlock_title{margin-top:.9em;margin-bottom:.7em;text-align:center;font-size:18px;line-height:1.4em}.prBlock .prBlock_image{position:relative;display:block;width:120px;height:120px;margin:0 auto;overflow:hidden;border-radius:50%;text-indent:-9999px}.prBlock .prBlock_summary{margin-bottom:.5em;text-align:center;font-size:14px;line-height:1.6em}.prBlock_icon{color:#fff}.veu_button i,.veu_button svg{margin-left:.3em;margin-right:.3em}.veu_button .button_mainText,.veu_button .button_subText{display:block}.veu_button .btn.btn-sm{padding-top:.6em;padding-bottom:.45em}.veu_button .btn{padding-top:.8em;padding-bottom:.6em}.veu_button .btn.btn-lg{padding-top:.8em;padding-bottom:.7em}.veu_banner{text-align:center;display:block;overflow:hidden}@media (min-width:481px){.veu_followSet .followSet_body{padding:40px}.veu_followSet .followSet_title{font-size:18px;margin-bottom:10px}}@media (min-width:541px){.veu_childPage_list{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-flex-wrap:wrap;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-justify-content:space-between}.veu_childPage_list .childPage_list_box{width:48%;display:-webkit-box;display:-ms-flexbox;display:flex}}@media (min-width:768px){.veu_leadTxt,p.veu_leadTxt{font-size:2em;margin-bottom:.7em}.veu_cta .cta_body_image_right{float:right;margin-left:30px}.veu_cta .cta_body_image_left{float:left;margin-right:30px}}@media (min-width:992px){.mainSection .veu_postList.pt_0.postList_item .postList_thumbnail{margin-right:30px;margin-left:0}.mainSection .veu_postList.pt_0.postList_item.even .postList_thumbnail{margin-left:30px;margin-right:0}}@media (min-width:1200px){.veu_contact p.contact_txt{margin-bottom:0}.veu_contact .contact_txt{float:left;text-align:left}.veu_contact .contact_bt{float:right;padding:.7em 2em}}@media screen and (max-width:992px){.prBlock{margin-bottom:1.5em}}@media (max-width:971px){.veu_insertAds{margin-bottom:.5em}.veu_insertAds .col-md-6{margin-bottom:1em}}@media (max-width:768px){.veu_relatedPosts .relatedPosts_item{display:block;width:100%}.veu_relatedPosts .relatedPosts_item:nth-child(2){border-top:none}}@media screen and (max-width:768px){.veu_3prArea .prArea{margin-bottom:1em;display:block;overflow:hidden}.veu_3prArea .image_pc{display:none}.veu_3prArea .image_sp{display:block}.veu_3prArea .linkurl{margin-bottom:1.5em}.veu_3prArea_image{width:138px;margin:0 1em 0 0;float:left}}@media (max-width:767px){.media .postList_thumbnail{padding-right:20px}.media .media-body .media-heading{font-size:1.2em;line-height:1.3em;margin-bottom:.5em}.veu_socialSet.veu_contentAddSection ul{-ms-flex-wrap:wrap;flex-wrap:wrap}.veu_socialSet.veu_contentAddSection ul li{width:48%;margin-bottom:9px}.veu_socialSet.veu_contentAddSection ul li:nth-child(even){margin-right:0}.veu_socialSet.veu_contentAddSection ul li.sb_icon a{padding:8px 10px}.pocket-count,.veu_count_sns_fb,.veu_count_sns_hb{bottom:2px}.veu_childPage_list .wp-post-image{width:25%}.veu_cta .cta_body_image img{display:block;margin:0 auto 1.5em;max-width:100%}}@media (max-width:500px){.media .postList_thumbnail{width:100px}}@media (max-width:480px){.veu_followSet .followSet_title{font-size:12px;margin-bottom:0}}
 
css/vkExUnit_style_in_bs.css DELETED
@@ -1,12 +0,0 @@
1
- /*!
2
- * Bootstrap v3.3.7 (http://getbootstrap.com)
3
- * Copyright 2011-2017 Twitter, Inc.
4
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
5
- *//*!
6
- * Generated using the Bootstrap Customizer (http://getbootstrap.com/customize/?id=a2c5715a18a0533068e5185c0f8861a9)
7
- * Config saved to config.json and https://gist.github.com/a2c5715a18a0533068e5185c0f8861a9
8
- *//*!
9
- * Bootstrap v3.3.7 (http://getbootstrap.com)
10
- * Copyright 2011-2016 Twitter, Inc.
11
- * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
12
- *//*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */[role=button]{cursor:pointer}.container{margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px}.container-fluid{margin-right:auto;margin-left:auto;padding-left:15px;padding-right:15px}.row{margin-left:-15px;margin-right:-15px}.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{position:relative;min-height:1px;padding-left:15px;padding-right:15px}.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{float:left}.col-xs-12{width:100%}.col-xs-11{width:91.66666667%}.col-xs-10{width:83.33333333%}.col-xs-9{width:75%}.col-xs-8{width:66.66666667%}.col-xs-7{width:58.33333333%}.col-xs-6{width:50%}.col-xs-5{width:41.66666667%}.col-xs-4{width:33.33333333%}.col-xs-3{width:25%}.col-xs-2{width:16.66666667%}.col-xs-1{width:8.33333333%}.col-xs-pull-12{right:100%}.col-xs-pull-11{right:91.66666667%}.col-xs-pull-10{right:83.33333333%}.col-xs-pull-9{right:75%}.col-xs-pull-8{right:66.66666667%}.col-xs-pull-7{right:58.33333333%}.col-xs-pull-6{right:50%}.col-xs-pull-5{right:41.66666667%}.col-xs-pull-4{right:33.33333333%}.col-xs-pull-3{right:25%}.col-xs-pull-2{right:16.66666667%}.col-xs-pull-1{right:8.33333333%}.col-xs-pull-0{right:auto}.col-xs-push-12{left:100%}.col-xs-push-11{left:91.66666667%}.col-xs-push-10{left:83.33333333%}.col-xs-push-9{left:75%}.col-xs-push-8{left:66.66666667%}.col-xs-push-7{left:58.33333333%}.col-xs-push-6{left:50%}.col-xs-push-5{left:41.66666667%}.col-xs-push-4{left:33.33333333%}.col-xs-push-3{left:25%}.col-xs-push-2{left:16.66666667%}.col-xs-push-1{left:8.33333333%}.col-xs-push-0{left:auto}.col-xs-offset-12{margin-left:100%}.col-xs-offset-11{margin-left:91.66666667%}.col-xs-offset-10{margin-left:83.33333333%}.col-xs-offset-9{margin-left:75%}.col-xs-offset-8{margin-left:66.66666667%}.col-xs-offset-7{margin-left:58.33333333%}.col-xs-offset-6{margin-left:50%}.col-xs-offset-5{margin-left:41.66666667%}.col-xs-offset-4{margin-left:33.33333333%}.col-xs-offset-3{margin-left:25%}.col-xs-offset-2{margin-left:16.66666667%}.col-xs-offset-1{margin-left:8.33333333%}.col-xs-offset-0{margin-left:0}table{background-color:transparent}caption{padding-top:8px;padding-bottom:8px;color:#777;text-align:left}th{text-align:left}.table{width:100%;max-width:100%;margin-bottom:20px}.table>tbody>tr>td,.table>tbody>tr>th,.table>tfoot>tr>td,.table>tfoot>tr>th,.table>thead>tr>td,.table>thead>tr>th{padding:8px;line-height:1.42857143;vertical-align:top;border-top:1px solid #ddd}.table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd}.table>caption+thead>tr:first-child>td,.table>caption+thead>tr:first-child>th,.table>colgroup+thead>tr:first-child>td,.table>colgroup+thead>tr:first-child>th,.table>thead:first-child>tr:first-child>td,.table>thead:first-child>tr:first-child>th{border-top:0}.table>tbody+tbody{border-top:2px solid #ddd}.table .table{background-color:#fff}.table-condensed>tbody>tr>td,.table-condensed>tbody>tr>th,.table-condensed>tfoot>tr>td,.table-condensed>tfoot>tr>th,.table-condensed>thead>tr>td,.table-condensed>thead>tr>th{padding:5px}.table-bordered{border:1px solid #ddd}.table-bordered>tbody>tr>td,.table-bordered>tbody>tr>th,.table-bordered>tfoot>tr>td,.table-bordered>tfoot>tr>th,.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border:1px solid #ddd}.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border-bottom-width:2px}.table-striped>tbody>tr:nth-of-type(odd){background-color:#f9f9f9}.table-hover>tbody>tr:hover{background-color:#f5f5f5}table col[class*=col-]{position:static;float:none;display:table-column}table td[class*=col-],table th[class*=col-]{position:static;float:none;display:table-cell}.table>tbody>tr.active>td,.table>tbody>tr.active>th,.table>tbody>tr>td.active,.table>tbody>tr>th.active,.table>tfoot>tr.active>td,.table>tfoot>tr.active>th,.table>tfoot>tr>td.active,.table>tfoot>tr>th.active,.table>thead>tr.active>td,.table>thead>tr.active>th,.table>thead>tr>td.active,.table>thead>tr>th.active{background-color:#f5f5f5}.table-hover>tbody>tr.active:hover>td,.table-hover>tbody>tr.active:hover>th,.table-hover>tbody>tr:hover>.active,.table-hover>tbody>tr>td.active:hover,.table-hover>tbody>tr>th.active:hover{background-color:#e8e8e8}.table>tbody>tr.success>td,.table>tbody>tr.success>th,.table>tbody>tr>td.success,.table>tbody>tr>th.success,.table>tfoot>tr.success>td,.table>tfoot>tr.success>th,.table>tfoot>tr>td.success,.table>tfoot>tr>th.success,.table>thead>tr.success>td,.table>thead>tr.success>th,.table>thead>tr>td.success,.table>thead>tr>th.success{background-color:#dff0d8}.table-hover>tbody>tr.success:hover>td,.table-hover>tbody>tr.success:hover>th,.table-hover>tbody>tr:hover>.success,.table-hover>tbody>tr>td.success:hover,.table-hover>tbody>tr>th.success:hover{background-color:#d0e9c6}.table>tbody>tr.info>td,.table>tbody>tr.info>th,.table>tbody>tr>td.info,.table>tbody>tr>th.info,.table>tfoot>tr.info>td,.table>tfoot>tr.info>th,.table>tfoot>tr>td.info,.table>tfoot>tr>th.info,.table>thead>tr.info>td,.table>thead>tr.info>th,.table>thead>tr>td.info,.table>thead>tr>th.info{background-color:#d9edf7}.table-hover>tbody>tr.info:hover>td,.table-hover>tbody>tr.info:hover>th,.table-hover>tbody>tr:hover>.info,.table-hover>tbody>tr>td.info:hover,.table-hover>tbody>tr>th.info:hover{background-color:#c4e3f3}.table>tbody>tr.warning>td,.table>tbody>tr.warning>th,.table>tbody>tr>td.warning,.table>tbody>tr>th.warning,.table>tfoot>tr.warning>td,.table>tfoot>tr.warning>th,.table>tfoot>tr>td.warning,.table>tfoot>tr>th.warning,.table>thead>tr.warning>td,.table>thead>tr.warning>th,.table>thead>tr>td.warning,.table>thead>tr>th.warning{background-color:#fcf8e3}.table-hover>tbody>tr.warning:hover>td,.table-hover>tbody>tr.warning:hover>th,.table-hover>tbody>tr:hover>.warning,.table-hover>tbody>tr>td.warning:hover,.table-hover>tbody>tr>th.warning:hover{background-color:#faf2cc}.table>tbody>tr.danger>td,.table>tbody>tr.danger>th,.table>tbody>tr>td.danger,.table>tbody>tr>th.danger,.table>tfoot>tr.danger>td,.table>tfoot>tr.danger>th,.table>tfoot>tr>td.danger,.table>tfoot>tr>th.danger,.table>thead>tr.danger>td,.table>thead>tr.danger>th,.table>thead>tr>td.danger,.table>thead>tr>th.danger{background-color:#f2dede}.table-hover>tbody>tr.danger:hover>td,.table-hover>tbody>tr.danger:hover>th,.table-hover>tbody>tr:hover>.danger,.table-hover>tbody>tr>td.danger:hover,.table-hover>tbody>tr>th.danger:hover{background-color:#ebcccc}.table-responsive{overflow-x:auto;min-height:.01%}.btn{display:inline-block;margin-bottom:0;font-weight:400;text-align:center;vertical-align:middle;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;background-image:none;border:1px solid transparent;white-space:nowrap;padding:6px 12px;font-size:14px;line-height:1.42857143;border-radius:4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.btn.active.focus,.btn.active:focus,.btn.focus,.btn:active.focus,.btn:active:focus,.btn:focus{outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.btn.focus,.btn:focus,.btn:hover{color:#333;text-decoration:none}.btn.active,.btn:active{outline:0;background-image:none;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn.disabled,.btn[disabled],fieldset[disabled] .btn{cursor:not-allowed;opacity:.65;-webkit-box-shadow:none;box-shadow:none}a.btn.disabled,fieldset[disabled] a.btn{pointer-events:none}.btn-default{color:#333;background-color:#fff;border-color:#ccc}.btn-default.focus,.btn-default:focus{color:#333;background-color:#e6e6e6;border-color:#8c8c8c}.btn-default:hover{color:#333;background-color:#e6e6e6;border-color:#adadad}.btn-default.active,.btn-default:active,.open>.dropdown-toggle.btn-default{color:#333;background-color:#e6e6e6;border-color:#adadad}.btn-default.active.focus,.btn-default.active:focus,.btn-default.active:hover,.btn-default:active.focus,.btn-default:active:focus,.btn-default:active:hover,.open>.dropdown-toggle.btn-default.focus,.open>.dropdown-toggle.btn-default:focus,.open>.dropdown-toggle.btn-default:hover{color:#333;background-color:#d4d4d4;border-color:#8c8c8c}.btn-default.active,.btn-default:active,.open>.dropdown-toggle.btn-default{background-image:none}.btn-default.disabled.focus,.btn-default.disabled:focus,.btn-default.disabled:hover,.btn-default[disabled].focus,.btn-default[disabled]:focus,.btn-default[disabled]:hover,fieldset[disabled] .btn-default.focus,fieldset[disabled] .btn-default:focus,fieldset[disabled] .btn-default:hover{background-color:#fff;border-color:#ccc}.btn-default .badge{color:#fff;background-color:#333}.btn-primary{color:#fff;background-color:#337ab7;border-color:#2e6da4}.btn-primary.focus,.btn-primary:focus{color:#fff;background-color:#286090;border-color:#122b40}.btn-primary:hover{color:#fff;background-color:#286090;border-color:#204d74}.btn-primary.active,.btn-primary:active,.open>.dropdown-toggle.btn-primary{color:#fff;background-color:#286090;border-color:#204d74}.btn-primary.active.focus,.btn-primary.active:focus,.btn-primary.active:hover,.btn-primary:active.focus,.btn-primary:active:focus,.btn-primary:active:hover,.open>.dropdown-toggle.btn-primary.focus,.open>.dropdown-toggle.btn-primary:focus,.open>.dropdown-toggle.btn-primary:hover{color:#fff;background-color:#204d74;border-color:#122b40}.btn-primary.active,.btn-primary:active,.open>.dropdown-toggle.btn-primary{background-image:none}.btn-primary.disabled.focus,.btn-primary.disabled:focus,.btn-primary.disabled:hover,.btn-primary[disabled].focus,.btn-primary[disabled]:focus,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary.focus,fieldset[disabled] .btn-primary:focus,fieldset[disabled] .btn-primary:hover{background-color:#337ab7;border-color:#2e6da4}.btn-primary .badge{color:#337ab7;background-color:#fff}.btn-success{color:#fff;background-color:#5cb85c;border-color:#4cae4c}.btn-success.focus,.btn-success:focus{color:#fff;background-color:#449d44;border-color:#255625}.btn-success:hover{color:#fff;background-color:#449d44;border-color:#398439}.btn-success.active,.btn-success:active,.open>.dropdown-toggle.btn-success{color:#fff;background-color:#449d44;border-color:#398439}.btn-success.active.focus,.btn-success.active:focus,.btn-success.active:hover,.btn-success:active.focus,.btn-success:active:focus,.btn-success:active:hover,.open>.dropdown-toggle.btn-success.focus,.open>.dropdown-toggle.btn-success:focus,.open>.dropdown-toggle.btn-success:hover{color:#fff;background-color:#398439;border-color:#255625}.btn-success.active,.btn-success:active,.open>.dropdown-toggle.btn-success{background-image:none}.btn-success.disabled.focus,.btn-success.disabled:focus,.btn-success.disabled:hover,.btn-success[disabled].focus,.btn-success[disabled]:focus,.btn-success[disabled]:hover,fieldset[disabled] .btn-success.focus,fieldset[disabled] .btn-success:focus,fieldset[disabled] .btn-success:hover{background-color:#5cb85c;border-color:#4cae4c}.btn-success .badge{color:#5cb85c;background-color:#fff}.btn-info{color:#fff;background-color:#5bc0de;border-color:#46b8da}.btn-info.focus,.btn-info:focus{color:#fff;background-color:#31b0d5;border-color:#1b6d85}.btn-info:hover{color:#fff;background-color:#31b0d5;border-color:#269abc}.btn-info.active,.btn-info:active,.open>.dropdown-toggle.btn-info{color:#fff;background-color:#31b0d5;border-color:#269abc}.btn-info.active.focus,.btn-info.active:focus,.btn-info.active:hover,.btn-info:active.focus,.btn-info:active:focus,.btn-info:active:hover,.open>.dropdown-toggle.btn-info.focus,.open>.dropdown-toggle.btn-info:focus,.open>.dropdown-toggle.btn-info:hover{color:#fff;background-color:#269abc;border-color:#1b6d85}.btn-info.active,.btn-info:active,.open>.dropdown-toggle.btn-info{background-image:none}.btn-info.disabled.focus,.btn-info.disabled:focus,.btn-info.disabled:hover,.btn-info[disabled].focus,.btn-info[disabled]:focus,.btn-info[disabled]:hover,fieldset[disabled] .btn-info.focus,fieldset[disabled] .btn-info:focus,fieldset[disabled] .btn-info:hover{background-color:#5bc0de;border-color:#46b8da}.btn-info .badge{color:#5bc0de;background-color:#fff}.btn-warning{color:#fff;background-color:#f0ad4e;border-color:#eea236}.btn-warning.focus,.btn-warning:focus{color:#fff;background-color:#ec971f;border-color:#985f0d}.btn-warning:hover{color:#fff;background-color:#ec971f;border-color:#d58512}.btn-warning.active,.btn-warning:active,.open>.dropdown-toggle.btn-warning{color:#fff;background-color:#ec971f;border-color:#d58512}.btn-warning.active.focus,.btn-warning.active:focus,.btn-warning.active:hover,.btn-warning:active.focus,.btn-warning:active:focus,.btn-warning:active:hover,.open>.dropdown-toggle.btn-warning.focus,.open>.dropdown-toggle.btn-warning:focus,.open>.dropdown-toggle.btn-warning:hover{color:#fff;background-color:#d58512;border-color:#985f0d}.btn-warning.active,.btn-warning:active,.open>.dropdown-toggle.btn-warning{background-image:none}.btn-warning.disabled.focus,.btn-warning.disabled:focus,.btn-warning.disabled:hover,.btn-warning[disabled].focus,.btn-warning[disabled]:focus,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning.focus,fieldset[disabled] .btn-warning:focus,fieldset[disabled] .btn-warning:hover{background-color:#f0ad4e;border-color:#eea236}.btn-warning .badge{color:#f0ad4e;background-color:#fff}.btn-danger{color:#fff;background-color:#d9534f;border-color:#d43f3a}.btn-danger.focus,.btn-danger:focus{color:#fff;background-color:#c9302c;border-color:#761c19}.btn-danger:hover{color:#fff;background-color:#c9302c;border-color:#ac2925}.btn-danger.active,.btn-danger:active,.open>.dropdown-toggle.btn-danger{color:#fff;background-color:#c9302c;border-color:#ac2925}.btn-danger.active.focus,.btn-danger.active:focus,.btn-danger.active:hover,.btn-danger:active.focus,.btn-danger:active:focus,.btn-danger:active:hover,.open>.dropdown-toggle.btn-danger.focus,.open>.dropdown-toggle.btn-danger:focus,.open>.dropdown-toggle.btn-danger:hover{color:#fff;background-color:#ac2925;border-color:#761c19}.btn-danger.active,.btn-danger:active,.open>.dropdown-toggle.btn-danger{background-image:none}.btn-danger.disabled.focus,.btn-danger.disabled:focus,.btn-danger.disabled:hover,.btn-danger[disabled].focus,.btn-danger[disabled]:focus,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger.focus,fieldset[disabled] .btn-danger:focus,fieldset[disabled] .btn-danger:hover{background-color:#d9534f;border-color:#d43f3a}.btn-danger .badge{color:#d9534f;background-color:#fff}.btn-link{color:#337ab7;font-weight:400;border-radius:0}.btn-link,.btn-link.active,.btn-link:active,.btn-link[disabled],fieldset[disabled] .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.btn-link,.btn-link:active,.btn-link:focus,.btn-link:hover{border-color:transparent}.btn-link:focus,.btn-link:hover{color:#23527c;text-decoration:underline;background-color:transparent}.btn-link[disabled]:focus,.btn-link[disabled]:hover,fieldset[disabled] .btn-link:focus,fieldset[disabled] .btn-link:hover{color:#777;text-decoration:none}.btn-lg{padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}.btn-sm{padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.btn-xs{padding:1px 5px;font-size:12px;line-height:1.5;border-radius:3px}.btn-block{display:block;width:100%}.btn-block+.btn-block{margin-top:5px}input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-block{width:100%}.veu_leadTxt,p.veu_leadTxt{font-size:1.6em;line-height:150%;padding:0}.veu_caption{font-size:.8em}.fa_v4 .btn.btn-blank::after{margin-left:.7em;font-family:FontAwesome;content:"\f08e"}.fa_v5_css .btn.btn-blank::after{margin-left:.7em;font-family:Font Awesome\ 5 Free;content:"\f35d";font-weight:900}dl.veu_qaItem{display:block;overflow:hidden;border-bottom:1px dotted #ccc;padding:0 0 25px;margin:25px 0;width:100%;position:relative}dl.veu_qaItem dd,dl.veu_qaItem dt{border:none;padding-left:35px}dl.veu_qaItem dd:before,dl.veu_qaItem dt:before{position:absolute;left:0;font-size:24px;line-height:105%}dl.veu_qaItem dt{margin-bottom:15px;font-size:18px}dl.veu_qaItem dt:before{font-family:areal;content:"Q ";color:#e50000}dl.veu_qaItem dd{margin-bottom:0}dl.veu_qaItem dd:before{content:"A ";color:#337ab7;font-family:""}.veu_flowBox{display:block;overflow:hidden}.veu_flowBox:after{content:"";background:url(../images/arrow_bottom.svg) center 50% no-repeat;background-size:50px 50px;display:block;overflow:hidden;height:50px;width:50px;margin:0 auto}.veu_flowBox:last-child{padding-bottom:0;margin-bottom:30px}.veu_flowBox:last-child:after{content:"";font-size:0;background-image:none}.veu_flowBox dl{display:block;overflow:hidden;padding:20px 25px;border:3px solid #e5e5e5;margin:0}.veu_flowBox dl dd,.veu_flowBox dl dt{padding-left:0;border:none}.veu_flowBox dl dt{border-bottom:1px dotted #ccc;margin-bottom:10px;font-size:1.2em}.veu_flowBox dl dd{margin-bottom:0}.veu_flowBox dl dd h4{margin:0;padding:0}.veu_flowBox dl dd p{margin-bottom:10px}.veu_flowBox dl dd ul{margin-bottom:0}.veu_dummyImage{padding:20px;display:block;vertical-align:middle;text-align:center;background-color:#f5f5f5;border:1px solid #ccc;margin-bottom:15px}.veu_floatLeft{float:left;margin-right:20px}.veu_floatRight{float:right;margin-left:20px}.veu_feat_list{background:0 0;border:none;padding:0 0 0 2em;font-size:2em;margin-top:1.5em;position:relative}.veu_feat_list::after,.veu_feat_list::before{border:none;background:0 0}.veu_feat_list::before{position:absolute;left:0;top:-.2em;background-color:#4e7729;color:#fff;border-radius:100%;margin-right:.5em;padding:.2em .5em}.veu_feat_list_1::before{content:"1"}.veu_feat_list_2::before{content:"2"}.veu_feat_list_3::before{content:"3"}.veu_feat_list_4::before{content:"4"}.veu_feat_list_5::before{content:"5"}.veu_feat_list_6::before{content:"6"}.veu_feat_list_7::before{content:"7"}.veu_feat_list_8::before{content:"8"}.veu_feat_list_9::before{content:"9"}html{font-size:inherit}.link-list li{padding:.5em}iframe.wp-embedded-content{width:100%}.veu_adminEdit{margin-top:5px}.veu_contentAddSection{display:block;clear:both;overflow:hidden;margin-top:20px}.btn{white-space:inherit}.media{border-bottom:1px solid #e5e5e5;padding:2em 0;margin-top:0}.media:first-child{border-top:1px solid #e5e5e5}.media .postList_thumbnail{width:160px;margin-bottom:.5em;padding-right:30px;display:block;overflow:hidden;float:left}.media .postList_thumbnail a{position:relative;display:block;overflow:hidden}.media .postList_thumbnail img{width:100%;height:auto}.media .postList_thumbnail .postList_cateLabel{position:absolute;bottom:0;left:0}.media .media-heading{font-size:1.8em;line-height:1.3em;margin-top:0;margin-bottom:.5em;font-weight:400}.media .media-heading a{color:#464646}.media .media-heading a:hover{text-decoration:none}.media p{margin-bottom:0}.media a.media-body_excerpt{color:#464646}.relatedPosts h2{margin-bottom:10px}.veu_autoEyeCatchBox{display:block;overflow:hidden;margin-bottom:2em}.veu_sitemap .sectionBox{padding-top:0}.veu_sitemap .sitemap-col{padding-bottom:2em}.veu_sitemap .sitemap-col{margin-top:1em}.veu_sitemap .sitemap-col .link-list{margin-top:0;margin-bottom:0}.veu_sitemap .sitemap-col .page_item{padding:0}.veu_sitemap .sitemap-col .cat-item{padding:0}.veu_socialSet{margin-top:3em}.veu_socialSet.veu_contentAddSection ul{margin:0;padding:0;display:-webkit-box;display:-ms-flexbox;display:flex}.veu_socialSet.veu_contentAddSection ul li{position:relative;display:block;overflow:visible;width:50%;margin:3px;padding:0;background:0 0}.veu_socialSet.veu_contentAddSection ul li.sb_icon a{display:block;overflow:hidden;padding:7px 10px;border-radius:4px;color:#fff;text-decoration:none;line-height:100%;font-size:90%}.veu_socialSet.veu_contentAddSection ul li.sb_icon a:hover{-webkit-box-shadow:none;box-shadow:none;transform:translate3d(0,2px,0);-webkit-transform:translate3d(0,2px,0)}.veu_socialSet.veu_contentAddSection ul li.sb_icon a .sns_txt{position:relative;top:-1px}.veu_socialSet.veu_contentAddSection ul li iframe{border:none}.veu_socialSet.veu_contentAddSection ul li a .icon_sns{font-size:100%;padding:5px 8px 5px 0;display:inline-block}.veu_socialSet.veu_contentAddSection ul li.sb_icon.sb_facebook a{background:#425dab;-webkit-box-shadow:0 4px 0 #344e84;box-shadow:0 4px 0 #344e84}.veu_socialSet.veu_contentAddSection ul li.sb_icon.sb_hatena a{background:#007fc5;-webkit-box-shadow:0 4px 0 #00679f;box-shadow:0 4px 0 #00679f}.veu_socialSet.veu_contentAddSection ul li.sb_icon.sb_twitter a{background:#00abec;-webkit-box-shadow:0 4px 0 #007eaa;box-shadow:0 4px 0 #007eaa}.veu_socialSet.veu_contentAddSection ul li.sb_icon.sb_google a{background:#dd4b39;-webkit-box-shadow:0 4px 0 #a03524;box-shadow:0 4px 0 #a03524}.veu_socialSet.veu_contentAddSection ul li.sb_icon.sb_line a{background:#6ebd30;-webkit-box-shadow:0 4px 0 #5b9c28;box-shadow:0 4px 0 #5b9c28}.veu_socialSet.veu_contentAddSection ul li.sb_icon.sb_pocket a{background:#ea4654;-webkit-box-shadow:0 4px 0 #c1303c;box-shadow:0 4px 0 #c1303c}.veu_count_sns_fb,.veu_count_sns_hb,.veu_count_sns_pocket{position:absolute;bottom:5px;right:5px;font-size:77%;line-height:1;font-weight:700}@font-face{font-weight:400;font-style:normal;font-family:vk_sns;src:url(../plugins/sns/icons/fonts/vk_sns.eot?-bq20cj);src:url(../plugins/sns/icons/fonts/vk_sns.eot?#iefix-bq20cj) format("embedded-opentype"),url(../plugins/sns/icons/fonts/vk_sns.woff?-bq20cj) format("woff"),url(../plugins/sns/icons/fonts/vk_sns.ttf?-bq20cj) format("truetype"),url(../plugins/sns/icons/fonts/vk_sns.svg?-bq20cj#vk_sns) format("svg")}[class*=" vk_icon_w_r_sns_"],[class^=vk_icon_w_r_sns_]{text-transform:none;font-weight:400;font-style:normal;font-variant:normal;font-family:vk_sns;line-height:1;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.vk_icon_w_r_sns_twitter:before{content:"\e600"}.vk_icon_w_r_sns_line:before{content:"\e601"}.vk_icon_w_r_sns_hatena:before{content:"\e602"}.vk_icon_w_r_sns_google:before{content:"\e603"}.vk_icon_w_r_sns_fb:before{content:"\e604"}.vk_icon_w_r_sns_pocket:before{content:"\e605"}.veu_childPage_list{margin:2.5em 0 1em}.veu_childPage_list .childPage_list_box{display:block;margin-bottom:1.5em;width:100%;text-decoration:none}.veu_childPage_list .childPage_list_box_inner{position:relative;display:block;overflow:hidden;padding:0 20px;border:3px solid #efefef;-webkit-box-shadow:inset 0 0 0 1px #fff;box-shadow:inset 0 0 0 1px #fff}.veu_childPage_list .childPage_list_title{margin-top:20px;color:#464646;font-size:16px;line-height:1.4}.veu_childPage_list .wp-post-image{float:left;margin-right:1em;margin-bottom:1em;width:30%;height:auto;border:solid 1px #ddd}.veu_childPage_list .childPage_list_body{overflow:hidden;margin-bottom:5px;color:#333;font-size:14px}.veu_childPage_list .childPage_list_body:hover{text-decoration:underline}.veu_childPage_list p{line-height:1.5em}.veu_childPage_list .childPage_list_text{overflow:hidden;margin-bottom:1em}.veu_childPage_list .childPage_list_more{float:right;margin-bottom:20px}.veu_pageList_ancestor{clear:both;margin:2.5em 0 1em;padding:20px 20px 0;border:3px solid #efefef;-webkit-box-shadow:inset 0 0 0 1px #fff;box-shadow:inset 0 0 0 1px #fff}.veu_pageList_ancestor h3{margin:.5em 0}.veu_pageList_ancestor h3 a{color:#333;font-size:16px}.veu_pageList_ancestor ul.pageList{margin-top:1em;padding-left:0}.veu_pageList_ancestor ul.pageList a{display:block;padding:8px 5px;border-bottom:solid 1px #ddd;color:#333;font-size:14px}.veu_pageList_ancestor ul.pageList a:hover{text-decoration:underline}.veu_pageList_ancestor ul.pageList>.page_item{list-style:none}.veu_pageList_ancestor ul.pageList li{margin-bottom:0}.veu_pageList_ancestor ul.pageList ul{margin:0;padding-left:0;padding-bottom:0}.veu_pageList_ancestor ul.pageList ul li{position:relative;list-style:none}.veu_pageList_ancestor ul.pageList ul li:before{position:absolute;top:.26em;left:5px;display:inline-block}.veu_pageList_ancestor ul.pageList ul li a{padding-left:20px}.veu_pageList_ancestor ul.pageList ul li li a{padding-left:30px}.veu_pageList_ancestor ul.pageList ul li li li a{padding-left:40px}.veu_pageList_ancestor .current_page_item>a{font-weight:700}.veu_followSet{margin:30px 0;display:table;table-layout:fixed;width:100%;background-color:#2b2b2b;color:#fff}.veu_followSet .followSet_img{display:table-cell;min-width:240px;background-position:center;background-size:cover}.veu_followSet .followSet_body{display:table-cell;padding:15px;text-align:center;vertical-align:middle;line-height:1.4;font-size:20px}.veu_followSet .followSet_fb_page{margin-top:0;display:block;width:100%;-webkit-transform:scale(1.2);transform:scale(1.2)}.veu_followSet .followSet_tw_follow{width:100%;padding:15px 0 0}.veu_followSet .followSet_feedly{text-align:center}.veu_cta{display:block;overflow:hidden;margin-top:30px;margin-bottom:30px;background-color:#efefef}.veu_cta .cta_title{display:block;overflow:hidden;margin:0;padding:12px 20px 10px;background-color:#333;color:#fff;font-size:22px;line-height:1.2em}.veu_cta .cta_body{display:block;overflow:hidden;padding:1.5em 1.5em 2em;line-height:170%}.veu_cta .cta_body_image{margin-bottom:1.5em}.veu_cta .cta_body_image img{max-width:250px}.veu_cta .cta_body_image_center{display:block;overflow:hidden;text-align:center}.veu_cta .cta_body_image_center img{display:block;margin:0 auto 15px;max-width:100%}.veu_cta .cta_body_txt{display:block;overflow:hidden}.veu_cta .cta_body_link{clear:both;margin-top:1.5em}.veu_contact{display:block;overflow:hidden}.veu_contact .contact_frame{display:block;overflow:hidden;padding:25px 24px 21px;border:3px solid #efefef;background-color:#f9f9f9;-webkit-box-shadow:inset 0 0 0 1px #fff;box-shadow:inset 0 0 0 1px #fff}.veu_contact .contact_txt_catch,.veu_contact .contact_txt_tel,.veu_contact .contact_txt_time{display:block;overflow:hidden}.veu_contact .contact_txt_catch,.veu_contact .contact_txt_time{font-size:14px;line-height:128.6%}.veu_contact .contact_txt_tel{padding:4px 0;font-size:28px;line-height:105%}.veu_contact .contact_bt_subTxt{display:block;overflow:hidden;font-size:12px;margin-top:.4rem}.veu_contact .contact_txt{text-align:center}.veu_contact .contact_bt{display:block}.widget .veu_contact>.contact_bt{display:inline-block;float:none}.veu_insertAds{margin-top:1em;margin-bottom:2em}.veu_relatedPosts>.row{display:-ms-flexbox;display:-webkit-box;display:flex;margin:0;margin-right:-3%;-ms-flex-wrap:wrap;flex-wrap:wrap}.veu_relatedPosts .relatedPosts_item{float:none;margin-right:2.9%;padding-right:0;padding-left:0;width:47%;border-bottom:solid 1px #e5e5e5}.veu_relatedPosts .relatedPosts_item>.media:first-child{border:none}.veu_relatedPosts .relatedPosts_item>.media{padding:1em 0 .8em;margin-top:0;border:none}.veu_relatedPosts .relatedPosts_item>.media .media-body{font-size:14px}.veu_relatedPosts .relatedPosts_item>.media .postList_thumbnail{width:80px;padding-right:15px;margin-bottom:0}.veu_relatedPosts .relatedPosts_item>.media .media-heading{font-size:14px}.veu_relatedPosts .relatedPosts_item:nth-child(1){border-top:solid 1px #e5e5e5}.veu_relatedPosts .relatedPosts_item:nth-child(2){border-top:solid 1px #e5e5e5}.page_top_btn{position:fixed;right:2%;bottom:3%;z-index:99999;width:40px;height:38px;text-indent:100%;white-space:nowrap;overflow:hidden;border:none;background:rgba(0,0,0,.8);outline:1px solid rgba(0,0,0,.8);border:1px solid rgba(255,255,255,.8);background-image:url(../images/to-top-btn-icon.svg);background-size:50%;background-repeat:no-repeat;background-position:center;opacity:0;-webkit-transition:opacity .3s;transition:opacity .3s}.page_top_btn:hover{-webkit-transition:opacity .3s;transition:opacity .3s}.scrolled .page_top_btn{display:block;opacity:1}.veu_fbPagePlugin .fbPagePlugin_body{margin:0 auto;border:4px solid #efefef;background-color:#f9f9f9;text-align:center}iframe.twitter-timeline{margin-right:auto;margin-left:auto;width:740px!important}.veu_postList{margin-bottom:30px}.veu_postList .subSection-title,.veu_postList h1.mainSection-title{margin-bottom:0}.veu_postList ul.postList{margin:0;padding:0}.veu_postList ul.postList li{display:block;clear:both;overflow:hidden;margin:0;padding:15px 0;border-bottom:1px dotted #666;line-height:1.4em}.veu_postList .postList a{color:#464646;text-decoration:none}.veu_postList .postList a:hover{text-decoration:underline}.veu_postList .postList_title{display:block;clear:both;margin:3px 0 0}.veu_postList .postList_meta_items{font-size:14px;color:#666}.veu_postList .postList_date{margin-right:10px;color:#d44950}.veu_postList .postList_date:before{content:"";margin-right:0}.veu_postList .postList_terms a{margin-right:3px;padding:2px 5px 1px;border-radius:3px;background-color:#efefef;font-size:12px}.veu_postList .postList_more{margin:10px 5px 0 0;text-align:right}.veu_postList .postList_miniThumb .postList_item{display:block;overflow:hidden;clear:both;position:relative;padding:15px 0;border-bottom:1px dotted #666;margin-bottom:0}.veu_postList .postList_miniThumb .postList_thumbnail{float:left;margin-right:15px}.veu_postList .postList_miniThumb .postList_thumbnail a{position:relative;display:block;overflow:hidden;border:1px solid #e5e5e5}.veu_postList .postList_miniThumb .postList_thumbnail img{width:80px;height:auto}.veu_postList .postList_miniThumb .postList_body{display:block;overflow:hidden;width:auto}.veu_postList .postList_miniThumb .postList_title{font-size:14px}.mainSection .veu_postList.pt_0 .postList.postList_miniThumb{padding:0;margin-left:0;margin-right:0}.veu_profile .profile{overflow:hidden}.veu_profile .media_outer{position:relative;display:block;overflow:hidden;margin:.8em 0 .8em;-webkit-box-sizing:border-box;box-sizing:border-box}.veu_profile .media_outer img{max-width:100%;height:auto}.veu_profile .media_round{border-radius:50%;width:120px;height:120px;position:relative}.veu_profile .media_round img{position:absolute;left:-9999px}.veu_profile .media_center{margin-left:auto;margin-right:auto}.veu_profile .media_center img{display:block;margin-left:auto;margin-right:auto}.veu_profile .media_float{float:left;margin-right:1em}.veu_profile .media_float+.profile_text{padding-top:.8em}.veu_profile .profile_text{margin-bottom:1em;font-size:14px}.veu_profile .sns_btns{margin:0;padding:0;width:100%}.veu_profile .sns_btns li{float:left;margin-right:.45em;list-style:none;text-align:center}.veu_profile .sns_btns a{display:block;position:relative;width:40px;height:40px;border-radius:23px;color:#fff;text-decoration:none;font-size:20px}.veu_profile .sns_btns a:hover{color:#fff;text-decoration:none;opacity:.8}.veu_profile .sns_btns .icon{position:absolute;top:50%;left:50%;-webkit-transform:translateY(-50%) translateX(-50%);transform:translateY(-50%) translateX(-50%)}.veu_profile .sns_btns .facebook_btn a{background:#3b5998}.veu_profile .sns_btns .twitter_btn a{background:#55acee}.veu_profile .sns_btns .mail_btn a{background:#2f915f}.veu_profile .sns_btns .youtube_btn a{background:#c81d1c}.veu_profile .sns_btns .rss_btn a{background:#f26522}.veu_profile .sns_btns .instagram_btn a{background:#3f729b}.veu_profile .sns_btns .linkedin_btn a{background:#0077b5}.veu_3prArea .subSection-title{font-size:18px;margin-top:.8em}.veu_3prArea .summary{margin-bottom:.5em;font-size:14px;line-height:1.6em}.veu_3prArea .linkurl a{text-decoration:none}.veu_3prArea_image{margin-bottom:.8em;border:1px solid #e5e5e5}.veu_3prArea_image .image_pc{display:block}.veu_3prArea_image .image_sp{display:none}.veu_3prArea_image img{width:100%}.veu_3prArea_image_link{border:1px solid #fff;display:block;overflow:hidden}.prBlock a{color:#333}.prBlock a:hover{color:#333;text-decoration:none}.prBlock a .prBlock_summary:hover{text-decoration:underline}.prBlock .prBlock_icon_outer{display:block;position:relative;margin:0 auto;width:80px;height:80px;border-radius:50%}.prBlock .prBlock_icon{position:absolute;top:50%;left:50%;-webkit-transform:translateY(-50%) translateX(-50%);transform:translateY(-50%) translateX(-50%);font-size:36px}.prBlock .prBlock_title{margin-top:.9em;margin-bottom:.7em;text-align:center;font-size:18px;line-height:1.4em}.prBlock .prBlock_image{position:relative;display:block;width:120px;height:120px;margin:0 auto;overflow:hidden;border-radius:50%;text-indent:-9999px}.prBlock .prBlock_summary{margin-bottom:.5em;text-align:center;font-size:14px;line-height:1.6em}.prBlock_icon{color:#fff}.veu_button i,.veu_button svg{margin-left:.3em;margin-right:.3em}.veu_button .button_mainText,.veu_button .button_subText{display:block}.veu_button .btn.btn-sm{padding-top:.6em;padding-bottom:.45em}.veu_button .btn{padding-top:.8em;padding-bottom:.6em}.veu_button .btn.btn-lg{padding-top:.8em;padding-bottom:.7em}.veu_banner{text-align:center;display:block;overflow:hidden}@media (min-width:481px){.veu_followSet .followSet_body{padding:40px}.veu_followSet .followSet_title{font-size:18px;margin-bottom:10px}}@media (min-width:541px){.veu_childPage_list{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-flex-wrap:wrap;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-justify-content:space-between}.veu_childPage_list .childPage_list_box{width:48%;display:-webkit-box;display:-ms-flexbox;display:flex}}@media (min-width:768px){.container{width:750px}.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9{float:left}.col-sm-12{width:100%}.col-sm-11{width:91.66666667%}.col-sm-10{width:83.33333333%}.col-sm-9{width:75%}.col-sm-8{width:66.66666667%}.col-sm-7{width:58.33333333%}.col-sm-6{width:50%}.col-sm-5{width:41.66666667%}.col-sm-4{width:33.33333333%}.col-sm-3{width:25%}.col-sm-2{width:16.66666667%}.col-sm-1{width:8.33333333%}.col-sm-pull-12{right:100%}.col-sm-pull-11{right:91.66666667%}.col-sm-pull-10{right:83.33333333%}.col-sm-pull-9{right:75%}.col-sm-pull-8{right:66.66666667%}.col-sm-pull-7{right:58.33333333%}.col-sm-pull-6{right:50%}.col-sm-pull-5{right:41.66666667%}.col-sm-pull-4{right:33.33333333%}.col-sm-pull-3{right:25%}.col-sm-pull-2{right:16.66666667%}.col-sm-pull-1{right:8.33333333%}.col-sm-pull-0{right:auto}.col-sm-push-12{left:100%}.col-sm-push-11{left:91.66666667%}.col-sm-push-10{left:83.33333333%}.col-sm-push-9{left:75%}.col-sm-push-8{left:66.66666667%}.col-sm-push-7{left:58.33333333%}.col-sm-push-6{left:50%}.col-sm-push-5{left:41.66666667%}.col-sm-push-4{left:33.33333333%}.col-sm-push-3{left:25%}.col-sm-push-2{left:16.66666667%}.col-sm-push-1{left:8.33333333%}.col-sm-push-0{left:auto}.col-sm-offset-12{margin-left:100%}.col-sm-offset-11{margin-left:91.66666667%}.col-sm-offset-10{margin-left:83.33333333%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-8{margin-left:66.66666667%}.col-sm-offset-7{margin-left:58.33333333%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-5{margin-left:41.66666667%}.col-sm-offset-4{margin-left:33.33333333%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-2{margin-left:16.66666667%}.col-sm-offset-1{margin-left:8.33333333%}.col-sm-offset-0{margin-left:0}.veu_leadTxt,p.veu_leadTxt{font-size:2em;margin-bottom:.7em}.veu_cta .cta_body_image_right{float:right;margin-left:30px}.veu_cta .cta_body_image_left{float:left;margin-right:30px}}@media (min-width:992px){.container{width:970px}.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9{float:left}.col-md-12{width:100%}.col-md-11{width:91.66666667%}.col-md-10{width:83.33333333%}.col-md-9{width:75%}.col-md-8{width:66.66666667%}.col-md-7{width:58.33333333%}.col-md-6{width:50%}.col-md-5{width:41.66666667%}.col-md-4{width:33.33333333%}.col-md-3{width:25%}.col-md-2{width:16.66666667%}.col-md-1{width:8.33333333%}.col-md-pull-12{right:100%}.col-md-pull-11{right:91.66666667%}.col-md-pull-10{right:83.33333333%}.col-md-pull-9{right:75%}.col-md-pull-8{right:66.66666667%}.col-md-pull-7{right:58.33333333%}.col-md-pull-6{right:50%}.col-md-pull-5{right:41.66666667%}.col-md-pull-4{right:33.33333333%}.col-md-pull-3{right:25%}.col-md-pull-2{right:16.66666667%}.col-md-pull-1{right:8.33333333%}.col-md-pull-0{right:auto}.col-md-push-12{left:100%}.col-md-push-11{left:91.66666667%}.col-md-push-10{left:83.33333333%}.col-md-push-9{left:75%}.col-md-push-8{left:66.66666667%}.col-md-push-7{left:58.33333333%}.col-md-push-6{left:50%}.col-md-push-5{left:41.66666667%}.col-md-push-4{left:33.33333333%}.col-md-push-3{left:25%}.col-md-push-2{left:16.66666667%}.col-md-push-1{left:8.33333333%}.col-md-push-0{left:auto}.col-md-offset-12{margin-left:100%}.col-md-offset-11{margin-left:91.66666667%}.col-md-offset-10{margin-left:83.33333333%}.col-md-offset-9{margin-left:75%}.col-md-offset-8{margin-left:66.66666667%}.col-md-offset-7{margin-left:58.33333333%}.col-md-offset-6{margin-left:50%}.col-md-offset-5{margin-left:41.66666667%}.col-md-offset-4{margin-left:33.33333333%}.col-md-offset-3{margin-left:25%}.col-md-offset-2{margin-left:16.66666667%}.col-md-offset-1{margin-left:8.33333333%}.col-md-offset-0{margin-left:0}.mainSection .veu_postList.pt_0.postList_item .postList_thumbnail{margin-right:30px;margin-left:0}.mainSection .veu_postList.pt_0.postList_item.even .postList_thumbnail{margin-left:30px;margin-right:0}}@media (min-width:1200px){.container{width:1170px}.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9{float:left}.col-lg-12{width:100%}.col-lg-11{width:91.66666667%}.col-lg-10{width:83.33333333%}.col-lg-9{width:75%}.col-lg-8{width:66.66666667%}.col-lg-7{width:58.33333333%}.col-lg-6{width:50%}.col-lg-5{width:41.66666667%}.col-lg-4{width:33.33333333%}.col-lg-3{width:25%}.col-lg-2{width:16.66666667%}.col-lg-1{width:8.33333333%}.col-lg-pull-12{right:100%}.col-lg-pull-11{right:91.66666667%}.col-lg-pull-10{right:83.33333333%}.col-lg-pull-9{right:75%}.col-lg-pull-8{right:66.66666667%}.col-lg-pull-7{right:58.33333333%}.col-lg-pull-6{right:50%}.col-lg-pull-5{right:41.66666667%}.col-lg-pull-4{right:33.33333333%}.col-lg-pull-3{right:25%}.col-lg-pull-2{right:16.66666667%}.col-lg-pull-1{right:8.33333333%}.col-lg-pull-0{right:auto}.col-lg-push-12{left:100%}.col-lg-push-11{left:91.66666667%}.col-lg-push-10{left:83.33333333%}.col-lg-push-9{left:75%}.col-lg-push-8{left:66.66666667%}.col-lg-push-7{left:58.33333333%}.col-lg-push-6{left:50%}.col-lg-push-5{left:41.66666667%}.col-lg-push-4{left:33.33333333%}.col-lg-push-3{left:25%}.col-lg-push-2{left:16.66666667%}.col-lg-push-1{left:8.33333333%}.col-lg-push-0{left:auto}.col-lg-offset-12{margin-left:100%}.col-lg-offset-11{margin-left:91.66666667%}.col-lg-offset-10{margin-left:83.33333333%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-8{margin-left:66.66666667%}.col-lg-offset-7{margin-left:58.33333333%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-5{margin-left:41.66666667%}.col-lg-offset-4{margin-left:33.33333333%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-2{margin-left:16.66666667%}.col-lg-offset-1{margin-left:8.33333333%}.col-lg-offset-0{margin-left:0}.veu_contact p.contact_txt{margin-bottom:0}.veu_contact .contact_txt{float:left;text-align:left}.veu_contact .contact_bt{float:right;padding:.7em 2em}}@media screen and (max-width:992px){.prBlock{margin-bottom:1.5em}}@media (max-width:971px){.veu_insertAds{margin-bottom:.5em}.veu_insertAds .col-md-6{margin-bottom:1em}}@media (max-width:768px){.veu_relatedPosts .relatedPosts_item{display:block;width:100%}.veu_relatedPosts .relatedPosts_item:nth-child(2){border-top:none}}@media screen and (max-width:768px){.veu_3prArea .prArea{margin-bottom:1em;display:block;overflow:hidden}.veu_3prArea .image_pc{display:none}.veu_3prArea .image_sp{display:block}.veu_3prArea .linkurl{margin-bottom:1.5em}.veu_3prArea_image{width:138px;margin:0 1em 0 0;float:left}}@media screen and (max-width:767px){.table-responsive{width:100%;margin-bottom:15px;overflow-y:hidden;-ms-overflow-style:-ms-autohiding-scrollbar;border:1px solid #ddd}.table-responsive>.table{margin-bottom:0}.table-responsive>.table>tbody>tr>td,.table-responsive>.table>tbody>tr>th,.table-responsive>.table>tfoot>tr>td,.table-responsive>.table>tfoot>tr>th,.table-responsive>.table>thead>tr>td,.table-responsive>.table>thead>tr>th{white-space:nowrap}.table-responsive>.table-bordered{border:0}.table-responsive>.table-bordered>tbody>tr>td:first-child,.table-responsive>.table-bordered>tbody>tr>th:first-child,.table-responsive>.table-bordered>tfoot>tr>td:first-child,.table-responsive>.table-bordered>tfoot>tr>th:first-child,.table-responsive>.table-bordered>thead>tr>td:first-child,.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.table-responsive>.table-bordered>tbody>tr>td:last-child,.table-responsive>.table-bordered>tbody>tr>th:last-child,.table-responsive>.table-bordered>tfoot>tr>td:last-child,.table-responsive>.table-bordered>tfoot>tr>th:last-child,.table-responsive>.table-bordered>thead>tr>td:last-child,.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.table-responsive>.table-bordered>tbody>tr:last-child>td,.table-responsive>.table-bordered>tbody>tr:last-child>th,.table-responsive>.table-bordered>tfoot>tr:last-child>td,.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}}@media (max-width:767px){.media .postList_thumbnail{padding-right:20px}.media .media-body .media-heading{font-size:1.2em;line-height:1.3em;margin-bottom:.5em}.veu_socialSet.veu_contentAddSection ul{-ms-flex-wrap:wrap;flex-wrap:wrap}.veu_socialSet.veu_contentAddSection ul li{width:48%;margin-bottom:9px}.veu_socialSet.veu_contentAddSection ul li:nth-child(even){margin-right:0}.veu_socialSet.veu_contentAddSection ul li.sb_icon a{padding:8px 10px}.pocket-count,.veu_count_sns_fb,.veu_count_sns_hb{bottom:2px}.veu_childPage_list .wp-post-image{width:25%}.veu_cta .cta_body_image img{display:block;margin:0 auto 1.5em;max-width:100%}}@media (max-width:500px){.media .postList_thumbnail{width:100px}}@media (max-width:480px){.veu_followSet .followSet_title{font-size:12px;margin-bottom:0}}
 
 
 
 
 
 
 
 
 
 
 
 
{plugins → inc}/add-body-class.php RENAMED
File without changes
inc/auto-eyecatch/auto-eyecatch.php ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ VEU_Metabox 内の get_post_type が実行タイミングによっては
4
+ カスタム投稿タイプマネージャーで作成した投稿タイプが取得できないために
5
+ admin_menu のタイミングで読み込んでいる
6
+ */
7
+ add_action(
8
+ 'admin_menu', function() {
9
+ require_once( dirname( __FILE__ ) . '/class-veu-metabox-eyecatch.php' );
10
+ }
11
+ );
12
+
13
+ require_once( dirname( __FILE__ ) . '/class-veu-auto-eyecatch.php' );
inc/auto-eyecatch/class-veu-auto-eyecatch.php ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * VkExUnit auto_eyecatch.php
4
+ * insert thumbnail for top of content automatically
5
+ *
6
+ * @package VkExUnit
7
+ * @author shoji imamura<imamura@vektor-inc.co.jp>
8
+ * @since 8/Jul/2015
9
+ */
10
+
11
+ class VEU_Auto_Eyecatch {
12
+ private static $instance;
13
+
14
+ public static function instance() {
15
+ if ( isset( self::$instance ) ) {
16
+ return self::$instance; }
17
+
18
+ self::$instance = new VEU_Auto_Eyecatch;
19
+ self::$instance->run_init();
20
+ return self::$instance;
21
+ }
22
+
23
+ private function __construct() {
24
+ /*** do noting */
25
+ }
26
+
27
+
28
+ protected function run_init() {
29
+ add_filter( 'the_content', array( $this, 'set_eyecatch' ), 1 );
30
+ }
31
+
32
+ public static function post_types() {
33
+
34
+ $allowed_post_types = apply_filters( 'veu_auto_eye_catch_post_types', array( 'post', 'page' ) );
35
+
36
+ return $allowed_post_types;
37
+ }
38
+
39
+ public static function is_my_turn() {
40
+
41
+ if ( vkExUnit_is_excerpt() ) {
42
+ return false; }
43
+
44
+ global $is_pagewidget;
45
+ if ( $is_pagewidget ) {
46
+ return false; }
47
+
48
+ if ( get_the_id() ) {
49
+
50
+ $post_types = self::post_types();
51
+
52
+ if ( in_array( get_post_type( get_the_id() ), $post_types ) ) {
53
+
54
+ if ( has_post_thumbnail( get_the_id() ) ) {
55
+
56
+ if ( ! get_post_meta( get_the_id(), 'vkExUnit_EyeCatch_disable', true ) ) {
57
+
58
+ return true;
59
+ }
60
+ }
61
+ }
62
+ }
63
+
64
+ return false;
65
+ }
66
+
67
+
68
+ public function set_eyecatch( $content ) {
69
+
70
+ if ( ! self::is_my_turn() ) {
71
+ return $content; }
72
+
73
+ $imageHtml = self::render_eyecatch( get_the_id() );
74
+
75
+ $content = $imageHtml . $content;
76
+
77
+ return $content;
78
+ }
79
+
80
+
81
+ public function render_eyecatch( $post_id ) {
82
+ $html = '';
83
+
84
+ $image_tag = get_the_post_thumbnail( $post_id, 'large' );
85
+
86
+ $html = '<div class="veu_autoEyeCatchBox">' . $image_tag . '</div>';
87
+ return $html;
88
+ }
89
+ }
90
+
91
+ VEU_Auto_Eyecatch::instance();
inc/auto-eyecatch/class-veu-metabox-eyecatch.php ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class VEU_Metabox_Eyecatch extends VEU_Metabox {
4
+
5
+ public function __construct( $args = array() ) {
6
+
7
+ $this->args = array(
8
+ 'slug' => 'veu_eyecatch',
9
+ 'cf_name' => 'vkExUnit_EyeCatch_disable',
10
+ 'title' => __( 'Automatic EyeCatch', 'vk-all-in-one-expansion-unit' ),
11
+ 'priority' => 50,
12
+ 'post_types' => apply_filters( 'veu_auto_eye_catch_post_types', array( 'post', 'page' ) ),
13
+ );
14
+
15
+ parent::__construct( $this->args );
16
+
17
+ }
18
+
19
+ /**
20
+ * metabox_body_form
21
+ * Form inner
22
+ *
23
+ * @return [type] [description]
24
+ */
25
+ public function metabox_body_form( $cf_value ) {
26
+
27
+ if ( $cf_value ) {
28
+ $checked = ' checked';
29
+ } else {
30
+ $checked = '';
31
+ }
32
+
33
+ $label = __( 'Do not set eyecatch image automatic.', 'vk-all-in-one-expansion-unit' );
34
+
35
+ $form = '';
36
+ $form .= '<ul>';
37
+ $form .= '<li><label>' . '<input type="checkbox" id="' . esc_attr( $this->args['cf_name'] ) . '" name="' . esc_attr( $this->args['cf_name'] ) . '" value="true"' . $checked . '> ' . $label . '</label></li>';
38
+ $form .= '</ul>';
39
+
40
+ return $form;
41
+ }
42
+
43
+ } // class VEU_Metabox_Eyecatch {
44
+
45
+ $veu_metabox_eyecatch = new VEU_Metabox_Eyecatch();
{plugins → inc}/bootstrap.php RENAMED
@@ -6,7 +6,7 @@ function vkExUnit_bootstrap_customize_register( $wp_customize ) {
6
  if ( is_null( $wp_customize->get_section( 'vkExUnit_settings' ) ) ) {
7
  $wp_customize->add_section(
8
  'vkExUnit_settings', array(
9
- 'title' => veu_get_prefix() . __( 'Settings', 'vkExUnit' ),
10
  'priority' => 500,
11
  )
12
  );
@@ -33,7 +33,7 @@ function vkExUnit_bootstrap_customize_register( $wp_customize ) {
33
  $wp_customize->add_control(
34
  new WP_Customize_Color_Control(
35
  $wp_customize, 'color_key', array(
36
- 'label' => __( 'Key color', 'vkExUnit' ),
37
  'section' => 'vkExUnit_settings',
38
  'settings' => 'vkExUnit_colors[color_key]',
39
  'priority' => 502,
@@ -44,7 +44,7 @@ function vkExUnit_bootstrap_customize_register( $wp_customize ) {
44
  $wp_customize->add_control(
45
  new WP_Customize_Color_Control(
46
  $wp_customize, 'color_key_dark', array(
47
- 'label' => __( 'Key color(dark)', 'vkExUnit' ),
48
  'section' => 'vkExUnit_settings',
49
  'settings' => 'vkExUnit_colors[color_key_dark]',
50
  'priority' => 503,
6
  if ( is_null( $wp_customize->get_section( 'vkExUnit_settings' ) ) ) {
7
  $wp_customize->add_section(
8
  'vkExUnit_settings', array(
9
+ 'title' => veu_get_prefix() . __( 'Settings', 'vk-all-in-one-expansion-unit' ),
10
  'priority' => 500,
11
  )
12
  );
33
  $wp_customize->add_control(
34
  new WP_Customize_Color_Control(
35
  $wp_customize, 'color_key', array(
36
+ 'label' => __( 'Key color', 'vk-all-in-one-expansion-unit' ),
37
  'section' => 'vkExUnit_settings',
38
  'settings' => 'vkExUnit_colors[color_key]',
39
  'priority' => 502,
44
  $wp_customize->add_control(
45
  new WP_Customize_Color_Control(
46
  $wp_customize, 'color_key_dark', array(
47
+ 'label' => __( 'Key color(dark)', 'vk-all-in-one-expansion-unit' ),
48
  'section' => 'vkExUnit_settings',
49
  'settings' => 'vkExUnit_colors[color_key_dark]',
50
  'priority' => 503,
inc/call-to-action/call-to-action-config.php ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /*
4
+ Load modules
5
+ /*-------------------------------------------*/
6
+ if ( ! class_exists( 'Vk_Call_To_Action' ) ) {
7
+ require_once( 'package/class-vk-call-to-action.php' );
8
+
9
+ global $vk_call_to_action_textdomain;
10
+ $vk_call_to_action_textdomain = 'vk-all-in-one-expansion-unit';
11
+ }
{plugins/call-to-action → inc/call-to-action/package}/_scss/_call-to-action.scss RENAMED
File without changes
inc/call-to-action/package/class-veu-metabox-cta.php ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ if ( ! class_exists( 'VEU_Metabox' ) ) {
4
+ return;
5
+ }
6
+
7
+ class VEU_Metabox_CTA extends VEU_Metabox {
8
+
9
+ public function __construct( $args = array() ) {
10
+
11
+ $this->args = array(
12
+ 'slug' => 'veu_noindex',
13
+ 'cf_name' => 'vkexunit_cta_each_option',
14
+ 'title' => __( 'Call to Action setting', 'vk-all-in-one-expansion-unit' ),
15
+ 'priority' => 50,
16
+ );
17
+
18
+ parent::__construct( $this->args );
19
+
20
+ }
21
+
22
+ /**
23
+ * metabox_body_form
24
+ * Form inner
25
+ *
26
+ * @return [type] [description]
27
+ */
28
+ public function metabox_body_form( $cf_value ) {
29
+
30
+ $form = '';
31
+
32
+ global $vk_call_to_action_textdomain;
33
+
34
+ $ctas = Vk_Call_To_Action::get_ctas( true, ' - ' );
35
+ // ランダムを先頭に追加
36
+ array_unshift(
37
+ $ctas, array(
38
+ 'key' => 'random',
39
+ 'label' => __( 'Random', 'vk-all-in-one-expansion-unit' ),
40
+ )
41
+ );
42
+ array_unshift(
43
+ $ctas, array(
44
+ 'key' => 'disable',
45
+ 'label' => __( 'Disable display', 'vk-all-in-one-expansion-unit' ),
46
+ )
47
+ );
48
+ array_unshift(
49
+ $ctas, array(
50
+ 'key' => 0,
51
+ 'label' => __( 'Follow common setting', 'vk-all-in-one-expansion-unit' ),
52
+ )
53
+ );
54
+
55
+ $form .= '<select name="vkexunit_cta_each_option" id="vkexunit_cta_each_option">';
56
+ foreach ( $ctas as $cta ) {
57
+ $selected = ( $cta['key'] == $cf_value ) ? ' selected' : '';
58
+ $form .= '<option value="' . $cta['key'] . '"' . $selected . '>' . esc_html( $cta['label'] ) . '</option>';
59
+ }
60
+ $form .= '</select>';
61
+ $form .= '<p>';
62
+ $form .= '<a href="' . esc_url( Vk_Call_To_Action::setting_page_url() ) . '" class="button button-default" target="_blank">' . __( 'CTA common setting', 'vk-all-in-one-expansion-unit' ) . '</a>';
63
+ $form .= '<a href="' . admin_url( 'edit.php?post_type=cta' ) . '" class="button button-default" target="_blank">' . __( 'Show CTA index page', 'vk-all-in-one-expansion-unit' ) . '</a>';
64
+ $form .= '</p>';
65
+
66
+ return $form;
67
+ }
68
+
69
+ } // class VEU_Metabox_CTA {
70
+
71
+ $veu_metabox_noindex = new VEU_Metabox_CTA();
{plugins/call-to-action → inc/call-to-action/package}/class-vk-call-to-action.php RENAMED
@@ -1,13 +1,6 @@
1
  <?php
2
 
3
- /*
4
- このファイルの元ファイルは
5
- https://github.com/vektor-inc/vektor-wp-libraries
6
- にあります。修正の際は上記リポジトリのデータを修正してください。
7
- */
8
-
9
  // namespace Vektor\ExUnit\Package\Cta;
10
-
11
  if ( ! class_exists( 'Vk_Call_To_Action' ) ) {
12
 
13
  class Vk_Call_To_Action {
@@ -17,9 +10,9 @@ if ( ! class_exists( 'Vk_Call_To_Action' ) ) {
17
  const CONTENT_NUMBER = 100;
18
 
19
  public static function init() {
 
20
  add_action( 'init', array( __CLASS__, 'set_posttype' ) );
21
- add_action( 'vkExUnit_package_init', array( __CLASS__, 'option_init' ) );
22
- add_action( 'admin_menu', array( __CLASS__, 'add_custom_field' ) );
23
  add_action( 'save_post', array( __CLASS__, 'save_custom_field' ) );
24
  add_action( 'widgets_init', array( __CLASS__, 'widget_init' ) );
25
  if ( veu_content_filter_state() == 'content' ) {
@@ -28,10 +21,17 @@ if ( ! class_exists( 'Vk_Call_To_Action' ) ) {
28
  add_action( 'loop_end', array( __CLASS__, 'set_content_loopend' ), self::CONTENT_NUMBER, 1 );
29
  }
30
  require_once dirname( __FILE__ ) . '/widget-call-to-action.php';
31
- }
32
 
33
- public static function widget_init() {
34
- return register_widget( 'Widget_CTA' );
 
 
 
 
 
 
 
 
35
  }
36
 
37
  public static function set_content_loopend( $query ) {
@@ -44,6 +44,7 @@ if ( ! class_exists( 'Vk_Call_To_Action' ) ) {
44
  echo self::content_filter( '' );
45
  }
46
 
 
47
 
48
  public static function option_init() {
49
  vkExUnit_register_setting(
@@ -54,7 +55,6 @@ if ( ! class_exists( 'Vk_Call_To_Action' ) ) {
54
  );
55
  }
56
 
57
-
58
  public static function set_posttype() {
59
  global $vk_call_to_action_textdomain;
60
  $labels = array(
@@ -79,34 +79,124 @@ if ( ! class_exists( 'Vk_Call_To_Action' ) ) {
79
  'has_archive' => false,
80
  'hierarchical' => false,
81
  'taxonomies' => array(),
82
- 'supports' => array( 'title' ),
 
83
  );
84
  register_post_type( self::POST_TYPE, $args );
85
  }
86
 
87
 
88
- public static function add_custom_field() {
89
  global $vk_call_to_action_textdomain;
90
- $post_types = get_post_types(
91
- array(
92
- '_builtin' => false,
93
- 'public' => true,
94
- )
95
- );
96
- foreach ( $post_types as $key => $post ) {
97
- add_meta_box( 'vkExUnit_cta', __( 'Call to Action setting', $vk_call_to_action_textdomain ), array( __CLASS__, 'render_meta_box' ), $post, 'normal', 'high' );
98
- }
99
- add_meta_box( 'vkExUnit_cta', __( 'Call to Action setting', $vk_call_to_action_textdomain ), array( __CLASS__, 'render_meta_box' ), 'page', 'normal', 'high' );
100
- add_meta_box( 'vkExUnit_cta', __( 'Call to Action setting', $vk_call_to_action_textdomain ), array( __CLASS__, 'render_meta_box' ), 'post', 'normal', 'high' );
101
-
102
  add_meta_box( 'vkExUnit_cta_url', __( 'CTA Contents', $vk_call_to_action_textdomain ), array( __CLASS__, 'render_meta_box_cta' ), self::POST_TYPE, 'normal', 'high' );
103
  }
104
 
 
105
  /**
106
- * CTAメイン設定画面のurl
107
- * ExUnitと単体プラグインなどによって変動する
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
108
  * @return [type] [description]
109
  */
 
 
 
 
 
 
 
 
 
 
110
  public static function setting_page_url() {
111
  if ( veu_is_cta_active() ) {
112
  $setting_page_url = admin_url( 'admin.php?page=vkExUnit_main_setting#vkExUnit_cta_settings' );
@@ -116,47 +206,6 @@ if ( ! class_exists( 'Vk_Call_To_Action' ) ) {
116
  return $setting_page_url;
117
  }
118
 
119
- public static function render_meta_box() {
120
- global $vk_call_to_action_textdomain;
121
- echo '<input type="hidden" name="_nonce_vkExUnit_custom_cta" id="_nonce_vkExUnit__custom_field_metaKeyword" value="' . wp_create_nonce( plugin_basename( __FILE__ ) ) . '" />';
122
-
123
- $ctas = self::get_ctas( true, ' - ' );
124
- // ランダムを先頭に追加
125
- array_unshift(
126
- $ctas, array(
127
- 'key' => 'random',
128
- 'label' => __( 'Random', $vk_call_to_action_textdomain ),
129
- )
130
- );
131
- array_unshift(
132
- $ctas, array(
133
- 'key' => 'disable',
134
- 'label' => __( 'Disable display', $vk_call_to_action_textdomain ),
135
- )
136
- );
137
- array_unshift(
138
- $ctas, array(
139
- 'key' => 0,
140
- 'label' => __( 'Follow common setting', $vk_call_to_action_textdomain ),
141
- )
142
- );
143
- $now = get_post_meta( get_the_id(), 'vkexunit_cta_each_option', true );
144
- ?>
145
- <input type="hidden" name="_vkExUnit_cta_switch" value="cta_number" />
146
-
147
- <select name="vkexunit_cta_each_option" id="vkexunit_cta_each_option">
148
- <?php foreach ( $ctas as $cta ) : ?>
149
- <option value="<?php echo $cta['key']; ?>" <?php echo( $cta['key'] == $now ) ? 'selected' : ''; ?> ><?php echo $cta['label']; ?></option>
150
- <?php endforeach; ?>
151
- </select>
152
- <p>
153
- <a href="<?php echo self::setting_page_url(); ?>" class="button button-default" target="_blank"><?php _e( 'CTA common setting', $vk_call_to_action_textdomain ); ?></a>
154
- <a href="<?php echo admin_url( 'edit.php?post_type=cta' ); ?>" class="button button-default" target="_blank"><?php _e( 'Show CTA index page', $vk_call_to_action_textdomain ); ?></a>
155
- </p>
156
- <?php
157
- }
158
-
159
-
160
  public static function render_meta_box_cta() {
161
 
162
  global $vk_call_to_action_textdomain;
@@ -216,6 +265,10 @@ if ( ! class_exists( 'Vk_Call_To_Action' ) ) {
216
  });
217
  </script>
218
  <input type="hidden" name="_vkExUnit_cta_switch" value="cta_content" />
 
 
 
 
219
  <table class="form-table">
220
  <tr>
221
  <th><?php _e( 'CTA image', $vk_call_to_action_textdomain ); ?></th>
@@ -275,7 +328,7 @@ if ( class_exists( 'Vk_Font_Awesome_Versions' ) ) {
275
  ?>
276
  <label for="vkExUnit_cta_url_blank"><?php _e( 'Target window', $vk_call_to_action_textdomain ); ?></label></th><td>
277
  <input type="checkbox" id="vkExUnit_cta_url_blank" name="vkExUnit_cta_url_blank" value="window_self"<?php echo $checked; ?> />
278
- <label for="vkExUnit_cta_url_blank"><?php _e( 'Open in a self window', 'vkExUnit' ); ?></label>
279
  </td></tr>
280
  <tr><th><label for="vkExUnit_cta_text"><?php _e( 'Text message', $vk_call_to_action_textdomain ); ?>
281
  </th>
@@ -287,98 +340,11 @@ if ( class_exists( 'Vk_Font_Awesome_Versions' ) ) {
287
  <?php
288
  }
289
 
290
- /**
291
- * [save_custom_field description]
292
- * @param [type] $post_id [description]
293
- * @return [type] [description]
294
- */
295
- public static function save_custom_field( $post_id ) {
296
- if ( ! isset( $_POST['_vkExUnit_cta_switch'] ) ) {
297
- return $post_id; }
298
- $noonce = isset( $_POST['_nonce_vkExUnit_custom_cta'] ) ? htmlspecialchars( $_POST['_nonce_vkExUnit_custom_cta'] ) : null;
299
-
300
- // if autosave is to deny
301
- if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {
302
- return $post_id; }
303
-
304
- if ( ! wp_verify_nonce( $noonce, plugin_basename( __FILE__ ) ) ) {
305
- return $post_id;
306
- }
307
-
308
- if ( $_POST['_vkExUnit_cta_switch'] == 'cta_number' ) {
309
- $data = $_POST['vkexunit_cta_each_option'];
310
-
311
- if ( get_post_meta( $post_id, 'vkexunit_cta_each_option' ) == '' ) {
312
- add_post_meta( $post_id, 'vkexunit_cta_each_option', $data, true );
313
- } elseif ( $data != get_post_meta( $post_id, 'vkexunit_cta_each_option', true ) ) {
314
- update_post_meta( $post_id, 'vkexunit_cta_each_option', $data );
315
- } elseif ( ! $data ) {
316
- delete_post_meta( $post_id, 'vkexunit_cta_each_option', get_post_meta( $post_id, 'vkexunit_cta_each_option', true ) );
317
- }
318
- return $post_id;
319
- } elseif ( $_POST['_vkExUnit_cta_switch'] == 'cta_content' ) {
320
-
321
- // カスタムフィールドの設定
322
- $custom_fields = array(
323
- 'vkExUnit_cta_img' => array(
324
- 'escape_type' => '',
325
- ),
326
- 'vkExUnit_cta_img_position' => array(
327
- 'escape_type' => '',
328
- ),
329
- 'vkExUnit_cta_button_text' => array(
330
- 'escape_type' => 'stripslashes',
331
- ),
332
- 'vkExUnit_cta_button_icon' => array(
333
- 'escape_type' => 'stripslashes',
334
- ),
335
- 'vkExUnit_cta_button_icon_before' => array(
336
- 'escape_type' => 'stripslashes',
337
- ),
338
- 'vkExUnit_cta_button_icon_after' => array(
339
- 'escape_type' => 'stripslashes',
340
- ),
341
- 'vkExUnit_cta_url' => array(
342
- 'escape_type' => '',
343
- ),
344
- 'vkExUnit_cta_url_blank' => array(
345
- 'escape_type' => '',
346
- ),
347
- 'vkExUnit_cta_text' => array(
348
- 'escape_type' => 'stripslashes',
349
- ),
350
- );
351
-
352
- // カスタムフィールドの保存
353
- foreach ( $custom_fields as $custom_field_name => $custom_field_options ) {
354
-
355
- if ( isset( $_POST[ $custom_field_name ] ) ) {
356
- if ( isset( $custom_field_name['escape_type'] ) && $custom_field_name['escape_type'] == 'stripslashes' ) {
357
- $data = stripslashes( $_POST[ $custom_field_name ] );
358
- } else {
359
- $data = $_POST[ $custom_field_name ];
360
- }
361
- }
362
-
363
- if ( get_post_meta( $post_id, $custom_field_name ) == '' ) {
364
- // データが今までなかったらカスタムフィールドに新規保存
365
- add_post_meta( $post_id, $custom_field_name, $data, true );
366
- } elseif ( $data != get_post_meta( $post_id, $custom_field_name, true ) ) {
367
- // 保存されてたデータと送信されてきたデータが違ったら更新
368
- update_post_meta( $post_id, $custom_field_name, $data );
369
- } elseif ( ! $data ) {
370
- // データが送信されてこなかった(空のデータが送られてきた)らフィールドの値を削除
371
- delete_post_meta( $post_id, $custom_field_name, get_post_meta( $post_id, $custom_field_name, true ) );
372
- }
373
- } // foreach ( $custom_fields as $key => $custom_field_name ) {
374
-
375
- return $post_id;
376
- }
377
- }
378
 
379
 
380
  /**
381
  * [get_cta_post description]
 
382
  * @param [type] $id [description]
383
  * @return [type] [description]
384
  */
@@ -396,7 +362,16 @@ if ( class_exists( 'Vk_Font_Awesome_Versions' ) ) {
396
  }
397
 
398
 
 
 
 
 
 
 
399
  public static function render_cta_content( $id ) {
 
 
 
400
  if ( ! $id ) {
401
  return ''; }
402
  $post = self::get_cta_post( $id );
@@ -405,15 +380,28 @@ if ( class_exists( 'Vk_Font_Awesome_Versions' ) ) {
405
  if ( ! $post ) {
406
  return ''; }
407
 
408
- include dirname( __FILE__ ) . '/view-actionbox.php';
409
- return $content;
 
 
 
 
 
 
 
 
 
 
 
 
 
410
  }
411
 
412
  public static function cta_id_random() {
413
  // ランダムに抽出したCTAの投稿IDを返す
414
  // CTAの投稿をランダムで1件取得
415
  $args = array(
416
- 'post_type' => self::POST_TYPE, //投稿タイプを指定
417
  'posts_per_page' => 1, // 1ページでの表示件数を指定
418
  'orderby' => 'rand', // 表示順をランダムで取得
419
  );
@@ -449,9 +437,9 @@ if ( class_exists( 'Vk_Font_Awesome_Versions' ) ) {
449
  return $post_config;
450
  }
451
 
452
- ////////////////////////////////////////
453
  // 共通設定を使用の場合
454
- ////////////////////////////////////////
455
  // 今表示している記事の投稿タイプを取得
456
  $post_type = get_post_type( $id );
457
  // 投稿タイプ別にどのCTAを共通設定として表示するかの情報を取得
@@ -517,13 +505,16 @@ if ( class_exists( 'Vk_Font_Awesome_Versions' ) ) {
517
  if ( ! $option ) {
518
  $current_option = self::get_default_option();
519
  }
520
- foreach ( $input as $key => $value ) {
521
- if ( $value == 'random' ) {
522
- $option[ $key ] = 'random';
523
- } else {
524
- $option[ $key ] = ( is_numeric( $value ) ) ? $value : 0;
 
 
525
  }
526
  }
 
527
  return $option;
528
  }
529
 
@@ -554,7 +545,6 @@ if ( class_exists( 'Vk_Font_Awesome_Versions' ) ) {
554
 
555
  // ↓ これであかんの?
556
  // $output_option = wp_parse_args( $option, $default );
557
-
558
  if ( ! $option || ! is_array( $option ) ) {
559
  return $default; }
560
 
1
  <?php
2
 
 
 
 
 
 
 
3
  // namespace Vektor\ExUnit\Package\Cta;
 
4
  if ( ! class_exists( 'Vk_Call_To_Action' ) ) {
5
 
6
  class Vk_Call_To_Action {
10
  const CONTENT_NUMBER = 100;
11
 
12
  public static function init() {
13
+ add_action( 'veu_package_init', array( __CLASS__, 'option_init' ) );
14
  add_action( 'init', array( __CLASS__, 'set_posttype' ) );
15
+ add_action( 'admin_menu', array( __CLASS__, 'add_metabox_cta_register' ) );
 
16
  add_action( 'save_post', array( __CLASS__, 'save_custom_field' ) );
17
  add_action( 'widgets_init', array( __CLASS__, 'widget_init' ) );
18
  if ( veu_content_filter_state() == 'content' ) {
21
  add_action( 'loop_end', array( __CLASS__, 'set_content_loopend' ), self::CONTENT_NUMBER, 1 );
22
  }
23
  require_once dirname( __FILE__ ) . '/widget-call-to-action.php';
 
24
 
25
+ /*
26
+ VEU_Metabox 内の get_post_type が実行タイミングによっては
27
+ カスタム投稿タイプマネージャーで作成した投稿タイプが取得できないために
28
+ admin_menu のタイミングで読み込んでいる
29
+ */
30
+ add_action(
31
+ 'admin_menu', function() {
32
+ require_once( dirname( __FILE__ ) . '/class-veu-metabox-cta.php' );
33
+ }
34
+ );
35
  }
36
 
37
  public static function set_content_loopend( $query ) {
44
  echo self::content_filter( '' );
45
  }
46
 
47
+ //////////////////////////////////////////////////////
48
 
49
  public static function option_init() {
50
  vkExUnit_register_setting(
55
  );
56
  }
57
 
 
58
  public static function set_posttype() {
59
  global $vk_call_to_action_textdomain;
60
  $labels = array(
79
  'has_archive' => false,
80
  'hierarchical' => false,
81
  'taxonomies' => array(),
82
+ 'supports' => array( 'title', 'editor' ),
83
+ 'show_in_rest' => true,
84
  );
85
  register_post_type( self::POST_TYPE, $args );
86
  }
87
 
88
 
89
+ public static function add_metabox_cta_register() {
90
  global $vk_call_to_action_textdomain;
91
+ // Meta box of CTA edit and register page
 
 
 
 
 
 
 
 
 
 
 
92
  add_meta_box( 'vkExUnit_cta_url', __( 'CTA Contents', $vk_call_to_action_textdomain ), array( __CLASS__, 'render_meta_box_cta' ), self::POST_TYPE, 'normal', 'high' );
93
  }
94
 
95
+
96
  /**
97
+ * [save_custom_field description]
98
+ *
99
+ * @param [type] $post_id [description]
100
+ * @return [type] [description]
101
+ */
102
+ public static function save_custom_field( $post_id ) {
103
+ if ( ! isset( $_POST['_vkExUnit_cta_switch'] ) ) {
104
+ return $post_id; }
105
+ $noonce = isset( $_POST['_nonce_vkExUnit_custom_cta'] ) ? htmlspecialchars( $_POST['_nonce_vkExUnit_custom_cta'] ) : null;
106
+
107
+ // if autosave is to deny
108
+ if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {
109
+ return $post_id; }
110
+
111
+ if ( ! wp_verify_nonce( $noonce, plugin_basename( __FILE__ ) ) ) {
112
+ return $post_id;
113
+ }
114
+
115
+ if ( $_POST['_vkExUnit_cta_switch'] == 'cta_number' ) {
116
+ $data = $_POST['vkexunit_cta_each_option'];
117
+
118
+ if ( get_post_meta( $post_id, 'vkexunit_cta_each_option' ) == '' ) {
119
+ add_post_meta( $post_id, 'vkexunit_cta_each_option', $data, true );
120
+ } elseif ( $data != get_post_meta( $post_id, 'vkexunit_cta_each_option', true ) ) {
121
+ update_post_meta( $post_id, 'vkexunit_cta_each_option', $data );
122
+ } elseif ( ! $data ) {
123
+ delete_post_meta( $post_id, 'vkexunit_cta_each_option', get_post_meta( $post_id, 'vkexunit_cta_each_option', true ) );
124
+ }
125
+ return $post_id;
126
+ } elseif ( $_POST['_vkExUnit_cta_switch'] == 'cta_content' ) {
127
+
128
+ // カスタムフィールドの設定
129
+ $custom_fields = array(
130
+ 'vkExUnit_cta_img' => array(
131
+ 'escape_type' => '',
132
+ ),
133
+ 'vkExUnit_cta_img_position' => array(
134
+ 'escape_type' => '',
135
+ ),
136
+ 'vkExUnit_cta_button_text' => array(
137
+ 'escape_type' => 'stripslashes',
138
+ ),
139
+ 'vkExUnit_cta_button_icon' => array(
140
+ 'escape_type' => 'stripslashes',
141
+ ),
142
+ 'vkExUnit_cta_button_icon_before' => array(
143
+ 'escape_type' => 'stripslashes',
144
+ ),
145
+ 'vkExUnit_cta_button_icon_after' => array(
146
+ 'escape_type' => 'stripslashes',
147
+ ),
148
+ 'vkExUnit_cta_url' => array(
149
+ 'escape_type' => '',
150
+ ),
151
+ 'vkExUnit_cta_url_blank' => array(
152
+ 'escape_type' => '',
153
+ ),
154
+ 'vkExUnit_cta_text' => array(
155
+ 'escape_type' => 'stripslashes',
156
+ ),
157
+ );
158
+
159
+ // カスタムフィールドの保存
160
+ foreach ( $custom_fields as $custom_field_name => $custom_field_options ) {
161
+
162
+ if ( isset( $_POST[ $custom_field_name ] ) ) {
163
+ if ( isset( $custom_field_name['escape_type'] ) && $custom_field_name['escape_type'] == 'stripslashes' ) {
164
+ $data = stripslashes( $_POST[ $custom_field_name ] );
165
+ } else {
166
+ $data = $_POST[ $custom_field_name ];
167
+ }
168
+ }
169
+
170
+ if ( get_post_meta( $post_id, $custom_field_name ) == '' ) {
171
+ // データが今までなかったらカスタムフィールドに新規保存
172
+ add_post_meta( $post_id, $custom_field_name, $data, true );
173
+ } elseif ( $data != get_post_meta( $post_id, $custom_field_name, true ) ) {
174
+ // 保存されてたデータと送信されてきたデータが違ったら更新
175
+ update_post_meta( $post_id, $custom_field_name, $data );
176
+ } elseif ( ! $data ) {
177
+ // データが送信されてこなかった(空のデータが送られてきた)らフィールドの値を削除
178
+ delete_post_meta( $post_id, $custom_field_name, get_post_meta( $post_id, $custom_field_name, true ) );
179
+ }
180
+ } // foreach ( $custom_fields as $key => $custom_field_name ) {
181
+
182
+ return $post_id;
183
+ }
184
+ } // public static function save_custom_field( $post_id ) {
185
+
186
+ /**
187
+ * [widget_init description]
188
  * @return [type] [description]
189
  */
190
+ public static function widget_init() {
191
+ return register_widget( 'Widget_CTA' );
192
+ }
193
+
194
+ /**
195
+ * CTAメイン設定画面のurl
196
+ * ExUnitと単体プラグインなどによって変動する
197
+ *
198
+ * @return [type] [description]
199
+ */
200
  public static function setting_page_url() {
201
  if ( veu_is_cta_active() ) {
202
  $setting_page_url = admin_url( 'admin.php?page=vkExUnit_main_setting#vkExUnit_cta_settings' );
206
  return $setting_page_url;
207
  }
208
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
209
  public static function render_meta_box_cta() {
210
 
211
  global $vk_call_to_action_textdomain;
265
  });
266
  </script>
267
  <input type="hidden" name="_vkExUnit_cta_switch" value="cta_content" />
268
+ <p><?php _e( 'You can create it with a free layout in the content field using, such as Outer block and PR Content block in VK Blocks.', $vk_call_to_action_textdomain ); ?><br>
269
+ <?php _e( 'If the contents field is entered, the contents of the body will be displayed with priority, so the following contents will be ignored.', $vk_call_to_action_textdomain ); ?><br>
270
+ * <?php _e( 'The entered contents are displayed directly. You can not use Dynamic blocks, reuse blocks, etc.', $vk_call_to_action_textdomain ); ?>
271
+ </p>
272
  <table class="form-table">
273
  <tr>
274
  <th><?php _e( 'CTA image', $vk_call_to_action_textdomain ); ?></th>
328
  ?>
329
  <label for="vkExUnit_cta_url_blank"><?php _e( 'Target window', $vk_call_to_action_textdomain ); ?></label></th><td>
330
  <input type="checkbox" id="vkExUnit_cta_url_blank" name="vkExUnit_cta_url_blank" value="window_self"<?php echo $checked; ?> />
331
+ <label for="vkExUnit_cta_url_blank"><?php _e( 'Open in a self window', 'vk-all-in-one-expansion-unit' ); ?></label>
332
  </td></tr>
333
  <tr><th><label for="vkExUnit_cta_text"><?php _e( 'Text message', $vk_call_to_action_textdomain ); ?>
334
  </th>
340
  <?php
341
  }
342
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
343
 
344
 
345
  /**
346
  * [get_cta_post description]
347
+ *
348
  * @param [type] $id [description]
349
  * @return [type] [description]
350
  */
362
  }
363
 
364
 
365
+ /**
366
+ * CTAとして返す内容の処理
367
+ *
368
+ * @param [type] $id [description]
369
+ * @return [type] [description]
370
+ */
371
  public static function render_cta_content( $id ) {
372
+
373
+ global $vk_call_to_action_textdomain;
374
+
375
  if ( ! $id ) {
376
  return ''; }
377
  $post = self::get_cta_post( $id );
380
  if ( ! $post ) {
381
  return ''; }
382
 
383
+ // 本文に入力がある場合は本文を表示
384
+ $cta_content = $post->post_content;
385
+ if ( $cta_content ) {
386
+ $content = $cta_content;
387
+ } else {
388
+ // 旧 CTA レイアウト
389
+ include dirname( __FILE__ ) . '/view-actionbox.php';
390
+ }
391
+
392
+ // Display Edit Button
393
+ if ( $url = get_edit_post_link( $post->ID ) ) {
394
+ $content .= '<div class="veu_adminEdit"><a href="' . $url . '" class="btn btn-default" target="_blank">' . __( 'Edit CTA', $vk_call_to_action_textdomain ) . '</a></div>';
395
+ }
396
+ // wp_kses_post でエスケープすると outerブロックが出力するstyle属性を無効化される
397
+ return do_shortcode( $content );
398
  }
399
 
400
  public static function cta_id_random() {
401
  // ランダムに抽出したCTAの投稿IDを返す
402
  // CTAの投稿をランダムで1件取得
403
  $args = array(
404
+ 'post_type' => self::POST_TYPE, // 投稿タイプを指定
405
  'posts_per_page' => 1, // 1ページでの表示件数を指定
406
  'orderby' => 'rand', // 表示順をランダムで取得
407
  );
437
  return $post_config;
438
  }
439
 
440
+ //
441
  // 共通設定を使用の場合
442
+ //
443
  // 今表示している記事の投稿タイプを取得
444
  $post_type = get_post_type( $id );
445
  // 投稿タイプ別にどのCTAを共通設定として表示するかの情報を取得
505
  if ( ! $option ) {
506
  $current_option = self::get_default_option();
507
  }
508
+ if ( is_array( $input ) ) {
509
+ foreach ( $input as $key => $value ) {
510
+ if ( $value == 'random' ) {
511
+ $option[ $key ] = 'random';
512
+ } else {
513
+ $option[ $key ] = ( is_numeric( $value ) ) ? $value : 0;
514
+ }
515
  }
516
  }
517
+
518
  return $option;
519
  }
520
 
545
 
546
  // ↓ これであかんの?
547
  // $output_option = wp_parse_args( $option, $default );
 
548
  if ( ! $option || ! is_array( $option ) ) {
549
  return $default; }
550
 
{plugins/call-to-action → inc/call-to-action/package}/view-actionbox.php RENAMED
@@ -38,16 +38,13 @@ $content .= '<h1 class="cta_title">' . $post->post_title . '</h1>';
38
  $content .= '<div class="cta_body">';
39
 
40
 
41
- ////// 別ウィンドウで開くかどうかのカスタムフィールドの値を取得 //////
42
  $target_blank = get_post_meta( $id, 'vkExUnit_cta_url_blank', true );
43
  if ( $target_blank != 'window_self' ) {
44
  $target = ' target="_blank"';
45
  } else {
46
  $target = '';
47
  }
48
- ////////////////////////////////////////////////////////////
49
-
50
-
51
  if ( $imgid ) {
52
  $cta_image = wp_get_attachment_image_src( $imgid, 'large' );
53
  $content .= '<div class="cta_body_image cta_body_image_' . $image_position . '">';
@@ -57,7 +54,7 @@ if ( $imgid ) {
57
  $content .= '</div>';
58
  }
59
  $content .= '<div class="cta_body_txt ' . ( ( $imgid ) ? 'image_exist' : 'image_no' ) . '">';
60
- $content .= do_shortcode( $text );
61
  $content .= '</div>';
62
  if ( $url && $btn_text ) {
63
  $content .= '<div class="cta_body_link">';
@@ -68,7 +65,3 @@ if ( $url && $btn_text ) {
68
  }
69
  $content .= '</div><!-- [ /.vkExUnit_cta_body ] -->';
70
  $content .= '</section>';
71
-
72
- if ( $url = get_edit_post_link( $post->ID ) ) {
73
- $content .= '<div class="veu_adminEdit"><a href="' . $url . '" class="btn btn-default" target="_blank">' . __( 'Edit CTA', $vk_call_to_action_textdomain ) . '</a></div>';
74
- }
38
  $content .= '<div class="cta_body">';
39
 
40
 
41
+ // 別ウィンドウで開くかどうかのカスタムフィールドの値を取得 //////
42
  $target_blank = get_post_meta( $id, 'vkExUnit_cta_url_blank', true );
43
  if ( $target_blank != 'window_self' ) {
44
  $target = ' target="_blank"';
45
  } else {
46
  $target = '';
47
  }
 
 
 
48
  if ( $imgid ) {
49
  $cta_image = wp_get_attachment_image_src( $imgid, 'large' );
50
  $content .= '<div class="cta_body_image cta_body_image_' . $image_position . '">';
54
  $content .= '</div>';
55
  }
56
  $content .= '<div class="cta_body_txt ' . ( ( $imgid ) ? 'image_exist' : 'image_no' ) . '">';
57
+ $content .= wp_kses_post( do_shortcode( $text ) );
58
  $content .= '</div>';
59
  if ( $url && $btn_text ) {
60
  $content .= '<div class="cta_body_link">';
65
  }
66
  $content .= '</div><!-- [ /.vkExUnit_cta_body ] -->';
67
  $content .= '</section>';
 
 
 
 
{plugins/call-to-action → inc/call-to-action/package}/view-adminsetting.php RENAMED
File without changes
{plugins/call-to-action → inc/call-to-action/package}/widget-call-to-action.php RENAMED
File without changes
plugins/child_page_index.php → inc/child-page-index.php RENAMED
@@ -1,7 +1,7 @@
1
  <?php
2
 
3
- /*-------------------------------------------*/
4
- /* Child page index
5
  /*-------------------------------------------*/
6
 
7
  function veu_child_page_excerpt( $post ) {
@@ -22,7 +22,7 @@ function veu_child_page_excerpt( $post ) {
22
  if ( 90 < mb_strlen( $page_excerpt ) ) {
23
  // 90文字でトリム
24
  $page_excerpt = mb_substr( $page_excerpt, 0, 90 );
25
- // ... を追加
26
  $page_excerpt .= '...';
27
 
28
  }
@@ -76,13 +76,13 @@ function vkExUnit_childPageIndex_shortcode() {
76
  $childPageList_html .= '<div class="childPage_list_body">';
77
  $childPageList_html .= apply_filters( 'veu_child_index_thumbnail', get_the_post_thumbnail( $children->ID, 'thumbnail' ) );
78
  $childPageList_html .= '<p class="childPage_list_text">' . $postExcerpt . '</p>';
79
- $childPageList_html .= '<span class="childPage_list_more btn btn-primary btn-xs">' . __( 'Read more', 'vkExUnit' ) . '</span>';
80
  $childPageList_html .= '</div>';
81
 
82
  $childPageList_html .= '</div></a>' . PHP_EOL;
83
  endforeach;
84
 
85
- $childPageList_html .= PHP_EOL . '</div><!-- [ /.childPage_list ] -->' . PHP_EOL;
86
  wp_reset_query();
87
 
88
  return $childPageList_html;
@@ -103,8 +103,8 @@ function vkExUnit_chidPageIndex_loopend( $query ) {
103
  echo vkExUnit_childPageIndex_shortcode();
104
  }
105
 
106
- /*-------------------------------------------*/
107
- /* Print Child Page Box at Page
108
  /*-------------------------------------------*/
109
  function vkExUnit_childPageIndex_contentHook( $content ) {
110
 
@@ -127,18 +127,10 @@ function vkExUnit_childPageIndex_contentHook( $content ) {
127
  return $content;
128
  }
129
 
 
 
130
  /*-------------------------------------------*/
131
- /* admin_metabox_activate
132
- /*-------------------------------------------*/
133
- add_filter( 'veu_content_meta_box_activation', 'vkExUnit_childPageIndex_admin_metabox_activate', 10, 1 );
134
- function vkExUnit_childPageIndex_admin_metabox_activate( $flag ) {
135
- return true;
136
- }
137
-
138
- /*-------------------------------------------*/
139
- /* admin_metabox_content
140
- /*-------------------------------------------*/
141
- add_action( 'veu_content_meta_box_content', 'veu_child_page_index_admin_metabox_content' );
142
  function veu_child_page_index_admin_metabox_content() {
143
  global $post;
144
  // childPageIndex display
@@ -147,14 +139,14 @@ function veu_child_page_index_admin_metabox_content() {
147
  <input type="hidden" name="_nonce_vkExUnit__custom_field_childPageIndex" id="_nonce_vkExUnit__custom_field_childPageIndex" value="<?php echo wp_create_nonce( plugin_basename( __FILE__ ) ); ?>" />
148
  <label for="vkExUnit_childPageIndex">
149
  <input type="checkbox" id="vkExUnit_childPageIndex" name="vkExUnit_childPageIndex"<?php echo ( $enable ) ? ' checked' : ''; ?> />
150
- <?php _e( 'Display a child page index', 'vkExUnit' ); ?>
151
  </label>
152
  </div>
153
  <?php
154
  }
155
 
156
- /*-------------------------------------------*/
157
- /* save_custom_field
158
  /*-------------------------------------------*/
159
  add_action( 'save_post', 'veu_child_page_index_save_custom_field' );
160
  function veu_child_page_index_save_custom_field( $post_id ) {
1
  <?php
2
 
3
+ /*
4
+ Child page index
5
  /*-------------------------------------------*/
6
 
7
  function veu_child_page_excerpt( $post ) {
22
  if ( 90 < mb_strlen( $page_excerpt ) ) {
23
  // 90文字でトリム
24
  $page_excerpt = mb_substr( $page_excerpt, 0, 90 );
25
+ // ... を追加
26
  $page_excerpt .= '...';
27
 
28
  }
76
  $childPageList_html .= '<div class="childPage_list_body">';
77
  $childPageList_html .= apply_filters( 'veu_child_index_thumbnail', get_the_post_thumbnail( $children->ID, 'thumbnail' ) );
78
  $childPageList_html .= '<p class="childPage_list_text">' . $postExcerpt . '</p>';
79
+ $childPageList_html .= '<span class="childPage_list_more btn btn-primary btn-xs">' . apply_filters( 'veu_childPage_list_read_more_txt', __( 'Read more', 'vk-all-in-one-expansion-unit' ) ) . '</span>';
80
  $childPageList_html .= '</div>';
81
 
82
  $childPageList_html .= '</div></a>' . PHP_EOL;
83
  endforeach;
84
 
85
+ $childPageList_html .= PHP_EOL . '</div><!-- [ /.veu_childPage_list ] -->' . PHP_EOL;
86
  wp_reset_query();
87
 
88
  return $childPageList_html;
103
  echo vkExUnit_childPageIndex_shortcode();
104
  }
105
 
106
+ /*
107
+ Print Child Page Box at Page
108
  /*-------------------------------------------*/
109
  function vkExUnit_childPageIndex_contentHook( $content ) {
110
 
127
  return $content;
128
  }
129
 
130
+ /*
131
+ admin_metabox_content
132
  /*-------------------------------------------*/
133
+ add_action( 'veu_metabox_insert_items', 'veu_child_page_index_admin_metabox_content' );
 
 
 
 
 
 
 
 
 
 
134
  function veu_child_page_index_admin_metabox_content() {
135
  global $post;
136
  // childPageIndex display
139
  <input type="hidden" name="_nonce_vkExUnit__custom_field_childPageIndex" id="_nonce_vkExUnit__custom_field_childPageIndex" value="<?php echo wp_create_nonce( plugin_basename( __FILE__ ) ); ?>" />
140
  <label for="vkExUnit_childPageIndex">
141
  <input type="checkbox" id="vkExUnit_childPageIndex" name="vkExUnit_childPageIndex"<?php echo ( $enable ) ? ' checked' : ''; ?> />
142
+ <?php _e( 'Display a child page index', 'vk-all-in-one-expansion-unit' ); ?>
143
  </label>
144
  </div>
145
  <?php
146
  }
147
 
148
+ /*
149
+ save_custom_field
150
  /*-------------------------------------------*/
151
  add_action( 'save_post', 'veu_child_page_index_save_custom_field' );
152
  function veu_child_page_index_save_custom_field( $post_id ) {
{plugins → inc}/contact-section/contact-section.php RENAMED
@@ -9,11 +9,11 @@
9
  */
10
 
11
 
12
-
13
- /*-------------------------------------------*/
14
- /* load files
15
  /*-------------------------------------------*/
16
- /* VkExUnit_Contact
 
17
  public static function instance() {
18
  private function __construct() {
19
  protected function run_init() {
@@ -31,21 +31,24 @@
31
  // View
32
  public static function render_contact_section_html() {
33
  public static function render_widget_contact_btn_html() {
34
- /*-------------------------------------------*/
35
- /* Contact Button Widget
36
- /*-------------------------------------------*/
37
- /* Contact Section Widget
 
38
  /*-------------------------------------------*/
39
 
40
 
41
- /*-------------------------------------------*/
42
- /* load files
 
43
  /*-------------------------------------------*/
44
  require_once 'customizer.php';
45
 
46
 
47
- /*-------------------------------------------*/
48
- /* VkExUnit_Contact
 
49
  /*-------------------------------------------*/
50
  class VkExUnit_Contact {
51
 
@@ -65,18 +68,17 @@ class VkExUnit_Contact {
65
  private function __construct() {
66
  /***
67
  * do noting
68
- ***/
69
  }
70
 
71
 
72
  protected function run_init() {
73
- add_action( 'vkExUnit_package_init', array( $this, 'options_init' ) );
74
  add_action( 'save_post', array( $this, 'save_custom_field_postdata' ) );
75
  add_shortcode( 'vkExUnit_contact_section', array( $this, 'shortcode' ) );
76
 
77
  // 固定ページ編集画にお問い合わせ情報を表示のチェックボックスを表示する
78
- add_filter( 'veu_content_meta_box_activation', array( $this, 'activate_metabox' ), 10, 1 );
79
- add_action( 'veu_content_meta_box_content', array( $this, 'render_meta_box' ) );
80
 
81
  if ( veu_content_filter_state() == 'content' ) {
82
  add_filter( 'the_content', array( $this, 'set_content' ), 10, 1 );
@@ -101,7 +103,7 @@ class VkExUnit_Contact {
101
 
102
  public function options_init() {
103
  vkExUnit_register_setting(
104
- __( 'Contact Information', 'vkExUnit' ), // tab label.
105
  'vkExUnit_contact', // name attr
106
  array( $this, 'option_sanitaize' ), // sanitaise function name
107
  array( $this, 'options_page' ) // setting_page function name
@@ -111,17 +113,20 @@ class VkExUnit_Contact {
111
 
112
  public static function get_option() {
113
  $default = array(
114
- 'contact_txt' => __( 'Please feel free to inquire.', 'vkExUnit' ),
 
115
  'tel_number' => '000-000-0000',
116
- 'contact_time' => __( 'Office hours 9:00 - 18:00 [ Weekdays except holidays ]', 'vkExUnit' ),
117
  'contact_link' => home_url(),
118
- 'button_text' => __( 'Contact us', 'vkExUnit' ),
119
  'button_text_small' => '',
120
- 'short_text' => __( 'Contact us', 'vkExUnit' ),
121
  'contact_image' => '',
122
  'contact_html' => '',
123
  );
124
- $option = get_option( 'vkExUnit_contact' );
 
 
125
  return wp_parse_args( $option, $default );
126
  }
127
 
@@ -129,70 +134,77 @@ class VkExUnit_Contact {
129
  public function options_page() {
130
  $options = self::get_option();
131
  ?>
132
- <h3><?php _e( 'Contact Information', 'vkExUnit' ); ?></h3>
133
  <div id="meta_description" class="sectionBox">
134
- <?php _e( 'The contents entered here will be reflected in the bottom of each fixed page, the "Contact Section" widget, the "Contact Button" widget, etc.', 'vkExUnit' ); ?>
135
  <br/>
136
- <?php _e( 'When I display it on the page, it is necessary to classify a check into "Display Contact Section" checkbox with the edit page of each page.', 'vkExUnit' ); ?>
137
 
138
  <table class="form-table">
139
  <tr>
140
- <th scope="row"><label for="contact_txt"><?php _e( 'Message', 'vkExUnit' ); ?></label></th>
141
  <td>
142
  <input type="text" name="vkExUnit_contact[contact_txt]" id="contact_txt" value="<?php echo esc_attr( $options['contact_txt'] ); ?>" style="width:50%;" /><br />
143
- <span><?php _e( 'ex) ', 'vkExUnit' ); ?><?php _e( 'Please feel free to inquire.', 'vkExUnit' ); ?></span>
144
  </td>
145
  </tr>
146
  <tr>
147
- <th scope="row"><label for="tel_number"><?php _e( 'Phone number', 'vkExUnit' ); ?></label></th>
148
  <td>
149
  <input type="text" name="vkExUnit_contact[tel_number]" id="tel_number" value="<?php echo esc_attr( $options['tel_number'] ); ?>" style="width:50%;" /><br />
150
- <span><?php _e( 'ex) ', 'vkExUnit' ); ?>000-000-0000</span>
 
 
 
 
 
 
 
151
  </td>
152
  </tr>
153
  <tr>
154
- <th scope="row"><label for="contact_time"><?php _e( 'Office hours', 'vkExUnit' ); ?></label></th>
155
  <td>
156
  <textarea cols="20" rows="2" name="vkExUnit_contact[contact_time]" id="contact_time" value="" style="width:50%;" /><?php echo esc_attr( $options['contact_time'] ); ?></textarea><br />
157
- <span><?php _e( 'ex) ', 'vkExUnit' ); ?><?php _e( 'Office hours', 'vkExUnit' ); ?> 9:00 - 18:00 [ <?php _e( 'Weekdays except holidays', 'vkExUnit' ); ?> ]</span>
158
  </td>
159
  </tr>
160
  <!-- he URL of contact page -->
161
  <tr>
162
- <th scope="row"><label for="contact_link"><?php _e( 'The contact page URL', 'vkExUnit' ); ?></label></th>
163
  <td>
164
  <input type="text" name="vkExUnit_contact[contact_link]" id="contact_link" value="<?php echo esc_attr( $options['contact_link'] ); ?>" class="width-500" /><br />
165
- <span><?php _e( 'ex) ', 'vkExUnit' ); ?>http://www.********.com/contact/ <?php _e( 'or', 'vkExUnit' ); ?> /contact/</span><br />
166
- <?php _e( '* If you fill in the blank, widget\'s contact button does not appear.', 'vkExUnit' ); ?>
167
  </td>
168
  </tr>
169
  <tr>
170
- <th scope="row"><label for="sub_sitename"><?php _e( 'Contact button Text', 'vkExUnit' ); ?></label></th>
171
  <td>
172
  <textarea cols="20" rows="2" name="vkExUnit_contact[button_text]" id="sub_sitename" value="" style="width:50%;" /><?php echo esc_attr( $options['button_text'] ); ?></textarea><br />
173
- <span><?php _e( 'ex) ', 'vkExUnit' ); ?><?php _e( 'Contact Us from email.', 'vkExUnit' ); ?></span>
174
  </td>
175
  </tr>
176
  <!-- Company address -->
177
  <tr>
178
- <th scope="row"><label for="button_text_small"><?php _e( 'Contact button text( sub )', 'vkExUnit' ); ?></label></th>
179
  <td>
180
  <textarea cols="20" rows="2" name="vkExUnit_contact[button_text_small]" id="button_text_small" value="" style="width:50%;" /><?php echo $options['button_text_small']; ?></textarea><br />
181
- <span><?php _e( 'ex) ', 'vkExUnit' ); ?>
182
- <?php _e( 'Email contact form', 'vkExUnit' ); ?>
183
  </span>
184
  </td>
185
  </tr>
186
  <tr>
187
- <th scope="row"><label for="widget_text"><?php _e( 'Contact button short text for side widget', 'vkExUnit' ); ?></label></th>
188
  <td>
189
  <?php $short_text = ( isset( $options['short_text'] ) && $options['short_text'] ) ? $options['short_text'] : ''; ?>
190
  <input type="text" name="vkExUnit_contact[short_text]" id="widget_text" value="<?php echo esc_attr( $short_text ); ?>" style="width:50%;" /><br />
191
- <span><?php _e( 'This will used to "Contact Button" widget.', 'vkExUnit' ); ?></span>
192
  </td>
193
  </tr>
194
  </table>
195
- <button onclick="javascript:jQuery('#vkEx_contact_info').toggle(); return false;" class="button"><?php _e( 'Advanced Setting', 'vkExUnit' ); ?></button>
196
  <?php
197
  $display = '';
198
  if ( ! $options['contact_image'] and ! $options['contact_html'] ) {
@@ -201,16 +213,16 @@ class VkExUnit_Contact {
201
  ?>
202
  <table class="form-table" id="vkEx_contact_info"<?php echo $display; ?>>
203
  <tr>
204
- <th><?php _e( 'Inquiry Banner image', 'vkExUnit' ); ?></th>
205
  <td><input type="text" name="vkExUnit_contact[contact_image]" id="contact_image" value="<?php echo $options['contact_image']; ?>" style="width:60%;" />
206
  <button id="media_src_contact_image" class="media_btn button button-default"><?php _e( 'Select Image' ); ?></button>
207
- <p><?php _e( 'Display the image instead of the above inquiry information', 'vkExUnit' ); ?><p>
208
  </td>
209
  </tr>
210
  <tr>
211
- <th><?php _e( 'Display HTML message instead of the standard', 'vkExUnit' ); ?></th>
212
  <td><textarea cols="20" rows="5" name="vkExUnit_contact[contact_html]" id="contact_html" value="" style="width:100%;"><?php echo $options['contact_html']; ?></textarea>
213
- <p><?php _e( 'HTML takes precedence over image', 'vkExUnit' ); ?></p>
214
  </td>
215
  </tr>
216
  </table>
@@ -232,7 +244,7 @@ class VkExUnit_Contact {
232
  <input type="hidden" name="_nonce_vkExUnit_contact" id="_nonce_vkExUnit__custom_auto_eyecatch_noonce" value="<?php echo wp_create_nonce( plugin_basename( __FILE__ ) ); ?>" />
233
  <label for="vkExUnit_contact">
234
  <input type="checkbox" id="vkExUnit_contact" name="vkExUnit_contact_enable"<?php echo ( $enable ) ? ' checked' : ''; ?> />
235
- <?php _e( 'Display Contact Section', 'vkExUnit' ); ?>
236
  </label>
237
  </div>
238
  <?php
@@ -302,14 +314,15 @@ class VkExUnit_Contact {
302
  }
303
 
304
 
305
- /*-------------------------------------------*/
306
- /* contact_section_html
 
307
  /*-------------------------------------------*/
308
 
309
  public static function render_contact_section_html() {
310
  $options = self::get_option();
311
  $cont = '';
312
- $cont .= '<section class="veu_contact veu_contentAddSection">';
313
 
314
  if ( $options['contact_html'] ) {
315
  $cont .= $options['contact_html'];
@@ -323,10 +336,16 @@ class VkExUnit_Contact {
323
  $cont .= '<div class="contact_frame">';
324
  $cont .= '<p class="contact_txt">';
325
  $cont .= '<span class="contact_txt_catch">' . nl2br( esc_textarea( $options['contact_txt'] ) ) . '</span>';
 
 
 
 
 
 
326
  if ( wp_is_mobile() ) {
327
  $cont .= '<a href="tel:' . $options['tel_number'] . '" >';
328
  }
329
- $cont .= '<span class="contact_txt_tel veu_color_txt_key">' . $options['tel_number'] . '</span>';
330
  if ( wp_is_mobile() ) {
331
  $cont .= '</a>';
332
  }
@@ -365,7 +384,7 @@ class VkExUnit_Contact {
365
  }
366
  $cont .= '</section>';
367
  if ( current_user_can( 'edit_theme_options' ) && ! is_customize_preview() ) {
368
- $cont .= '<div class="veu_adminEdit"><a href="' . admin_url() . 'admin.php?page=vkExUnit_main_setting#vkExUnit_contact" class="btn btn-default" target="_blank">' . __( 'Edit contact information', 'vkExUnit' ) . '</a></div>';
369
  }
370
 
371
  $cont = apply_filters( 'vkExUnit_contact_custom', $cont );
@@ -376,8 +395,9 @@ class VkExUnit_Contact {
376
  public function shortcode() {
377
  return self::render_contact_section_html();
378
  }
379
- /*-------------------------------------------*/
380
- /* render_widget_contact_btn_html
 
381
  /*-------------------------------------------*/
382
 
383
  public static function render_widget_contact_btn_html() {
@@ -417,7 +437,7 @@ class VkExUnit_Contact {
417
  if ( class_exists( 'Vk_Font_Awesome_Versions' ) ) {
418
  $class = Vk_Font_Awesome_Versions::class_switch( $class, 'fas fa-edit' );
419
  }
420
- $cont .= '<div class="veu_adminEdit"><a href="' . admin_url() . 'admin.php?page=vkExUnit_main_setting#vkExUnit_contact" class="btn btn-default" target="_blank"><i class="' . $class . '"></i> ' . __( 'Edit contact information', 'vkExUnit' ) . '</a></div>';
421
  }
422
  return $cont;
423
  }
@@ -426,16 +446,16 @@ class VkExUnit_Contact {
426
 
427
  VkExUnit_Contact::instance();
428
 
429
- /*-------------------------------------------*/
430
- /* Contact Button Widget
431
  /*-------------------------------------------*/
432
 
433
  class WP_Widget_VkExUnit_Contact_Button extends WP_Widget {
434
 
435
  function __construct() {
436
- $widget_name = veu_get_prefix() . __( 'Contact Button', 'vkExUnit' );
437
- $widget_description = __( 'Display contact button.', 'vkExUnit' );
438
- $widget_description .= ' ( ' . sprintf( __( 'It is necessary to set the "%s" -> "Contact Information" section in "Main setting" page.', 'vkExUnit' ), veu_get_little_short_name() ) . ' ) ';
439
  parent::__construct(
440
  'vkExUnit_contact',
441
  $widget_name,
@@ -462,8 +482,8 @@ class WP_Widget_VkExUnit_Contact_Button extends WP_Widget {
462
 
463
  function form( $instance ) {
464
  echo '<div style="padding:1em 0;">';
465
- $widget_description = __( 'Display contact button', 'vkExUnit' );
466
- $widget_description .= ' ( ' . sprintf( __( 'It is necessary to set the "%s" -> "Contact Information" section in "Main setting" page.', 'vkExUnit' ), veu_get_little_short_name() ) . ' ) ';
467
  echo $widget_description;
468
  echo '</div>';
469
  return $instance;
@@ -476,16 +496,16 @@ function veu_widget_contact_button() {
476
  }
477
 
478
 
479
- /*-------------------------------------------*/
480
- /* Contact Section Widget
481
  /*-------------------------------------------*/
482
  class WP_Widget_VkExUnit_Contact_Section extends WP_Widget {
483
 
484
  function __construct() {
485
 
486
- $widget_name = veu_get_prefix() . __( 'Contact Section', 'vkExUnit' );
487
- $widget_description = __( 'Display Phone number and contact button etc.', 'vkExUnit' );
488
- $widget_description .= ' ( ' . sprintf( __( 'It is necessary to set the "%s" -> "Contact Information" section in "Main setting" page.', 'vkExUnit' ), veu_get_little_short_name() ) . ' ) ';
489
 
490
  parent::__construct(
491
  'vkExUnit_contact_section',
@@ -513,7 +533,7 @@ class WP_Widget_VkExUnit_Contact_Section extends WP_Widget {
513
 
514
  function form( $instance ) {
515
  echo '<div style="padding:1em 0;">';
516
- _e( sprintf( __( '*It is necessary to set the "%s" -> "Contact Information" section in "Main setting" page.', 'vkExUnit' ), veu_get_little_short_name() ) );
517
  echo '</div>';
518
  return $instance;
519
  }
9
  */
10
 
11
 
12
+ /*
13
+ load files
 
14
  /*-------------------------------------------*/
15
+ /*
16
+ VkExUnit_Contact
17
  public static function instance() {
18
  private function __construct() {
19
  protected function run_init() {
31
  // View
32
  public static function render_contact_section_html() {
33
  public static function render_widget_contact_btn_html() {
34
+ /*
35
+ /*
36
+ Contact Button Widget
37
+ /*
38
+ Contact Section Widget
39
  /*-------------------------------------------*/
40
 
41
 
42
+
43
+ /*
44
+ load files
45
  /*-------------------------------------------*/
46
  require_once 'customizer.php';
47
 
48
 
49
+
50
+ /*
51
+ VkExUnit_Contact
52
  /*-------------------------------------------*/
53
  class VkExUnit_Contact {
54
 
68
  private function __construct() {
69
  /***
70
  * do noting
71
+ */
72
  }
73
 
74
 
75
  protected function run_init() {
76
+ add_action( 'veu_package_init', array( $this, 'options_init' ) );
77
  add_action( 'save_post', array( $this, 'save_custom_field_postdata' ) );
78
  add_shortcode( 'vkExUnit_contact_section', array( $this, 'shortcode' ) );
79
 
80
  // 固定ページ編集画にお問い合わせ情報を表示のチェックボックスを表示する
81
+ add_action( 'veu_metabox_insert_items', array( $this, 'render_meta_box' ) );
 
82
 
83
  if ( veu_content_filter_state() == 'content' ) {
84
  add_filter( 'the_content', array( $this, 'set_content' ), 10, 1 );
103
 
104
  public function options_init() {
105
  vkExUnit_register_setting(
106
+ __( 'Contact Information', 'vk-all-in-one-expansion-unit' ), // tab label.
107
  'vkExUnit_contact', // name attr
108
  array( $this, 'option_sanitaize' ), // sanitaise function name
109
  array( $this, 'options_page' ) // setting_page function name
113
 
114
  public static function get_option() {
115
  $default = array(
116
+ 'contact_txt' => __( 'Please feel free to inquire.', 'vk-all-in-one-expansion-unit' ),
117
+ 'tel_icon' => 'fas fa-phone-square',
118
  'tel_number' => '000-000-0000',
119
+ 'contact_time' => __( 'Office hours 9:00 - 18:00 [ Weekdays except holidays ]', 'vk-all-in-one-expansion-unit' ),
120
  'contact_link' => home_url(),
121
+ 'button_text' => __( 'Contact us', 'vk-all-in-one-expansion-unit' ),
122
  'button_text_small' => '',
123
+ 'short_text' => __( 'Contact us', 'vk-all-in-one-expansion-unit' ),
124
  'contact_image' => '',
125
  'contact_html' => '',
126
  );
127
+ $option = get_option( 'vkExUnit_contact', $default );
128
+ // オプション値が無い時は get_option の第2引数で登録されるが、
129
+ // 既に値が存在しているが、項目があとから追加された時用に wp_parse_args をしている
130
  return wp_parse_args( $option, $default );
131
  }
132
 
134
  public function options_page() {
135
  $options = self::get_option();
136
  ?>
137
+ <h3><?php _e( 'Contact Information', 'vk-all-in-one-expansion-unit' ); ?></h3>
138
  <div id="meta_description" class="sectionBox">
139
+ <?php _e( 'The contents entered here will be reflected in the bottom of each fixed page, the "Contact Section" widget, the "Contact Button" widget, etc.', 'vk-all-in-one-expansion-unit' ); ?>
140
  <br/>
141
+ <?php _e( 'When I display it on the page, it is necessary to classify a check into "Display Contact Section" checkbox with the edit page of each page.', 'vk-all-in-one-expansion-unit' ); ?>
142
 
143
  <table class="form-table">
144
  <tr>
145
+ <th scope="row"><label for="contact_txt"><?php _e( 'Message', 'vk-all-in-one-expansion-unit' ); ?></label></th>
146
  <td>
147
  <input type="text" name="vkExUnit_contact[contact_txt]" id="contact_txt" value="<?php echo esc_attr( $options['contact_txt'] ); ?>" style="width:50%;" /><br />
148
+ <span><?php _e( 'ex) ', 'vk-all-in-one-expansion-unit' ); ?><?php _e( 'Please feel free to inquire.', 'vk-all-in-one-expansion-unit' ); ?></span>
149
  </td>
150
  </tr>
151
  <tr>
152
+ <th scope="row"><label for="tel_number"><?php _e( 'Phone number', 'vk-all-in-one-expansion-unit' ); ?></label></th>
153
  <td>
154
  <input type="text" name="vkExUnit_contact[tel_number]" id="tel_number" value="<?php echo esc_attr( $options['tel_number'] ); ?>" style="width:50%;" /><br />
155
+ <span><?php _e( 'ex) ', 'vk-all-in-one-expansion-unit' ); ?>000-000-0000</span>
156
+ </td>
157
+ </tr>
158
+ <tr>
159
+ <th scope="row"><label for="tel_icon"><?php _e( 'Phone icon', 'vk-all-in-one-expansion-unit' ); ?></label></th>
160
+ <td>
161
+ <input type="text" name="vkExUnit_contact[tel_icon]" id="tel_icon" value="<?php echo esc_attr( $options['tel_icon'] ); ?>" style="width:50%;" /><br />
162
+ <span><?php _e( 'ex) ', 'vk-all-in-one-expansion-unit' ); ?>fas fa-phone-square [ <a href="https://fontawesome.com/icons?d=gallery&q=phone&m=free" target="_blank" rel="noopener noreferrer">lcon list</a> ]</span>
163
  </td>
164
  </tr>
165
  <tr>
166
+ <th scope="row"><label for="contact_time"><?php _e( 'Office hours', 'vk-all-in-one-expansion-unit' ); ?></label></th>
167
  <td>
168
  <textarea cols="20" rows="2" name="vkExUnit_contact[contact_time]" id="contact_time" value="" style="width:50%;" /><?php echo esc_attr( $options['contact_time'] ); ?></textarea><br />
169
+ <span><?php _e( 'ex) ', 'vk-all-in-one-expansion-unit' ); ?><?php _e( 'Office hours', 'vk-all-in-one-expansion-unit' ); ?> 9:00 - 18:00 [ <?php _e( 'Weekdays except holidays', 'vk-all-in-one-expansion-unit' ); ?> ]</span>
170
  </td>
171
  </tr>
172
  <!-- he URL of contact page -->
173
  <tr>
174
+ <th scope="row"><label for="contact_link"><?php _e( 'The contact page URL', 'vk-all-in-one-expansion-unit' ); ?></label></th>
175
  <td>
176
  <input type="text" name="vkExUnit_contact[contact_link]" id="contact_link" value="<?php echo esc_attr( $options['contact_link'] ); ?>" class="width-500" /><br />
177
+ <span><?php _e( 'ex) ', 'vk-all-in-one-expansion-unit' ); ?>http://www.********.com/contact/ <?php _e( 'or', 'vk-all-in-one-expansion-unit' ); ?> /contact/</span><br />
178
+ <?php _e( '* If you fill in the blank, widget\'s contact button does not appear.', 'vk-all-in-one-expansion-unit' ); ?>
179
  </td>
180
  </tr>
181
  <tr>
182
+ <th scope="row"><label for="sub_sitename"><?php _e( 'Contact button Text', 'vk-all-in-one-expansion-unit' ); ?></label></th>
183
  <td>
184
  <textarea cols="20" rows="2" name="vkExUnit_contact[button_text]" id="sub_sitename" value="" style="width:50%;" /><?php echo esc_attr( $options['button_text'] ); ?></textarea><br />
185
+ <span><?php _e( 'ex) ', 'vk-all-in-one-expansion-unit' ); ?><?php _e( 'Contact Us from email.', 'vk-all-in-one-expansion-unit' ); ?></span>
186
  </td>
187
  </tr>
188
  <!-- Company address -->
189
  <tr>
190
+ <th scope="row"><label for="button_text_small"><?php _e( 'Contact button text( sub )', 'vk-all-in-one-expansion-unit' ); ?></label></th>
191
  <td>
192
  <textarea cols="20" rows="2" name="vkExUnit_contact[button_text_small]" id="button_text_small" value="" style="width:50%;" /><?php echo $options['button_text_small']; ?></textarea><br />
193
+ <span><?php _e( 'ex) ', 'vk-all-in-one-expansion-unit' ); ?>
194
+ <?php _e( 'Email contact form', 'vk-all-in-one-expansion-unit' ); ?>
195
  </span>
196
  </td>
197
  </tr>
198
  <tr>
199
+ <th scope="row"><label for="widget_text"><?php _e( 'Contact button short text for side widget', 'vk-all-in-one-expansion-unit' ); ?></label></th>
200
  <td>
201
  <?php $short_text = ( isset( $options['short_text'] ) && $options['short_text'] ) ? $options['short_text'] : ''; ?>
202
  <input type="text" name="vkExUnit_contact[short_text]" id="widget_text" value="<?php echo esc_attr( $short_text ); ?>" style="width:50%;" /><br />
203
+ <span><?php _e( 'This will used to "Contact Button" widget.', 'vk-all-in-one-expansion-unit' ); ?></span>
204
  </td>
205
  </tr>
206
  </table>
207
+ <button onclick="javascript:jQuery('#vkEx_contact_info').toggle(); return false;" class="button"><?php _e( 'Advanced Setting', 'vk-all-in-one-expansion-unit' ); ?></button>
208
  <?php
209
  $display = '';
210
  if ( ! $options['contact_image'] and ! $options['contact_html'] ) {
213
  ?>
214
  <table class="form-table" id="vkEx_contact_info"<?php echo $display; ?>>
215
  <tr>
216
+ <th><?php _e( 'Inquiry Banner image', 'vk-all-in-one-expansion-unit' ); ?></th>
217
  <td><input type="text" name="vkExUnit_contact[contact_image]" id="contact_image" value="<?php echo $options['contact_image']; ?>" style="width:60%;" />
218
  <button id="media_src_contact_image" class="media_btn button button-default"><?php _e( 'Select Image' ); ?></button>
219
+ <p><?php _e( 'Display the image instead of the above inquiry information', 'vk-all-in-one-expansion-unit' ); ?><p>
220
  </td>
221
  </tr>
222
  <tr>
223
+ <th><?php _e( 'Display HTML message instead of the standard', 'vk-all-in-one-expansion-unit' ); ?></th>
224
  <td><textarea cols="20" rows="5" name="vkExUnit_contact[contact_html]" id="contact_html" value="" style="width:100%;"><?php echo $options['contact_html']; ?></textarea>
225
+ <p><?php _e( 'HTML takes precedence over image', 'vk-all-in-one-expansion-unit' ); ?></p>
226
  </td>
227
  </tr>
228
  </table>
244
  <input type="hidden" name="_nonce_vkExUnit_contact" id="_nonce_vkExUnit__custom_auto_eyecatch_noonce" value="<?php echo wp_create_nonce( plugin_basename( __FILE__ ) ); ?>" />
245
  <label for="vkExUnit_contact">
246
  <input type="checkbox" id="vkExUnit_contact" name="vkExUnit_contact_enable"<?php echo ( $enable ) ? ' checked' : ''; ?> />
247
+ <?php _e( 'Display Contact Section', 'vk-all-in-one-expansion-unit' ); ?>
248
  </label>
249
  </div>
250
  <?php
314
  }
315
 
316
 
317
+
318
+ /*
319
+ contact_section_html
320
  /*-------------------------------------------*/
321
 
322
  public static function render_contact_section_html() {
323
  $options = self::get_option();
324
  $cont = '';
325
+ $cont .= '<section class="veu_contact veu_contentAddSection vk_contact">';
326
 
327
  if ( $options['contact_html'] ) {
328
  $cont .= $options['contact_html'];
336
  $cont .= '<div class="contact_frame">';
337
  $cont .= '<p class="contact_txt">';
338
  $cont .= '<span class="contact_txt_catch">' . nl2br( esc_textarea( $options['contact_txt'] ) ) . '</span>';
339
+
340
+ $tel_icon = '';
341
+ if ( ! empty( $options['tel_icon'] ) ) {
342
+ $tel_icon = '<i class="contact_txt_tel_icon ' . esc_attr( $options['tel_icon'] ) . '"></i>';
343
+ }
344
+
345
  if ( wp_is_mobile() ) {
346
  $cont .= '<a href="tel:' . $options['tel_number'] . '" >';
347
  }
348
+ $cont .= '<span class="contact_txt_tel veu_color_txt_key">' . $tel_icon . esc_html( $options['tel_number'] ) . '</span>';
349
  if ( wp_is_mobile() ) {
350
  $cont .= '</a>';
351
  }
384
  }
385
  $cont .= '</section>';
386
  if ( current_user_can( 'edit_theme_options' ) && ! is_customize_preview() ) {
387
+ $cont .= '<div class="veu_adminEdit"><a href="' . admin_url() . 'admin.php?page=vkExUnit_main_setting#vkExUnit_contact" class="btn btn-default" target="_blank">' . __( 'Edit contact information', 'vk-all-in-one-expansion-unit' ) . '</a></div>';
388
  }
389
 
390
  $cont = apply_filters( 'vkExUnit_contact_custom', $cont );
395
  public function shortcode() {
396
  return self::render_contact_section_html();
397
  }
398
+
399
+ /*
400
+ render_widget_contact_btn_html
401
  /*-------------------------------------------*/
402
 
403
  public static function render_widget_contact_btn_html() {
437
  if ( class_exists( 'Vk_Font_Awesome_Versions' ) ) {
438
  $class = Vk_Font_Awesome_Versions::class_switch( $class, 'fas fa-edit' );
439
  }
440
+ $cont .= '<div class="veu_adminEdit"><a href="' . admin_url() . 'admin.php?page=vkExUnit_main_setting#vkExUnit_contact" class="btn btn-default" target="_blank"><i class="' . $class . '"></i> ' . __( 'Edit contact information', 'vk-all-in-one-expansion-unit' ) . '</a></div>';
441
  }
442
  return $cont;
443
  }
446
 
447
  VkExUnit_Contact::instance();
448
 
449
+ /*
450
+ Contact Button Widget
451
  /*-------------------------------------------*/
452
 
453
  class WP_Widget_VkExUnit_Contact_Button extends WP_Widget {
454
 
455
  function __construct() {
456
+ $widget_name = veu_get_prefix() . __( 'Contact Button', 'vk-all-in-one-expansion-unit' );
457
+ $widget_description = __( 'Display contact button.', 'vk-all-in-one-expansion-unit' );
458
+ $widget_description .= ' ( ' . sprintf( __( 'It is necessary to set the "%s" -> "Contact Information" section in "Main setting" page.', 'vk-all-in-one-expansion-unit' ), veu_get_little_short_name() ) . ' ) ';
459
  parent::__construct(
460
  'vkExUnit_contact',
461
  $widget_name,
482
 
483
  function form( $instance ) {
484
  echo '<div style="padding:1em 0;">';
485
+ $widget_description = __( 'Display contact button', 'vk-all-in-one-expansion-unit' );
486
+ $widget_description .= ' ( ' . sprintf( __( 'It is necessary to set the "%s" -> "Contact Information" section in "Main setting" page.', 'vk-all-in-one-expansion-unit' ), veu_get_little_short_name() ) . ' ) ';
487
  echo $widget_description;
488
  echo '</div>';
489
  return $instance;
496
  }
497
 
498
 
499
+ /*
500
+ Contact Section Widget
501
  /*-------------------------------------------*/
502
  class WP_Widget_VkExUnit_Contact_Section extends WP_Widget {
503
 
504
  function __construct() {
505
 
506
+ $widget_name = veu_get_prefix() . __( 'Contact Section', 'vk-all-in-one-expansion-unit' );
507
+ $widget_description = __( 'Display Phone number and contact button etc.', 'vk-all-in-one-expansion-unit' );
508
+ $widget_description .= ' ( ' . sprintf( __( 'It is necessary to set the "%s" -> "Contact Information" section in "Main setting" page.', 'vk-all-in-one-expansion-unit' ), veu_get_little_short_name() ) . ' ) ';
509
 
510
  parent::__construct(
511
  'vkExUnit_contact_section',
533
 
534
  function form( $instance ) {
535
  echo '<div style="padding:1em 0;">';
536
+ _e( sprintf( __( '*It is necessary to set the "%s" -> "Contact Information" section in "Main setting" page.', 'vk-all-in-one-expansion-unit' ), veu_get_little_short_name() ) );
537
  echo '</div>';
538
  return $instance;
539
  }
{plugins → inc}/contact-section/customizer.php RENAMED
@@ -20,7 +20,7 @@ function veu_customize_register_contact( $wp_customize ) {
20
  /*-------------------------------------------*/
21
  $wp_customize->add_section(
22
  'veu_contact_setting', array(
23
- 'title' => __( 'Contact Settings', 'vkExUnit' ),
24
  'priority' => 1000,
25
  'panel' => 'veu_setting',
26
  )
@@ -30,15 +30,15 @@ function veu_customize_register_contact( $wp_customize ) {
30
  $wp_customize->add_setting( 'veu_contact_description', array( 'sanitize_callback' => 'sanitize_text_field' ) );
31
 
32
  $custom_html = '<p>';
33
- $custom_html .= __( 'The contents entered here will be reflected in the bottom of each fixed page, the "Contact Section" widget, the "Contact Button" widget, etc.', 'vkExUnit' );
34
  $custom_html .= '<br>';
35
- $custom_html .= __( 'When I display it on the page, it is necessary to classify a check into "Display Contact Section" checkbox with the edit page of each page.', 'vkExUnit' );
36
  $custom_html .= '</p>';
37
 
38
  $wp_customize->add_control(
39
  new ExUnit_Custom_Html(
40
  $wp_customize, 'veu_contact_description', array(
41
- // 'label' => __( '', 'vkExUnit' ),
42
  'section' => 'veu_contact_setting',
43
  'type' => 'text',
44
  'priority' => 1,
@@ -50,7 +50,7 @@ function veu_customize_register_contact( $wp_customize ) {
50
  // Message
51
  $wp_customize->add_setting(
52
  'vkExUnit_contact[contact_txt]', array(
53
- 'default' => __( 'Please feel free to inquire.', 'vkExUnit' ),
54
  'type' => 'option', // 保存先 option or theme_mod
55
  'capability' => 'edit_theme_options',
56
  'sanitize_callback' => 'sanitize_text_field',
@@ -59,12 +59,12 @@ function veu_customize_register_contact( $wp_customize ) {
59
 
60
  $wp_customize->add_control(
61
  'contact_txt', array(
62
- 'label' => __( 'Message', 'vkExUnit' ),
63
  'section' => 'veu_contact_setting',
64
  'settings' => 'vkExUnit_contact[contact_txt]',
65
  'type' => 'text',
66
  'priority' => 1,
67
- 'description' => __( 'ex) ', 'vkExUnit' ) . __( 'Please feel free to inquire.', 'vkExUnit' ),
68
  )
69
  );
70
 
@@ -80,19 +80,40 @@ function veu_customize_register_contact( $wp_customize ) {
80
 
81
  $wp_customize->add_control(
82
  'tel_number', array(
83
- 'label' => __( 'Phone number', 'vkExUnit' ),
84
  'section' => 'veu_contact_setting',
85
  'settings' => 'vkExUnit_contact[tel_number]',
86
  'type' => 'text',
87
  'priority' => 1,
88
- 'description' => __( 'ex) ', 'vkExUnit' ) . '000-000-0000',
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
89
  )
90
  );
91
 
92
  // Office hours
93
  $wp_customize->add_setting(
94
  'vkExUnit_contact[contact_time]', array(
95
- 'default' => __( 'Office hours 9:00 - 18:00 [ Weekdays except holidays ]', 'vkExUnit' ),
96
  'type' => 'option', // 保存先 option or theme_mod
97
  'capability' => 'edit_theme_options',
98
  'sanitize_callback' => 'sanitize_text_field',
@@ -101,12 +122,12 @@ function veu_customize_register_contact( $wp_customize ) {
101
 
102
  $wp_customize->add_control(
103
  'contact_time', array(
104
- 'label' => __( 'Office hours', 'vkExUnit' ),
105
  'section' => 'veu_contact_setting',
106
  'settings' => 'vkExUnit_contact[contact_time]',
107
  'type' => 'text',
108
  'priority' => 1,
109
- 'description' => __( 'ex) ', 'vkExUnit' ) . __( 'Office hours', 'vkExUnit' ) . ' 9:00 - 18:00 [ ' . __( 'Weekdays except holidays', 'vkExUnit' ) . ' ]',
110
  )
111
  );
112
 
@@ -122,19 +143,19 @@ function veu_customize_register_contact( $wp_customize ) {
122
 
123
  $wp_customize->add_control(
124
  'contact_link', array(
125
- 'label' => __( 'The contact page URL', 'vkExUnit' ),
126
  'section' => 'veu_contact_setting',
127
  'settings' => 'vkExUnit_contact[contact_link]',
128
  'type' => 'text',
129
  'priority' => 1,
130
- 'description' => __( 'ex) ', 'vkExUnit' ) . 'https://www.********.com/contact/ ' . __( 'or', 'vkExUnit' ) . ' /contact/<br>' . __( '* If you fill in the blank, widget\'s contact button does not appear.', 'vkExUnit' ),
131
  )
132
  );
133
 
134
  // Contact button Text
135
  $wp_customize->add_setting(
136
  'vkExUnit_contact[button_text]', array(
137
- 'default' => __( 'Contact us', 'vkExUnit' ),
138
  'type' => 'option', // 保存先 option or theme_mod
139
  'capability' => 'edit_theme_options',
140
  'sanitize_callback' => 'sanitize_text_field',
@@ -143,12 +164,12 @@ function veu_customize_register_contact( $wp_customize ) {
143
 
144
  $wp_customize->add_control(
145
  'button_text', array(
146
- 'label' => __( 'Contact button Text', 'vkExUnit' ),
147
  'section' => 'veu_contact_setting',
148
  'settings' => 'vkExUnit_contact[button_text]',
149
  'type' => 'text',
150
  'priority' => 1,
151
- 'description' => __( 'ex) ', 'vkExUnit' ) . __( 'Contact Us from email.', 'vkExUnit' ),
152
  )
153
  );
154
 
@@ -164,19 +185,19 @@ function veu_customize_register_contact( $wp_customize ) {
164
 
165
  $wp_customize->add_control(
166
  'button_text_small', array(
167
- 'label' => __( 'Contact button text( sub )', 'vkExUnit' ),
168
  'section' => 'veu_contact_setting',
169
  'settings' => 'vkExUnit_contact[button_text_small]',
170
  'type' => 'textarea',
171
  'priority' => 1,
172
- 'description' => __( 'ex) ', 'vkExUnit' ) . __( 'Email contact form', 'vkExUnit' ),
173
  )
174
  );
175
 
176
  // Contact button short text for side widget
177
  $wp_customize->add_setting(
178
  'vkExUnit_contact[short_text]', array(
179
- 'default' => __( 'Contact us', 'vkExUnit' ),
180
  'type' => 'option', // 保存先 option or theme_mod
181
  'capability' => 'edit_theme_options',
182
  'sanitize_callback' => 'sanitize_text_field',
@@ -185,12 +206,12 @@ function veu_customize_register_contact( $wp_customize ) {
185
 
186
  $wp_customize->add_control(
187
  'short_text', array(
188
- 'label' => __( 'Contact button short text for side widget', 'vkExUnit' ),
189
  'section' => 'veu_contact_setting',
190
  'settings' => 'vkExUnit_contact[short_text]',
191
  'type' => 'text',
192
  'priority' => 1,
193
- 'description' => __( 'This will used to "Contact Button" widget.', 'vkExUnit' ),
194
  )
195
  );
196
 
@@ -204,17 +225,17 @@ function veu_customize_register_contact( $wp_customize ) {
204
  )
205
  );
206
 
207
- $decription = __( 'Display the image instead of the above inquiry information', 'vkExUnit' );
208
  $skin = get_option( 'lightning_design_skin' );
209
  if ( $skin == 'fort' || $skin == 'pale' ) {
210
- $decription .= '<br>* ' . __( 'It is not reflected in the header.', 'vkExUnit' );
211
  }
212
  $wp_customize->add_control(
213
  new WP_Customize_Image_Control(
214
  $wp_customize,
215
  'contact_image',
216
  array(
217
- 'label' => __( 'Inquiry Banner image', 'vkExUnit' ),
218
  'section' => 'veu_contact_setting',
219
  'settings' => 'vkExUnit_contact[contact_image]',
220
  'priority' => 1,
@@ -233,14 +254,14 @@ function veu_customize_register_contact( $wp_customize ) {
233
  )
234
  );
235
 
236
- $decription = __( 'HTML takes precedence over image', 'vkExUnit' );
237
  $skin = get_option( 'lightning_design_skin' );
238
  if ( $skin == 'fort' || $skin == 'pale' ) {
239
- $decription .= '<br>* ' . __( 'It is not reflected in the header.', 'vkExUnit' );
240
  }
241
  $wp_customize->add_control(
242
  'contact_html', array(
243
- 'label' => __( 'Display HTML message instead of the standard', 'vkExUnit' ),
244
  'section' => 'veu_contact_setting',
245
  'settings' => 'vkExUnit_contact[contact_html]',
246
  'type' => 'textarea',
20
  /*-------------------------------------------*/
21
  $wp_customize->add_section(
22
  'veu_contact_setting', array(
23
+ 'title' => __( 'Contact Settings', 'vk-all-in-one-expansion-unit' ),
24
  'priority' => 1000,
25
  'panel' => 'veu_setting',
26
  )
30
  $wp_customize->add_setting( 'veu_contact_description', array( 'sanitize_callback' => 'sanitize_text_field' ) );
31
 
32
  $custom_html = '<p>';
33
+ $custom_html .= __( 'The contents entered here will be reflected in the bottom of each fixed page, the "Contact Section" widget, the "Contact Button" widget, etc.', 'vk-all-in-one-expansion-unit' );
34
  $custom_html .= '<br>';
35
+ $custom_html .= __( 'When I display it on the page, it is necessary to classify a check into "Display Contact Section" checkbox with the edit page of each page.', 'vk-all-in-one-expansion-unit' );
36
  $custom_html .= '</p>';
37
 
38
  $wp_customize->add_control(
39
  new ExUnit_Custom_Html(
40
  $wp_customize, 'veu_contact_description', array(
41
+ // 'label' => __( '', 'vk-all-in-one-expansion-unit' ),
42
  'section' => 'veu_contact_setting',
43
  'type' => 'text',
44
  'priority' => 1,
50
  // Message
51
  $wp_customize->add_setting(
52
  'vkExUnit_contact[contact_txt]', array(
53
+ 'default' => __( 'Please feel free to inquire.', 'vk-all-in-one-expansion-unit' ),
54
  'type' => 'option', // 保存先 option or theme_mod
55
  'capability' => 'edit_theme_options',
56
  'sanitize_callback' => 'sanitize_text_field',
59
 
60
  $wp_customize->add_control(
61
  'contact_txt', array(
62
+ 'label' => __( 'Message', 'vk-all-in-one-expansion-unit' ),
63
  'section' => 'veu_contact_setting',
64
  'settings' => 'vkExUnit_contact[contact_txt]',
65
  'type' => 'text',
66
  'priority' => 1,
67
+ 'description' => __( 'ex) ', 'vk-all-in-one-expansion-unit' ) . __( 'Please feel free to inquire.', 'vk-all-in-one-expansion-unit' ),
68
  )
69
  );
70
 
80
 
81
  $wp_customize->add_control(
82
  'tel_number', array(
83
+ 'label' => __( 'Phone number', 'vk-all-in-one-expansion-unit' ),
84
  'section' => 'veu_contact_setting',
85
  'settings' => 'vkExUnit_contact[tel_number]',
86
  'type' => 'text',
87
  'priority' => 1,
88
+ 'description' => __( 'ex) ', 'vk-all-in-one-expansion-unit' ) . '000-000-0000',
89
+ )
90
+ );
91
+
92
+ // Phone icon
93
+ $wp_customize->add_setting(
94
+ 'vkExUnit_contact[tel_icon]', array(
95
+ 'default' => '',
96
+ 'type' => 'option', // 保存先 option or theme_mod
97
+ 'capability' => 'edit_theme_options',
98
+ 'sanitize_callback' => 'sanitize_text_field',
99
+ )
100
+ );
101
+
102
+ $wp_customize->add_control(
103
+ 'tel_icon', array(
104
+ 'label' => __( 'Phone icon', 'vk-all-in-one-expansion-unit' ),
105
+ 'section' => 'veu_contact_setting',
106
+ 'settings' => 'vkExUnit_contact[tel_icon]',
107
+ 'type' => 'text',
108
+ 'priority' => 1,
109
+ 'description' => __( 'ex) ', 'vk-all-in-one-expansion-unit' ) . 'fas fa-phone-square [ <a href="https://fontawesome.com/icons?d=gallery&q=phone&m=free" target="_blank" rel="noopener noreferrer">lcon list</a> ]',
110
  )
111
  );
112
 
113
  // Office hours
114
  $wp_customize->add_setting(
115
  'vkExUnit_contact[contact_time]', array(
116
+ 'default' => __( 'Office hours 9:00 - 18:00 [ Weekdays except holidays ]', 'vk-all-in-one-expansion-unit' ),
117
  'type' => 'option', // 保存先 option or theme_mod
118
  'capability' => 'edit_theme_options',
119
  'sanitize_callback' => 'sanitize_text_field',
122
 
123
  $wp_customize->add_control(
124
  'contact_time', array(
125
+ 'label' => __( 'Office hours', 'vk-all-in-one-expansion-unit' ),
126
  'section' => 'veu_contact_setting',
127
  'settings' => 'vkExUnit_contact[contact_time]',
128
  'type' => 'text',
129
  'priority' => 1,
130
+ 'description' => __( 'ex) ', 'vk-all-in-one-expansion-unit' ) . __( 'Office hours', 'vk-all-in-one-expansion-unit' ) . ' 9:00 - 18:00 [ ' . __( 'Weekdays except holidays', 'vk-all-in-one-expansion-unit' ) . ' ]',
131
  )
132
  );
133
 
143
 
144
  $wp_customize->add_control(
145
  'contact_link', array(
146
+ 'label' => __( 'The contact page URL', 'vk-all-in-one-expansion-unit' ),
147
  'section' => 'veu_contact_setting',
148
  'settings' => 'vkExUnit_contact[contact_link]',
149
  'type' => 'text',
150
  'priority' => 1,
151
+ 'description' => __( 'ex) ', 'vk-all-in-one-expansion-unit' ) . 'https://www.********.com/contact/ ' . __( 'or', 'vk-all-in-one-expansion-unit' ) . ' /contact/<br>' . __( '* If you fill in the blank, widget\'s contact button does not appear.', 'vk-all-in-one-expansion-unit' ),
152
  )
153
  );
154
 
155
  // Contact button Text
156
  $wp_customize->add_setting(
157
  'vkExUnit_contact[button_text]', array(
158
+ 'default' => __( 'Contact us', 'vk-all-in-one-expansion-unit' ),
159
  'type' => 'option', // 保存先 option or theme_mod
160
  'capability' => 'edit_theme_options',
161
  'sanitize_callback' => 'sanitize_text_field',
164
 
165
  $wp_customize->add_control(
166
  'button_text', array(
167
+ 'label' => __( 'Contact button Text', 'vk-all-in-one-expansion-unit' ),
168
  'section' => 'veu_contact_setting',
169
  'settings' => 'vkExUnit_contact[button_text]',
170
  'type' => 'text',
171
  'priority' => 1,
172
+ 'description' => __( 'ex) ', 'vk-all-in-one-expansion-unit' ) . __( 'Contact Us from email.', 'vk-all-in-one-expansion-unit' ),
173
  )
174
  );
175
 
185
 
186
  $wp_customize->add_control(
187
  'button_text_small', array(
188
+ 'label' => __( 'Contact button text( sub )', 'vk-all-in-one-expansion-unit' ),
189
  'section' => 'veu_contact_setting',
190
  'settings' => 'vkExUnit_contact[button_text_small]',
191
  'type' => 'textarea',
192
  'priority' => 1,
193
+ 'description' => __( 'ex) ', 'vk-all-in-one-expansion-unit' ) . __( 'Email contact form', 'vk-all-in-one-expansion-unit' ),
194
  )
195
  );
196
 
197
  // Contact button short text for side widget
198
  $wp_customize->add_setting(
199
  'vkExUnit_contact[short_text]', array(
200
+ 'default' => __( 'Contact us', 'vk-all-in-one-expansion-unit' ),
201
  'type' => 'option', // 保存先 option or theme_mod
202
  'capability' => 'edit_theme_options',
203
  'sanitize_callback' => 'sanitize_text_field',
206
 
207
  $wp_customize->add_control(
208
  'short_text', array(
209
+ 'label' => __( 'Contact button short text for side widget', 'vk-all-in-one-expansion-unit' ),
210
  'section' => 'veu_contact_setting',
211
  'settings' => 'vkExUnit_contact[short_text]',
212
  'type' => 'text',
213
  'priority' => 1,
214
+ 'description' => __( 'This will used to "Contact Button" widget.', 'vk-all-in-one-expansion-unit' ),
215
  )
216
  );
217
 
225
  )
226
  );
227
 
228
+ $decription = __( 'Display the image instead of the above inquiry information', 'vk-all-in-one-expansion-unit' );
229
  $skin = get_option( 'lightning_design_skin' );
230
  if ( $skin == 'fort' || $skin == 'pale' ) {
231
+ $decription .= '<br>* ' . __( 'It is not reflected in the header.', 'vk-all-in-one-expansion-unit' );
232
  }
233
  $wp_customize->add_control(
234
  new WP_Customize_Image_Control(
235
  $wp_customize,
236
  'contact_image',
237
  array(
238
+ 'label' => __( 'Inquiry Banner image', 'vk-all-in-one-expansion-unit' ),
239
  'section' => 'veu_contact_setting',
240
  'settings' => 'vkExUnit_contact[contact_image]',
241
  'priority' => 1,
254
  )
255
  );
256
 
257
+ $decription = __( 'HTML takes precedence over image', 'vk-all-in-one-expansion-unit' );
258
  $skin = get_option( 'lightning_design_skin' );
259
  if ( $skin == 'fort' || $skin == 'pale' ) {
260
+ $decription .= '<br>* ' . __( 'It is not reflected in the header.', 'vk-all-in-one-expansion-unit' );
261
  }
262
  $wp_customize->add_control(
263
  'contact_html', array(
264
+ 'label' => __( 'Display HTML message instead of the standard', 'vk-all-in-one-expansion-unit' ),
265
  'section' => 'veu_contact_setting',
266
  'settings' => 'vkExUnit_contact[contact_html]',
267
  'type' => 'textarea',
inc/css-customize/class-veu-metabox-css-customize.php ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ if ( ! class_exists( 'VEU_Metabox' ) ) {
4
+ return;
5
+ }
6
+
7
+ class VEU_Metabox_CSS_Customize extends VEU_Metabox {
8
+
9
+ public function __construct( $args = array() ) {
10
+
11
+ $this->args = array(
12
+ 'slug' => 'veu_custom_css',
13
+ 'cf_name' => '_veu_custom_css',
14
+ 'title' => __( 'Custom CSS', 'vk-all-in-one-expansion-unit' ),
15
+ 'priority' => 100,
16
+ );
17
+
18
+ parent::__construct( $this->args );
19
+
20
+ }
21
+
22
+ /**
23
+ * metabox_body_form
24
+ * Form inner
25
+ *
26
+ * @return [type] [description]
27
+ */
28
+ public function metabox_body_form( $cf_value ) {
29
+
30
+ $form = '';
31
+
32
+ $form .= '<textarea name="' . esc_attr( $this->args['cf_name'] ) . '" id="' . esc_attr( $this->args['cf_name'] ) . '" rows="5" cols="30" style="width:100%;">' . wp_kses_post( $cf_value ) . '</textarea>';
33
+
34
+ return $form;
35
+ }
36
+
37
+ } // class VEU_Metabox_CSS_Customize {
38
+
39
+ $veu_metabox_css_customize = new VEU_Metabox_CSS_Customize();
plugins/css_customize/css_customize-edit.php → inc/css-customize/css-customize-edit.php RENAMED
@@ -1,16 +1,16 @@
1
  <div class="wrap">
2
- <h2><?php echo vkExUnit_get_name(); ?> <?php _e( 'CSS Customize', 'vkExUnit' ) ?></h2>
3
  <div class="fileedit-sub"></div>
4
  <?php echo $data['mess']; ?>
5
- <p><?php _e( 'You can add custom CSS here.', 'vkExUnit' );?></p>
6
  <?php if ( get_locale() == 'ja' ) { ?>
7
  <p>CSSのカスタマイズについては、<a href="https://www.vektor-inc.co.jp/post/css_customize/" target="_blank">こちらのページ</a>を参照してください。</p>
8
  <?php } ?>
9
  <form action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post" id="template">
10
- <textarea name="bv-css-css" cols="70" rows="10" id="newcontent"><?php echo esc_attr($data['customCss']); ?></textarea>
11
- <?php wp_nonce_field( 'biz-vektor-css-submit', 'biz-vektor-css-nonce'); ?>
12
  <p class="submit">
13
- <input type="submit" name="bv-css-submit" class="button button-primary" value="<?php _e( 'Save CSS', 'vkExUnit' ); ?>" />
14
  </p>
15
  </form>
16
 
1
  <div class="wrap">
2
+ <h2><?php echo vkExUnit_get_name(); ?> <?php _e( 'CSS Customize', 'vk-all-in-one-expansion-unit' ); ?></h2>
3
  <div class="fileedit-sub"></div>
4
  <?php echo $data['mess']; ?>
5
+ <p><?php _e( 'You can add custom CSS here.', 'vk-all-in-one-expansion-unit' ); ?></p>
6
  <?php if ( get_locale() == 'ja' ) { ?>
7
  <p>CSSのカスタマイズについては、<a href="https://www.vektor-inc.co.jp/post/css_customize/" target="_blank">こちらのページ</a>を参照してください。</p>
8
  <?php } ?>
9
  <form action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post" id="template">
10
+ <textarea name="bv-css-css" cols="70" rows="10" id="newcontent"><?php echo esc_attr( $data['customCss'] ); ?></textarea>
11
+ <?php wp_nonce_field( 'biz-vektor-css-submit', 'biz-vektor-css-nonce' ); ?>
12
  <p class="submit">
13
+ <input type="submit" name="bv-css-submit" class="button button-primary" value="<?php _e( 'Save CSS', 'vk-all-in-one-expansion-unit' ); ?>" />
14
  </p>
15
  </form>
16
 
inc/css-customize/css-customize-single.php ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Custom CSS
4
+ /* ------------------------------------------- */
5
+
6
+ // </head>タグの直上に出力させたいので第三引数に 50 を設定
7
+ add_action( 'wp_head', 'veu_insert_custom_css', 201 );
8
+
9
+ /*
10
+ 入力された CSS をソースに出力
11
+ /* ------------------------------------------------ */
12
+ function veu_insert_custom_css() {
13
+
14
+ if ( is_singular() ) {
15
+ // if 現在の WordPress クエリにループできる結果があるかどうか
16
+ // while 記事がある間ループして1件ずつ処理する
17
+ if ( have_posts() ) :
18
+ while ( have_posts() ) :
19
+ the_post();
20
+ global $post;
21
+ echo '<style type="text/css">' . veu_get_the_custom_css_single( $post ) . '</style>';
22
+ endwhile;
23
+ endif;
24
+ // ページ上の別の場所で同じクエリを再利用するために、ループの投稿情報を巻き戻し、前回と同じ順序で先頭の投稿を取得できるように
25
+ rewind_posts();
26
+ }
27
+
28
+ } // function veu_insert_custom_css() {
29
+
30
+ function veu_get_the_custom_css_single( $post ) {
31
+ $css_customize = get_post_meta( $post->ID, '_veu_custom_css', true );
32
+ if ( $css_customize ) {
33
+ // delete br
34
+ $css_customize = str_replace( PHP_EOL, '', $css_customize );
35
+ // delete tab
36
+ $css_customize = preg_replace( '/[\n\r\t]/', '', $css_customize );
37
+ // multi space convert to single space
38
+ $css_customize = preg_replace( '/\s(?=\s)/', '', $css_customize );
39
+ }
40
+ return strip_tags( $css_customize );
41
+ }
plugins/css_customize/css_customize.php → inc/css-customize/css-customize.php RENAMED
@@ -1,22 +1,36 @@
1
  <?php
2
  $wp_theme = wp_get_theme();
3
 
4
- $customize = new biz_vektor_css_customize();
5
 
6
-
7
- class biz_vektor_css_customize {
8
 
9
  public function __construct() {
10
  $this->set_hook();
11
  }
12
 
13
-
14
  public function set_hook() {
15
  add_action( 'admin_footer', array( $this, 'css_customize_page_js_and_css' ) );
16
- add_action( 'wp_head', array( $this, 'biz_vektor_css_customize_push_css' ), 200 );
17
- add_action( 'admin_menu', array( $this, 'biz_vektor_css_customize_menu' ) );
 
 
 
 
18
  add_action( 'vkExUnit_action_adminbar', array( $this, 'admin_bar' ) );
19
- require_once( vkExUnit_get_directory() . '/plugins/css_customize/css_customize-single.php' );
 
 
 
 
 
 
 
 
 
 
 
 
20
  }
21
 
22
  public function admin_bar( $wp_admin_bar ) {
@@ -26,40 +40,40 @@ class biz_vektor_css_customize {
26
  array(
27
  'parent' => 'veu_adminlink',
28
  'id' => 'veu_adminlink_css',
29
- 'title' => __( 'CSS Customize', 'vkExUnit' ),
30
  'href' => admin_url() . 'admin.php?page=vkExUnit_css_customize',
31
  )
32
  );
33
  }
34
  }
35
 
 
 
36
  /*-------------------------------------------*/
37
- /* CSSカスタマイズ」のメニュー
38
- /*-------------------------------------------*/
39
- public function biz_vektor_css_customize_menu() {
40
  // $capability_required = veu_get_capability_required();
41
  add_submenu_page(
42
  'vkExUnit_setting_page',
43
- __( 'CSS Customize', 'vkExUnit' ),
44
- __( 'CSS Customize', 'vkExUnit' ),
45
  // $capability_required, // edit_theme_optionsのユーザーにもアクセスさせないため
46
  'activate_plugins',
47
  'vkExUnit_css_customize',
48
- array( $this, 'biz_vektor_css_customize_render_page' )
49
  );
50
  }
51
 
52
 
53
- public function biz_vektor_css_customize_render_page() {
54
 
55
- $data = $this->biz_vektor_css_customize_valid_form();
56
 
57
- include( vkExUnit_get_directory() . '/plugins/css_customize/css_customize-edit.php' );
58
  }
59
 
60
 
61
- /*-------------------------------------------*/
62
- /* 設定画面のCSSとJS
63
  /*-------------------------------------------*/
64
  public function css_customize_page_js_and_css( $hook_suffix ) {
65
  global $hook_suffix;
@@ -78,14 +92,12 @@ class biz_vektor_css_customize {
78
  });
79
  });
80
  </script>
81
-
82
-
83
  <?php
84
  }
85
  }
86
 
87
 
88
- public function biz_vektor_css_customize_valid_form() {
89
 
90
  $data = array(
91
  'mess' => '',
@@ -104,33 +116,52 @@ class biz_vektor_css_customize {
104
  $data['mess'] = '<div id="message" class="error"><p>' . __( 'Error occured. Please try again.', 'biz-vektor' ) . '</p></div>'; }
105
  }
106
 
107
- $data['customCss'] = $this->biz_vektor_css_customize_get_css();
108
 
109
  return $data;
110
  }
111
 
 
112
 
113
- public function biz_vektor_css_customize_get_css() {
114
 
115
- if ( get_option( 'vkExUnit_css_customize' ) ) {
116
- return get_option( 'vkExUnit_css_customize' ); } else {
117
- return ''; }
118
- }
119
-
120
-
121
- public function biz_vektor_css_customize_push_css() {
122
-
123
- if ( get_option( 'vkExUnit_css_customize' ) ) {
124
- $css_customize = get_option( 'vkExUnit_css_customize' );
125
  // delete br
126
  $css_customize = str_replace( PHP_EOL, '', $css_customize );
127
  // delete tab
128
  $css_customize = preg_replace( '/[\n\r\t]/', '', $css_customize );
129
  // multi space convert to single space
130
  $css_customize = preg_replace( '/\s(?=\s)/', '', $css_customize );
 
 
 
 
 
 
 
 
 
 
 
 
 
131
  ?>
132
  <style type="text/css">/* <?php echo veu_get_short_name(); ?> CSS Customize */<?php echo $css_customize; ?>/* End <?php echo veu_get_short_name(); ?> CSS Customize */</style>
133
  <?php
134
  } // if ( get_option( 'vkExUnit_css_customize' ) ) {
135
- } // public function biz_vektor_css_customize_push_css() {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
136
  }
1
  <?php
2
  $wp_theme = wp_get_theme();
3
 
4
+ $customize = new veu_css_customize();
5
 
6
+ class veu_css_customize {
 
7
 
8
  public function __construct() {
9
  $this->set_hook();
10
  }
11
 
 
12
  public function set_hook() {
13
  add_action( 'admin_footer', array( $this, 'css_customize_page_js_and_css' ) );
14
+ add_action( 'wp_head', array( $this, 'css_customize_push_css' ), 200 );
15
+
16
+ // 編集画面への反映
17
+ // add_filter( 'tiny_mce_before_init', array( $this, 'css_customize_push_editor_css' ) );
18
+ //
19
+ add_action( 'admin_menu', array( $this, 'css_customize_menu' ), 20 );
20
  add_action( 'vkExUnit_action_adminbar', array( $this, 'admin_bar' ) );
21
+ require_once( dirname( __FILE__ ) . '/css-customize-single.php' );
22
+
23
+ /*
24
+ VEU_Metabox 内の get_post_type が実行タイミングによっては
25
+ カスタム投稿タイプマネージャーで作成した投稿タイプが取得できないために
26
+ admin_menu のタイミングで読み込んでいる
27
+ */
28
+ add_action(
29
+ 'admin_menu', function() {
30
+ require_once( dirname( __FILE__ ) . '/class-veu-metabox-css-customize.php' );
31
+ }
32
+ );
33
+
34
  }
35
 
36
  public function admin_bar( $wp_admin_bar ) {
40
  array(
41
  'parent' => 'veu_adminlink',
42
  'id' => 'veu_adminlink_css',
43
+ 'title' => __( 'CSS Customize', 'vk-all-in-one-expansion-unit' ),
44
  'href' => admin_url() . 'admin.php?page=vkExUnit_css_customize',
45
  )
46
  );
47
  }
48
  }
49
 
50
+ /*
51
+ 「CSSカスタマイズ」のメニュー
52
  /*-------------------------------------------*/
53
+ public function css_customize_menu() {
 
 
54
  // $capability_required = veu_get_capability_required();
55
  add_submenu_page(
56
  'vkExUnit_setting_page',
57
+ __( 'CSS Customize', 'vk-all-in-one-expansion-unit' ),
58
+ __( 'CSS Customize', 'vk-all-in-one-expansion-unit' ),
59
  // $capability_required, // edit_theme_optionsのユーザーにもアクセスさせないため
60
  'activate_plugins',
61
  'vkExUnit_css_customize',
62
+ array( $this, 'css_customize_render_page' )
63
  );
64
  }
65
 
66
 
67
+ public function css_customize_render_page() {
68
 
69
+ $data = $this->css_customize_valid_form();
70
 
71
+ include( veu_get_directory() . '/inc/css-customize/css-customize-edit.php' );
72
  }
73
 
74
 
75
+ /*
76
+ 設定画面のCSSとJS
77
  /*-------------------------------------------*/
78
  public function css_customize_page_js_and_css( $hook_suffix ) {
79
  global $hook_suffix;
92
  });
93
  });
94
  </script>
 
 
95
  <?php
96
  }
97
  }
98
 
99
 
100
+ public function css_customize_valid_form() {
101
 
102
  $data = array(
103
  'mess' => '',
116
  $data['mess'] = '<div id="message" class="error"><p>' . __( 'Error occured. Please try again.', 'biz-vektor' ) . '</p></div>'; }
117
  }
118
 
119
+ $data['customCss'] = get_option( 'vkExUnit_css_customize' );
120
 
121
  return $data;
122
  }
123
 
124
+ public static function css_customize_get_css_min() {
125
 
126
+ $css_customize = get_option( 'vkExUnit_css_customize' );
127
 
128
+ if ( $css_customize ) {
 
 
 
 
 
 
 
 
 
129
  // delete br
130
  $css_customize = str_replace( PHP_EOL, '', $css_customize );
131
  // delete tab
132
  $css_customize = preg_replace( '/[\n\r\t]/', '', $css_customize );
133
  // multi space convert to single space
134
  $css_customize = preg_replace( '/\s(?=\s)/', '', $css_customize );
135
+ }
136
+ return $css_customize;
137
+
138
+ }
139
+
140
+ public static function css_customize_get_the_css_min() {
141
+ $css_customize = strip_tags( veu_css_customize::css_customize_get_css_min() );
142
+ return $css_customize;
143
+ }
144
+
145
+ public function css_customize_push_css() {
146
+ $css_customize = veu_css_customize::css_customize_get_the_css_min();
147
+ if ( $css_customize ) {
148
  ?>
149
  <style type="text/css">/* <?php echo veu_get_short_name(); ?> CSS Customize */<?php echo $css_customize; ?>/* End <?php echo veu_get_short_name(); ?> CSS Customize */</style>
150
  <?php
151
  } // if ( get_option( 'vkExUnit_css_customize' ) ) {
152
+ } // public function css_customize_push_css() {
153
+
154
+ // public function css_customize_push_editor_css( $settings ) {
155
+ // $css_customize = $this->css_customize_get_css_min();
156
+ //
157
+ // .editor-styles-wrapper h2 { font-size:30px; }
158
+ //
159
+ // if ( isset( $settings['content_style'] ) ) {
160
+ // $settings['content_style'] .= $css_customize;
161
+ // } else {
162
+ // $settings['content_style'] = $css_customize;
163
+ // }
164
+ // $settings['content_style'] = $css_customize;
165
+ // return $settings;
166
+ // }
167
  }
plugins/disable_dashbord.php → inc/disable-dashbord.php RENAMED
File without changes
{plugins → inc}/disable_ping-back.php RENAMED
File without changes
{plugins → inc/font-awesome}/font-awesome-config.php RENAMED
@@ -1,9 +1,9 @@
1
  <?php
2
- /*-------------------------------------------*/
3
- /* Load modules
4
  /*-------------------------------------------*/
5
  if ( ! class_exists( 'Vk_Font_Awesome_Versions' ) ) {
6
- require_once( 'font-awesome/class-vk-font-awesome-versions.php' );
7
 
8
  global $font_awesome_directory_uri;
9
  $font_awesome_directory_uri = plugins_url( '', __FILE__ ) . '/font-awesome/';
1
  <?php
2
+ /*
3
+ Load modules
4
  /*-------------------------------------------*/
5
  if ( ! class_exists( 'Vk_Font_Awesome_Versions' ) ) {
6
+ require_once( 'package/class-vk-font-awesome-versions.php' );
7
 
8
  global $font_awesome_directory_uri;
9
  $font_awesome_directory_uri = plugins_url( '', __FILE__ ) . '/font-awesome/';
{plugins/font-awesome → inc/font-awesome/package}/class-vk-font-awesome-versions.php RENAMED
@@ -1,4 +1,9 @@
1
  <?php
 
 
 
 
 
2
 
3
  if ( ! class_exists( 'Vk_Font_Awesome_Versions' ) ) {
4
 
@@ -19,7 +24,7 @@ if ( ! class_exists( 'Vk_Font_Awesome_Versions' ) ) {
19
  global $font_awesome_directory_uri;
20
  $versions = array(
21
  '5_SVG_JS' => array(
22
- 'label' => '5 SVG with JS ( ' . __( 'Not recommended', 'vkExUnit' ) . ' )',
23
  'version' => '5.6',
24
  'type' => 'svg-with-js',
25
  /* [ Notice ] use editor css*/
@@ -34,7 +39,7 @@ if ( ! class_exists( 'Vk_Font_Awesome_Versions' ) ) {
34
  'url_js' => '',
35
  ),
36
  '4.7' => array(
37
- 'label' => '4.7 ( ' . __( 'Not recommended', 'vkExUnit' ) . ' )',
38
  'version' => '4.7',
39
  'type' => 'web-fonts-with-css',
40
  'url_css' => $font_awesome_directory_uri . 'versions/4.7.0/css/font-awesome.min.css',
@@ -66,9 +71,9 @@ if ( ! class_exists( 'Vk_Font_Awesome_Versions' ) ) {
66
  public static function ex_and_link() {
67
  $current_option = self::get_option_fa();
68
  if ( $current_option == '5_WebFonts_CSS' || $current_option == '5_SVG_JS' ) {
69
- $ex_and_link = '<strong>Font Awesome 5</strong><br>' . __( 'Ex ) ', 'vkExUnit' ) . 'far fa-file-alt [ <a href="//fontawesome.com/icons?d=gallery&m=free" target="_blank">Icon list</a> ]';
70
  } else {
71
- $ex_and_link = '<strong>Font Awesome 4.7</strong><br>' . __( 'Ex ) ', 'vkExUnit' ) . 'fa-file-text-o [ <a href="//fontawesome.com/v4.7.0/icons/" target="_blank">Icon list</a> ]';
72
  }
73
  return $ex_and_link;
74
  }
@@ -166,7 +171,7 @@ if ( ! class_exists( 'Vk_Font_Awesome_Versions' ) ) {
166
 
167
  $wp_customize->add_section(
168
  'VK Font Awesome', array(
169
- 'title' => $vk_font_awesome_version_prefix_customize_panel . __( 'Font Awesome', 'vkExUnit' ),
170
  'priority' => 450,
171
  )
172
  );
@@ -187,10 +192,10 @@ if ( ! class_exists( 'Vk_Font_Awesome_Versions' ) ) {
187
 
188
  $wp_customize->add_control(
189
  'vk_font_awesome_version', array(
190
- 'label' => __( 'Font Awesome Version', 'vkExUnit' ),
191
  'section' => 'VK Font Awesome',
192
  'settings' => 'vk_font_awesome_version',
193
- 'description' => __( '4.7 will be abolished in the near future.', 'vkExUnit' ),
194
  'type' => 'select',
195
  'priority' => '',
196
  'choices' => $choices,
1
  <?php
2
+ /*
3
+ このファイルの元ファイルは
4
+ https://github.com/vektor-inc/vektor-wp-libraries
5
+ にあります。修正の際は上記リポジトリのデータを修正してください。
6
+ */
7
 
8
  if ( ! class_exists( 'Vk_Font_Awesome_Versions' ) ) {
9
 
24
  global $font_awesome_directory_uri;
25
  $versions = array(
26
  '5_SVG_JS' => array(
27
+ 'label' => '5 SVG with JS ( ' . __( 'Not recommended', 'vk-all-in-one-expansion-unit' ) . ' )',
28
  'version' => '5.6',
29
  'type' => 'svg-with-js',
30
  /* [ Notice ] use editor css*/
39
  'url_js' => '',
40
  ),
41
  '4.7' => array(
42
+ 'label' => '4.7 ( ' . __( 'Not recommended', 'vk-all-in-one-expansion-unit' ) . ' )',
43
  'version' => '4.7',
44
  'type' => 'web-fonts-with-css',
45
  'url_css' => $font_awesome_directory_uri . 'versions/4.7.0/css/font-awesome.min.css',
71
  public static function ex_and_link() {
72
  $current_option = self::get_option_fa();
73
  if ( $current_option == '5_WebFonts_CSS' || $current_option == '5_SVG_JS' ) {
74
+ $ex_and_link = '<strong>Font Awesome 5</strong><br>' . __( 'Ex ) ', 'vk-all-in-one-expansion-unit' ) . 'far fa-file-alt [ <a href="//fontawesome.com/icons?d=gallery&m=free" target="_blank">Icon list</a> ]';
75
  } else {
76
+ $ex_and_link = '<strong>Font Awesome 4.7</strong><br>' . __( 'Ex ) ', 'vk-all-in-one-expansion-unit' ) . 'fa-file-text-o [ <a href="//fontawesome.com/v4.7.0/icons/" target="_blank">Icon list</a> ]';
77
  }
78
  return $ex_and_link;
79
  }
171
 
172
  $wp_customize->add_section(
173
  'VK Font Awesome', array(
174
+ 'title' => $vk_font_awesome_version_prefix_customize_panel . __( 'Font Awesome', 'vk-all-in-one-expansion-unit' ),
175
  'priority' => 450,
176
  )
177
  );
192
 
193
  $wp_customize->add_control(
194
  'vk_font_awesome_version', array(
195
+ 'label' => __( 'Font Awesome Version', 'vk-all-in-one-expansion-unit' ),
196
  'section' => 'VK Font Awesome',
197
  'settings' => 'vk_font_awesome_version',
198
+ 'description' => __( '4.7 will be abolished in the near future.', 'vk-all-in-one-expansion-unit' ),
199
  'type' => 'select',
200
  'priority' => '',
201
  'choices' => $choices,
{plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/HELP-US-OUT.txt RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/css/font-awesome.css RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/css/font-awesome.min.css RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/fonts/FontAwesome.otf RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/fonts/fontawesome-webfont.eot RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/fonts/fontawesome-webfont.svg RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/fonts/fontawesome-webfont.ttf RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/fonts/fontawesome-webfont.woff RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/fonts/fontawesome-webfont.woff2 RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/less/animated.less RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/less/bordered-pulled.less RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/less/core.less RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/less/fixed-width.less RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/less/font-awesome.less RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/less/icons.less RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/less/larger.less RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/less/list.less RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/less/mixins.less RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/less/path.less RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/less/rotated-flipped.less RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/less/screen-reader.less RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/less/stacked.less RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/less/variables.less RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/scss/_animated.scss RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/scss/_bordered-pulled.scss RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/scss/_core.scss RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/scss/_fixed-width.scss RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/scss/_icons.scss RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/scss/_larger.scss RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/scss/_list.scss RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/scss/_mixins.scss RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/scss/_path.scss RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/scss/_rotated-flipped.scss RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/scss/_screen-reader.scss RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/scss/_stacked.scss RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/scss/_variables.scss RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/4.7.0/scss/font-awesome.scss RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/5.6.0/LICENSE.txt RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/5.6.0/css/all.min.css RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/5.6.0/js/all.min.js RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/5.6.0/metadata/categories.yml RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/5.6.0/metadata/icons.json RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/5.6.0/metadata/icons.yml RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/5.6.0/metadata/shims.json RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/5.6.0/metadata/shims.yml RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/5.6.0/metadata/sponsors.yml RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/5.6.0/sprites/brands.svg RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/5.6.0/sprites/regular.svg RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/5.6.0/sprites/solid.svg RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/5.6.0/webfonts/fa-brands-400.eot RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/5.6.0/webfonts/fa-brands-400.svg RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/5.6.0/webfonts/fa-brands-400.ttf RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/5.6.0/webfonts/fa-brands-400.woff RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/5.6.0/webfonts/fa-brands-400.woff2 RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/5.6.0/webfonts/fa-regular-400.eot RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/5.6.0/webfonts/fa-regular-400.svg RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/5.6.0/webfonts/fa-regular-400.ttf RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/5.6.0/webfonts/fa-regular-400.woff RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/5.6.0/webfonts/fa-regular-400.woff2 RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/5.6.0/webfonts/fa-solid-900.eot RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/5.6.0/webfonts/fa-solid-900.svg RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/5.6.0/webfonts/fa-solid-900.ttf RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/5.6.0/webfonts/fa-solid-900.woff RENAMED
File without changes
{plugins/font-awesome → inc/font-awesome/package}/versions/5.6.0/webfonts/fa-solid-900.woff2 RENAMED
File without changes
plugins/footer_copyright_change.php → inc/footer-copyright-change.php RENAMED
@@ -3,7 +3,7 @@ add_filter( 'lightning_footerPoweredCustom', 'vkExUnit_lightning_footerPoweredCu
3
  function vkExUnit_lightning_footerPoweredCustom( $lightning_footerPowered ) {
4
  // Powered
5
  /*------------------*/
6
- $lightning_footerPowered = __( '<p>Powered by <a href="https://wordpress.org/">WordPress</a> with <a href="https://lightning.nagoya" target="_blank" title="Free WordPress Theme Lightning"> Lightning Theme</a> &amp; <a href="https://ex-unit.nagoya" target="_blank">VK All in One Expansion Unit</a> by <a href="//www.vektor-inc.co.jp" target="_blank">Vektor,Inc.</a> technology.</p>', 'vkExUnit' );
7
  return $lightning_footerPowered;
8
 
9
  }
3
  function vkExUnit_lightning_footerPoweredCustom( $lightning_footerPowered ) {
4
  // Powered
5
  /*------------------*/
6
+ $lightning_footerPowered = __( '<p>Powered by <a href="https://wordpress.org/">WordPress</a> with <a href="https://lightning.nagoya" target="_blank" title="Free WordPress Theme Lightning"> Lightning Theme</a> &amp; <a href="https://ex-unit.nagoya" target="_blank">VK All in One Expansion Unit</a> by <a href="//www.vektor-inc.co.jp" target="_blank">Vektor,Inc.</a> technology.</p>', 'vk-all-in-one-expansion-unit' );
7
  return $lightning_footerPowered;
8
 
9
  }
{plugins → inc}/google_analytics/ga_admin.php RENAMED
@@ -6,23 +6,23 @@
6
  /*-------------------------------------------*/
7
  ?>
8
  <div id="seoSetting" class="sectionBox">
9
- <h3><?php _e( 'Google Analytics Settings', 'vkExUnit' ); ?></h3>
10
  <table class="form-table">
11
  <!-- Google Analytics -->
12
  <tr>
13
- <th><?php _e( 'Google Analytics Settings', 'vkExUnit' ); ?></th>
14
- <td><?php _e( 'Please fill in the Google Analytics ID from the Analytics embed code used in the site.', 'vkExUnit' ); ?><br />
15
  <p>UA-<input type="text" name="vkExUnit_ga_options[gaId]" id="gaId" value="<?php echo esc_attr( $options['gaId'] ); ?>" style="width:90%;" /><br />
16
- <?php _e( 'ex) ', 'vkExUnit' );?>XXXXXXXX-X</p>
17
 
18
  <dl>
19
- <dt><?php _e( 'Please select the type of Analytics code . (If you are unsure you can skip this.)', 'vkExUnit' ); ?></dt>
20
  <dd>
21
  <?php
22
  $vkExUnit_gaTypes = array(
23
- 'gaType_gtag' => __( 'Recommendation ( gtag )', 'vkExUnit' ),
24
- 'gaType_universal' => __( 'Universal Analytics code ( analytics.js )', 'vkExUnit' ),
25
- 'gaType_normal' => __( 'Normal code ( analytics.js )', 'vkExUnit' ),
26
  );
27
  foreach ( $vkExUnit_gaTypes as $vkExUnit_gaTypeValue => $vkExUnit_gaTypeLavel ) {
28
  if ( $vkExUnit_gaTypeValue == $options['gaType'] ) { ?>
6
  /*-------------------------------------------*/
7
  ?>
8
  <div id="seoSetting" class="sectionBox">
9
+ <h3><?php _e( 'Google Analytics Settings', 'vk-all-in-one-expansion-unit' ); ?></h3>
10
  <table class="form-table">
11
  <!-- Google Analytics -->
12
  <tr>
13
+ <th><?php _e( 'Google Analytics Settings', 'vk-all-in-one-expansion-unit' ); ?></th>
14
+ <td><?php _e( 'Please fill in the Google Analytics ID from the Analytics embed code used in the site.', 'vk-all-in-one-expansion-unit' ); ?><br />
15
  <p>UA-<input type="text" name="vkExUnit_ga_options[gaId]" id="gaId" value="<?php echo esc_attr( $options['gaId'] ); ?>" style="width:90%;" /><br />
16
+ <?php _e( 'ex) ', 'vk-all-in-one-expansion-unit' );?>XXXXXXXX-X</p>
17
 
18
  <dl>
19
+ <dt><?php _e( 'Please select the type of Analytics code . (If you are unsure you can skip this.)', 'vk-all-in-one-expansion-unit' ); ?></dt>
20
  <dd>
21
  <?php
22
  $vkExUnit_gaTypes = array(
23
+ 'gaType_gtag' => __( 'Recommendation ( gtag )', 'vk-all-in-one-expansion-unit' ),
24
+ 'gaType_universal' => __( 'Universal Analytics code ( analytics.js )', 'vk-all-in-one-expansion-unit' ),
25
+ 'gaType_normal' => __( 'Normal code ( analytics.js )', 'vk-all-in-one-expansion-unit' ),
26
  );
27
  foreach ( $vkExUnit_gaTypes as $vkExUnit_gaTypeValue => $vkExUnit_gaTypeLavel ) {
28
  if ( $vkExUnit_gaTypeValue == $options['gaType'] ) { ?>
{plugins → inc}/google_analytics/ga_customizer.php RENAMED
@@ -21,7 +21,7 @@ function veu_customize_register_ga( $wp_customize ) {
21
  $wp_customize->add_section(
22
  'veu_ga_setting',
23
  array(
24
- 'title' => __( 'Google Analtics Settings', 'vkExUnit' ),
25
  'priority' => 1,
26
  'panel' => 'veu_setting',
27
  )
@@ -42,11 +42,11 @@ function veu_customize_register_ga( $wp_customize ) {
42
  $wp_customize->add_control(
43
  new ExUnit_Custom_Text_Control(
44
  $wp_customize, 'gaId', array(
45
- 'label' => __( 'Google Analytics ID', 'vkExUnit' ),
46
  'section' => 'veu_ga_setting',
47
  'settings' => 'vkExUnit_ga_options[gaId]',
48
  'type' => 'text',
49
- 'description' => __( 'Please fill in the Google Analytics ID from the Analytics embed code used in the site.<br>ex) XXXXXXXX-X', 'vkExUnit' ),
50
  'input_before' => 'UA-',
51
  )
52
  )
@@ -65,17 +65,17 @@ function veu_customize_register_ga( $wp_customize ) {
65
  $wp_customize->add_control(
66
  'gaType',
67
  array(
68
- 'label' => __( 'Select the type of Analytics code', 'vkExUnit' ),
69
  'section' => 'veu_ga_setting',
70
  'settings' => 'vkExUnit_ga_options[gaType]',
71
  'type' => 'radio',
72
  // 'priority' => $priority,
73
  'choices' => array(
74
- 'gaType_gtag' => __( 'Recommendation ( gtag )', 'vkExUnit' ),
75
- 'gaType_universal' => __( 'Universal Analytics code ( analytics.js )', 'vkExUnit' ),
76
- 'gaType_normal' => __( 'Normal code ( analytics.js )', 'vkExUnit' ),
77
  ),
78
- 'description' => __( 'Print the select the type of Analytics code.<br>(If you are unsure you can skip this.)', 'vkExUnit' ),
79
  )
80
  );
81
 
21
  $wp_customize->add_section(
22
  'veu_ga_setting',
23
  array(
24
+ 'title' => __( 'Google Analtics Settings', 'vk-all-in-one-expansion-unit' ),
25
  'priority' => 1,
26
  'panel' => 'veu_setting',
27
  )
42
  $wp_customize->add_control(
43
  new ExUnit_Custom_Text_Control(
44
  $wp_customize, 'gaId', array(
45
+ 'label' => __( 'Google Analytics ID', 'vk-all-in-one-expansion-unit' ),
46
  'section' => 'veu_ga_setting',
47
  'settings' => 'vkExUnit_ga_options[gaId]',
48
  'type' => 'text',
49
+ 'description' => __( 'Please fill in the Google Analytics ID from the Analytics embed code used in the site.<br>ex) XXXXXXXX-X', 'vk-all-in-one-expansion-unit' ),
50
  'input_before' => 'UA-',
51
  )
52
  )
65
  $wp_customize->add_control(
66
  'gaType',
67
  array(
68
+ 'label' => __( 'Select the type of Analytics code', 'vk-all-in-one-expansion-unit' ),
69
  'section' => 'veu_ga_setting',
70
  'settings' => 'vkExUnit_ga_options[gaType]',
71
  'type' => 'radio',
72
  // 'priority' => $priority,
73
  'choices' => array(
74
+ 'gaType_gtag' => __( 'Recommendation ( gtag )', 'vk-all-in-one-expansion-unit' ),
75
+ 'gaType_universal' => __( 'Universal Analytics code ( analytics.js )', 'vk-all-in-one-expansion-unit' ),
76
+ 'gaType_normal' => __( 'Normal code ( analytics.js )', 'vk-all-in-one-expansion-unit' ),
77
  ),
78
+ 'description' => __( 'Print the select the type of Analytics code.<br>(If you are unsure you can skip this.)', 'vk-all-in-one-expansion-unit' ),
79
  )
80
  );
81
 
{plugins → inc}/google_analytics/google_analytics.php RENAMED
@@ -20,13 +20,13 @@ function vkExUnit_ga_options_init() {
20
  }
21
 
22
  vkExUnit_register_setting(
23
- __( 'Google Analytics Settings', 'vkExUnit' ), // Immediately following form tag of edit page.
24
  'vkExUnit_ga_options', // name attr
25
  'vkExUnit_ga_options_validate',
26
  'vkExUnit_add_ga_options_page'
27
  );
28
  }
29
- add_action( 'vkExUnit_package_init', 'vkExUnit_ga_options_init' );
30
 
31
  function vkExUnit_get_ga_options() {
32
  $options = get_option( 'vkExUnit_ga_options', vkExUnit_get_ga_options_default() );
20
  }
21
 
22
  vkExUnit_register_setting(
23
+ __( 'Google Analytics Settings', 'vk-all-in-one-expansion-unit' ), // Immediately following form tag of edit page.
24
  'vkExUnit_ga_options', // name attr
25
  'vkExUnit_ga_options_validate',
26
  'vkExUnit_add_ga_options_page'
27
  );
28
  }
29
+ add_action( 'veu_package_init', 'vkExUnit_ga_options_init' );
30
 
31
  function vkExUnit_get_ga_options() {
32
  $options = get_option( 'vkExUnit_ga_options', vkExUnit_get_ga_options_default() );
{plugins → inc}/icons.php RENAMED
@@ -28,14 +28,14 @@ class vExUnit_icons {
28
 
29
 
30
  protected function run_init() {
31
- add_action( 'vkExUnit_package_init', array( $this, 'option_init' ) );
32
  add_action( 'wp_head', array( $this, 'output_tag' ) );
33
  }
34
 
35
 
36
  public function option_init() {
37
  vkExUnit_register_setting(
38
- __( 'icon setting', 'vkExUnit' ), // tab label.
39
  'vkExUnit_icon_settings', // name attr
40
  array( $this, 'sanitize_config' ), // sanitaise function name
41
  array( $this, 'render_configPage' ) // setting_page function name
@@ -65,23 +65,23 @@ class vExUnit_icons {
65
  public function render_configPage() {
66
  $options = self::get_option();
67
  ?>
68
- <h3><?php _e( 'icon setting', 'vkExUnit' ); ?></h3>
69
 
70
  <div id="on_setting" class="sectionBox">
71
  <p class="text-warning">
72
  <?php
73
  $href = '"'.admin_url('customize.php').'"';
74
- printf( __( 'This feature will be discontinued shortly.<br>You can set the site icon from "Site Identity" panel of [ <a href=%s>Themes > Customize</a> ] After updating the setting.', 'vkExUnit' ), $href );
75
  ?>
76
  </p>
77
 
78
  <table class="form-table">
79
  <!-- Favicon -->
80
  <tr>
81
- <th><?php _e( 'Favicon Setting', 'vkExUnit' ); ?></th>
82
  <td><input type="text" name="vkExUnit_icon_settings" id="favicon" value="<?php echo $options ?>" style="width:60%;" />
83
- <button id="media_src_favicon" class="media_btn button button-default"><?php _e( 'Choose icon', 'vkExUnit' ); ?></button>
84
- <p><?php _e( 'Please upload your ".ico" file','vkExUnit' ); ?></p>
85
  </td>
86
  </tr>
87
  </table>
28
 
29
 
30
  protected function run_init() {
31
+ add_action( 'veu_package_init', array( $this, 'option_init' ) );
32
  add_action( 'wp_head', array( $this, 'output_tag' ) );
33
  }
34
 
35
 
36
  public function option_init() {
37
  vkExUnit_register_setting(
38
+ __( 'icon setting', 'vk-all-in-one-expansion-unit' ), // tab label.
39
  'vkExUnit_icon_settings', // name attr
40
  array( $this, 'sanitize_config' ), // sanitaise function name
41
  array( $this, 'render_configPage' ) // setting_page function name
65
  public function render_configPage() {
66
  $options = self::get_option();
67
  ?>
68
+ <h3><?php _e( 'icon setting', 'vk-all-in-one-expansion-unit' ); ?></h3>
69
 
70
  <div id="on_setting" class="sectionBox">
71
  <p class="text-warning">
72
  <?php
73
  $href = '"'.admin_url('customize.php').'"';
74
+ printf( __( 'This feature will be discontinued shortly.<br>You can set the site icon from "Site Identity" panel of [ <a href=%s>Themes > Customize</a> ] After updating the setting.', 'vk-all-in-one-expansion-unit' ), $href );
75
  ?>
76
  </p>
77
 
78
  <table class="form-table">
79
  <!-- Favicon -->
80
  <tr>
81
+ <th><?php _e( 'Favicon Setting', 'vk-all-in-one-expansion-unit' ); ?></th>
82
  <td><input type="text" name="vkExUnit_icon_settings" id="favicon" value="<?php echo $options ?>" style="width:60%;" />
83
+ <button id="media_src_favicon" class="media_btn button button-default"><?php _e( 'Choose icon', 'vk-all-in-one-expansion-unit' ); ?></button>
84
+ <p><?php _e( 'Please upload your ".ico" file', 'vk-all-in-one-expansion-unit' ); ?></p>
85
  </td>
86
  </tr>
87
  </table>
plugins/insert_ads.php → inc/insert-ads.php RENAMED
@@ -22,19 +22,20 @@ class vExUnit_Ads {
22
  }
23
 
24
  private function __construct() {
25
- /*** do noting ***/
26
  }
27
 
28
 
29
  protected function run_init() {
30
- add_action( 'vkExUnit_package_init', array( $this, 'option_init' ) );
31
  add_filter( 'the_content', array( $this, 'set_content' ), 10, 1 );
 
32
  add_shortcode( 'vkExUnit_ad', array( $this, 'shortcode' ) );
33
  }
34
 
35
  public function option_init() {
36
  vkExUnit_register_setting(
37
- __( 'Insert ads', 'vkExUnit' ), // tab label.
38
  'vkExUnit_Ads', // name attr
39
  array( $this, 'sanitize_config' ), // sanitaise function name
40
  array( $this, 'render_configPage' ) // setting_page function name
@@ -120,15 +121,50 @@ class vExUnit_Ads {
120
  return $content;
121
  }
122
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
123
 
124
  public function sanitize_config( $input ) {
125
- $option = $input;
126
- $option['before'][0] = stripslashes( $input['before'][0] );
127
- $option['before'][1] = stripslashes( $input['before'][1] );
128
- $option['more'][0] = stripslashes( $input['more'][0] );
129
- $option['more'][1] = stripslashes( $input['more'][1] );
130
- $option['after'][0] = stripslashes( $input['after'][0] );
131
- $option['after'][1] = stripslashes( $input['after'][1] );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
132
 
133
  if ( ! $option['before'][0] && $option['before'][1] ) {
134
  $option['before'][0] = $option['before'][1];
@@ -157,12 +193,15 @@ class vExUnit_Ads {
157
 
158
  public static function get_option() {
159
  $default = array(
160
- 'before' => array( '' ),
161
- 'more' => array( '' ),
162
- 'after' => array( '' ),
163
- 'post_types' => array( 'post' => true ),
 
 
 
164
  );
165
- $option = get_option( 'vkExUnit_Ads', $default );
166
 
167
  // post_types を後で追加したので、option値に保存されてない時にデフォルトの post とマージする
168
  $option = wp_parse_args( $option, $default );
@@ -173,18 +212,55 @@ class vExUnit_Ads {
173
  return $option;
174
  }
175
 
176
-
177
  public function render_configPage() {
178
  $option = $this->get_option();
179
  ?>
180
- <h3><?php _e( 'Insert ads', 'vkExUnit' ); ?></h3>
181
  <div id="vkExUnit_Ads" class="sectionBox">
 
182
  <table class="form-table">
183
- <tr><th><?php _e( 'Insert ads to post.', 'vkExUnit' ); ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
184
  </th><td style="max-width:80em;">
185
- <?php _e( 'Insert ads to before content and more tag and after content.', 'vkExUnit' ); ?><br/><?php _e( 'If you want to separate ads area, you fill two fields.', 'vkExUnit' ); ?>
186
  <dl>
187
- <dt><label for="ad_content_before"><?php _e( 'insert the ad [ before content ]', 'vkExUnit' ); ?></label></dt>
188
  <dd>
189
  <textarea rows="5" name="vkExUnit_Ads[before][]" id="ad_content_before" value="" style="width:100%;max-width:50em;" /><?php echo ( isset( $option['before'][0] ) && $option['before'][0] ) ? $option['before'][0] : ''; ?></textarea>
190
  <br/>
@@ -192,7 +268,7 @@ class vExUnit_Ads {
192
  </dd>
193
  </dl>
194
  <dl>
195
- <dt><label for="ad_content_moretag"><?php _e( 'insert the ad [ more tag ]', 'vkExUnit' ); ?></label></dt>
196
  <dd>
197
  <textarea rows="5" name="vkExUnit_Ads[more][]" id="ad_content_moretag" value="" style="width:100%;max-width:50em;" /><?php echo ( isset( $option['more'][0] ) && $option['more'][0] ) ? $option['more'][0] : ''; ?></textarea>
198
  <br/>
@@ -200,7 +276,7 @@ class vExUnit_Ads {
200
  </dd>
201
  </dl>
202
  <dl>
203
- <dt><label for="ad_content_after"><?php _e( 'insert the ad [ after content ]', 'vkExUnit' ); ?></label></dt>
204
  <dd>
205
  <textarea rows="5" name="vkExUnit_Ads[after][]" id="ad_content_after" value="" style="width:100%;max-width:50em;" /><?php echo ( isset( $option['after'][0] ) && $option['after'][0] ) ? $option['after'][0] : ''; ?></textarea>
206
  <br/>
22
  }
23
 
24
  private function __construct() {
25
+ /*** do noting */
26
  }
27
 
28
 
29
  protected function run_init() {
30
+ add_action( 'veu_package_init', array( $this, 'option_init' ) );
31
  add_filter( 'the_content', array( $this, 'set_content' ), 10, 1 );
32
+ add_action( 'wp_head', array( $this, 'print_google_auto_ad' ) );
33
  add_shortcode( 'vkExUnit_ad', array( $this, 'shortcode' ) );
34
  }
35
 
36
  public function option_init() {
37
  vkExUnit_register_setting(
38
+ __( 'Insert ads', 'vk-all-in-one-expansion-unit' ), // tab label.
39
  'vkExUnit_Ads', // name attr
40
  array( $this, 'sanitize_config' ), // sanitaise function name
41
  array( $this, 'render_configPage' ) // setting_page function name
121
  return $content;
122
  }
123
 
124
+ public function print_google_auto_ad() {
125
+ $option = $this->get_option();
126
+ if ( $option['google-ads-active'] && $option['google-pub-id'] ) {
127
+
128
+ $overlay = ',overlays: {bottom: true}';
129
+ ?><!-- [ <?php echo veu_get_name(); ?> GoogleAd ] -->
130
+ <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
131
+ <script>
132
+ (adsbygoogle = window.adsbygoogle || []).push({
133
+ google_ad_client: "ca-pub-<?php echo esc_attr( $option['google-pub-id'] ); ?>",
134
+ enable_page_level_ads: true
135
+ <?php
136
+ if ( $option['google-ads-overlays-bottom'] ) {
137
+ echo $overlay;}
138
+ ?>
139
+ });
140
+ </script>
141
+ <!-- [ / <?php echo veu_get_name(); ?> GoogleAd ] -->
142
+ <?php
143
+ }
144
+ }
145
 
146
  public function sanitize_config( $input ) {
147
+ $option = $input;
148
+ $option['google-ads-active'] = ( isset( $input['google-ads-active'] ) ) ? esc_attr( $input['google-ads-active'] ) : '';
149
+ $option['google-ads-overlays-bottom'] = ( isset( $input['google-ads-overlays-bottom'] ) ) ? esc_attr( $input['google-ads-overlays-bottom'] ) : '';
150
+ $option['google-pub-id'] = ( isset( $input['google-pub-id'] ) ) ? esc_attr( $input['google-pub-id'] ) : '';
151
+ $option['before'][0] = stripslashes( $input['before'][0] );
152
+ $option['before'][1] = stripslashes( $input['before'][1] );
153
+ $option['more'][0] = stripslashes( $input['more'][0] );
154
+ $option['more'][1] = stripslashes( $input['more'][1] );
155
+ $option['after'][0] = stripslashes( $input['after'][0] );
156
+ $option['after'][1] = stripslashes( $input['after'][1] );
157
+
158
+ if ( isset( $input['post_types'] ) && is_array( $input['post_types'] ) ) {
159
+ foreach ( $input['post_types'] as $key => $value ) {
160
+ $option['post_types'][ $key ] = esc_attr( $value );
161
+ }
162
+ } else {
163
+ // 'post_types' 自体が存在しないと、デフォルト値として ['post_types']['post'] = true を返すように作ってあり、
164
+ // チェックボックスのチェックが外れなくなるので
165
+ // チェックが全部外れている時に 'post' => false をいれておく
166
+ $option['post_types']['post'] = false;
167
+ }
168
 
169
  if ( ! $option['before'][0] && $option['before'][1] ) {
170
  $option['before'][0] = $option['before'][1];
193
 
194
  public static function get_option() {
195
  $default = array(
196
+ 'google-ads-active' => false,
197
+ 'google-ads-overlays-bottom' => true,
198
+ 'google-pub-id' => '',
199
+ 'before' => array( '' ),
200
+ 'more' => array( '' ),
201
+ 'after' => array( '' ),
202
+ 'post_types' => array( 'post' => true ),
203
  );
204
+ $option = get_option( 'vkExUnit_Ads' );
205
 
206
  // post_types を後で追加したので、option値に保存されてない時にデフォルトの post とマージする
207
  $option = wp_parse_args( $option, $default );
212
  return $option;
213
  }
214
 
 
215
  public function render_configPage() {
216
  $option = $this->get_option();
217
  ?>
218
+ <h3><?php _e( 'Insert ads', 'vk-all-in-one-expansion-unit' ); ?></h3>
219
  <div id="vkExUnit_Ads" class="sectionBox">
220
+
221
  <table class="form-table">
222
+ <?php
223
+ /*
224
+ Google Auto ads
225
+ /*--------------------------------------------------*/
226
+ ?>
227
+ <tr>
228
+ <th><?php _e( 'Google Auto ads', 'vk-all-in-one-expansion-unit' ); ?><br>
229
+ <?php
230
+ $lang = ( get_locale() == 'ja' ) ? 'ja' : 'en';
231
+ $Google_ad_url = 'https://support.google.com/adsense/answer/7478040?hl=' . $lang;
232
+ ?>
233
+ [ <a href="<?php echo $Google_ad_url; ?>" target="_blank"><?php _e( 'About Google Auto ads', 'vk-all-in-one-expansion-unit' ); ?></a> ]
234
+ </th>
235
+ <td>
236
+ <?php _e( 'If you would like to set to Google Auto ads,Please fill in Publisher ID.', 'vk-all-in-one-expansion-unit' ); ?>
237
+ <p><label>
238
+ <input type="checkbox" name="vkExUnit_Ads[google-ads-active]" id="google-ads-active" value="true"<?php vk_is_checked( 'true', $option['google-ads-active'] ); ?>> <?php _e( 'Enable Google Auto ads', 'vk-all-in-one-expansion-unit' ); ?></label></p>
239
+ <p>
240
+ <label><?php _e( 'Publisher ID', 'vk-all-in-one-expansion-unit' ); ?></label><br>
241
+ pub-<input type="text" name="vkExUnit_Ads[google-pub-id]" id="gaId" value="<?php echo esc_attr( $option['google-pub-id'] ); ?>" style="width:90%;">
242
+ </p>
243
+ <?php
244
+ $link = '<a href="https://www.google.com/adsense/" target="_blank">' . __( 'Google AdSense dashboard', 'vk-all-in-one-expansion-unit' ) . '</a>';
245
+ ?>
246
+ <p>* <?php printf( __( 'Publisher ID is you can investigate from the %s > Account information page.', 'vk-all-in-one-expansion-unit' ), $link ); ?>
247
+ </p>
248
+ <p><label>
249
+ <input type="checkbox" name="vkExUnit_Ads[google-ads-overlays-bottom]" id="google-ads-overlays-bottom" value="true"<?php vk_is_checked( 'true', $option['google-ads-overlays-bottom'] ); ?>> <?php _e( 'Designate anchor ads at the bottom.', 'vk-all-in-one-expansion-unit' ); ?></label></p>
250
+
251
+ <p>* <?php _e( 'The layout may collapse by inserting Google Auto ads, but the correspondence varies depending on the kind, specification, theme etc. of advertisement, so please write CSS according to your needs about the display collapse and correct it.', 'vk-all-in-one-expansion-unit' ); ?></p>
252
+ </td>
253
+ </tr>
254
+ <?php
255
+ /*
256
+ Manual set Ads
257
+ /*--------------------------------------------------*/
258
+ ?>
259
+ <tr><th><?php _e( 'Insert ads to post.', 'vk-all-in-one-expansion-unit' ); ?>
260
  </th><td style="max-width:80em;">
261
+ <?php _e( 'Insert ads to before content and more tag and after content.', 'vk-all-in-one-expansion-unit' ); ?><br/><?php _e( 'If you want to separate ads area, you fill two fields.', 'vk-all-in-one-expansion-unit' ); ?>
262
  <dl>
263
+ <dt><label for="ad_content_before"><?php _e( 'insert the ad [ before content ]', 'vk-all-in-one-expansion-unit' ); ?></label></dt>
264
  <dd>
265
  <textarea rows="5" name="vkExUnit_Ads[before][]" id="ad_content_before" value="" style="width:100%;max-width:50em;" /><?php echo ( isset( $option['before'][0] ) && $option['before'][0] ) ? $option['before'][0] : ''; ?></textarea>
266
  <br/>
268
  </dd>
269
  </dl>
270
  <dl>
271
+ <dt><label for="ad_content_moretag"><?php _e( 'insert the ad [ more tag ]', 'vk-all-in-one-expansion-unit' ); ?></label></dt>
272
  <dd>
273
  <textarea rows="5" name="vkExUnit_Ads[more][]" id="ad_content_moretag" value="" style="width:100%;max-width:50em;" /><?php echo ( isset( $option['more'][0] ) && $option['more'][0] ) ? $option['more'][0] : ''; ?></textarea>
274
  <br/>
276
  </dd>
277
  </dl>
278
  <dl>
279
+ <dt><label for="ad_content_after"><?php _e( 'insert the ad [ after content ]', 'vk-all-in-one-expansion-unit' ); ?></label></dt>
280
  <dd>
281
  <textarea rows="5" name="vkExUnit_Ads[after][]" id="ad_content_after" value="" style="width:100%;max-width:50em;" /><?php echo ( isset( $option['after'][0] ) && $option['after'][0] ) ? $option['after'][0] : ''; ?></textarea>
282
  <br/>
plugins/meta_description.php → inc/meta-description.php RENAMED
@@ -17,39 +17,37 @@ foreach ( $postTypes as $postType ) {
17
 
18
  function vkExUnit_description_options_init() {
19
  vkExUnit_register_setting(
20
- __( 'Meta Description', 'vkExUnit' ), // tab label.
21
  'vkExUnit_description_options', // name attr
22
  false, // sanitaise function name
23
  'vkExUnit_add_description_options_page' // setting_page function name
24
  );
25
  }
26
- add_action( 'vkExUnit_package_init', 'vkExUnit_description_options_init' );
27
 
28
 
29
  function vkExUnit_add_description_options_page() {
30
  ?>
31
- <h3><?php _e( 'Meta Description', 'vkExUnit' ); ?></h3>
32
  <div id="meta_description" class="sectionBox">
33
  <table class="form-table">
34
- <tr><th><?php _e( 'Meta Description', 'vkExUnit' ); ?></th>
35
  <td>
36
 
37
- <?php _e( 'What you have to complete the "excerpt" column of the edit screen of each page will be reflected in the description of the meta tag.', 'vkExUnit' ); ?><br/>
38
- <?php _e( 'Description of meta tags in the search results screen of search sites such as Google, will be Displayed, such as the bottom of the site title. If the excerpt column is blank, is 240 characters than text beginning of a sentence has become a specification that is applied as a description.', 'vkExUnit' ); ?><br/>
39
- <?php _e( 'The meta description of the top page is subject to the catchphrase of the site. However, its contents will be reflected if the excerpt is entered in fixed page that was set on the top page.', 'vkExUnit' ); ?><br/>
40
- * <?php _e( 'If "excerpt" column is not found, Click "Display Option" of page top at each article edit page, and check the expert column display.', 'vkExUnit' ); ?><br/>
41
  </td></tr>
42
  </table>
43
  </div>
44
  <?php
45
  }
46
 
47
-
48
- /*-------------------------------------------*/
49
- /* head_description
50
  /*-------------------------------------------*/
51
  add_filter( 'wp_head', 'vkExUnit_render_HeadDescription', 5 );
52
  function vkExUnit_render_HeadDescription() {
53
-
54
- echo '<meta name="description" content="' . vk_get_page_description() . '" />';
55
  }
17
 
18
  function vkExUnit_description_options_init() {
19
  vkExUnit_register_setting(
20
+ __( 'Meta Description', 'vk-all-in-one-expansion-unit' ), // tab label.
21
  'vkExUnit_description_options', // name attr
22
  false, // sanitaise function name
23
  'vkExUnit_add_description_options_page' // setting_page function name
24
  );
25
  }
26
+ add_action( 'veu_package_init', 'vkExUnit_description_options_init' );
27
 
28
 
29
  function vkExUnit_add_description_options_page() {
30
  ?>
31
+ <h3><?php _e( 'Meta Description', 'vk-all-in-one-expansion-unit' ); ?></h3>
32
  <div id="meta_description" class="sectionBox">
33
  <table class="form-table">
34
+ <tr><th><?php _e( 'Meta Description', 'vk-all-in-one-expansion-unit' ); ?></th>
35
  <td>
36
 
37
+ <?php _e( 'What you have to complete the "excerpt" column of the edit screen of each page will be reflected in the description of the meta tag.', 'vk-all-in-one-expansion-unit' ); ?><br/>
38
+ <?php _e( 'Description of meta tags in the search results screen of search sites such as Google, will be Displayed, such as the bottom of the site title. If the excerpt column is blank, is 240 characters than text beginning of a sentence has become a specification that is applied as a description.', 'vk-all-in-one-expansion-unit' ); ?><br/>
39
+ <?php _e( 'The meta description of the top page is subject to the catchphrase of the site. However, its contents will be reflected if the excerpt is entered in fixed page that was set on the top page.', 'vk-all-in-one-expansion-unit' ); ?><br/>
40
+ * <?php _e( 'If "excerpt" column is not found, Click "Display Option" of page top at each article edit page, and check the expert column display.', 'vk-all-in-one-expansion-unit' ); ?><br/>
41
  </td></tr>
42
  </table>
43
  </div>
44
  <?php
45
  }
46
 
47
+ /*
48
+ head_description
 
49
  /*-------------------------------------------*/
50
  add_filter( 'wp_head', 'vkExUnit_render_HeadDescription', 5 );
51
  function vkExUnit_render_HeadDescription() {
52
+ echo '<meta name="description" content="' . esc_attr( vk_get_page_description() ) . '" />';
 
53
  }
inc/meta-keyword/class-veu-metabox-meta-keyword.php ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ if ( ! class_exists( 'VEU_Metabox' ) ) {
4
+ return;
5
+ }
6
+
7
+ class VEU_Metabox_Meta_Keyword extends VEU_Metabox {
8
+
9
+ public function __construct( $args = array() ) {
10
+
11
+ $this->args = array(
12
+ 'slug' => 'veu_meta_keyword',
13
+ 'cf_name' => 'vkExUnit_common_keywords',
14
+ 'title' => __( 'Meta Keywords', 'vk-all-in-one-expansion-unit' ),
15
+ 'priority' => 50,
16
+ );
17
+
18
+ parent::__construct( $this->args );
19
+
20
+ }
21
+
22
+ /**
23
+ * metabox_body_form
24
+ * Form inner
25
+ *
26
+ * @return [type] [description]
27
+ */
28
+ public function metabox_body_form( $cf_value ) {
29
+
30
+ $theme_option_seo_link = '<a href="' . get_admin_url() . '/admin.php?page=vkExUnit_main_setting#vkExUnit_common_keywords" target="_blank">' . vkExUnit_get_name() . ' ' . __( 'Main setting', 'vk-all-in-one-expansion-unit' ) . '</a>';
31
+
32
+ $form = '';
33
+ $form .= '<input type=text name="' . esc_attr( $this->args['cf_name'] ) . '" value="' . esc_attr( $cf_value ) . '" size=50 />';
34
+ $form .= '<p>' . __( 'To distinguish between individual keywords, please enter a , delimiter (optional).', 'vk-all-in-one-expansion-unit' ) . '<br />';
35
+ $form .= sprintf( __( '* keywords common to the entire site can be set from %s.', 'vk-all-in-one-expansion-unit' ), $theme_option_seo_link );
36
+ $form .= '</p>';
37
+
38
+ return $form;
39
+ }
40
+
41
+ } // class VEU_Metabox_Meta_Keyword {
42
+
43
+ $veu_metabox_sns_title = new VEU_Metabox_Meta_Keyword();
inc/meta-keyword/meta-keyword.php ADDED
@@ -0,0 +1,124 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * VkExUnit meta_keyword.php
4
+ * Set meta tag of keyword for single page each
5
+ *
6
+ * @package VkExUnit
7
+ * @author shoji imamura<imamura@vektor-inc.co.jp>
8
+ * @since 26/Jun/2015
9
+ */
10
+
11
+ /*
12
+ VEU_Metabox 内の get_post_type が実行タイミングによっては
13
+ カスタム投稿タイプマネージャーで作成した投稿タイプが取得できないために
14
+ admin_menu のタイミングで読み込んでいる
15
+ */
16
+ add_action(
17
+ 'admin_menu', function() {
18
+ require_once( dirname( __FILE__ ) . '/class-veu-metabox-meta-keyword.php' );
19
+ }
20
+ );
21
+
22
+ class vExUnit_meta_keywords {
23
+
24
+ private static $instance;
25
+
26
+ public static function instance() {
27
+ if ( isset( self::$instance ) ) {
28
+ return self::$instance; }
29
+
30
+ self::$instance = new vExUnit_meta_keywords;
31
+ self::$instance->run_init();
32
+ return self::$instance;
33
+ }
34
+
35
+
36
+ private function __construct() {
37
+ /*** do noting ***/
38
+ }
39
+
40
+
41
+ protected function run_init() {
42
+ add_action( 'veu_package_init', array( $this, 'option_init' ) );
43
+ // add_action( 'admin_menu', array( $this, 'add_custom_field' ) );
44
+ // add_action( 'save_post', array( $this, 'save_custom_field' ) );
45
+ add_action( 'wp_head', array( $this, 'set_HeadKeywords' ), 1 );
46
+ }
47
+
48
+
49
+ public function option_init() {
50
+ vkExUnit_register_setting(
51
+ __( 'Meta Keywords', 'vk-all-in-one-expansion-unit' ), // tab label.
52
+ 'vkExUnit_common_keywords', // name attr
53
+ array( $this, 'sanitize_config' ), // sanitaise function name
54
+ array( $this, 'render_configPage' ) // setting_page function name
55
+ );
56
+ }
57
+
58
+
59
+ public function get_default_option() {
60
+ $option = '';
61
+ return $option;
62
+ }
63
+
64
+
65
+ public function sanitize_config( $option ) {
66
+ $option = preg_replace( '/^,*(.+)$/', '$1', $option );
67
+ $option = preg_replace( '/,*$/', '', $option );
68
+ return $option;
69
+ }
70
+
71
+
72
+ public static function get_option() {
73
+ return get_option( 'vkExUnit_common_keywords', '' );
74
+ }
75
+
76
+
77
+ public function render_configPage() {
78
+ ?>
79
+ <h3><?php _e( 'Meta Keyword', 'vk-all-in-one-expansion-unit' ); ?></h3>
80
+ <div id="meta_keyword" class="sectionBox">
81
+ <table class="form-table">
82
+ <tr><th><?php _e( 'Common Keywords', 'vk-all-in-one-expansion-unit' ); ?></th>
83
+ <td><?php _e( 'Keywords for meta tag. This words will set Meta Keyword with post keywords. if you want multiple keywords, enter with separator of ",".', 'vk-all-in-one-expansion-unit' ); ?><br />
84
+ <input type="text" name="vkExUnit_common_keywords" id="commonKeyWords" value="<?php echo self::get_option(); ?>" style="width:90%;" /><br />
85
+
86
+ * <?php _e( 'This is not seriously, Because the SearchEngine does not care this.', 'vk-all-in-one-expansion-unit' ); ?><br/>
87
+ * <?php _e( 'For each page individual keyword is enter at the edit screen of each article. 10 keywords maximum, together with a each article keywords is desirable.', 'vk-all-in-one-expansion-unit' ); ?><br/>
88
+ * <?php _e( '"," separator at end of the last keyword is do not need.', 'vk-all-in-one-expansion-unit' ); ?><br/>
89
+ <?php _e( 'Example: WordPress,template,theme,free,GPL', 'vk-all-in-one-expansion-unit' ); ?></td></tr>
90
+ </table>
91
+ <?php submit_button(); ?>
92
+ </div>
93
+ <?php
94
+ }
95
+
96
+ public function get_postKeyword() {
97
+ $post_id = get_the_id();
98
+
99
+ if ( empty( $post_id ) ) {
100
+ return null; }
101
+
102
+ $keyword = get_post_meta( $post_id, 'vkExUnit_metaKeyword', true );
103
+ return $keyword;
104
+ }
105
+
106
+
107
+ public function set_HeadKeywords() {
108
+ $commonKeyWords = self::get_option();
109
+ // get custom field
110
+ $entryKeyWords = self::get_postKeyword();
111
+ $keywords = array();
112
+ if ( $commonKeyWords ) {
113
+ $keywords[] = $commonKeyWords; }
114
+ if ( $entryKeyWords ) {
115
+ $keywords[] = $entryKeyWords; }
116
+ $key = implode( ',', $keywords );
117
+ // print individual keywords
118
+ if ( ! $key ) {
119
+ return; }
120
+ echo '<meta name="keywords" content="' . $key . '" />' . "\n";
121
+ }
122
+ }
123
+
124
+ vExUnit_meta_keywords::instance();
inc/nav-menu-class-custom.php ADDED
@@ -0,0 +1,116 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ add_filter( 'nav_menu_css_class', 'veu_nav_menu_class_custom', 10, 2 );
3
+ function veu_nav_menu_class_custom( $classes, $item ) {
4
+
5
+ // 今表示しているページが属する投稿タイプを取得
6
+ if ( function_exists( 'vk_get_post_type' ) ) {
7
+ $post_type_info = vk_get_post_type();
8
+ } else {
9
+ $post_type_info['slug'] = get_post_type();
10
+ }
11
+
12
+ // 付与するカレントクラス名
13
+ $add_current_class_name = 'current-menu-ancestor';
14
+
15
+ /* 投稿アーカイブの指定された固定ページメニューアイテムの処理
16
+ /*-------------------------------------------*/
17
+ $post_top_id = get_option( 'page_for_posts' );
18
+ $post_top_url = get_the_permalink( $post_top_id );
19
+
20
+ if ( $post_top_url === $item->url ) {
21
+
22
+ if ( $post_type_info['slug'] === 'post' ) {
23
+ // 今表示しているページの投稿タイプが post の場合
24
+ // currentクラスを付与
25
+ $classes[] = $add_current_class_name;
26
+
27
+ } else {
28
+ // 今表示しているページの投稿タイプが post 以外の場合
29
+
30
+ // 現在配列に入っているclassをループ
31
+ for ( $i = 1; $i <= count( $classes ); $i++ ) {
32
+
33
+ if ( isset( $classes[ $i ] ) ) {
34
+ // currentがあった場合
35
+ if ( $classes[ $i ] == $add_current_class_name || $classes[ $i ] == 'current_page_parent' ) {
36
+ // そのクラスをキーごと削除
37
+ unset( $classes[ $i ] );
38
+ }
39
+ }
40
+ }
41
+
42
+ // キーのフリなおし
43
+ $classes = array_values( $classes );
44
+
45
+ }
46
+ }
47
+
48
+ /* カスタムメニューに設定されたURLの投稿タイプ名を取得する
49
+ /*-------------------------------------------*/
50
+
51
+ // メニューがカスタムリンクでリンク先がカスタム投稿タイプのアーカイブの時
52
+
53
+ if ( $item->type == 'custom' || $item->type == 'post_type_archive' ) {
54
+
55
+ // リライトルールを取得
56
+ $rewrite_rules = get_option( 'rewrite_rules' );
57
+
58
+ if ( ! $rewrite_rules || ! is_array( $rewrite_rules ) ) {
59
+
60
+ // リライトルールを無指定で使っている場合
61
+
62
+ $pattern = '/.*post_type=(.*)/';
63
+ $subject = $item->url;
64
+ preg_match( $pattern, $subject, $matches );
65
+
66
+ // メニューの投稿タイプが取得できたら
67
+ if ( isset( $matches[1] ) ) {
68
+ $menu_url_post_type = $matches[1];
69
+ } else {
70
+ $menu_url_post_type = '';
71
+ }// if ( isset( $matches[1] ) ) {
72
+
73
+ } else {
74
+
75
+ // リライトルールが普通に保存されている場合
76
+
77
+ // リライトルールをループ
78
+ foreach ( $rewrite_rules as $key => $value ) {
79
+
80
+ // メニューに記載されているURLから投稿タイプ名を判別する
81
+
82
+ // ループ中のりライトルールがメニューのURLと合致するか正規表現で検出
83
+ $pattern = '{' . $key . '}';
84
+ $subject = $item->url;
85
+ preg_match( $pattern, $subject, $matches );
86
+
87
+ // マッチした場合
88
+ if ( $matches ) {
89
+
90
+ // マッチした $value の URL ( index.php?post_type=custom など ) から投稿タイプが判別できる
91
+ // 正規表現で post_type= の値を抽出する
92
+
93
+ $pattern = '/index.php\?post_type=(.*)/';
94
+ $subject = $value;
95
+ preg_match( $pattern, $subject, $matches );
96
+
97
+ // メニューの投稿タイプが取得できたら
98
+ if ( isset( $matches[1] ) ) {
99
+ $menu_url_post_type = $matches[1];
100
+ // 最初にマッチしてクラスを付与したら抜ける
101
+ break;
102
+ } // if ( isset( $matches[1] ) ) {
103
+ } // if ( $matches ) {
104
+ } // foreach ( $rewrite_rules as $key => $value ) {
105
+ }
106
+
107
+ // 今表示しているページの投稿タイプとメニューに記入されているURLの投稿タイプが同じ場合
108
+ if ( isset( $menu_url_post_type ) && isset( $post_type_info['slug'] ) ) {
109
+ if ( $post_type_info['slug'] === $menu_url_post_type ) {
110
+ $classes[] = $add_current_class_name;
111
+ }
112
+ }
113
+ } // if ( $item->object == 'custom' && $item->type == 'post_type_archive' ) {
114
+
115
+ return $classes;
116
+ }
inc/noindex/class-veu-metabox-noindex.php ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class VEU_Metabox_Noindex extends VEU_Metabox {
4
+
5
+ public function __construct( $args = array() ) {
6
+
7
+ $this->args = array(
8
+ 'slug' => 'veu_noindex',
9
+ 'cf_name' => '_vk_print_noindex',
10
+ 'title' => __( 'Noindex setting', 'vk-all-in-one-expansion-unit' ),
11
+ 'priority' => 50,
12
+ );
13
+
14
+ parent::__construct( $this->args );
15
+
16
+ }
17
+
18
+ /**
19
+ * metabox_body_form
20
+ * Form inner
21
+ *
22
+ * @return [type] [description]
23
+ */
24
+ public function metabox_body_form( $cf_value ) {
25
+
26
+ $form = '';
27
+
28
+ if ( $cf_value ) {
29
+ $checked = ' checked';
30
+ } else {
31
+ $checked = '';
32
+ }
33
+
34
+ $label = __( 'Print noindex tag that to be do not display on search result.', 'vk-all-in-one-expansion-unit' );
35
+
36
+ $form .= '<ul>';
37
+ $form .= '<li><label>' . '<input type="checkbox" id="' . esc_attr( $this->args['cf_name'] ) . '" name="' . esc_attr( $this->args['cf_name'] ) . '" value="true"' . $checked . '> ' . $label . '</label></li>';
38
+ $form .= '</ul>';
39
+
40
+ return $form;
41
+ }
42
+
43
+ } // class VEU_Metabox_Noindex {
44
+
45
+ $veu_metabox_noindex = new VEU_Metabox_Noindex();
inc/noindex/noindex.php ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * VkExUnit noindex.php
4
+ * insert noindex tag for head.
5
+ *
6
+ * @package VkExUnit
7
+ * @author Hidekazu IShikawa <ishikawa@vektor-inc.co.jp>
8
+ * @since 13/May/2019
9
+ */
10
+
11
+ /*
12
+ VEU_Metabox 内の get_post_type が実行タイミングによっては
13
+ カスタム投稿タイプマネージャーで作成した投稿タイプが取得できないために
14
+ admin_menu のタイミングで読み込んでいる
15
+ */
16
+ add_action(
17
+ 'admin_menu', function() {
18
+ require_once( dirname( __FILE__ ) . '/class-veu-metabox-noindex.php' );
19
+ }
20
+ );
21
+
22
+ /*
23
+ noindex出力処理
24
+ /*-------------------------------------------*/
25
+ add_action( 'wp_head', 'veu_noindex_print_head' );
26
+ function veu_noindex_print_head() {
27
+ global $post;
28
+ if ( is_singular() ) {
29
+ $vk_print_noindex = get_post_meta( $post->ID, '_vk_print_noindex', true );
30
+ if ( $vk_print_noindex ) {
31
+ echo '<meta name=”robots” content=”noindex,follow” />';
32
+ }
33
+ }
34
+ }
{plugins/other_widget → inc/other-widget}/js/admin-widget.js RENAMED
@@ -10,6 +10,7 @@ if ( vk_widget_image_add == undefined ){
10
  // プレビュー画像を表示するdiv
11
  var thumb_outer=jQuery(e).parent().children("._display");
12
  // 画像IDを保存するinputタグ
 
13
  var thumb_url=jQuery(e).parent().children("._form").children('._url')[0];
14
  var thumb_alt=jQuery(e).parent().children("._form").children('._alt')[0];
15
  var u=wp.media({library:{type:'image'},multiple:false}).on('select', function(e){
@@ -24,6 +25,7 @@ if ( vk_widget_image_add == undefined ){
24
  file.toJSON().title で titleが返せる
25
  */
26
  // hiddeになってるinputタグのvalueも変更
 
27
  jQuery(thumb_url).val(file.toJSON().url);
28
  jQuery(thumb_alt).val(file.toJSON().title).change();
29
  });
@@ -38,11 +40,14 @@ if ( vk_widget_image_del == undefined ){
38
  // プレビュー画像を表示するdiv
39
  var thumb_outer=jQuery(e).parent().children("._display");
40
  // 画像IDを保存するinputタグ
 
 
41
  var thumb_input=jQuery(e).parent().children("._form").children('._url')[0];
42
  // プレビュー画像のimgタグを削除
43
  thumb_outer.children().remove();
44
  // w.attr("value","");
45
- jQuery(e).parent().children("._form").children('._alt').attr("value","");
46
  jQuery(e).parent().children("._form").children('._url').attr("value","").change();
 
47
  };
48
  }
10
  // プレビュー画像を表示するdiv
11
  var thumb_outer=jQuery(e).parent().children("._display");
12
  // 画像IDを保存するinputタグ
13
+ var thumb_id=jQuery(e).parent().children("._form").children('._id')[0];
14
  var thumb_url=jQuery(e).parent().children("._form").children('._url')[0];
15
  var thumb_alt=jQuery(e).parent().children("._form").children('._alt')[0];
16
  var u=wp.media({library:{type:'image'},multiple:false}).on('select', function(e){
25
  file.toJSON().title で titleが返せる
26
  */
27
  // hiddeになってるinputタグのvalueも変更
28
+ jQuery(thumb_id).val(file.toJSON().id);
29
  jQuery(thumb_url).val(file.toJSON().url);
30
  jQuery(thumb_alt).val(file.toJSON().title).change();
31
  });
40
  // プレビュー画像を表示するdiv
41
  var thumb_outer=jQuery(e).parent().children("._display");
42
  // 画像IDを保存するinputタグ
43
+ var thumb_input=jQuery(e).parent().children("._form").children('._id')[0];
44
+ // 画像URLを保存するinputタグ
45
  var thumb_input=jQuery(e).parent().children("._form").children('._url')[0];
46
  // プレビュー画像のimgタグを削除
47
  thumb_outer.children().remove();
48
  // w.attr("value","");
49
+ jQuery(e).parent().children("._form").children('._id').attr("value","").change();
50
  jQuery(e).parent().children("._form").children('._url').attr("value","").change();
51
+ jQuery(e).parent().children("._form").children('._alt').attr("value","");
52
  };
53
  }
inc/other-widget/other-widget.php ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ require dirname( __FILE__ ) . '/widget-new-posts.php';
3
+ require dirname( __FILE__ ) . '/widget-profile.php';
4
+ require dirname( __FILE__ ) . '/widget-3pr-area.php';
5
+ require dirname( __FILE__ ) . '/widget-page.php';
6
+ require dirname( __FILE__ ) . '/widget-taxonomies.php';
7
+ require dirname( __FILE__ ) . '/widget-archives.php';
8
+ require dirname( __FILE__ ) . '/widget-pr-blocks.php';
9
+ require dirname( __FILE__ ) . '/widget-side-child-page-list.php';
10
+ require dirname( __FILE__ ) . '/widget-button.php';
11
+ require dirname( __FILE__ ) . '/widget-banner.php';
12
+ // require veu_get_directory() . '/inc/other_widget/widget-child-page-list.php';
13
+
14
+ /*-------------------------------------------*/
15
+ /* color picker
16
+ /*-------------------------------------------*/
17
+ // color picker js
18
+ add_action( 'admin_enqueue_scripts', 'vkExUnit_admin_scripts_color_picker' );
19
+ function vkExUnit_admin_scripts_color_picker() {
20
+ wp_enqueue_style( 'wp-color-picker' );
21
+ wp_enqueue_script( 'wp-color-picker' );
22
+ // カラーピッカー対象class指定 ( 外観 > ウィジェット 画面で効かないので一旦コメントアウト )
23
+ // wp_enqueue_script( 'colorpicker_script', plugins_url( 'js/admin-widget.js', __FILE__ ), array( 'wp-color-picker' ), false, true );
24
+ }
25
+ // 外観 > ウィジェット 画面で動作させるために必要
26
+ add_action( 'admin_footer-widgets.php', 'print_scripts_pr_color' );
27
+ function print_scripts_pr_color() {
28
+ ?>
29
+ <script type="text/javascript">
30
+ (function($){
31
+ function initColorPicker(widget) {
32
+ widget.find( '.color_picker' ).wpColorPicker( {
33
+ change: _.throttle( function() {
34
+ $(this).trigger('change');
35
+ }, 3000 )
36
+ });
37
+ }
38
+
39
+ function onFormUpdate(event, widget) {
40
+ initColorPicker(widget);
41
+ }
42
+ $(document).on('widget-added widget-updated', onFormUpdate );
43
+ $(document).ready( function() {
44
+ $('#widgets-right .widget:has(.color_picker)').each( function () {
45
+ initColorPicker( $(this) );
46
+ });
47
+ });
48
+ }(jQuery));
49
+ </script>
50
+ <?php
51
+ }
52
+
53
+ /*-------------------------------------------*/
54
+ /* archives_where
55
+ /*-------------------------------------------*/
56
+ add_filter( 'getarchives_where', 'vkExUnit_info_getarchives_where', 10, 2 );
57
+ function vkExUnit_info_getarchives_where( $where, $r ) {
58
+ global $my_archives_post_type;
59
+ if ( isset( $r['post_type'] ) ) {
60
+ $my_archives_post_type = $r['post_type'];
61
+ $where = str_replace( '\'post\'', '\'' . $r['post_type'] . '\'', $where );
62
+ } else {
63
+ $my_archives_post_type = '';
64
+ }
65
+ return $where;
66
+ }
67
+
68
+ add_filter( 'get_archives_link', 'vkExUnit_rewrite_archives_link' );
69
+ function vkExUnit_rewrite_archives_link( $link_html ) {
70
+ global $my_archives_post_type;
71
+ if ( $my_archives_post_type && $my_archives_post_type != 'post' ) {
72
+
73
+ $link_url_before = preg_replace( "/^.+<a.+href=\'(.+)\'.+$/is", '$1', $link_html );
74
+ if ( $link_html == $link_url_before ) {
75
+ return $link_html;
76
+ }
77
+
78
+ $olink = parse_url( $link_url_before );
79
+ if ( preg_match( '/\/' . $my_archives_post_type . '\/?/', $olink['path'] ) ) {
80
+ return $link_html;
81
+ }
82
+
83
+ if ( ! isset( $olink['query'] ) ) {
84
+ $olink['query'] = '';
85
+ }
86
+ parse_str( $olink['query'], $query );
87
+ if ( isset( $query['post_type'] ) && $query['post_type'] ) {
88
+ return $link_html;
89
+ }
90
+
91
+ $query['post_type'] = $my_archives_post_type;
92
+ $new_query = '?' . http_build_query( $query );
93
+ $new_url = $olink['scheme'] . '://' . $olink['host'] . $olink['path'] . $new_query;
94
+
95
+ $link_html = preg_replace( "/href=\'(.+)\'/", "href='" . $new_url . "'", $link_html );
96
+ return $link_html;
97
+ }
98
+ return $link_html;
99
+ }
{plugins/other_widget → inc/other-widget}/widget-3pr-area.php RENAMED
@@ -6,18 +6,18 @@
6
  class WP_Widget_vkExUnit_3PR_area extends WP_Widget {
7
 
8
  function __construct() {
9
- $widget_name = veu_get_prefix() . __( '3PR area', 'vkExUnit' );
10
 
11
  parent::__construct(
12
  'WP_Widget_vkExUnit_3PR_area',
13
  $widget_name,
14
- array( 'description' => __( 'Displays a 3PR area', 'vkExUnit' ) )
15
  );
16
  }
17
 
18
  public static function default_options( $args = array() ) {
19
  $defaults = array(
20
- 'label_1' => __( '3PR area1 title', 'vkExUnit' ),
21
  'media_3pr_image_1' => '',
22
  'media_3pr_alt_1' => '',
23
  'media_3pr_image_sp_1' => '',
@@ -25,7 +25,7 @@ class WP_Widget_vkExUnit_3PR_area extends WP_Widget {
25
  'summary_1' => '',
26
  'linkurl_1' => '',
27
  'blank_1' => false,
28
- 'label_2' => __( '3PR area2 title', 'vkExUnit' ),
29
  'media_3pr_image_2' => '',
30
  'media_3pr_alt_2' => '',
31
  'media_3pr_image_sp_2' => '',
@@ -33,7 +33,7 @@ class WP_Widget_vkExUnit_3PR_area extends WP_Widget {
33
  'summary_2' => '',
34
  'linkurl_2' => '',
35
  'blank_2' => false,
36
- 'label_3' => __( '3PR area3 title', 'vkExUnit' ),
37
  'media_3pr_image_3' => '',
38
  'media_3pr_alt_3' => '',
39
  'media_3pr_image_sp_3' => '',
@@ -51,15 +51,15 @@ class WP_Widget_vkExUnit_3PR_area extends WP_Widget {
51
 
52
  for ( $i = 1; $i <= 3; ) { ?>
53
 
54
- <h2 class="admin-custom-h2"><?php echo __( '3PR area setting', 'vkExUnit' ) . ' ' . $i; ?></h2>
55
  <p>
56
- <label for="<?php echo $this->get_field_id( 'label_' . $i ); ?>"><?php _e( 'Title:', 'vkExUnit' ); ?></label><br/>
57
  <input type="text" id="<?php echo $this->get_field_id( 'label_' . $i ); ?>-title" class="pr-input" name="<?php echo $this->get_field_name( 'label_' . $i ); ?>" value="<?php echo esc_attr( $instance[ 'label_' . $i ] ); ?>" />
58
  </p>
59
 
60
  <?php // 3PR area 1 メディアアップローダー PC ?>
61
 
62
- <label for="<?php echo $this->get_field_id( 'media_3pr_image_' . $i ); ?>"><?php _e( 'Select image for PC:', 'vkExUnit' ); ?></label>
63
 
64
  <div class="media_image_section">
65
  <div class="_display admin-custom-thumb-outer">
@@ -69,15 +69,15 @@ class WP_Widget_vkExUnit_3PR_area extends WP_Widget {
69
  <img class="media_image" src="<?php echo esc_url( $instance[ 'media_3pr_image_' . $i ] ); ?>" alt="<?php echo esc_attr( $instance[ 'media_3pr_alt_' . $i ] ); ?>" style="width:100%;height:auto;" />
70
  <?php endif; ?>
71
  </div>
72
- <button class="button button-default widget_media_btn_select" style="text-align: center; margin:4px 0;" onclick="javascript:vk_widget_image_add(this);return false;"><?php _e( 'Select image', 'vkExUnit' ); ?></button>
73
- <button class="button button-default widget_media_btn_reset" style="text-align: center; margin:4px 0;" onclick="javascript:vk_widget_image_del(this);return false;"><?php _e( 'Clear image', 'vkExUnit' ); ?></button>
74
  <div class="_form" style="line-height: 2em">
75
  <input type="hidden" class="_url" name="<?php echo $this->get_field_name( 'media_3pr_image_' . $i ); ?>" value="<?php echo esc_attr( $instance[ 'media_3pr_image_' . $i ] ); ?>" />
76
  <input type="hidden" class="_alt" name="<?php echo $this->get_field_name( 'media_3pr_alt_' . $i ); ?>" value="<?php echo esc_attr( $instance[ 'media_3pr_alt_' . $i ] ); ?>" />
77
  </div>
78
  </div><!-- [ /.media_image_section ] -->
79
 
80
- <label for="<?php echo $this->get_field_id( 'media_3pr_image_sp_' . $i ); ?>"><?php _e( 'Select image for Mobile:', 'vkExUnit' ); ?></label>
81
 
82
  <div class="media_image_section">
83
  <div class="_display admin-custom-thumb-outer">
@@ -87,8 +87,8 @@ class WP_Widget_vkExUnit_3PR_area extends WP_Widget {
87
  <img class="media_image" src="<?php echo esc_url( $instance[ 'media_3pr_image_sp_' . $i ] ); ?>" alt="<?php echo esc_attr( $instance[ 'media_3pr_alt_' . $i ] ); ?>" style="width:100%;height:auto;" />
88
  <?php endif; ?>
89
  </div>
90
- <button class="button button-default widget_media_btn_select" style="text-align: center; margin:4px 0;" onclick="javascript:vk_widget_image_add(this);return false;"><?php _e( 'Select image', 'vkExUnit' ); ?></button>
91
- <button class="button button-default widget_media_btn_reset" style="text-align: center; margin:4px 0;" onclick="javascript:vk_widget_image_del(this);return false;"><?php _e( 'Clear image', 'vkExUnit' ); ?></button>
92
  <div class="_form" style="line-height: 2em">
93
  <input type="hidden" class="_url" name="<?php echo $this->get_field_name( 'media_3pr_image_sp_' . $i ); ?>" value="<?php echo esc_attr( $instance[ 'media_3pr_image_sp_' . $i ] ); ?>" />
94
  <input type="hidden" class="_alt" name="<?php echo $this->get_field_name( 'media_3pr_alt_sp_' . $i ); ?>" value="<?php echo esc_attr( $instance[ 'media_3pr_alt_sp_' . $i ] ); ?>" />
@@ -99,13 +99,13 @@ class WP_Widget_vkExUnit_3PR_area extends WP_Widget {
99
  <br/>
100
 
101
  <?php // 概要テキスト ?>
102
- <p><label for="<?php echo $this->get_field_id( 'summary_' . $i ); ?>"><?php _e( 'Summary Text:', 'vkExUnit' ); ?></label><br/>
103
  </p>
104
 
105
  <textarea rows="4" cols="40" id="<?php echo $this->get_field_id( 'summary_' . $i ); ?>_text" class="admin-custom-input" name="<?php echo $this->get_field_name( 'summary_' . $i ); ?>"><?php echo esc_textarea( $instance[ 'summary_' . $i ] ); ?></textarea>
106
 
107
  <?php // リンク先_URL ?>
108
- <p><label for="<?php echo $this->get_field_id( 'linkurl_' . $i ); ?>"><?php _e( 'Link URL:', 'vkExUnit' ); ?></label><br/>
109
  <input type="text" id="<?php echo $this->get_field_id( 'linkurl_' . $i ); ?>_title" class="pr_input text" name="<?php echo $this->get_field_name( 'linkurl_' . $i ); ?>" value="<?php echo esc_attr( $instance[ 'linkurl_' . $i ] ); ?>" style="margin-bottom:0.5em;" /><br/>
110
  <input type="checkbox" id="<?php echo $this->get_field_id( 'blank_' . $i ); ?>" class="pr_input checkbox" name="<?php echo $this->get_field_name( 'blank_' . $i ); ?>"
111
  <?php
@@ -113,7 +113,7 @@ class WP_Widget_vkExUnit_3PR_area extends WP_Widget {
113
  echo 'checked';}
114
  ?>
115
  value="true" />
116
- <label for="<?php echo $this->get_field_id( 'blank_' . $i ); ?>"><?php _e( 'Open link new tab.', 'vkExUnit' ); ?></label>
117
  </p>
118
 
119
  <hr />
@@ -158,7 +158,7 @@ class WP_Widget_vkExUnit_3PR_area extends WP_Widget {
158
  if ( isset( $instance[ 'label_' . $i ] ) && $instance[ 'label_' . $i ] ) {
159
  echo $instance[ 'label_' . $i ];
160
  } else {
161
- _e( '3PR area', 'vkExUnit' );
162
  }
163
  echo '</h1>';
164
 
@@ -195,7 +195,7 @@ class WP_Widget_vkExUnit_3PR_area extends WP_Widget {
195
 
196
  }
197
  if ( ! empty( $instance[ 'linkurl_' . $i ] ) ) {
198
- echo '<p class="linkurl"><a href="' . esc_url( $instance[ 'linkurl_' . $i ] ) . '" class="btn btn-default btn-sm"' . $blank . '>' . apply_filters( 'vkExUnit_widget_3pr_read_more_txt', __( 'Read more', 'vkExUnit' ) ) . '</a></p>';
199
  }
200
 
201
  echo '</div>';
6
  class WP_Widget_vkExUnit_3PR_area extends WP_Widget {
7
 
8
  function __construct() {
9
+ $widget_name = veu_get_prefix() . __( '3PR area', 'vk-all-in-one-expansion-unit' );
10
 
11
  parent::__construct(
12
  'WP_Widget_vkExUnit_3PR_area',
13
  $widget_name,
14
+ array( 'description' => __( 'Displays a 3PR area', 'vk-all-in-one-expansion-unit' ) )
15
  );
16
  }
17
 
18
  public static function default_options( $args = array() ) {
19
  $defaults = array(
20
+ 'label_1' => __( '3PR area1 title', 'vk-all-in-one-expansion-unit' ),
21
  'media_3pr_image_1' => '',
22
  'media_3pr_alt_1' => '',
23
  'media_3pr_image_sp_1' => '',
25
  'summary_1' => '',
26
  'linkurl_1' => '',
27
  'blank_1' => false,
28
+ 'label_2' => __( '3PR area2 title', 'vk-all-in-one-expansion-unit' ),
29
  'media_3pr_image_2' => '',
30
  'media_3pr_alt_2' => '',
31
  'media_3pr_image_sp_2' => '',
33
  'summary_2' => '',
34
  'linkurl_2' => '',
35
  'blank_2' => false,
36
+ 'label_3' => __( '3PR area3 title', 'vk-all-in-one-expansion-unit' ),
37
  'media_3pr_image_3' => '',
38
  'media_3pr_alt_3' => '',
39
  'media_3pr_image_sp_3' => '',
51
 
52
  for ( $i = 1; $i <= 3; ) { ?>
53
 
54
+ <h2 class="admin-custom-h2"><?php echo __( '3PR area setting', 'vk-all-in-one-expansion-unit' ) . ' ' . $i; ?></h2>
55
  <p>
56
+ <label for="<?php echo $this->get_field_id( 'label_' . $i ); ?>"><?php _e( 'Title:', 'vk-all-in-one-expansion-unit' ); ?></label><br/>
57
  <input type="text" id="<?php echo $this->get_field_id( 'label_' . $i ); ?>-title" class="pr-input" name="<?php echo $this->get_field_name( 'label_' . $i ); ?>" value="<?php echo esc_attr( $instance[ 'label_' . $i ] ); ?>" />
58
  </p>
59
 
60
  <?php // 3PR area 1 メディアアップローダー PC ?>
61
 
62
+ <label for="<?php echo $this->get_field_id( 'media_3pr_image_' . $i ); ?>"><?php _e( 'Select image for PC:', 'vk-all-in-one-expansion-unit' ); ?></label>
63
 
64
  <div class="media_image_section">
65
  <div class="_display admin-custom-thumb-outer">
69
  <img class="media_image" src="<?php echo esc_url( $instance[ 'media_3pr_image_' . $i ] ); ?>" alt="<?php echo esc_attr( $instance[ 'media_3pr_alt_' . $i ] ); ?>" style="width:100%;height:auto;" />
70
  <?php endif; ?>
71
  </div>
72
+ <button class="button button-default widget_media_btn_select" style="text-align: center; margin:4px 0;" onclick="javascript:vk_widget_image_add(this);return false;"><?php _e( 'Select image', 'vk-all-in-one-expansion-unit' ); ?></button>
73
+ <button class="button button-default widget_media_btn_reset" style="text-align: center; margin:4px 0;" onclick="javascript:vk_widget_image_del(this);return false;"><?php _e( 'Clear image', 'vk-all-in-one-expansion-unit' ); ?></button>
74
  <div class="_form" style="line-height: 2em">
75
  <input type="hidden" class="_url" name="<?php echo $this->get_field_name( 'media_3pr_image_' . $i ); ?>" value="<?php echo esc_attr( $instance[ 'media_3pr_image_' . $i ] ); ?>" />
76
  <input type="hidden" class="_alt" name="<?php echo $this->get_field_name( 'media_3pr_alt_' . $i ); ?>" value="<?php echo esc_attr( $instance[ 'media_3pr_alt_' . $i ] ); ?>" />
77
  </div>
78
  </div><!-- [ /.media_image_section ] -->
79
 
80
+ <label for="<?php echo $this->get_field_id( 'media_3pr_image_sp_' . $i ); ?>"><?php _e( 'Select image for Mobile:', 'vk-all-in-one-expansion-unit' ); ?></label>
81
 
82
  <div class="media_image_section">
83
  <div class="_display admin-custom-thumb-outer">
87
  <img class="media_image" src="<?php echo esc_url( $instance[ 'media_3pr_image_sp_' . $i ] ); ?>" alt="<?php echo esc_attr( $instance[ 'media_3pr_alt_' . $i ] ); ?>" style="width:100%;height:auto;" />
88
  <?php endif; ?>
89
  </div>
90
+ <button class="button button-default widget_media_btn_select" style="text-align: center; margin:4px 0;" onclick="javascript:vk_widget_image_add(this);return false;"><?php _e( 'Select image', 'vk-all-in-one-expansion-unit' ); ?></button>
91
+ <button class="button button-default widget_media_btn_reset" style="text-align: center; margin:4px 0;" onclick="javascript:vk_widget_image_del(this);return false;"><?php _e( 'Clear image', 'vk-all-in-one-expansion-unit' ); ?></button>
92
  <div class="_form" style="line-height: 2em">
93
  <input type="hidden" class="_url" name="<?php echo $this->get_field_name( 'media_3pr_image_sp_' . $i ); ?>" value="<?php echo esc_attr( $instance[ 'media_3pr_image_sp_' . $i ] ); ?>" />
94
  <input type="hidden" class="_alt" name="<?php echo $this->get_field_name( 'media_3pr_alt_sp_' . $i ); ?>" value="<?php echo esc_attr( $instance[ 'media_3pr_alt_sp_' . $i ] ); ?>" />
99
  <br/>
100
 
101
  <?php // 概要テキスト ?>
102
+ <p><label for="<?php echo $this->get_field_id( 'summary_' . $i ); ?>"><?php _e( 'Summary Text:', 'vk-all-in-one-expansion-unit' ); ?></label><br/>
103
  </p>
104
 
105
  <textarea rows="4" cols="40" id="<?php echo $this->get_field_id( 'summary_' . $i ); ?>_text" class="admin-custom-input" name="<?php echo $this->get_field_name( 'summary_' . $i ); ?>"><?php echo esc_textarea( $instance[ 'summary_' . $i ] ); ?></textarea>
106
 
107
  <?php // リンク先_URL ?>
108
+ <p><label for="<?php echo $this->get_field_id( 'linkurl_' . $i ); ?>"><?php _e( 'Link URL:', 'vk-all-in-one-expansion-unit' ); ?></label><br/>
109
  <input type="text" id="<?php echo $this->get_field_id( 'linkurl_' . $i ); ?>_title" class="pr_input text" name="<?php echo $this->get_field_name( 'linkurl_' . $i ); ?>" value="<?php echo esc_attr( $instance[ 'linkurl_' . $i ] ); ?>" style="margin-bottom:0.5em;" /><br/>
110
  <input type="checkbox" id="<?php echo $this->get_field_id( 'blank_' . $i ); ?>" class="pr_input checkbox" name="<?php echo $this->get_field_name( 'blank_' . $i ); ?>"
111
  <?php
113
  echo 'checked';}
114
  ?>
115
  value="true" />
116
+ <label for="<?php echo $this->get_field_id( 'blank_' . $i ); ?>"><?php _e( 'Open link new tab.', 'vk-all-in-one-expansion-unit' ); ?></label>
117
  </p>
118
 
119
  <hr />
158
  if ( isset( $instance[ 'label_' . $i ] ) && $instance[ 'label_' . $i ] ) {
159
  echo $instance[ 'label_' . $i ];
160
  } else {
161
+ _e( '3PR area', 'vk-all-in-one-expansion-unit' );
162
  }
163
  echo '</h1>';
164
 
195
 
196
  }
197
  if ( ! empty( $instance[ 'linkurl_' . $i ] ) ) {
198
+ echo '<p class="linkurl"><a href="' . esc_url( $instance[ 'linkurl_' . $i ] ) . '" class="btn btn-default btn-sm"' . $blank . '>' . apply_filters( 'vkExUnit_widget_3pr_read_more_txt', __( 'Read more', 'vk-all-in-one-expansion-unit' ) ) . '</a></p>';
199
  }
200
 
201
  echo '</div>';
{plugins/other_widget → inc/other-widget}/widget-archives.php RENAMED
@@ -6,12 +6,12 @@
6
  class WP_Widget_VK_archive_list extends WP_Widget {
7
 
8
  function __construct() {
9
- $widget_name = veu_get_prefix() . __( 'archive list', 'vkExUnit' );
10
 
11
  parent::__construct(
12
  'WP_Widget_VK_archive_list',
13
  $widget_name,
14
- array( 'description' => __( 'Displays a list of archives. You can choose the post type and also to display archives by month or by year.', 'vkExUnit' ) )
15
  );
16
  }
17
 
@@ -50,8 +50,8 @@ class WP_Widget_VK_archive_list extends WP_Widget {
50
  $defaults = array(
51
  'post_type' => 'post',
52
  'display_type' => 'm',
53
- 'label' => __( 'Monthly archives', 'vkExUnit' ),
54
- 'hide' => __( 'Monthly archives', 'vkExUnit' ),
55
  );
56
 
57
  $instance = wp_parse_args( (array) $instance, $defaults );
@@ -65,11 +65,11 @@ class WP_Widget_VK_archive_list extends WP_Widget {
65
  ?>
66
  <p>
67
 
68
- <label for="<?php echo $this->get_field_id( 'label' ); ?>"><?php _e( 'Title', 'vkExUnit' ); ?>:</label>
69
  <input type="text" id="<?php echo $this->get_field_id( 'label' ); ?>-title" name="<?php echo $this->get_field_name( 'label' ); ?>" value="<?php echo esc_attr( $instance['label'] ); ?>" ><br/>
70
  <input type="hidden" name="<?php echo $this->get_field_name( 'hide' ); ?>" ><br/>
71
 
72
- <label for="<?php echo $this->get_field_id( 'post_type' ); ?>"><?php _e( 'Post type', 'vkExUnit' ); ?>:</label>
73
  <select name="<?php echo $this->get_field_name( 'post_type' ); ?>" >
74
  <?php foreach ( $pages as $page ) { ?>
75
  <option value="<?php echo $page; ?>"
@@ -89,14 +89,14 @@ class WP_Widget_VK_archive_list extends WP_Widget {
89
  echo 'selected="selected"'; }
90
  ?>
91
  >
92
- <?php _e( 'Monthly', 'vkExUnit' ); ?></option>
93
  <option value="y"
94
  <?php
95
  if ( $instance['display_type'] == 'y' ) {
96
  echo 'selected="selected"'; }
97
  ?>
98
  >
99
- <?php _e( 'Yearly', 'vkExUnit' ); ?></option>
100
  </select>
101
  </p>
102
  <script type="text/javascript">
@@ -114,7 +114,7 @@ class WP_Widget_VK_archive_list extends WP_Widget {
114
  var posttype = jQuery("[name=\"<?php echo $this->get_field_name( 'post_type' ); ?>\"]");
115
  var lablfeld = jQuery("[name=\"<?php echo $this->get_field_name( 'label' ); ?>\"]");
116
  posttype.change(function(){
117
- lablfeld.val(post_labels[posttype.val()]+'<?php _e( 'archive', 'vkExUnit' ); ?>');
118
  });
119
  });
120
  </script>
6
  class WP_Widget_VK_archive_list extends WP_Widget {
7
 
8
  function __construct() {
9
+ $widget_name = veu_get_prefix() . __( 'archive list', 'vk-all-in-one-expansion-unit' );
10
 
11
  parent::__construct(
12
  'WP_Widget_VK_archive_list',
13
  $widget_name,
14
+ array( 'description' => __( 'Displays a list of archives. You can choose the post type and also to display archives by month or by year.', 'vk-all-in-one-expansion-unit' ) )
15
  );
16
  }
17
 
50
  $defaults = array(
51
  'post_type' => 'post',
52
  'display_type' => 'm',
53
+ 'label' => __( 'Monthly archives', 'vk-all-in-one-expansion-unit' ),
54
+ 'hide' => __( 'Monthly archives', 'vk-all-in-one-expansion-unit' ),
55
  );
56
 
57
  $instance = wp_parse_args( (array) $instance, $defaults );
65
  ?>
66
  <p>
67
 
68
+ <label for="<?php echo $this->get_field_id( 'label' ); ?>"><?php _e( 'Title', 'vk-all-in-one-expansion-unit' ); ?>:</label>
69
  <input type="text" id="<?php echo $this->get_field_id( 'label' ); ?>-title" name="<?php echo $this->get_field_name( 'label' ); ?>" value="<?php echo esc_attr( $instance['label'] ); ?>" ><br/>
70
  <input type="hidden" name="<?php echo $this->get_field_name( 'hide' ); ?>" ><br/>
71
 
72
+ <label for="<?php echo $this->get_field_id( 'post_type' ); ?>"><?php _e( 'Post type', 'vk-all-in-one-expansion-unit' ); ?>:</label>
73
  <select name="<?php echo $this->get_field_name( 'post_type' ); ?>" >
74
  <?php foreach ( $pages as $page ) { ?>
75
  <option value="<?php echo $page; ?>"
89
  echo 'selected="selected"'; }
90
  ?>
91
  >
92
+ <?php _e( 'Monthly', 'vk-all-in-one-expansion-unit' ); ?></option>
93
  <option value="y"
94
  <?php
95
  if ( $instance['display_type'] == 'y' ) {
96
  echo 'selected="selected"'; }
97
  ?>
98
  >
99
+ <?php _e( 'Yearly', 'vk-all-in-one-expansion-unit' ); ?></option>
100
  </select>
101
  </p>
102
  <script type="text/javascript">
114
  var posttype = jQuery("[name=\"<?php echo $this->get_field_name( 'post_type' ); ?>\"]");
115
  var lablfeld = jQuery("[name=\"<?php echo $this->get_field_name( 'label' ); ?>\"]");
116
  posttype.change(function(){
117
+ lablfeld.val(post_labels[posttype.val()]+'<?php _e( 'archive', 'vk-all-in-one-expansion-unit' ); ?>');
118
  });
119
  });
120
  </script>
{plugins/other_widget → inc/other-widget}/widget-banner.php RENAMED
@@ -12,13 +12,13 @@ class WidgetBanner extends \WP_Widget {
12
 
13
 
14
  function __construct() {
15
- $widget_name = veu_get_prefix() . __( 'Banner', 'vkExUnit' );
16
 
17
  parent::__construct(
18
  'vkExUnit_banner',
19
  $widget_name,
20
  array(
21
- 'description' => sprintf( __( 'You can easily set up a banner simply by registering images and link destinations.', 'vkExUnit' ), vkExUnit_get_little_short_name() ),
22
  )
23
  );
24
  }
@@ -94,7 +94,7 @@ class WidgetBanner extends \WP_Widget {
94
  <img src="<?php echo $image[0]; ?>" style="width:100%;height:auto;" />
95
  <?php endif; ?>
96
  </div>
97
- <button class="button button-default button-block" style="display:block;width:100%;text-align: center; margin:4px 0;" onclick="javascript:vkEx_banner_addiditional(this);return false;"><?php _e( 'Set image', 'vkExUnit' ); ?></button>
98
  <div class="_form" style="line-height: 2em">
99
  <input type="hidden" class="__id" name="<?php echo $this->get_field_name( 'id' ); ?>" value="<?php echo esc_attr( $instance['id'] ); ?>" />
100
  <label>URL : <input type="text" name="<?php echo $this->get_field_name( 'href' ); ?>" style="width: 100%" value="<?php echo esc_attr( $instance['href'] ); ?>" /></label><br/>
@@ -103,8 +103,8 @@ class WidgetBanner extends \WP_Widget {
103
  if ( $instance['blank'] ) {
104
  echo 'checked';}
105
  ?>
106
- /> <?php _e( 'Open link new tab.', 'vkExUnit' ); ?></label><br/>
107
- <label><?php _e( 'Alternative text', 'vkExUnit' ); ?> :
108
  <input type="text" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" style="width: 100%" value="<?php echo esc_attr( $instance['title'] ); ?>" />
109
  </label><br/>
110
  </div>
12
 
13
 
14
  function __construct() {
15
+ $widget_name = veu_get_prefix() . __( 'Banner', 'vk-all-in-one-expansion-unit' );
16
 
17
  parent::__construct(
18
  'vkExUnit_banner',
19
  $widget_name,
20
  array(
21
+ 'description' => sprintf( __( 'You can easily set up a banner simply by registering images and link destinations.', 'vk-all-in-one-expansion-unit' ), vkExUnit_get_little_short_name() ),
22
  )
23
  );
24
  }
94
  <img src="<?php echo $image[0]; ?>" style="width:100%;height:auto;" />
95
  <?php endif; ?>
96
  </div>
97
+ <button class="button button-default button-block" style="display:block;width:100%;text-align: center; margin:4px 0;" onclick="javascript:vkEx_banner_addiditional(this);return false;"><?php _e( 'Set image', 'vk-all-in-one-expansion-unit' ); ?></button>
98
  <div class="_form" style="line-height: 2em">
99
  <input type="hidden" class="__id" name="<?php echo $this->get_field_name( 'id' ); ?>" value="<?php echo esc_attr( $instance['id'] ); ?>" />
100
  <label>URL : <input type="text" name="<?php echo $this->get_field_name( 'href' ); ?>" style="width: 100%" value="<?php echo esc_attr( $instance['href'] ); ?>" /></label><br/>
103
  if ( $instance['blank'] ) {
104
  echo 'checked';}
105
  ?>
106
+ /> <?php _e( 'Open link new tab.', 'vk-all-in-one-expansion-unit' ); ?></label><br/>
107
+ <label><?php _e( 'Alternative text', 'vk-all-in-one-expansion-unit' ); ?> :
108
  <input type="text" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" style="width: 100%" value="<?php echo esc_attr( $instance['title'] ); ?>" />
109
  </label><br/>
110
  </div>
{plugins/other_widget → inc/other-widget}/widget-button.php RENAMED
@@ -29,12 +29,12 @@ class WP_Widget_Button extends WP_Widget {
29
  }
30
 
31
  function __construct() {
32
- $widget_name = veu_get_prefix() . __( 'Button', 'vkExUnit' );
33
 
34
  parent::__construct(
35
  'vkExUnit_button',
36
  $widget_name,
37
- array( 'description' => __( 'You can set buttons for arbitrary text.', 'vkExUnit' ) )
38
  );
39
  }
40
 
@@ -113,16 +113,16 @@ class WP_Widget_Button extends WP_Widget {
113
  ?>
114
  <div class="warp" style="padding: 1em 0;line-height: 2.5em;">
115
 
116
- <?php _e( 'Main text(Required):', 'vkExUnit' ); ?>
117
  <input type="text" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" style="width:100%; margin-bottom: 0.5em;" value="<?php echo $instance['title']; ?>">
118
 
119
  <?php
120
  // icon font class input
121
- echo '<p>' . __( 'Class name of the icon font', 'vkExUnit' ) . '</label><br/>';
122
- echo __( 'To choose your favorite icon, and enter the class.', 'vkExUnit' ) . '<br>';
123
- echo '<label for="' . $this->get_field_id( 'icon_before' ) . '">' . __( 'Before :', 'vkExUnit' );
124
  echo '<input type="text" id="' . $this->get_field_id( 'icon_before' ) . '-font" class="font_class" name="' . $this->get_field_name( 'icon_before' ) . '" value="' . esc_attr( $instance['icon_before'] ) . '" /><br>';
125
- echo '<label for="' . $this->get_field_id( 'icon_after' ) . '">' . __( 'After :', 'vkExUnit' );
126
  echo '<input type="text" id="' . $this->get_field_id( 'icon_after' ) . '-font" class="font_class" name="' . $this->get_field_name( 'icon_after' ) . '" value="' . esc_attr( $instance['icon_after'] ) . '" /><br>';
127
 
128
  if ( class_exists( 'Vk_Font_Awesome_Versions' ) ) {
@@ -131,11 +131,11 @@ class WP_Widget_Button extends WP_Widget {
131
 
132
  echo '</p>';
133
  ?>
134
- <?php _e( 'Sub text:', 'vkExUnit' ); ?>
135
  <input type="text" id="<?php echo $this->get_field_id( 'subtext' ); ?>" name="<?php echo $this->get_field_name( 'subtext' ); ?>" style="width:100%; margin-bottom: 0.5em;" value="<?php echo esc_attr( $instance['subtext'] ); ?>">
136
 
137
  <br/>
138
- <?php _e( 'Link URL(Required):', 'vkExUnit' ); ?>
139
  <input type="text" id="<?php echo $this->get_field_id( 'linkurl' ); ?>" name="<?php echo $this->get_field_name( 'linkurl' ); ?>" value="<?php echo esc_attr( $instance['linkurl'] ); ?>" style="width: 100%" />
140
 
141
  <br/>
@@ -145,33 +145,33 @@ class WP_Widget_Button extends WP_Widget {
145
  echo 'checked';}
146
  ?>
147
  />
148
- <label for="<?php echo $this->get_field_id( 'blank' ); ?>"><?php _e( 'Open with new tab', 'vkExUnit' ); ?></label>
149
 
150
  <br/>
151
- <label for="<?php echo $this->get_field_id( 'size' ); ?>"><?php _e( 'Size', 'vkExUnit' ); ?> :</label>
152
  <select id="<?php echo $this->get_field_id( 'size' ); ?>" name="<?php echo $this->get_field_name( 'size' ); ?>">
153
  <option value="sm"
154
  <?php
155
  if ( $instance['size'] == 'sm' ) {
156
  echo 'selected';}
157
  ?>
158
- ><?php _e( 'Small', 'vkExUnit' ); ?></option>
159
  <option value="md"
160
  <?php
161
  if ( ! in_array( $instance['size'], array( 'sm', 'lg' ) ) ) {
162
  echo 'selected';}
163
  ?>
164
- ><?php _e( 'Medium', 'vkExUnit' ); ?></option>
165
  <option value="lg"
166
  <?php
167
  if ( $instance['size'] == 'lg' ) {
168
  echo 'selected';}
169
  ?>
170
- ><?php _e( 'Large', 'vkExUnit' ); ?></option>
171
  </select>
172
 
173
  <br/>
174
- <label for="<?php echo $this->get_field_id( 'size' ); ?>"><?php _e( 'Button color:', 'vkExUnit' ); ?> </label>
175
  <select id="<?php echo $this->get_field_id( 'color' ); ?>" name="<?php echo $this->get_field_name( 'color' ); ?>">
176
  <?php
177
  if ( ! isset( $instance['color'] ) || ! $instance['color'] ) {
@@ -185,7 +185,7 @@ class WP_Widget_Button extends WP_Widget {
185
  echo 'selected';}
186
  ?>
187
  >
188
- <?php _e( $label, 'vkExUnit' ); ?>
189
  </option>
190
  <?php endforeach; ?>
191
  </select>
@@ -208,12 +208,12 @@ class WP_Widget_Button extends WP_Widget {
208
  }
209
 
210
  public static function dummy() {
211
- __( 'Key Color(.primary)', 'vkExUnit' );
212
- __( 'No paint(.default)', 'vkExUnit' );
213
- __( 'Light green(.success)', 'vkExUnit' );
214
- __( 'Light blue(.info)', 'vkExUnit' );
215
- __( 'Orange(.warning)', 'vkExUnit' );
216
- __( 'Red(.danger)', 'vkExUnit' );
217
  }
218
  } // class WP_Widget_Button extends WP_Widget {
219
 
29
  }
30
 
31
  function __construct() {
32
+ $widget_name = veu_get_prefix() . __( 'Button', 'vk-all-in-one-expansion-unit' );
33
 
34
  parent::__construct(
35
  'vkExUnit_button',
36
  $widget_name,
37
+ array( 'description' => __( 'You can set buttons for arbitrary text.', 'vk-all-in-one-expansion-unit' ) )
38
  );
39
  }
40
 
113
  ?>
114
  <div class="warp" style="padding: 1em 0;line-height: 2.5em;">
115
 
116
+ <?php _e( 'Main text(Required):', 'vk-all-in-one-expansion-unit' ); ?>
117
  <input type="text" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" style="width:100%; margin-bottom: 0.5em;" value="<?php echo $instance['title']; ?>">
118
 
119
  <?php
120
  // icon font class input
121
+ echo '<p>' . __( 'Class name of the icon font', 'vk-all-in-one-expansion-unit' ) . '</label><br/>';
122
+ echo __( 'To choose your favorite icon, and enter the class.', 'vk-all-in-one-expansion-unit' ) . '<br>';
123
+ echo '<label for="' . $this->get_field_id( 'icon_before' ) . '">' . __( 'Before :', 'vk-all-in-one-expansion-unit' );
124
  echo '<input type="text" id="' . $this->get_field_id( 'icon_before' ) . '-font" class="font_class" name="' . $this->get_field_name( 'icon_before' ) . '" value="' . esc_attr( $instance['icon_before'] ) . '" /><br>';
125
+ echo '<label for="' . $this->get_field_id( 'icon_after' ) . '">' . __( 'After :', 'vk-all-in-one-expansion-unit' );
126
  echo '<input type="text" id="' . $this->get_field_id( 'icon_after' ) . '-font" class="font_class" name="' . $this->get_field_name( 'icon_after' ) . '" value="' . esc_attr( $instance['icon_after'] ) . '" /><br>';
127
 
128
  if ( class_exists( 'Vk_Font_Awesome_Versions' ) ) {
131
 
132
  echo '</p>';
133
  ?>
134
+ <?php _e( 'Sub text:', 'vk-all-in-one-expansion-unit' ); ?>
135
  <input type="text" id="<?php echo $this->get_field_id( 'subtext' ); ?>" name="<?php echo $this->get_field_name( 'subtext' ); ?>" style="width:100%; margin-bottom: 0.5em;" value="<?php echo esc_attr( $instance['subtext'] ); ?>">
136
 
137
  <br/>
138
+ <?php _e( 'Link URL(Required):', 'vk-all-in-one-expansion-unit' ); ?>
139
  <input type="text" id="<?php echo $this->get_field_id( 'linkurl' ); ?>" name="<?php echo $this->get_field_name( 'linkurl' ); ?>" value="<?php echo esc_attr( $instance['linkurl'] ); ?>" style="width: 100%" />
140
 
141
  <br/>
145
  echo 'checked';}
146
  ?>
147
  />
148
+ <label for="<?php echo $this->get_field_id( 'blank' ); ?>"><?php _e( 'Open with new tab', 'vk-all-in-one-expansion-unit' ); ?></label>
149
 
150
  <br/>
151
+ <label for="<?php echo $this->get_field_id( 'size' ); ?>"><?php _e( 'Size', 'vk-all-in-one-expansion-unit' ); ?> :</label>
152
  <select id="<?php echo $this->get_field_id( 'size' ); ?>" name="<?php echo $this->get_field_name( 'size' ); ?>">
153
  <option value="sm"
154
  <?php
155
  if ( $instance['size'] == 'sm' ) {
156
  echo 'selected';}
157
  ?>
158
+ ><?php _e( 'Small', 'vk-all-in-one-expansion-unit' ); ?></option>
159
  <option value="md"
160
  <?php
161
  if ( ! in_array( $instance['size'], array( 'sm', 'lg' ) ) ) {
162
  echo 'selected';}
163
  ?>
164
+ ><?php _e( 'Medium', 'vk-all-in-one-expansion-unit' ); ?></option>
165
  <option value="lg"
166
  <?php
167
  if ( $instance['size'] == 'lg' ) {
168
  echo 'selected';}
169
  ?>
170
+ ><?php _e( 'Large', 'vk-all-in-one-expansion-unit' ); ?></option>
171
  </select>
172
 
173
  <br/>
174
+ <label for="<?php echo $this->get_field_id( 'size' ); ?>"><?php _e( 'Button color:', 'vk-all-in-one-expansion-unit' ); ?> </label>
175
  <select id="<?php echo $this->get_field_id( 'color' ); ?>" name="<?php echo $this->get_field_name( 'color' ); ?>">
176
  <?php
177
  if ( ! isset( $instance['color'] ) || ! $instance['color'] ) {
185
  echo 'selected';}
186
  ?>
187
  >
188
+ <?php _e( $label, 'vk-all-in-one-expansion-unit' ); ?>
189
  </option>
190
  <?php endforeach; ?>
191
  </select>
208
  }
209
 
210
  public static function dummy() {
211
+ __( 'Key Color(.primary)', 'vk-all-in-one-expansion-unit' );
212
+ __( 'No paint(.default)', 'vk-all-in-one-expansion-unit' );
213
+ __( 'Light green(.success)', 'vk-all-in-one-expansion-unit' );
214
+ __( 'Light blue(.info)', 'vk-all-in-one-expansion-unit' );
215
+ __( 'Orange(.warning)', 'vk-all-in-one-expansion-unit' );
216
+ __( 'Red(.danger)', 'vk-all-in-one-expansion-unit' );
217
  }
218
  } // class WP_Widget_Button extends WP_Widget {
219
 
{plugins/other_widget → inc/other-widget}/widget-child-page-list.php RENAMED
@@ -7,12 +7,12 @@
7
  class WP_Widget_vkExUnit_child_page extends WP_Widget {
8
 
9
  function __construct() {
10
- $widget_name = veu_get_prefix() . __( 'Child Page List', 'vkExUnit' );
11
 
12
  parent::__construct(
13
  'vkExUnit_child_pages',
14
  $widget_name,
15
- array( 'description' => __( 'Display the child pages list from ancestor page.', 'vkExUnit' ) )
16
  );
17
  }
18
 
@@ -56,7 +56,7 @@ class WP_Widget_vkExUnit_child_page extends WP_Widget {
56
  function form( $instance ) {
57
  ?>
58
  <div style="padding:0.6em 0;">
59
- <?php _e( 'Display the child pages list from ancestor page.', 'vkExUnit' ); ?>
60
  </div>
61
  <?php
62
  }
7
  class WP_Widget_vkExUnit_child_page extends WP_Widget {
8
 
9
  function __construct() {
10
+ $widget_name = veu_get_prefix() . __( 'Child Page List', 'vk-all-in-one-expansion-unit' );
11
 
12
  parent::__construct(
13
  'vkExUnit_child_pages',
14
  $widget_name,
15
+ array( 'description' => __( 'Display the child pages list from ancestor page.', 'vk-all-in-one-expansion-unit' ) )
16
  );
17
  }
18
 
56
  function form( $instance ) {
57
  ?>
58
  <div style="padding:0.6em 0;">
59
+ <?php _e( 'Display the child pages list from ancestor page.', 'vk-all-in-one-expansion-unit' ); ?>
60
  </div>
61
  <?php
62
  }
{plugins/other_widget → inc/other-widget}/widget-new-posts.php RENAMED
@@ -1,24 +1,25 @@
1
  <?php
2
-
3
- /*-------------------------------------------*/
4
- /* Side Post list widget
5
  /*-------------------------------------------*/
 
 
6
  class WP_Widget_vkExUnit_post_list extends WP_Widget {
7
 
8
  public $taxonomies = array( 'category' );
9
 
10
  function __construct() {
11
- $widget_name = veu_get_prefix() . __( 'Recent Posts', 'vkExUnit' );
12
 
13
  parent::__construct(
14
  'vkExUnit_post_list',
15
  $widget_name,
16
- array( 'description' => __( 'Displays a list of your most recent posts', 'vkExUnit' ) )
17
  );
18
  }
19
 
20
- /*-------------------------------------------*/
21
- /* 一覧へのリンクhtmlを出力する関数
22
  /*-------------------------------------------*/
23
  static public function more_link_html( $instance ) {
24
  if ( ! empty( $instance['more_text'] ) && ! empty( $instance['more_url'] ) ) {
@@ -31,18 +32,30 @@ class WP_Widget_vkExUnit_post_list extends WP_Widget {
31
  return $more_link_html;
32
  }
33
 
 
 
 
 
 
 
 
 
 
 
34
 
35
  function widget( $args, $instance ) {
36
- $instance = static::default_options( $instance );
 
37
 
38
  if ( ! isset( $instance['format'] ) ) {
39
  $instance['format'] = 0; }
40
 
41
  echo $args['before_widget'];
42
  echo '<div class="veu_postList pt_' . $instance['format'] . '">';
43
- if ( ! empty( $instance['label'] ) ) {
 
44
  echo $args['before_title'];
45
- echo $instance['label'];
46
  echo $args['after_title'];
47
  }
48
 
@@ -83,7 +96,7 @@ class WP_Widget_vkExUnit_post_list extends WP_Widget {
83
  echo '<div class="postList postList_miniThumb">';
84
  while ( $post_loop->have_posts() ) :
85
  $post_loop->the_post();
86
- $this->display_pattern_0( $is_modified );
87
  endwhile;
88
  echo '</div>';
89
  } else {
@@ -109,15 +122,23 @@ class WP_Widget_vkExUnit_post_list extends WP_Widget {
109
  } // widget($args, $instance)
110
 
111
 
112
- function display_pattern_0( $is_modified = false ) {
113
  ?>
114
  <div class="postList_item" id="post-<?php the_ID(); ?>">
115
- <?php if ( has_post_thumbnail() ) : ?>
116
  <div class="postList_thumbnail">
117
  <a href="<?php the_permalink(); ?>">
118
  <?php
 
119
  $thumbnail_size = 'thumbnail';
120
  the_post_thumbnail( apply_filters( 'vk_post_list_widget_thumbnail', esc_attr( $thumbnail_size ) ) );
 
 
 
 
 
 
 
121
  ?>
122
  </a>
123
  </div><!-- [ /.postList_thumbnail ] -->
@@ -125,7 +146,14 @@ class WP_Widget_vkExUnit_post_list extends WP_Widget {
125
  <div class="postList_body">
126
  <?php
127
  do_action( 'vk_post_list_widget_media_body_prepend' );
128
- $media_body_output = '<div class="postList_title entry-title"><a href="' . esc_url( get_the_permalink() ) . '">' . esc_html( get_the_title() ) . '</a></div>';
 
 
 
 
 
 
 
129
  if ( $is_modified ) {
130
  $media_body_output .= '<div class="modified postList_date postList_meta_items">' . esc_html( get_the_modified_date() ) . '</div>';
131
  } else {
@@ -158,7 +186,14 @@ class WP_Widget_vkExUnit_post_list extends WP_Widget {
158
  $li_items_output = '<span class="published postList_date postList_meta_items">' . esc_html( get_the_date() ) . '</span>';
159
  }
160
  $li_items_output .= '<span class="postList_terms postList_meta_items">' . $this->taxonomy_list( get_the_id(), '', '', '' ) . '</span>';
161
- $li_items_output .= '<span class="postList_title entry-title"><a href="' . esc_url( get_the_permalink() ) . '">' . esc_html( get_the_title() ) . '</a></span>';
 
 
 
 
 
 
 
162
  echo apply_filters( 'vk_post_list_widget_li_items', $li_items_output );
163
  do_action( 'vk_post_list_widget_li_append' );
164
  ?>
@@ -189,10 +224,14 @@ class WP_Widget_vkExUnit_post_list extends WP_Widget {
189
  return '';
190
  }
191
 
192
- static function default_options( $instance = array() ) {
193
  $defaults = array(
194
  'count' => 10,
195
- 'label' => __( 'Recent Posts', 'vkExUnit' ),
 
 
 
 
196
  'post_type' => 'post',
197
  'orderby' => 'date',
198
  'terms' => '',
@@ -207,73 +246,114 @@ class WP_Widget_vkExUnit_post_list extends WP_Widget {
207
 
208
  function form( $instance ) {
209
  /*
210
- 下記 default_options($instance) が無いと Charm テスト環境ではエラーが発生する
211
  但し、これがある事で過去にnotice が出た経緯があるようなので、要調査
212
  ※20行目付近にも同様の記述あり
213
  */
214
- $instance = static::default_options( $instance );
215
  ?>
216
  <br />
217
- <?php //タイトル ?>
218
- <label for="<?php echo $this->get_field_id( 'label' ); ?>"><?php _e( 'Title:' ); ?></label><br/>
219
- <input type="text" id="<?php echo $this->get_field_id( 'label' ); ?>-title" name="<?php echo $this->get_field_name( 'label' ); ?>" value="<?php echo esc_attr( $instance['label'] ); ?>" />
 
 
 
 
 
 
 
220
  <br /><br />
221
 
222
- <?php echo _e( 'Display Format', 'vkExUnit' ); ?>:<br/>
223
- <label><input type="radio" name="<?php echo $this->get_field_name( 'format' ); ?>" value="0"
224
- <?php
225
- if ( ! $instance['format'] ) {
226
- echo 'checked'; }
227
- ?>
228
- /><?php echo __( 'Thumbnail', 'vkExUnit' ) . '/' . __( 'Title', 'vkExUnit' ) . '/' . __( 'Date', 'vkExUnit' ); ?></label><br/>
229
- <label><input type="radio" name="<?php echo $this->get_field_name( 'format' ); ?>" value="1"
230
- <?php
231
- if ( $instance['format'] == 1 ) {
232
- echo 'checked'; }
233
- ?>
234
- /><?php echo __( 'Date', 'vkExUnit' ) . '/' . __( 'Category', 'vkExUnit' ) . '/' . __( 'Title', 'vkExUnit' ); ?></label>
 
 
235
  <br/><br/>
236
 
237
- <?php echo _e( 'Order by', 'vkExUnit' ); ?>:<br/>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
238
  <label style="padding-bottom: 0.5em"><input type="radio" name="<?php echo $this->get_field_name( 'orderby' ); ?>" value="date"
239
  <?php
240
  if ( $instance['orderby'] != 'modified' ) {
241
  echo 'checked'; }
242
  ?>
243
- /><?php _e( 'Publish date', 'vkExUnit' ); ?></label><br/>
244
  <label><input type="radio" name="<?php echo $this->get_field_name( 'orderby' ); ?>" value="modified"
245
  <?php
246
  if ( $instance['orderby'] == 'modified' ) {
247
  echo 'checked'; }
248
  ?>
249
- /><?php _e( 'Modified date', 'vkExUnit' ); ?></label>
250
  <br/><br/>
251
 
252
- <?php //表示件数 ?>
253
- <label for="<?php echo $this->get_field_id( 'count' ); ?>"><?php _e( 'Display count', 'vkExUnit' ); ?>:</label><br/>
254
  <input type="text" id="<?php echo $this->get_field_id( 'count' ); ?>" name="<?php echo $this->get_field_name( 'count' ); ?>" value="<?php echo esc_attr( $instance['count'] ); ?>" />
255
  <br /><br />
256
 
257
- <?php //投稿タイプ ?>
258
- <label for="<?php echo $this->get_field_id( 'post_type' ); ?>"><?php _e( 'Slug for the custom type you want to display', 'vkExUnit' ); ?>:</label><br />
259
  <input type="text" id="<?php echo $this->get_field_id( 'post_type' ); ?>" name="<?php echo $this->get_field_name( 'post_type' ); ?>" value="<?php echo esc_attr( $instance['post_type'] ); ?>" />
260
  <br/><br/>
261
 
262
  <?php // Terms ?>
263
- <label for="<?php echo $this->get_field_id( 'terms' ); ?>"><?php _e( 'taxonomy ID', 'vkExUnit' ); ?>:</label><br />
264
  <input type="text" id="<?php echo $this->get_field_id( 'terms' ); ?>" name="<?php echo $this->get_field_name( 'terms' ); ?>" value="<?php echo esc_attr( $instance['terms'] ); ?>" /><br />
265
  <?php
266
- _e( 'if you need filtering by term, add the term ID separate by ",".', 'vkExUnit' );
267
  echo '<br/>';
268
- _e( 'if empty this area, I will do not filtering.', 'vkExUnit' );
269
  ?>
270
  <br/><br/>
271
 
272
  <?php // Read more ?>
273
- <label for="<?php echo $this->get_field_id( 'more_url' ); ?>"><?php _e( 'Destination URL:', 'vkExUnit' ); ?></label><br/>
274
  <input type="text" id="<?php echo $this->get_field_id( 'more_url' ); ?>" name="<?php echo $this->get_field_name( 'more_url' ); ?>" value="<?php echo esc_attr( $instance['more_url'] ); ?>" />
275
  <br /><br />
276
- <label for="<?php echo $this->get_field_id( 'more_text' ); ?>"><?php _e( 'Notation text:', 'vkExUnit' ); ?></label><br/>
277
  <input type="text" placeholder="最新記事一覧 ≫" id="<?php echo $this->get_field_id( 'more_text' ); ?>" name="<?php echo $this->get_field_name( 'more_text' ); ?>" value="<?php echo esc_attr( $instance['more_text'] ); ?>" />
278
  <br /><br />
279
 
@@ -284,7 +364,10 @@ class WP_Widget_vkExUnit_post_list extends WP_Widget {
284
  $instance = $old_instance;
285
  $instance['format'] = $new_instance['format'];
286
  $instance['count'] = $new_instance['count'];
287
- $instance['label'] = $new_instance['label'];
 
 
 
288
  $instance['orderby'] = in_array( $new_instance['orderby'], array( 'date', 'modified' ) ) ? $new_instance['orderby'] : 'date';
289
  $instance['post_type'] = ! empty( $new_instance['post_type'] ) ? strip_tags( $new_instance['post_type'] ) : 'post';
290
  $instance['terms'] = preg_replace( '/([^0-9,]+)/', '', $new_instance['terms'] );
1
  <?php
2
+ /*
3
+ Side Post list widget
 
4
  /*-------------------------------------------*/
5
+
6
+
7
  class WP_Widget_vkExUnit_post_list extends WP_Widget {
8
 
9
  public $taxonomies = array( 'category' );
10
 
11
  function __construct() {
12
+ $widget_name = veu_get_prefix() . __( 'Recent Posts', 'vk-all-in-one-expansion-unit' );
13
 
14
  parent::__construct(
15
  'vkExUnit_post_list',
16
  $widget_name,
17
+ array( 'description' => __( 'Displays a list of your most recent posts', 'vk-all-in-one-expansion-unit' ) )
18
  );
19
  }
20
 
21
+ /*
22
+ 一覧へのリンクhtmlを出力する関数
23
  /*-------------------------------------------*/
24
  static public function more_link_html( $instance ) {
25
  if ( ! empty( $instance['more_text'] ) && ! empty( $instance['more_url'] ) ) {
32
  return $more_link_html;
33
  }
34
 
35
+ static public function get_widget_title( $instance ) {
36
+ $title = '';
37
+ if ( isset( $instance['title'] ) && $instance['title'] ) {
38
+ $title = $instance['title'];
39
+ } elseif ( isset( $instance['label'] ) && $instance['label'] ) {
40
+ // title が未記入で label は入力されている場合
41
+ $title = $instance['label'];
42
+ }
43
+ return $title;
44
+ }
45
 
46
  function widget( $args, $instance ) {
47
+ $instance = static::get_options( $instance );
48
+ $title = $this->get_widget_title( $instance );
49
 
50
  if ( ! isset( $instance['format'] ) ) {
51
  $instance['format'] = 0; }
52
 
53
  echo $args['before_widget'];
54
  echo '<div class="veu_postList pt_' . $instance['format'] . '">';
55
+
56
+ if ( ! empty( $title ) ) {
57
  echo $args['before_title'];
58
+ echo $title;
59
  echo $args['after_title'];
60
  }
61
 
96
  echo '<div class="postList postList_miniThumb">';
97
  while ( $post_loop->have_posts() ) :
98
  $post_loop->the_post();
99
+ $this->display_pattern_0( $is_modified, $instance );
100
  endwhile;
101
  echo '</div>';
102
  } else {
122
  } // widget($args, $instance)
123
 
124
 
125
+ function display_pattern_0( $is_modified = false, $instance ) {
126
  ?>
127
  <div class="postList_item" id="post-<?php the_ID(); ?>">
128
+ <?php if ( has_post_thumbnail() || $instance['media_id'] ) : ?>
129
  <div class="postList_thumbnail">
130
  <a href="<?php the_permalink(); ?>">
131
  <?php
132
+ if ( has_post_thumbnail() ) {
133
  $thumbnail_size = 'thumbnail';
134
  the_post_thumbnail( apply_filters( 'vk_post_list_widget_thumbnail', esc_attr( $thumbnail_size ) ) );
135
+ } else {
136
+ $attr = array(
137
+ 'class' => 'attachment-thumbnail size-thumbnail wp-post-image',
138
+ 'alt' => trim( strip_tags( get_post_meta( $instance['media_id'], '_wp_attachment_image_alt', true ) ) ),
139
+ );
140
+ echo wp_get_attachment_image( $instance['media_id'], 'thumbnail', '', $attr );
141
+ }
142
  ?>
143
  </a>
144
  </div><!-- [ /.postList_thumbnail ] -->
146
  <div class="postList_body">
147
  <?php
148
  do_action( 'vk_post_list_widget_media_body_prepend' );
149
+
150
+ $allowed_html = array(
151
+ 'span' => array( 'class' => array() ),
152
+ 'b' => array(),
153
+ 'strong' => array(),
154
+ );
155
+
156
+ $media_body_output = '<div class="postList_title entry-title"><a href="' . esc_url( get_the_permalink() ) . '">' . wp_kses( get_the_title(), $allowed_html ) . '</a></div>';
157
  if ( $is_modified ) {
158
  $media_body_output .= '<div class="modified postList_date postList_meta_items">' . esc_html( get_the_modified_date() ) . '</div>';
159
  } else {
186
  $li_items_output = '<span class="published postList_date postList_meta_items">' . esc_html( get_the_date() ) . '</span>';
187
  }
188
  $li_items_output .= '<span class="postList_terms postList_meta_items">' . $this->taxonomy_list( get_the_id(), '', '', '' ) . '</span>';
189
+
190
+ $allowed_html = array(
191
+ 'span' => array( 'class' => array() ),
192
+ 'b' => array(),
193
+ 'strong' => array(),
194
+ );
195
+
196
+ $li_items_output .= '<span class="postList_title entry-title"><a href="' . esc_url( get_the_permalink() ) . '">' . wp_kses( get_the_title(), $allowed_html ) . '</a></span>';
197
  echo apply_filters( 'vk_post_list_widget_li_items', $li_items_output );
198
  do_action( 'vk_post_list_widget_li_append' );
199
  ?>
224
  return '';
225
  }
226
 
227
+ static function get_options( $instance = array() ) {
228
  $defaults = array(
229
  'count' => 10,
230
+ // 'label' => __( 'Recent Posts', 'vk-all-in-one-expansion-unit' ),
231
+ 'title' => __( 'Recent Posts', 'vk-all-in-one-expansion-unit' ),
232
+ 'media_url' => '',
233
+ 'media_id' => '',
234
+ 'media_alt' => '',
235
  'post_type' => 'post',
236
  'orderby' => 'date',
237
  'terms' => '',
246
 
247
  function form( $instance ) {
248
  /*
249
+ 下記 get_options($instance) が無いと Charm テスト環境ではエラーが発生する
250
  但し、これがある事で過去にnotice が出た経緯があるようなので、要調査
251
  ※20行目付近にも同様の記述あり
252
  */
253
+ $instance = static::get_options( $instance );
254
  ?>
255
  <br />
256
+ <?php // タイトル ?>
257
+ <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:' ); ?></label><br/>
258
+ <?php
259
+ if ( isset( $instance['title'] ) && $instance['title'] ) {
260
+ $title = $instance['title'];
261
+ } else {
262
+ $title = $instance['label'];
263
+ }
264
+ ?>
265
+ <input type="text" id="<?php echo $this->get_field_id( 'title' ); ?>-title" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo esc_attr( $title ); ?>" />
266
  <br /><br />
267
 
268
+ <?php echo _e( 'Display Format', 'vk-all-in-one-expansion-unit' ); ?>:<br/>
269
+ <?php
270
+ $checked = '';
271
+ if ( ! $instance['format'] ) {
272
+ $checked = ' checked';
273
+ }
274
+ ?>
275
+ <label><input type="radio" name="<?php echo $this->get_field_name( 'format' ); ?>" value="0"<?php echo $checked; ?>/><?php echo __( 'Thumbnail', 'vk-all-in-one-expansion-unit' ) . '/' . __( 'Title', 'vk-all-in-one-expansion-unit' ) . '/' . __( 'Date', 'vk-all-in-one-expansion-unit' ); ?></label><br/>
276
+ <?php
277
+ $checked = '';
278
+ if ( $instance['format'] == 1 ) {
279
+ $checked = ' checked';
280
+ }
281
+ ?>
282
+ <label><input type="radio" name="<?php echo $this->get_field_name( 'format' ); ?>" value="1"<?php echo $checked; ?>/><?php echo __( 'Date', 'vk-all-in-one-expansion-unit' ) . '/' . __( 'Category', 'vk-all-in-one-expansion-unit' ) . '/' . __( 'Title', 'vk-all-in-one-expansion-unit' ); ?></label>
283
  <br/><br/>
284
 
285
+ <?php
286
+ /*
287
+ media uploader
288
+ /*-------------------------------------------*/
289
+ $args = array(
290
+ 'media_url' => 'media_url',
291
+ 'media_id' => 'media_id',
292
+ 'media_alt' => 'media_alt',
293
+ );
294
+ ?>
295
+ <p><label for="<?php echo $this->get_field_id( $args['media_url'] ); ?>"><?php _e( 'Default thumbnail image:', 'vk-all-in-one-expansion-unit' ); ?></label><br/>
296
+ <div class="media_image_section">
297
+ <div class="_display admin-custom-thumb-outer" style="height:auto">
298
+ <?php
299
+ if ( ! empty( $instance[ $args['media_url'] ] ) ) :
300
+ ?>
301
+ <img src="<?php echo esc_url( $instance[ $args['media_url'] ] ); ?>" class="admin-custom-thumb" />
302
+ <?php endif; ?>
303
+ </div>
304
+ <button class="button button-default widget_media_btn_select" style="text-align: center; margin:4px 0;" onclick="javascript:vk_widget_image_add(this);return false;"><?php _e( 'Select image', 'vk-all-in-one-expansion-unit' ); ?></button>
305
+ <button class="button button-default widget_media_btn_reset" style="text-align: center; margin:4px 0;" onclick="javascript:vk_widget_image_del(this);return false;"><?php _e( 'Clear image', 'vk-all-in-one-expansion-unit' ); ?></button>
306
+ <div class="_form" style="line-height: 2em">
307
+ <input type="hidden" class="_id" name="<?php echo $this->get_field_name( $args['media_id'] ); ?>" value="<?php echo esc_attr( $instance[ $args['media_id'] ] ); ?>" />
308
+ <input type="hidden" class="_url" name="<?php echo $this->get_field_name( $args['media_url'] ); ?>" value="<?php echo esc_attr( $instance[ $args['media_url'] ] ); ?>" />
309
+ <input type="hidden" class="_alt" name="<?php echo $this->get_field_name( $args['media_alt'] ); ?>" value="<?php echo esc_attr( $instance[ $args['media_alt'] ] ); ?>" />
310
+ </div>
311
+ </div><!-- [ /.media_image_section ] -->
312
+
313
+
314
+ <br/>
315
+
316
+ <?php echo _e( 'Order by', 'vk-all-in-one-expansion-unit' ); ?>
317
+ :<br/>
318
  <label style="padding-bottom: 0.5em"><input type="radio" name="<?php echo $this->get_field_name( 'orderby' ); ?>" value="date"
319
  <?php
320
  if ( $instance['orderby'] != 'modified' ) {
321
  echo 'checked'; }
322
  ?>
323
+ /><?php _e( 'Publish date', 'vk-all-in-one-expansion-unit' ); ?></label><br/>
324
  <label><input type="radio" name="<?php echo $this->get_field_name( 'orderby' ); ?>" value="modified"
325
  <?php
326
  if ( $instance['orderby'] == 'modified' ) {
327
  echo 'checked'; }
328
  ?>
329
+ /><?php _e( 'Modified date', 'vk-all-in-one-expansion-unit' ); ?></label>
330
  <br/><br/>
331
 
332
+ <?php // 表示件数 ?>
333
+ <label for="<?php echo $this->get_field_id( 'count' ); ?>"><?php _e( 'Display count', 'vk-all-in-one-expansion-unit' ); ?>:</label><br/>
334
  <input type="text" id="<?php echo $this->get_field_id( 'count' ); ?>" name="<?php echo $this->get_field_name( 'count' ); ?>" value="<?php echo esc_attr( $instance['count'] ); ?>" />
335
  <br /><br />
336
 
337
+ <?php // 投稿タイプ ?>
338
+ <label for="<?php echo $this->get_field_id( 'post_type' ); ?>"><?php _e( 'Slug for the custom type you want to display', 'vk-all-in-one-expansion-unit' ); ?>:</label><br />
339
  <input type="text" id="<?php echo $this->get_field_id( 'post_type' ); ?>" name="<?php echo $this->get_field_name( 'post_type' ); ?>" value="<?php echo esc_attr( $instance['post_type'] ); ?>" />
340
  <br/><br/>
341
 
342
  <?php // Terms ?>
343
+ <label for="<?php echo $this->get_field_id( 'terms' ); ?>"><?php _e( 'taxonomy ID', 'vk-all-in-one-expansion-unit' ); ?>:</label><br />
344
  <input type="text" id="<?php echo $this->get_field_id( 'terms' ); ?>" name="<?php echo $this->get_field_name( 'terms' ); ?>" value="<?php echo esc_attr( $instance['terms'] ); ?>" /><br />
345
  <?php
346
+ _e( 'if you need filtering by term, add the term ID separate by ",".', 'vk-all-in-one-expansion-unit' );
347
  echo '<br/>';
348
+ _e( 'if empty this area, I will do not filtering.', 'vk-all-in-one-expansion-unit' );
349
  ?>
350
  <br/><br/>
351
 
352
  <?php // Read more ?>
353
+ <label for="<?php echo $this->get_field_id( 'more_url' ); ?>"><?php _e( 'Destination URL:', 'vk-all-in-one-expansion-unit' ); ?></label><br/>
354
  <input type="text" id="<?php echo $this->get_field_id( 'more_url' ); ?>" name="<?php echo $this->get_field_name( 'more_url' ); ?>" value="<?php echo esc_attr( $instance['more_url'] ); ?>" />
355
  <br /><br />
356
+ <label for="<?php echo $this->get_field_id( 'more_text' ); ?>"><?php _e( 'Notation text:', 'vk-all-in-one-expansion-unit' ); ?></label><br/>
357
  <input type="text" placeholder="最新記事一覧 ≫" id="<?php echo $this->get_field_id( 'more_text' ); ?>" name="<?php echo $this->get_field_name( 'more_text' ); ?>" value="<?php echo esc_attr( $instance['more_text'] ); ?>" />
358
  <br /><br />
359
 
364
  $instance = $old_instance;
365
  $instance['format'] = $new_instance['format'];
366
  $instance['count'] = $new_instance['count'];
367
+ $instance['title'] = wp_kses_post( $new_instance['title'] );
368
+ $instance['media_url'] = esc_url( $new_instance['media_url'] );
369
+ $instance['media_id'] = esc_attr( $new_instance['media_id'] );
370
+ $instance['media_alt'] = esc_attr( $new_instance['media_alt'] );
371
  $instance['orderby'] = in_array( $new_instance['orderby'], array( 'date', 'modified' ) ) ? $new_instance['orderby'] : 'date';
372
  $instance['post_type'] = ! empty( $new_instance['post_type'] ) ? strip_tags( $new_instance['post_type'] ) : 'post';
373
  $instance['terms'] = preg_replace( '/([^0-9,]+)/', '', $new_instance['terms'] );
{plugins/other_widget → inc/other-widget}/widget-page.php RENAMED
@@ -6,12 +6,12 @@
6
  class WP_Widget_vkExUnit_widget_page extends WP_Widget {
7
 
8
  function __construct() {
9
- $widget_name = veu_get_prefix() . __( 'page content to widget', 'vkExUnit' );
10
 
11
  parent::__construct(
12
  'pudge',
13
  $widget_name,
14
- array( 'description' => __( 'Displays a page contents to widget.', 'vkExUnit' ) )
15
  );
16
  }
17
 
@@ -132,15 +132,15 @@ class WP_Widget_vkExUnit_widget_page extends WP_Widget {
132
 
133
  <label>
134
  <input type="radio" name="<?php echo $this->get_field_name( 'set_title' ); ?>" value="title-widget" <?php $this->echo_checked( $instance['set_title'], 'title-widget' ); ?> />
135
- <?php _e( 'Display the entered title', 'vkExUnit' ); ?></label><br/>
136
 
137
  <label>
138
  <input type="radio" name="<?php echo $this->get_field_name( 'set_title' ); ?>" value="title-page" <?php $this->echo_checked( $instance['set_title'], 'title-page' ); ?> />
139
- <?php _e( 'Display the title of page', 'vkExUnit' ); ?></label><br/>
140
 
141
  <label>
142
  <input type="radio" name="<?php echo $this->get_field_name( 'set_title' ); ?>" value="title-hidden" <?php $this->echo_checked( $instance['set_title'], 'title-hidden' ); ?> />
143
- <?php _e( 'Do not display titles', 'vkExUnit' ); ?></label><br/>
144
  <br/>
145
 
146
  <?php
@@ -157,13 +157,13 @@ class WP_Widget_vkExUnit_widget_page extends WP_Widget {
157
  ?>
158
  </p>
159
 
160
- <?php $options = vkExUnit_get_common_options(); ?>
161
 
162
  <?php if ( $this->is_active_child_page_index( $options ) ) : ?>
163
  <p>
164
  <label for="<?php echo $this->get_field_name( 'child_page_index' ); ?>">
165
  <input type="checkbox" id="<?php echo $this->get_field_name( 'child_page_index' ); ?>" name="<?php echo $this->get_field_name( 'child_page_index' ); ?>"<?php echo ( ! empty( $instance['child_page_index'] ) ) ? ' checked' : ''; ?> />
166
- <?php _e( 'Display a child page index', 'vkExUnit' ); ?>
167
  </label>
168
  </p>
169
  <?php endif; ?>
@@ -172,7 +172,7 @@ class WP_Widget_vkExUnit_widget_page extends WP_Widget {
172
  <p>
173
  <label for="<?php echo $this->get_field_name( 'page_list_ancestor' ); ?>">
174
  <input type="checkbox" id="<?php echo $this->get_field_name( 'page_list_ancestor' ); ?>" name="<?php echo $this->get_field_name( 'page_list_ancestor' ); ?>"<?php echo ( ! empty( $instance['page_list_ancestor'] ) ) ? ' checked' : ''; ?> />
175
- <?php _e( 'Display a page list from ancestor', 'vkExUnit' ); ?>
176
  </label>
177
  </p>
178
  <?php
@@ -225,7 +225,7 @@ class WP_Widget_vkExUnit_widget_page extends WP_Widget {
225
  }
226
  echo apply_filters( 'the_content', $page->post_content );
227
 
228
- $options = vkExUnit_get_common_options();
229
  if ( $this->is_active_child_page_index( $options ) ) {
230
  if ( ! empty( $instance['child_page_index'] ) ) {
231
  echo "\n" . apply_filters( 'the_content', '[vkExUnit_childs]' );
@@ -240,7 +240,7 @@ class WP_Widget_vkExUnit_widget_page extends WP_Widget {
240
  if ( current_user_can( 'edit_pages' ) ) {
241
  ?>
242
  <div class="veu_adminEdit">
243
- <a href="<?php echo site_url(); ?>/wp-admin/post.php?post=<?php echo $pageid; ?>&action=edit" class="btn btn-default btn-sm"><?php _e( 'Edit', 'vkExUnit' ); ?></a>
244
  </div>
245
  <?php
246
  }
6
  class WP_Widget_vkExUnit_widget_page extends WP_Widget {
7
 
8
  function __construct() {
9
+ $widget_name = veu_get_prefix() . __( 'page content to widget', 'vk-all-in-one-expansion-unit' );
10
 
11
  parent::__construct(
12
  'pudge',
13
  $widget_name,
14
+ array( 'description' => __( 'Displays a page contents to widget.', 'vk-all-in-one-expansion-unit' ) )
15
  );
16
  }
17
 
132
 
133
  <label>
134
  <input type="radio" name="<?php echo $this->get_field_name( 'set_title' ); ?>" value="title-widget" <?php $this->echo_checked( $instance['set_title'], 'title-widget' ); ?> />
135
+ <?php _e( 'Display the entered title', 'vk-all-in-one-expansion-unit' ); ?></label><br/>
136
 
137
  <label>
138
  <input type="radio" name="<?php echo $this->get_field_name( 'set_title' ); ?>" value="title-page" <?php $this->echo_checked( $instance['set_title'], 'title-page' ); ?> />
139
+ <?php _e( 'Display the title of page', 'vk-all-in-one-expansion-unit' ); ?></label><br/>
140
 
141
  <label>
142
  <input type="radio" name="<?php echo $this->get_field_name( 'set_title' ); ?>" value="title-hidden" <?php $this->echo_checked( $instance['set_title'], 'title-hidden' ); ?> />
143
+ <?php _e( 'Do not display titles', 'vk-all-in-one-expansion-unit' ); ?></label><br/>
144
  <br/>
145
 
146
  <?php
157
  ?>
158
  </p>
159
 
160
+ <?php $options = veu_get_common_options(); ?>
161
 
162
  <?php if ( $this->is_active_child_page_index( $options ) ) : ?>
163
  <p>
164
  <label for="<?php echo $this->get_field_name( 'child_page_index' ); ?>">
165
  <input type="checkbox" id="<?php echo $this->get_field_name( 'child_page_index' ); ?>" name="<?php echo $this->get_field_name( 'child_page_index' ); ?>"<?php echo ( ! empty( $instance['child_page_index'] ) ) ? ' checked' : ''; ?> />
166
+ <?php _e( 'Display a child page index', 'vk-all-in-one-expansion-unit' ); ?>
167
  </label>
168
  </p>
169
  <?php endif; ?>
172
  <p>
173
  <label for="<?php echo $this->get_field_name( 'page_list_ancestor' ); ?>">
174
  <input type="checkbox" id="<?php echo $this->get_field_name( 'page_list_ancestor' ); ?>" name="<?php echo $this->get_field_name( 'page_list_ancestor' ); ?>"<?php echo ( ! empty( $instance['page_list_ancestor'] ) ) ? ' checked' : ''; ?> />
175
+ <?php _e( 'Display a page list from ancestor', 'vk-all-in-one-expansion-unit' ); ?>
176
  </label>
177
  </p>
178
  <?php
225
  }
226
  echo apply_filters( 'the_content', $page->post_content );
227
 
228
+ $options = veu_get_common_options();
229
  if ( $this->is_active_child_page_index( $options ) ) {
230
  if ( ! empty( $instance['child_page_index'] ) ) {
231
  echo "\n" . apply_filters( 'the_content', '[vkExUnit_childs]' );
240
  if ( current_user_can( 'edit_pages' ) ) {
241
  ?>
242
  <div class="veu_adminEdit">
243
+ <a href="<?php echo site_url(); ?>/wp-admin/post.php?post=<?php echo $pageid; ?>&action=edit" class="btn btn-default btn-sm"><?php _e( 'Edit', 'vk-all-in-one-expansion-unit' ); ?></a>
244
  </div>
245
  <?php
246
  }
{plugins/other_widget → inc/other-widget}/widget-pr-blocks.php RENAMED
@@ -14,12 +14,12 @@ class WP_Widget_vkExUnit_PR_Blocks extends WP_Widget {
14
  /*-------------------------------------------*/
15
 
16
  function __construct() {
17
- $widget_name = veu_get_prefix() . __( 'PR Blocks', 'vkExUnit' );
18
 
19
  parent::__construct(
20
  'WP_Widget_vkExUnit_PR_Blocks',
21
  $widget_name,
22
- array( 'description' => __( 'Displays a circle image or icon font for pr blocks', 'vkExUnit' ) )
23
  );
24
  }
25
 
@@ -27,37 +27,37 @@ class WP_Widget_vkExUnit_PR_Blocks extends WP_Widget {
27
  $defaults = array(
28
  'block_count' => 3,
29
 
30
- 'label_1' => __( 'Service', 'vkExUnit' ),
31
  'media_image_1' => '',
32
  'media_alt_1' => '',
33
- 'iconFont_class_1' => 'fa-file-text-o',
34
  'iconFont_bgColor_1' => '#337ab7',
35
  'iconFont_bgType_1' => '',
36
  'summary_1' => '',
37
  'linkurl_1' => '',
38
  'blank_1' => '',
39
 
40
- 'label_2' => __( 'Company', 'vkExUnit' ),
41
  'media_image_2' => '',
42
  'media_alt_2' => '',
43
- 'iconFont_class_2' => 'fa-building-o',
44
  'iconFont_bgColor_2' => '#337ab7',
45
  'iconFont_bgType_2' => '',
46
  'summary_2' => '',
47
  'linkurl_2' => '',
48
  'blank_1' => '',
49
 
50
- 'label_3' => __( 'Recruit', 'vkExUnit' ),
51
  'media_image_3' => '',
52
  'media_alt_3' => '',
53
- 'iconFont_class_3' => 'fa-user',
54
  'iconFont_bgColor_3' => '#337ab7',
55
  'iconFont_bgType_3' => '',
56
  'summary_3' => '',
57
  'linkurl_3' => '',
58
  'blank_1' => '',
59
 
60
- 'label_4' => __( 'Contact', 'vkExUnit' ),
61
  'media_image_4' => '',
62
  'media_alt_4' => '',
63
  'iconFont_class_4' => 'fa-envelope',
@@ -80,22 +80,22 @@ class WP_Widget_vkExUnit_PR_Blocks extends WP_Widget {
80
 
81
  <?php // select Block count ?>
82
  <p>
83
- <label for="<?php echo $this->get_field_id( 'block_count' ); ?>"><?php _e( 'The choice of the number of columns:', 'vkExUnit' ); ?></label><br/>
84
  <select name="<?php echo $this->get_field_name( 'block_count' ); ?>" id="<?php echo $this->get_field_id( 'block_count' ); ?>-count">
85
  <option value="3"
86
  <?php
87
  if ( intval( $instance['block_count'] ) === 3 ) {
88
  echo 'selected'; }
89
  ?>
90
- ><?php _e( '3column', 'vkExUnit' ); ?></option>
91
  <option value="4"
92
  <?php
93
  if ( intval( $instance['block_count'] ) === 4 ) {
94
  echo 'selected'; }
95
  ?>
96
- ><?php _e( '4column', 'vkExUnit' ); ?></option>
97
  </select><br>
98
- <?php _e( 'If you change the number of columns, click to "Save" botton and exit the edit page. When restart the edit page, the column input form is increased or decreased.', 'vkExUnit' ); ?>
99
  </p>
100
 
101
  <?php
@@ -104,32 +104,32 @@ for ( $i = 1; $i <= intval( $instance['block_count'] ); ) {
104
 
105
  // PR Block admin title
106
  echo '<div class="admin-custom-section">';
107
- echo '<h2 class="admin-custom-h2">' . __( 'PR Block' . $i . ' setting', 'vkExUnit' ) . '</h2>';
108
 
109
  // PR Block display title
110
 
111
- echo '<p><label for="' . $this->get_field_id( 'label_' . $i ) . '">' . __( 'Title:', 'vkExUnit' ) . '</label><br/>' .
112
  '<input type="text" id="' . $this->get_field_id( 'label_' . $i ) . '-title" class="admin-custom-input" name="' . $this->get_field_name( 'label_' . $i ) . '" value="' . esc_attr( $instance[ 'label_' . $i ] ) . '" /></p>';
113
 
114
  // summary text
115
- echo '<p><label for="' . $this->get_field_id( 'summary_' . $i ) . '">' . __( 'Summary Text:', 'vkExUnit' ) . '</label><br/>';
116
  echo '<textarea rows="4" cols="40" id="' . $this->get_field_id( 'summary_' . $i ) . '_text" class="admin-custom-input" name="' . $this->get_field_name( 'summary_' . $i ) . '">' . esc_textarea( $instance[ 'summary_' . $i ] ) . '</textarea>';
117
  echo '</p>';
118
 
119
  // link_URL
120
- echo '<p><label for="' . $this->get_field_id( 'linkurl_' . $i ) . '">' . __( 'Link URL:', 'vkExUnit' ) . '</label><br/>' .
121
  '<input type="text" id="' . $this->get_field_id( 'linkurl_' . $i ) . '_title" class="admin-custom-input" name="' . $this->get_field_name( 'linkurl_' . $i ) . '" value="' . esc_attr( $instance[ 'linkurl_' . $i ] ) . '" style="margin-bottom:0.5em" />';
122
  $checked = ( isset( $instance[ 'blank_' . $i ] ) && $instance[ 'blank_' . $i ] ) ? ' checked' : '';
123
  echo '<input type="checkbox" value="true" id="' . $this->get_field_id( 'blank_' . $i ) . '" name="' . $this->get_field_name( 'blank_' . $i ) . '"' . $checked . ' />';
124
- echo '<label for="' . $this->get_field_id( 'blank_' . $i ) . '">' . __( 'Open link new tab.', 'vkExUnit' ) . '</label>';
125
  echo '</p>';
126
 
127
  /* Icon font
128
  /*-------------------------------------------*/
129
- echo '<h3 class="admin-custom-h3">' . __( 'Icon', 'vkExUnit' ) . ' ' . $i . '</h3>';
130
 
131
  // icon font class input
132
- echo '<p><label for="' . $this->get_field_id( 'iconFont_' . $i ) . '">' . __( 'Class name of the icon font you want to use:', 'vkExUnit' ) . '</label><br/>';
133
  echo '<input type="text" id="' . $this->get_field_id( 'iconFont_class_' . $i ) . '-font" class="font_class" name="' . $this->get_field_name( 'iconFont_class_' . $i ) . '" value="' . esc_attr( $instance[ 'iconFont_class_' . $i ] ) . '" /><br>';
134
 
135
  if ( class_exists( 'Vk_Font_Awesome_Versions' ) ) {
@@ -140,26 +140,26 @@ for ( $i = 1; $i <= intval( $instance['block_count'] ); ) {
140
 
141
  // icon font color
142
  echo '<p class="color_picker_wrap">' .
143
- '<label for="' . $this->get_field_id( 'iconFont_bgColor_' . $i ) . '">' . __( 'Icon color:', 'vkExUnit' ) . '</label><br/>' .
144
  '<input type="text" id="' . $this->get_field_id( 'iconFont_bgColor_' . $i ) . '-color" class="color_picker" name="' . $this->get_field_name( 'iconFont_bgColor_' . $i ) . '" value="' . esc_attr( $instance[ 'iconFont_bgColor_' . $i ] ) . '" /></p>';
145
 
146
  // icon font type
147
- echo '<p>' . __( 'Icon Background:', 'vkExUnit' ) . '<br>';
148
 
149
  $checked = ( ! isset( $instance[ 'iconFont_bgType_' . $i ] ) || ! $instance[ 'iconFont_bgType_' . $i ] ) ? ' checked' : '';
150
  echo '<input type="radio" id="' . $this->get_field_id( 'iconFont_bgType_' . $i ) . '_solid" name="' . $this->get_field_name( 'iconFont_bgType_' . $i ) . '" value=""' . $checked . ' />';
151
- echo '<label for="' . $this->get_field_id( 'iconFont_bgType_' . $i ) . '_solid">' . __( 'Solid color', 'vkExUnit' ) . '</label> ';
152
 
153
  $checked = ( isset( $instance[ 'iconFont_bgType_' . $i ] ) && $instance[ 'iconFont_bgType_' . $i ] === 'no_paint' ) ? ' checked' : '';
154
  echo '<input type="radio" id="' . $this->get_field_id( 'iconFont_bgType_' . $i ) . '_no_paint" name="' . $this->get_field_name( 'iconFont_bgType_' . $i ) . '" value="no_paint"' . $checked . ' />';
155
- echo '<label for="' . $this->get_field_id( 'iconFont_bgType_' . $i ) . '_no_paint">' . __( 'No background', 'vkExUnit' ) . '</label>';
156
  echo '</p>';
157
 
158
  /* PR Image
159
  /*-------------------------------------------*/
160
  // media uploader imageurl input area
161
- echo '<h3 class="admin-custom-h3"><label for="' . $this->get_field_id( 'media_image_' . $i ) . '">' . __( 'PR Image', 'vkExUnit' ) . ' ' . $i . '</label></h3>';
162
- echo '<p>' . __( 'When you have an image. Image is displayed with priority', 'vkExUnit' ) . '</p>';
163
 
164
  ?>
165
 
@@ -171,8 +171,8 @@ for ( $i = 1; $i <= intval( $instance['block_count'] ); ) {
171
  <img src="<?php echo esc_url( $instance[ 'media_image_' . $i ] ); ?>" class="admin-custom-thumb" />
172
  <?php endif; ?>
173
  </div>
174
- <button class="button button-default widget_media_btn_select" style="text-align: center; margin:4px 0;" onclick="javascript:vk_widget_image_add(this);return false;"><?php _e( 'Select image', 'vkExUnit' ); ?></button>
175
- <button class="button button-default widget_media_btn_reset" style="text-align: center; margin:4px 0;" onclick="javascript:vk_widget_image_del(this);return false;"><?php _e( 'Clear image', 'vkExUnit' ); ?></button>
176
  <div class="_form" style="line-height: 2em">
177
  <input type="hidden" class="_url" name="<?php echo $this->get_field_name( 'media_image_' . $i ); ?>" value="<?php echo esc_attr( $instance[ 'media_image_' . $i ] ); ?>" />
178
  <input type="hidden" class="_alt" name="<?php echo $this->get_field_name( 'media_alt_' . $i ); ?>" value="<?php echo esc_attr( $instance[ 'media_alt_' . $i ] ); ?>" />
@@ -274,7 +274,7 @@ for ( $i = 1; $i <= intval( $instance['block_count'] ); ) {
274
  if ( isset( $instance[ 'label_' . $i ] ) && $instance[ 'label_' . $i ] ) {
275
  echo $instance[ 'label_' . $i ];
276
  } else {
277
- _e( 'PR Block', 'vkExUnit' );
278
  }
279
  echo '</h1>' . PHP_EOL;
280
 
14
  /*-------------------------------------------*/
15
 
16
  function __construct() {
17
+ $widget_name = veu_get_prefix() . __( 'PR Blocks', 'vk-all-in-one-expansion-unit' );
18
 
19
  parent::__construct(
20
  'WP_Widget_vkExUnit_PR_Blocks',
21
  $widget_name,
22
+ array( 'description' => __( 'Displays a circle image or icon font for pr blocks', 'vk-all-in-one-expansion-unit' ) )
23
  );
24
  }
25
 
27
  $defaults = array(
28
  'block_count' => 3,
29
 
30
+ 'label_1' => __( 'Service', 'vk-all-in-one-expansion-unit' ),
31
  'media_image_1' => '',
32
  'media_alt_1' => '',
33
+ 'iconFont_class_1' => 'far fa-file-alt',
34
  'iconFont_bgColor_1' => '#337ab7',
35
  'iconFont_bgType_1' => '',
36
  'summary_1' => '',
37
  'linkurl_1' => '',
38
  'blank_1' => '',
39
 
40
+ 'label_2' => __( 'Company', 'vk-all-in-one-expansion-unit' ),
41
  'media_image_2' => '',
42
  'media_alt_2' => '',
43
+ 'iconFont_class_2' => 'fas fa-building',
44
  'iconFont_bgColor_2' => '#337ab7',
45
  'iconFont_bgType_2' => '',
46
  'summary_2' => '',
47
  'linkurl_2' => '',
48
  'blank_1' => '',
49
 
50
+ 'label_3' => __( 'Recruit', 'vk-all-in-one-expansion-unit' ),
51
  'media_image_3' => '',
52
  'media_alt_3' => '',
53
+ 'iconFont_class_3' => 'fas fa-user',
54
  'iconFont_bgColor_3' => '#337ab7',
55
  'iconFont_bgType_3' => '',
56
  'summary_3' => '',
57
  'linkurl_3' => '',
58
  'blank_1' => '',
59
 
60
+ 'label_4' => __( 'Contact', 'vk-all-in-one-expansion-unit' ),
61
  'media_image_4' => '',
62
  'media_alt_4' => '',
63
  'iconFont_class_4' => 'fa-envelope',
80
 
81
  <?php // select Block count ?>
82
  <p>
83
+ <label for="<?php echo $this->get_field_id( 'block_count' ); ?>"><?php _e( 'The choice of the number of columns:', 'vk-all-in-one-expansion-unit' ); ?></label><br/>
84
  <select name="<?php echo $this->get_field_name( 'block_count' ); ?>" id="<?php echo $this->get_field_id( 'block_count' ); ?>-count">
85
  <option value="3"
86
  <?php
87
  if ( intval( $instance['block_count'] ) === 3 ) {
88
  echo 'selected'; }
89
  ?>
90
+ ><?php _e( '3column', 'vk-all-in-one-expansion-unit' ); ?></option>
91
  <option value="4"
92
  <?php
93
  if ( intval( $instance['block_count'] ) === 4 ) {
94
  echo 'selected'; }
95
  ?>
96
+ ><?php _e( '4column', 'vk-all-in-one-expansion-unit' ); ?></option>
97
  </select><br>
98
+ <?php _e( 'If you change the number of columns, click to "Save" botton and exit the edit page. When restart the edit page, the column input form is increased or decreased.', 'vk-all-in-one-expansion-unit' ); ?>
99
  </p>
100
 
101
  <?php
104
 
105
  // PR Block admin title
106
  echo '<div class="admin-custom-section">';
107
+ echo '<h2 class="admin-custom-h2">' . __( 'PR Block' . $i . ' setting', 'vk-all-in-one-expansion-unit' ) . '</h2>';
108
 
109
  // PR Block display title
110
 
111
+ echo '<p><label for="' . $this->get_field_id( 'label_' . $i ) . '">' . __( 'Title:', 'vk-all-in-one-expansion-unit' ) . '</label><br/>' .
112
  '<input type="text" id="' . $this->get_field_id( 'label_' . $i ) . '-title" class="admin-custom-input" name="' . $this->get_field_name( 'label_' . $i ) . '" value="' . esc_attr( $instance[ 'label_' . $i ] ) . '" /></p>';
113
 
114
  // summary text
115
+ echo '<p><label for="' . $this->get_field_id( 'summary_' . $i ) . '">' . __( 'Summary Text:', 'vk-all-in-one-expansion-unit' ) . '</label><br/>';
116
  echo '<textarea rows="4" cols="40" id="' . $this->get_field_id( 'summary_' . $i ) . '_text" class="admin-custom-input" name="' . $this->get_field_name( 'summary_' . $i ) . '">' . esc_textarea( $instance[ 'summary_' . $i ] ) . '</textarea>';
117
  echo '</p>';
118
 
119
  // link_URL
120
+ echo '<p><label for="' . $this->get_field_id( 'linkurl_' . $i ) . '">' . __( 'Link URL:', 'vk-all-in-one-expansion-unit' ) . '</label><br/>' .
121
  '<input type="text" id="' . $this->get_field_id( 'linkurl_' . $i ) . '_title" class="admin-custom-input" name="' . $this->get_field_name( 'linkurl_' . $i ) . '" value="' . esc_attr( $instance[ 'linkurl_' . $i ] ) . '" style="margin-bottom:0.5em" />';
122
  $checked = ( isset( $instance[ 'blank_' . $i ] ) && $instance[ 'blank_' . $i ] ) ? ' checked' : '';
123
  echo '<input type="checkbox" value="true" id="' . $this->get_field_id( 'blank_' . $i ) . '" name="' . $this->get_field_name( 'blank_' . $i ) . '"' . $checked . ' />';
124
+ echo '<label for="' . $this->get_field_id( 'blank_' . $i ) . '">' . __( 'Open link new tab.', 'vk-all-in-one-expansion-unit' ) . '</label>';
125
  echo '</p>';
126
 
127
  /* Icon font
128
  /*-------------------------------------------*/
129
+ echo '<h3 class="admin-custom-h3">' . __( 'Icon', 'vk-all-in-one-expansion-unit' ) . ' ' . $i . '</h3>';
130
 
131
  // icon font class input
132
+ echo '<p><label for="' . $this->get_field_id( 'iconFont_' . $i ) . '">' . __( 'Class name of the icon font you want to use:', 'vk-all-in-one-expansion-unit' ) . '</label><br/>';
133
  echo '<input type="text" id="' . $this->get_field_id( 'iconFont_class_' . $i ) . '-font" class="font_class" name="' . $this->get_field_name( 'iconFont_class_' . $i ) . '" value="' . esc_attr( $instance[ 'iconFont_class_' . $i ] ) . '" /><br>';
134
 
135
  if ( class_exists( 'Vk_Font_Awesome_Versions' ) ) {
140
 
141
  // icon font color
142
  echo '<p class="color_picker_wrap">' .
143
+ '<label for="' . $this->get_field_id( 'iconFont_bgColor_' . $i ) . '">' . __( 'Icon color:', 'vk-all-in-one-expansion-unit' ) . '</label><br/>' .
144
  '<input type="text" id="' . $this->get_field_id( 'iconFont_bgColor_' . $i ) . '-color" class="color_picker" name="' . $this->get_field_name( 'iconFont_bgColor_' . $i ) . '" value="' . esc_attr( $instance[ 'iconFont_bgColor_' . $i ] ) . '" /></p>';
145
 
146
  // icon font type
147
+ echo '<p>' . __( 'Icon Background:', 'vk-all-in-one-expansion-unit' ) . '<br>';
148
 
149
  $checked = ( ! isset( $instance[ 'iconFont_bgType_' . $i ] ) || ! $instance[ 'iconFont_bgType_' . $i ] ) ? ' checked' : '';
150
  echo '<input type="radio" id="' . $this->get_field_id( 'iconFont_bgType_' . $i ) . '_solid" name="' . $this->get_field_name( 'iconFont_bgType_' . $i ) . '" value=""' . $checked . ' />';
151
+ echo '<label for="' . $this->get_field_id( 'iconFont_bgType_' . $i ) . '_solid">' . __( 'Solid color', 'vk-all-in-one-expansion-unit' ) . '</label> ';
152
 
153
  $checked = ( isset( $instance[ 'iconFont_bgType_' . $i ] ) && $instance[ 'iconFont_bgType_' . $i ] === 'no_paint' ) ? ' checked' : '';
154
  echo '<input type="radio" id="' . $this->get_field_id( 'iconFont_bgType_' . $i ) . '_no_paint" name="' . $this->get_field_name( 'iconFont_bgType_' . $i ) . '" value="no_paint"' . $checked . ' />';
155
+ echo '<label for="' . $this->get_field_id( 'iconFont_bgType_' . $i ) . '_no_paint">' . __( 'No background', 'vk-all-in-one-expansion-unit' ) . '</label>';
156
  echo '</p>';
157
 
158
  /* PR Image
159
  /*-------------------------------------------*/
160
  // media uploader imageurl input area
161
+ echo '<h3 class="admin-custom-h3"><label for="' . $this->get_field_id( 'media_image_' . $i ) . '">' . __( 'PR Image', 'vk-all-in-one-expansion-unit' ) . ' ' . $i . '</label></h3>';
162
+ echo '<p>' . __( 'When you have an image. Image is displayed with priority', 'vk-all-in-one-expansion-unit' ) . '</p>';
163
 
164
  ?>
165
 
171
  <img src="<?php echo esc_url( $instance[ 'media_image_' . $i ] ); ?>" class="admin-custom-thumb" />
172
  <?php endif; ?>
173
  </div>
174
+ <button class="button button-default widget_media_btn_select" style="text-align: center; margin:4px 0;" onclick="javascript:vk_widget_image_add(this);return false;"><?php _e( 'Select image', 'vk-all-in-one-expansion-unit' ); ?></button>
175
+ <button class="button button-default widget_media_btn_reset" style="text-align: center; margin:4px 0;" onclick="javascript:vk_widget_image_del(this);return false;"><?php _e( 'Clear image', 'vk-all-in-one-expansion-unit' ); ?></button>
176
  <div class="_form" style="line-height: 2em">
177
  <input type="hidden" class="_url" name="<?php echo $this->get_field_name( 'media_image_' . $i ); ?>" value="<?php echo esc_attr( $instance[ 'media_image_' . $i ] ); ?>" />
178
  <input type="hidden" class="_alt" name="<?php echo $this->get_field_name( 'media_alt_' . $i ); ?>" value="<?php echo esc_attr( $instance[ 'media_alt_' . $i ] ); ?>" />
274
  if ( isset( $instance[ 'label_' . $i ] ) && $instance[ 'label_' . $i ] ) {
275
  echo $instance[ 'label_' . $i ];
276
  } else {
277
+ _e( 'PR Block', 'vk-all-in-one-expansion-unit' );
278
  }
279
  echo '</h1>' . PHP_EOL;
280
 
{plugins/other_widget → inc/other-widget}/widget-profile.php RENAMED
@@ -6,12 +6,12 @@
6
  class WP_Widget_vkExUnit_profile extends WP_Widget {
7
 
8
  function __construct() {
9
- $widget_name = veu_get_prefix() . __( 'Profile', 'vkExUnit' );
10
 
11
  parent::__construct(
12
  'WP_Widget_vkExUnit_profile',
13
  $widget_name,
14
- array( 'description' => __( 'Displays a your profile', 'vkExUnit' ) )
15
  );
16
  }
17
 
@@ -29,7 +29,7 @@ class WP_Widget_vkExUnit_profile extends WP_Widget {
29
  /*-------------------------------------------*/
30
  function form( $instance ) {
31
  $defaults = array(
32
- 'label' => __( 'Profile', 'vkExUnit' ),
33
  'mediaFile' => '',
34
  'mediaAlt' => '',
35
  'mediaAlign_left' => '', // 'mediaAlign' に移行したので事実上廃止
@@ -37,7 +37,7 @@ class WP_Widget_vkExUnit_profile extends WP_Widget {
37
  'mediaRound' => '',
38
  'mediaSize' => '',
39
  'mediaFloat' => '',
40
- 'profile' => __( 'Profile Text', 'vkExUnit' ),
41
  'facebook' => '',
42
  'twitter' => '',
43
  'mail' => '',
@@ -52,12 +52,12 @@ class WP_Widget_vkExUnit_profile extends WP_Widget {
52
  ?>
53
 
54
  <?php //title ?>
55
- <p><label for="<?php echo $this->get_field_id( 'label' ); ?>"><?php _e( 'Title:', 'vkExUnit' ); ?></label><br/>
56
  <input type="text" id="<?php echo $this->get_field_id( 'label' ); ?>" class="admin-custom-input" name="<?php echo $this->get_field_name( 'label' ); ?>" value="<?php echo esc_attr( $instance['label'] ); ?>" />
57
  </p>
58
 
59
  <?php //media uploader ?>
60
- <p><label for="<?php echo $this->get_field_id( 'profile' ); ?>"><?php _e( 'Select Profile image:', 'vkExUnit' ); ?></label><br/>
61
 
62
  <div class="media_image_section">
63
  <div class="_display admin-custom-thumb-outer" style="height:auto">
@@ -67,8 +67,8 @@ class WP_Widget_vkExUnit_profile extends WP_Widget {
67
  <img src="<?php echo esc_url( $instance['mediaFile'] ); ?>" class="admin-custom-thumb" />
68
  <?php endif; ?>
69
  </div>
70
- <button class="button button-default widget_media_btn_select" style="text-align: center; margin:4px 0;" onclick="javascript:vk_widget_image_add(this);return false;"><?php _e( 'Select image', 'vkExUnit' ); ?></button>
71
- <button class="button button-default widget_media_btn_reset" style="text-align: center; margin:4px 0;" onclick="javascript:vk_widget_image_del(this);return false;"><?php _e( 'Clear image', 'vkExUnit' ); ?></button>
72
  <div class="_form" style="line-height: 2em">
73
  <input type="hidden" class="_url" name="<?php echo $this->get_field_name( 'mediaFile' ); ?>" value="<?php echo esc_attr( $instance['mediaFile'] ); ?>" />
74
  <input type="hidden" class="_alt" name="<?php echo $this->get_field_name( 'mediaAlt' ); ?>" value="<?php echo esc_attr( $instance['mediaAlt'] ); ?>" />
@@ -76,11 +76,11 @@ class WP_Widget_vkExUnit_profile extends WP_Widget {
76
  </div><!-- [ /.media_image_section ] -->
77
 
78
  <?php //image round setting ?>
79
- <p><input type="checkbox" id="<?php echo $this->get_field_id( 'mediaRound' ); ?>" name="<?php echo $this->get_field_name( 'mediaRound' ); ?>" value="true" <?php echo ( $instance['mediaRound'] ) ? 'checked' : ''; ?> ><label for="<?php echo $this->get_field_id( 'mediaRound' ); ?>"><?php _e( 'Cut out round the image.', 'vkExUnit' ); ?></label>
80
  </p>
81
 
82
  <?php //image size setting ?>
83
- <p><label for="<?php echo $this->get_field_id( 'mediaSize' ); ?>"><?php _e( 'Media size (Optional)', 'vkExUnit' ); ?></label><br/>
84
  <input type="text" id="<?php echo $this->get_field_id( 'mediaSize' ); ?>" class="admin-custom-input" name="<?php echo $this->get_field_name( 'mediaSize' ); ?>" style="width:50px;" value="<?php echo esc_attr( $instance['mediaSize'] ); ?>" /> px
85
  </p>
86
 
@@ -90,71 +90,71 @@ class WP_Widget_vkExUnit_profile extends WP_Widget {
90
  <?php $image_align = self::image_align( $instance ); ?>
91
  <?php $checked = ( $image_align === 'left' ) ? ' checked' : ''; ?>
92
  <input type="radio" id="<?php echo $this->get_field_id( 'mediaAlign' ); ?>_left" name="<?php echo $this->get_field_name( 'mediaAlign' ); ?>" value="left"<?php echo $checked; ?> />
93
- <label for="<?php echo $this->get_field_id( 'mediaAlign' ) . '_left'; ?>"> <?php _e( 'Align left', 'vkExUnit' ); ?></label>
94
  <?php $checked = ( $image_align === 'center' ) ? ' checked' : ''; ?>
95
  <input type="radio" id="<?php echo $this->get_field_id( 'mediaAlign' ); ?>_center" name="<?php echo $this->get_field_name( 'mediaAlign' ); ?>" value="center"<?php echo $checked; ?> />
96
- <label for="<?php echo $this->get_field_id( 'mediaAlign' ) . '_center'; ?>"> <?php _e( 'Align center', 'vkExUnit' ); ?></label>
97
  </p>
98
 
99
  <?php //image float setting ?>
100
- <p><input type="checkbox" id="<?php echo $this->get_field_id( 'mediaFloat' ); ?>" name="<?php echo $this->get_field_name( 'mediaFloat' ); ?>" value="true" <?php echo ( $instance['mediaFloat'] ) ? 'checked' : ''; ?> ><label for="<?php echo $this->get_field_id( 'mediaFloat' ); ?>"><?php _e( 'Text float to image.', 'vkExUnit' ); ?></label><br/>
101
  </p>
102
 
103
  <?php //profile text ?>
104
- <p><label for="<?php echo $this->get_field_id( 'profile' ); ?>"><?php _e( 'Profile Text:', 'vkExUnit' ); ?></label></p>
105
  <textarea rows="4" cols="40" id="<?php echo $this->get_field_id( 'profile' ); ?>" class="admin-custom-input textarea" name="<?php echo $this->get_field_name( 'profile' ); ?>"><?php echo esc_textarea( $instance['profile'] ); ?></textarea>
106
 
107
  <?php //facebook_URL ?>
108
- <p><label for="<?php echo $this->get_field_id( 'facebook' ); ?>"><?php _e( 'Facebook URL:', 'vkExUnit' ); ?></label><br/>
109
  <input type="text" id="<?php echo $this->get_field_id( 'facebook' ); ?>" class="admin-custom-input" name="<?php echo $this->get_field_name( 'facebook' ); ?>" value="<?php echo esc_attr( $instance['facebook'] ); ?>" />
110
  </p>
111
 
112
  <?php //twitter_URL ?>
113
- <p><label for="<?php echo $this->get_field_id( 'twitter' ); ?>"><?php _e( 'Twitter URL:', 'vkExUnit' ); ?></label><br/>
114
  <input type="text" id="<?php echo $this->get_field_id( 'twitter' ); ?>" class="admin-custom-input" name="<?php echo $this->get_field_name( 'twitter' ); ?>" value="<?php echo esc_attr( $instance['twitter'] ); ?>" />
115
  </p>
116
 
117
  <?php //mail_URL ?>
118
- <p><label for="<?php echo $this->get_field_id( 'mail' ); ?>"><?php _e( 'Email Address:', 'vkExUnit' ); ?></label><br/>
119
  <input type="text" id="<?php echo $this->get_field_id( 'mail' ); ?>" class="admin-custom-input" name="<?php echo $this->get_field_name( 'mail' ); ?>" value="<?php echo esc_attr( $instance['mail'] ); ?>" />
120
  </p>
121
 
122
  <?php //youtube_URL ?>
123
- <p><label for="<?php echo $this->get_field_id( 'youtube' ); ?>"><?php _e( 'Youtube URL:', 'vkExUnit' ); ?></label><br/>
124
  <input type="text" id="<?php echo $this->get_field_id( 'youtube' ); ?>" class="admin-custom-input" name="<?php echo $this->get_field_name( 'youtube' ); ?>" value="<?php echo esc_attr( $instance['youtube'] ); ?>" />
125
  </p>
126
 
127
  <?php //rss_URL ?>
128
- <p><label for="<?php echo $this->get_field_id( 'rss' ); ?>"><?php _e( 'RSS URL:', 'vkExUnit' ); ?></label><br/>
129
  <input type="text" id="<?php echo $this->get_field_id( 'rss' ); ?>" class="admin-custom-input" name="<?php echo $this->get_field_name( 'rss' ); ?>" value="<?php echo esc_attr( $instance['rss'] ); ?>" />
130
  </p>
131
 
132
  <?php //instagram_URL ?>
133
- <p><label for="<?php echo $this->get_field_id( 'instagram' ); ?>"><?php _e( 'instagram URL:', 'vkExUnit' ); ?></label><br/>
134
  <input type="text" id="<?php echo $this->get_field_id( 'instagram' ); ?>" class="admin-custom-input" name="<?php echo $this->get_field_name( 'instagram' ); ?>" value="<?php echo esc_attr( $instance['instagram'] ); ?>" /></p>
135
 
136
  <?php //linkedin_URL ?>
137
- <p><label for="<?php echo $this->get_field_id( 'linkedin' ); ?>"><?php _e( 'linkedin URL:', 'vkExUnit' ); ?></label><br/>
138
  <input type="text" id="<?php echo $this->get_field_id( 'linkedin' ); ?>" class="admin-custom-input" name="<?php echo $this->get_field_name( 'linkedin' ); ?>" value="<?php echo esc_attr( $instance['linkedin'] ); ?>" /></p>
139
 
140
  <?php // icon font type ?>
141
 
142
- <p><?php _e( 'Icon Background:', 'vkExUnit' ); ?><br>
143
 
144
  <?php
145
  $checked = ( ! isset( $instance['iconFont_bgType'] ) || ! $instance['iconFont_bgType'] ) ? ' checked' : '';
146
  ?>
147
  <input type="radio" id="<?php echo $this->get_field_id( 'iconFont_bgType' ) . '_solid'; ?>" name="<?php echo $this->get_field_name( 'iconFont_bgType' ); ?>" value=""<?php echo $checked; ?> />
148
- <label for="<?php echo $this->get_field_id( 'iconFont_bgType' ) . '_solid'; ?>"> <?php _e( 'Solid color', 'vkExUnit' ); ?></label>
149
  <?php $checked = ( isset( $instance['iconFont_bgType'] ) && $instance['iconFont_bgType'] === 'no_paint' ) ? ' checked' : ''; ?>
150
  <input type="radio" id="<?php echo $this->get_field_id( 'iconFont_bgType' ) . '_no_paint'; ?>" name="<?php echo $this->get_field_name( 'iconFont_bgType' ); ?>" value="no_paint"<?php echo $checked; ?> />
151
- <label for="<?php echo $this->get_field_id( 'iconFont_bgType' ) . '_no_paint'; ?>"><?php _e( 'No background', 'vkExUnit' ); ?></label>
152
  </p>
153
- <p><?php _e( '* When "Icon Background: Fill" is selected and "Icon color" is not specified, each brand color will be painted.', 'vkExUnit' ); ?></p>
154
 
155
  <?php // icon font color ?>
156
  <p class="color_picker_wrap">
157
- <label for="<?php echo $this->get_field_id( 'icon_color' ); ?>"><?php _e( 'Icon color:', 'vkExUnit' ); ?></label><br/>
158
  <input type="text" id="<?php echo $this->get_field_id( 'icon_color' ); ?>" class="color_picker" name="<?php echo $this->get_field_name( 'icon_color' ); ?>" value="<?php echo esc_attr( $instance['icon_color'] ); ?>" /></p>
159
 
160
  <?php
6
  class WP_Widget_vkExUnit_profile extends WP_Widget {
7
 
8
  function __construct() {
9
+ $widget_name = veu_get_prefix() . __( 'Profile', 'vk-all-in-one-expansion-unit' );
10
 
11
  parent::__construct(
12
  'WP_Widget_vkExUnit_profile',
13
  $widget_name,
14
+ array( 'description' => __( 'Displays a your profile', 'vk-all-in-one-expansion-unit' ) )
15
  );
16
  }
17
 
29
  /*-------------------------------------------*/
30
  function form( $instance ) {
31
  $defaults = array(
32
+ 'label' => __( 'Profile', 'vk-all-in-one-expansion-unit' ),
33
  'mediaFile' => '',
34
  'mediaAlt' => '',
35
  'mediaAlign_left' => '', // 'mediaAlign' に移行したので事実上廃止
37
  'mediaRound' => '',
38
  'mediaSize' => '',
39
  'mediaFloat' => '',
40
+ 'profile' => __( 'Profile Text', 'vk-all-in-one-expansion-unit' ),
41
  'facebook' => '',
42
  'twitter' => '',
43
  'mail' => '',
52
  ?>
53
 
54
  <?php //title ?>
55
+ <p><label for="<?php echo $this->get_field_id( 'label' ); ?>"><?php _e( 'Title:', 'vk-all-in-one-expansion-unit' ); ?></label><br/>
56
  <input type="text" id="<?php echo $this->get_field_id( 'label' ); ?>" class="admin-custom-input" name="<?php echo $this->get_field_name( 'label' ); ?>" value="<?php echo esc_attr( $instance['label'] ); ?>" />
57
  </p>
58
 
59
  <?php //media uploader ?>
60
+ <p><label for="<?php echo $this->get_field_id( 'profile' ); ?>"><?php _e( 'Select Profile image:', 'vk-all-in-one-expansion-unit' ); ?></label><br/>
61
 
62
  <div class="media_image_section">
63
  <div class="_display admin-custom-thumb-outer" style="height:auto">
67
  <img src="<?php echo esc_url( $instance['mediaFile'] ); ?>" class="admin-custom-thumb" />
68
  <?php endif; ?>
69
  </div>
70
+ <button class="button button-default widget_media_btn_select" style="text-align: center; margin:4px 0;" onclick="javascript:vk_widget_image_add(this);return false;"><?php _e( 'Select image', 'vk-all-in-one-expansion-unit' ); ?></button>
71
+ <button class="button button-default widget_media_btn_reset" style="text-align: center; margin:4px 0;" onclick="javascript:vk_widget_image_del(this);return false;"><?php _e( 'Clear image', 'vk-all-in-one-expansion-unit' ); ?></button>
72
  <div class="_form" style="line-height: 2em">
73
  <input type="hidden" class="_url" name="<?php echo $this->get_field_name( 'mediaFile' ); ?>" value="<?php echo esc_attr( $instance['mediaFile'] ); ?>" />
74
  <input type="hidden" class="_alt" name="<?php echo $this->get_field_name( 'mediaAlt' ); ?>" value="<?php echo esc_attr( $instance['mediaAlt'] ); ?>" />
76
  </div><!-- [ /.media_image_section ] -->
77
 
78
  <?php //image round setting ?>
79
+ <p><input type="checkbox" id="<?php echo $this->get_field_id( 'mediaRound' ); ?>" name="<?php echo $this->get_field_name( 'mediaRound' ); ?>" value="true" <?php echo ( $instance['mediaRound'] ) ? 'checked' : ''; ?> ><label for="<?php echo $this->get_field_id( 'mediaRound' ); ?>"><?php _e( 'Cut out round the image.', 'vk-all-in-one-expansion-unit' ); ?></label>
80
  </p>
81
 
82
  <?php //image size setting ?>
83
+ <p><label for="<?php echo $this->get_field_id( 'mediaSize' ); ?>"><?php _e( 'Media size (Optional)', 'vk-all-in-one-expansion-unit' ); ?></label><br/>
84
  <input type="text" id="<?php echo $this->get_field_id( 'mediaSize' ); ?>" class="admin-custom-input" name="<?php echo $this->get_field_name( 'mediaSize' ); ?>" style="width:50px;" value="<?php echo esc_attr( $instance['mediaSize'] ); ?>" /> px
85
  </p>
86
 
90
  <?php $image_align = self::image_align( $instance ); ?>
91
  <?php $checked = ( $image_align === 'left' ) ? ' checked' : ''; ?>
92
  <input type="radio" id="<?php echo $this->get_field_id( 'mediaAlign' ); ?>_left" name="<?php echo $this->get_field_name( 'mediaAlign' ); ?>" value="left"<?php echo $checked; ?> />
93
+ <label for="<?php echo $this->get_field_id( 'mediaAlign' ) . '_left'; ?>"> <?php _e( 'Align left', 'vk-all-in-one-expansion-unit' ); ?></label>
94
  <?php $checked = ( $image_align === 'center' ) ? ' checked' : ''; ?>
95
  <input type="radio" id="<?php echo $this->get_field_id( 'mediaAlign' ); ?>_center" name="<?php echo $this->get_field_name( 'mediaAlign' ); ?>" value="center"<?php echo $checked; ?> />
96
+ <label for="<?php echo $this->get_field_id( 'mediaAlign' ) . '_center'; ?>"> <?php _e( 'Align center', 'vk-all-in-one-expansion-unit' ); ?></label>
97
  </p>
98
 
99
  <?php //image float setting ?>
100
+ <p><input type="checkbox" id="<?php echo $this->get_field_id( 'mediaFloat' ); ?>" name="<?php echo $this->get_field_name( 'mediaFloat' ); ?>" value="true" <?php echo ( $instance['mediaFloat'] ) ? 'checked' : ''; ?> ><label for="<?php echo $this->get_field_id( 'mediaFloat' ); ?>"><?php _e( 'Text float to image.', 'vk-all-in-one-expansion-unit' ); ?></label><br/>
101
  </p>
102
 
103
  <?php //profile text ?>
104
+ <p><label for="<?php echo $this->get_field_id( 'profile' ); ?>"><?php _e( 'Profile Text:', 'vk-all-in-one-expansion-unit' ); ?></label></p>
105
  <textarea rows="4" cols="40" id="<?php echo $this->get_field_id( 'profile' ); ?>" class="admin-custom-input textarea" name="<?php echo $this->get_field_name( 'profile' ); ?>"><?php echo esc_textarea( $instance['profile'] ); ?></textarea>
106
 
107
  <?php //facebook_URL ?>
108
+ <p><label for="<?php echo $this->get_field_id( 'facebook' ); ?>"><?php _e( 'Facebook URL:', 'vk-all-in-one-expansion-unit' ); ?></label><br/>
109
  <input type="text" id="<?php echo $this->get_field_id( 'facebook' ); ?>" class="admin-custom-input" name="<?php echo $this->get_field_name( 'facebook' ); ?>" value="<?php echo esc_attr( $instance['facebook'] ); ?>" />
110
  </p>
111
 
112
  <?php //twitter_URL ?>
113
+ <p><label for="<?php echo $this->get_field_id( 'twitter' ); ?>"><?php _e( 'Twitter URL:', 'vk-all-in-one-expansion-unit' ); ?></label><br/>
114
  <input type="text" id="<?php echo $this->get_field_id( 'twitter' ); ?>" class="admin-custom-input" name="<?php echo $this->get_field_name( 'twitter' ); ?>" value="<?php echo esc_attr( $instance['twitter'] ); ?>" />
115
  </p>
116
 
117
  <?php //mail_URL ?>
118
+ <p><label for="<?php echo $this->get_field_id( 'mail' ); ?>"><?php _e( 'Email Address:', 'vk-all-in-one-expansion-unit' ); ?></label><br/>
119
  <input type="text" id="<?php echo $this->get_field_id( 'mail' ); ?>" class="admin-custom-input" name="<?php echo $this->get_field_name( 'mail' ); ?>" value="<?php echo esc_attr( $instance['mail'] ); ?>" />
120
  </p>
121
 
122
  <?php //youtube_URL ?>
123
+ <p><label for="<?php echo $this->get_field_id( 'youtube' ); ?>"><?php _e( 'Youtube URL:', 'vk-all-in-one-expansion-unit' ); ?></label><br/>
124
  <input type="text" id="<?php echo $this->get_field_id( 'youtube' ); ?>" class="admin-custom-input" name="<?php echo $this->get_field_name( 'youtube' ); ?>" value="<?php echo esc_attr( $instance['youtube'] ); ?>" />
125
  </p>
126
 
127
  <?php //rss_URL ?>
128
+ <p><label for="<?php echo $this->get_field_id( 'rss' ); ?>"><?php _e( 'RSS URL:', 'vk-all-in-one-expansion-unit' ); ?></label><br/>
129
  <input type="text" id="<?php echo $this->get_field_id( 'rss' ); ?>" class="admin-custom-input" name="<?php echo $this->get_field_name( 'rss' ); ?>" value="<?php echo esc_attr( $instance['rss'] ); ?>" />
130
  </p>
131
 
132
  <?php //instagram_URL ?>
133
+ <p><label for="<?php echo $this->get_field_id( 'instagram' ); ?>"><?php _e( 'instagram URL:', 'vk-all-in-one-expansion-unit' ); ?></label><br/>
134
  <input type="text" id="<?php echo $this->get_field_id( 'instagram' ); ?>" class="admin-custom-input" name="<?php echo $this->get_field_name( 'instagram' ); ?>" value="<?php echo esc_attr( $instance['instagram'] ); ?>" /></p>
135
 
136
  <?php //linkedin_URL ?>
137
+ <p><label for="<?php echo $this->get_field_id( 'linkedin' ); ?>"><?php _e( 'linkedin URL:', 'vk-all-in-one-expansion-unit' ); ?></label><br/>
138
  <input type="text" id="<?php echo $this->get_field_id( 'linkedin' ); ?>" class="admin-custom-input" name="<?php echo $this->get_field_name( 'linkedin' ); ?>" value="<?php echo esc_attr( $instance['linkedin'] ); ?>" /></p>
139
 
140
  <?php // icon font type ?>
141
 
142
+ <p><?php _e( 'Icon Background:', 'vk-all-in-one-expansion-unit' ); ?><br>
143
 
144
  <?php
145
  $checked = ( ! isset( $instance['iconFont_bgType'] ) || ! $instance['iconFont_bgType'] ) ? ' checked' : '';
146
  ?>
147
  <input type="radio" id="<?php echo $this->get_field_id( 'iconFont_bgType' ) . '_solid'; ?>" name="<?php echo $this->get_field_name( 'iconFont_bgType' ); ?>" value=""<?php echo $checked; ?> />
148
+ <label for="<?php echo $this->get_field_id( 'iconFont_bgType' ) . '_solid'; ?>"> <?php _e( 'Solid color', 'vk-all-in-one-expansion-unit' ); ?></label>
149
  <?php $checked = ( isset( $instance['iconFont_bgType'] ) && $instance['iconFont_bgType'] === 'no_paint' ) ? ' checked' : ''; ?>
150
  <input type="radio" id="<?php echo $this->get_field_id( 'iconFont_bgType' ) . '_no_paint'; ?>" name="<?php echo $this->get_field_name( 'iconFont_bgType' ); ?>" value="no_paint"<?php echo $checked; ?> />
151
+ <label for="<?php echo $this->get_field_id( 'iconFont_bgType' ) . '_no_paint'; ?>"><?php _e( 'No background', 'vk-all-in-one-expansion-unit' ); ?></label>
152
  </p>
153
+ <p><?php _e( '* When "Icon Background: Fill" is selected and "Icon color" is not specified, each brand color will be painted.', 'vk-all-in-one-expansion-unit' ); ?></p>
154
 
155
  <?php // icon font color ?>
156
  <p class="color_picker_wrap">
157
+ <label for="<?php echo $this->get_field_id( 'icon_color' ); ?>"><?php _e( 'Icon color:', 'vk-all-in-one-expansion-unit' ); ?></label><br/>
158
  <input type="text" id="<?php echo $this->get_field_id( 'icon_color' ); ?>" class="color_picker" name="<?php echo $this->get_field_name( 'icon_color' ); ?>" value="<?php echo esc_attr( $instance['icon_color'] ); ?>" /></p>
159
 
160
  <?php
{plugins/other_widget → inc/other-widget}/widget-side-child-page-list.php RENAMED
@@ -9,12 +9,12 @@ function vkExUnit_widget_register_childpages() {
9
  class WP_Widget_vkExUnit_ChildPageList extends WP_Widget {
10
 
11
  function __construct() {
12
- $widget_name = veu_get_prefix() . __( 'child pages list', 'vkExUnit' );
13
 
14
  parent::__construct(
15
  'vkExUnit_childPageList',
16
  $widget_name,
17
- array( 'description' => __( 'Displays list of child page for the current page.', 'vkExUnit' ) )
18
  );
19
  }
20
 
9
  class WP_Widget_vkExUnit_ChildPageList extends WP_Widget {
10
 
11
  function __construct() {
12
+ $widget_name = veu_get_prefix() . __( 'child pages list', 'vk-all-in-one-expansion-unit' );
13
 
14
  parent::__construct(
15
  'vkExUnit_childPageList',
16
  $widget_name,
17
+ array( 'description' => __( 'Displays list of child page for the current page.', 'vk-all-in-one-expansion-unit' ) )
18
  );
19
  }
20
 
{plugins/other_widget → inc/other-widget}/widget-taxonomies.php RENAMED
@@ -7,12 +7,12 @@ class WP_Widget_VK_taxonomy_list extends WP_Widget {
7
 
8
  // ウィジェット定義
9
  function __construct() {
10
- $widget_name = veu_get_prefix() . __( 'Categories/Custom taxonomies list', 'vkExUnit' );
11
 
12
  parent::__construct(
13
  'WP_Widget_VK_taxonomy_list',
14
  $widget_name,
15
- array( 'description' => __( 'Displays a categories and custom taxonomies list.', 'vkExUnit' ) )
16
  );
17
  }
18
 
@@ -23,7 +23,7 @@ class WP_Widget_VK_taxonomy_list extends WP_Widget {
23
  $instance['tax_name'] = 'category';
24
  }
25
  if ( ! isset( $instance['label'] ) ) {
26
- $instance['label'] = __( 'Category', 'vkExUnit' );
27
  }
28
  $arg = array(
29
  'echo' => 1,
@@ -53,8 +53,8 @@ class WP_Widget_VK_taxonomy_list extends WP_Widget {
53
  public static function get_defaults( $instance = array() ) {
54
  $defaults = array(
55
  'tax_name' => 'category',
56
- 'label' => __( 'Category', 'vkExUnit' ),
57
- 'hide' => __( 'Category', 'vkExUnit' ),
58
  'title' => 'Category',
59
  'hide_empty' => false,
60
  '_builtin' => false,
@@ -68,11 +68,11 @@ class WP_Widget_VK_taxonomy_list extends WP_Widget {
68
  $taxs = get_taxonomies( array( 'public' => true ), 'objects' );
69
  ?>
70
  <p>
71
- <label for="<?php echo $this->get_field_id( 'label' ); ?>"><?php _e( 'Label to display', 'vkExUnit' ); ?></label>
72
  <input type="text" id="<?php echo $this->get_field_id( 'label' ); ?>-title" name="<?php echo $this->get_field_name( 'label' ); ?>" value="<?php echo $instance['label']; ?>" ><br/>
73
  <input type="hidden" name="<?php echo $this->get_field_name( 'hide' ); ?>" ><br/>
74
 
75
- <label for="<?php echo $this->get_field_id( 'tax_name' ); ?>"><?php _e( 'Display page', 'vkExUnit' ); ?></label>
76
  <select name="<?php echo $this->get_field_name( 'tax_name' ); ?>" >
77
 
78
  <?php foreach ( $taxs as $tax ) { ?>
@@ -91,7 +91,7 @@ class WP_Widget_VK_taxonomy_list extends WP_Widget {
91
  echo 'checked';}
92
  ?>
93
  />
94
- <label for="<?php echo $this->get_field_id( 'hide_empty' ); ?>"><?php _e( 'Do not display terms without posts', 'vkExUnit' ); ?></label>
95
  </p>
96
 
97
  <script type="text/javascript">
@@ -103,12 +103,12 @@ class WP_Widget_VK_taxonomy_list extends WP_Widget {
103
  echo 'post_labels["' . $tax->name . '"] = "' . $tax->labels->name . '";';
104
  }
105
  }
106
- echo 'post_labels["blog"] = "' . __( 'Blog', 'vkExUnit' ) . '";' . "\n";
107
  ?>
108
  var posttype = jQuery("[name=\"<?php echo $this->get_field_name( 'tax_name' ); ?>\"]");
109
  var lablfeld = jQuery("[name=\"<?php echo $this->get_field_name( 'label' ); ?>\"]");
110
  posttype.change(function(){
111
- lablfeld.val(post_labels[posttype.val()]+" <?php _e( 'Archives', 'vkExUnit' ); ?>");
112
  });
113
  });
114
  </script>
7
 
8
  // ウィジェット定義
9
  function __construct() {
10
+ $widget_name = veu_get_prefix() . __( 'Categories/Custom taxonomies list', 'vk-all-in-one-expansion-unit' );
11
 
12
  parent::__construct(
13
  'WP_Widget_VK_taxonomy_list',
14
  $widget_name,
15
+ array( 'description' => __( 'Displays a categories and custom taxonomies list.', 'vk-all-in-one-expansion-unit' ) )
16
  );
17
  }
18
 
23
  $instance['tax_name'] = 'category';
24
  }
25
  if ( ! isset( $instance['label'] ) ) {
26
+ $instance['label'] = __( 'Category', 'vk-all-in-one-expansion-unit' );
27
  }
28
  $arg = array(
29
  'echo' => 1,
53
  public static function get_defaults( $instance = array() ) {
54
  $defaults = array(
55
  'tax_name' => 'category',
56
+ 'label' => __( 'Category', 'vk-all-in-one-expansion-unit' ),
57
+ 'hide' => __( 'Category', 'vk-all-in-one-expansion-unit' ),
58
  'title' => 'Category',
59
  'hide_empty' => false,
60
  '_builtin' => false,
68
  $taxs = get_taxonomies( array( 'public' => true ), 'objects' );
69
  ?>
70
  <p>
71
+ <label for="<?php echo $this->get_field_id( 'label' ); ?>"><?php _e( 'Label to display', 'vk-all-in-one-expansion-unit' ); ?></label>
72
  <input type="text" id="<?php echo $this->get_field_id( 'label' ); ?>-title" name="<?php echo $this->get_field_name( 'label' ); ?>" value="<?php echo $instance['label']; ?>" ><br/>
73
  <input type="hidden" name="<?php echo $this->get_field_name( 'hide' ); ?>" ><br/>
74
 
75
+ <label for="<?php echo $this->get_field_id( 'tax_name' ); ?>"><?php _e( 'Display page', 'vk-all-in-one-expansion-unit' ); ?></label>
76
  <select name="<?php echo $this->get_field_name( 'tax_name' ); ?>" >
77
 
78
  <?php foreach ( $taxs as $tax ) { ?>
91
  echo 'checked';}
92
  ?>
93
  />
94
+ <label for="<?php echo $this->get_field_id( 'hide_empty' ); ?>"><?php _e( 'Do not display terms without posts', 'vk-all-in-one-expansion-unit' ); ?></label>
95
  </p>
96
 
97
  <script type="text/javascript">
103
  echo 'post_labels["' . $tax->name . '"] = "' . $tax->labels->name . '";';
104
  }
105
  }
106
+ echo 'post_labels["blog"] = "' . __( 'Blog', 'vk-all-in-one-expansion-unit' ) . '";' . "\n";
107
  ?>
108
  var posttype = jQuery("[name=\"<?php echo $this->get_field_name( 'tax_name' ); ?>\"]");
109
  var lablfeld = jQuery("[name=\"<?php echo $this->get_field_name( 'label' ); ?>\"]");
110
  posttype.change(function(){
111
+ lablfeld.val(post_labels[posttype.val()]+" <?php _e( 'Archives', 'vk-all-in-one-expansion-unit' ); ?>");
112
  });
113
  });
114
  </script>
plugins/pageList_ancestor.php → inc/page-list-ancestor.php RENAMED
@@ -5,12 +5,17 @@
5
 
6
  add_shortcode( 'pageList_ancestor', 'vkExUnit_pageList_ancestor_shortcode' );
7
 
8
- if( veu_content_filter_state() == 'content' ) add_filter( 'the_content', 'vkExUnit_pageList_ancestor_contentHook', 10, 1 );
9
- else add_action( 'loop_end', 'vkExUnit_pageList_ancestor_loopend', 10, 1 );
 
 
 
10
 
11
 
12
- function vkExUnit_pageList_ancestor_loopend( $query ){
13
- if( ! $query->is_main_query() ) return;
 
 
14
  echo vkExUnit_pageList_ancestor_shortcode();
15
  }
16
 
@@ -23,17 +28,16 @@ function vkExUnit_pageList_ancestor_shortcode() {
23
 
24
  global $widget_pageid;
25
  global $post;
26
- $post = get_post($widget_pageid);
27
 
28
  } else {
29
 
30
  global $post;
31
- if ( ! is_page() || ! get_post_meta( $post->ID, 'vkExUnit_pageList_ancestor', true ) ) { return; }
32
-
33
  }
34
 
35
-
36
- $pageList_ancestor_html = PHP_EOL.'<section class="veu_pageList_ancestor">'.PHP_EOL;
37
 
38
  if ( $post->ancestors ) {
39
  foreach ( $post->ancestors as $post_anc_id ) {
@@ -44,9 +48,9 @@ function vkExUnit_pageList_ancestor_shortcode() {
44
  }
45
 
46
  if ( $post_id ) {
47
- $children = wp_list_pages( 'title_li=&child_of='.$post_id.'&echo=0' );
48
  if ( $children ) {
49
- $pageList_ancestor_html .= '<h3 class="section_title"><a href="'.get_permalink( $post_id ).'">'.get_the_title( $post_id ).'</a></h3>';
50
  $pageList_ancestor_html .= '<ul class="pageList">';
51
  $pageList_ancestor_html .= $children;
52
  $pageList_ancestor_html .= '</ul>';
@@ -65,35 +69,28 @@ function vkExUnit_pageList_ancestor_contentHook( $content ) {
65
 
66
  global $post;
67
 
68
- if ( ! is_page() || ! get_post_meta( $post->ID, 'vkExUnit_pageList_ancestor',true ) ) { return $content; }
 
69
 
70
- if ( get_post_meta( $post->ID, 'vkExUnit_pageList_ancestor',true ) ) {
71
  $content .= "\n[pageList_ancestor]";
72
  }
73
  return $content;
74
  }
75
 
76
- /*-------------------------------------------*/
77
- /* admin_metabox_activate
78
- /*-------------------------------------------*/
79
- add_filter( 'veu_content_meta_box_activation', 'veu_page_list_ancestor_admin_metabox_activate', 10, 1 );
80
- function veu_page_list_ancestor_admin_metabox_activate( $flag ) {
81
- return true;
82
- }
83
-
84
  /*-------------------------------------------*/
85
  /* admin_metabox_content
86
  /*-------------------------------------------*/
87
- add_action( 'veu_content_meta_box_content', 'vkExUnit_pageList_ancestor_admin_metabox_content' );
88
  function vkExUnit_pageList_ancestor_admin_metabox_content() {
89
  global $post;
90
  $enable = get_post_meta( $post->ID, 'vkExUnit_pageList_ancestor', true ); ?>
91
 
92
  <div>
93
- <input type="hidden" name="_nonce_vkExUnit__custom_field_pageList_ancestor" id="_nonce_vkExUnit__custom_field_pageList_ancestor" value="<?php echo wp_create_nonce( plugin_basename( __FILE__ ) );?>" />
94
  <label for="vkExUnit_pageList_ancestor">
95
- <input type="checkbox" id="vkExUnit_pageList_ancestor" name="vkExUnit_pageList_ancestor"<?php echo ($enable)? ' checked' : ''; ?> />
96
- <?php _e( 'Display a page list from ancestor', 'vkExUnit' );?>
97
  </label>
98
  </div>
99
  <?php
@@ -118,14 +115,15 @@ function veu_page_list_ancestor_save_custom_field( $post_id ) {
118
  $mydata = isset( $_POST['vkExUnit_pageList_ancestor'] ) ? htmlspecialchars( $_POST['vkExUnit_pageList_ancestor'] ) : null;
119
 
120
  if ( 'page' == $mydata ) {
121
- if ( ! current_user_can( 'edit_page', $post_id ) ) { return $post_id; }
 
122
  }
123
 
124
  if ( '' == get_post_meta( $post_id, 'vkExUnit_pageList_ancestor' ) ) {
125
  add_post_meta( $post_id, 'vkExUnit_pageList_ancestor', $mydata, true );
126
- } else if ( $mydata != get_post_meta( $post_id, 'vkExUnit_pageList_ancestor' ) ) {
127
  update_post_meta( $post_id, 'vkExUnit_pageList_ancestor', $mydata );
128
- } else if ( '' == $mydata ) {
129
  delete_post_meta( $post_id, 'vkExUnit_pageList_ancestor' );
130
  }
131
 
5
 
6
  add_shortcode( 'pageList_ancestor', 'vkExUnit_pageList_ancestor_shortcode' );
7
 
8
+ if ( veu_content_filter_state() == 'content' ) {
9
+ add_filter( 'the_content', 'vkExUnit_pageList_ancestor_contentHook', 10, 1 );
10
+ } else {
11
+ add_action( 'loop_end', 'vkExUnit_pageList_ancestor_loopend', 10, 1 );
12
+ }
13
 
14
 
15
+ function vkExUnit_pageList_ancestor_loopend( $query ) {
16
+ if ( ! $query->is_main_query() ) {
17
+ return;
18
+ }
19
  echo vkExUnit_pageList_ancestor_shortcode();
20
  }
21
 
28
 
29
  global $widget_pageid;
30
  global $post;
31
+ $post = get_post( $widget_pageid );
32
 
33
  } else {
34
 
35
  global $post;
36
+ if ( ! is_page() || ! get_post_meta( $post->ID, 'vkExUnit_pageList_ancestor', true ) ) {
37
+ return; }
38
  }
39
 
40
+ $pageList_ancestor_html = PHP_EOL . '<section class="veu_pageList_ancestor">' . PHP_EOL;
 
41
 
42
  if ( $post->ancestors ) {
43
  foreach ( $post->ancestors as $post_anc_id ) {
48
  }
49
 
50
  if ( $post_id ) {
51
+ $children = wp_list_pages( 'title_li=&child_of=' . $post_id . '&echo=0' );
52
  if ( $children ) {
53
+ $pageList_ancestor_html .= '<h3 class="section_title"><a href="' . get_permalink( $post_id ) . '">' . get_the_title( $post_id ) . '</a></h3>';
54
  $pageList_ancestor_html .= '<ul class="pageList">';
55
  $pageList_ancestor_html .= $children;
56
  $pageList_ancestor_html .= '</ul>';
69
 
70
  global $post;
71
 
72
+ if ( ! is_page() || ! get_post_meta( $post->ID, 'vkExUnit_pageList_ancestor', true ) ) {
73
+ return $content; }
74
 
75
+ if ( get_post_meta( $post->ID, 'vkExUnit_pageList_ancestor', true ) ) {
76
  $content .= "\n[pageList_ancestor]";
77
  }
78
  return $content;
79
  }
80
 
 
 
 
 
 
 
 
 
81
  /*-------------------------------------------*/
82
  /* admin_metabox_content
83
  /*-------------------------------------------*/
84
+ add_action( 'veu_metabox_insert_items', 'vkExUnit_pageList_ancestor_admin_metabox_content' );
85
  function vkExUnit_pageList_ancestor_admin_metabox_content() {
86
  global $post;
87
  $enable = get_post_meta( $post->ID, 'vkExUnit_pageList_ancestor', true ); ?>
88
 
89
  <div>
90
+ <input type="hidden" name="_nonce_vkExUnit__custom_field_pageList_ancestor" id="_nonce_vkExUnit__custom_field_pageList_ancestor" value="<?php echo wp_create_nonce( plugin_basename( __FILE__ ) ); ?>" />
91
  <label for="vkExUnit_pageList_ancestor">
92
+ <input type="checkbox" id="vkExUnit_pageList_ancestor" name="vkExUnit_pageList_ancestor"<?php echo ( $enable ) ? ' checked' : ''; ?> />
93
+ <?php _e( 'Display a page list from ancestor', 'vk-all-in-one-expansion-unit' ); ?>
94
  </label>
95
  </div>
96
  <?php
115
  $mydata = isset( $_POST['vkExUnit_pageList_ancestor'] ) ? htmlspecialchars( $_POST['vkExUnit_pageList_ancestor'] ) : null;
116
 
117
  if ( 'page' == $mydata ) {
118
+ if ( ! current_user_can( 'edit_page', $post_id ) ) {
119
+ return $post_id; }
120
  }
121
 
122
  if ( '' == get_post_meta( $post_id, 'vkExUnit_pageList_ancestor' ) ) {
123
  add_post_meta( $post_id, 'vkExUnit_pageList_ancestor', $mydata, true );
124
+ } elseif ( $mydata != get_post_meta( $post_id, 'vkExUnit_pageList_ancestor' ) ) {
125
  update_post_meta( $post_id, 'vkExUnit_pageList_ancestor', $mydata );
126
+ } elseif ( '' == $mydata ) {
127
  delete_post_meta( $post_id, 'vkExUnit_pageList_ancestor' );
128
  }
129
 
{plugins → inc}/pagetop-btn/_scss/_pagetop-btn.scss RENAMED
File without changes
{plugins → inc}/pagetop-btn/js/pagetop-btn.js RENAMED
File without changes
{plugins → inc}/pagetop-btn/pagetop-btn.php RENAMED
File without changes
{plugins/post-type-manager → inc/post-type-manager/package}/class.post-type-manager.php RENAMED
File without changes
inc/post-type-manager/post-type-manager-config.php ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /*
4
+ Load modules
5
+ /*-------------------------------------------*/
6
+ if ( ! class_exists( 'Vk_post_type_manager' ) ) {
7
+
8
+ global $vk_post_type_manager_textdomain;
9
+ $vk_post_type_manager_textdomain = 'vk-all-in-one-expansion-unit';
10
+
11
+ require( 'package/class.post-type-manager.php' );
12
+
13
+ // /* transrate
14
+ // /*-------------------------------------------*/
15
+ // function XXXX_post_type_manager_translate(){
16
+ // __( 'Color', 'XXXX_plugin_text_domain_XXXX' );
17
+ // }
18
+ }
{plugins → inc}/related_posts/related_posts.php RENAMED
@@ -207,7 +207,7 @@ function veu_add_related_posts_html( $content ) {
207
  $relatedPostTitle = $output['related_title'];
208
  } else {
209
  // 何も入っていなかったら既存のタイトルを表示させる。
210
- $relatedPostTitle = __( 'Related posts', 'vkExUnit' );
211
  }
212
  // 書き換え用フィルターフック(カスタマイザーで変更出来るが、既存ユーザーで使用しているかもしれないため削除不可)
213
  $relatedPostTitle = apply_filters( 'veu_related_post_title', $relatedPostTitle );
@@ -241,7 +241,7 @@ function veu_customize_register_related( $wp_customize ) {
241
  // セクション追加
242
  $wp_customize->add_section(
243
  'veu_related_setting', array(
244
- 'title' => __( 'Related Settings', 'vkExUnit' ),
245
  'priority' => 1000,
246
  'panel' => 'veu_setting',
247
  )
@@ -258,7 +258,7 @@ function veu_customize_register_related( $wp_customize ) {
258
  // コントロール
259
  $wp_customize->add_control(
260
  'related_title', array(
261
- 'label' => __( 'Title:', 'vkExUnit' ),
262
  'section' => 'veu_related_setting',
263
  'settings' => 'vkExUnit_related_options[related_title]',
264
  'type' => 'text',
@@ -278,7 +278,7 @@ function veu_customize_register_related( $wp_customize ) {
278
  // コントロール _ 表示件数
279
  $wp_customize->add_control(
280
  'related_display_count', array(
281
- 'label' => __( 'Display count', 'vkExUnit' ),
282
  'section' => 'veu_related_setting',
283
  'settings' => 'vkExUnit_related_options[related_display_count]',
284
  'type' => 'text',
207
  $relatedPostTitle = $output['related_title'];
208
  } else {
209
  // 何も入っていなかったら既存のタイトルを表示させる。
210
+ $relatedPostTitle = __( 'Related posts', 'vk-all-in-one-expansion-unit' );
211
  }
212
  // 書き換え用フィルターフック(カスタマイザーで変更出来るが、既存ユーザーで使用しているかもしれないため削除不可)
213
  $relatedPostTitle = apply_filters( 'veu_related_post_title', $relatedPostTitle );
241
  // セクション追加
242
  $wp_customize->add_section(
243
  'veu_related_setting', array(
244
+ 'title' => __( 'Related Settings', 'vk-all-in-one-expansion-unit' ),
245
  'priority' => 1000,
246
  'panel' => 'veu_setting',
247
  )
258
  // コントロール
259
  $wp_customize->add_control(
260
  'related_title', array(
261
+ 'label' => __( 'Title:', 'vk-all-in-one-expansion-unit' ),
262
  'section' => 'veu_related_setting',
263
  'settings' => 'vkExUnit_related_options[related_title]',
264
  'type' => 'text',
278
  // コントロール _ 表示件数
279
  $wp_customize->add_control(
280
  'related_display_count', array(
281
+ 'label' => __( 'Display count', 'vk-all-in-one-expansion-unit' ),
282
  'section' => 'veu_related_setting',
283
  'settings' => 'vkExUnit_related_options[related_display_count]',
284
  'type' => 'text',
inc/sitemap-page/class-veu-metabox-sitemap.php ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ if ( ! class_exists( 'VEU_Metabox' ) ) {
4
+ return;
5
+ }
6
+
7
+ class VEU_Metabox_Sitemap extends VEU_Metabox {
8
+
9
+ public function __construct( $args = array() ) {
10
+
11
+ $this->args = array(
12
+ 'slug' => 'veu_sitemap',
13
+ 'cf_name' => 'sitemap_hide',
14
+ 'title' => __( 'Hide setting of HTML sitemap', 'vk-all-in-one-expansion-unit' ),
15
+ 'priority' => 50,
16
+ 'post_types' => array( 'page' => 'page' ),
17
+ );
18
+
19
+ parent::__construct( $this->args );
20
+
21
+ }
22
+
23
+ /**
24
+ * metabox_body_form
25
+ * Form inner
26
+ *
27
+ * @return [type] [description]
28
+ */
29
+ public function metabox_body_form( $cf_value ) {
30
+
31
+ if ( $cf_value ) {
32
+ $checked = ' checked';
33
+ } else {
34
+ $checked = '';
35
+ }
36
+
37
+ $label = __( 'Hide this page to HTML Sitemap.', 'vk-all-in-one-expansion-unit' );
38
+
39
+ $form = '';
40
+ $form .= '<ul>';
41
+ $form .= '<li><label>' . '<input type="checkbox" id="' . esc_attr( $this->args['cf_name'] ) . '" name="' . esc_attr( $this->args['cf_name'] ) . '" value="true"' . $checked . '> ' . $label . '</label></li>';
42
+ $form .= '</ul>';
43
+
44
+ return $form;
45
+ }
46
+
47
+ } // class VEU_Metabox_Sitemap {
48
+
49
+ $veu_metabox_sitemap = new VEU_Metabox_Sitemap();
inc/sitemap-page/sitemap-page-admin-main-setting.php ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*-------------------------------------------*/
3
+ /* Main setting
4
+ /*-------------------------------------------*/
5
+
6
+ function veu_sitemap_set_main_setting() {
7
+ vkExUnit_register_setting(
8
+ __( 'HTML Sitemap', 'vk-all-in-one-expansion-unit' ),
9
+ 'vkExUnit_sitemap_options',
10
+ 'veu_sitemap_options_validate',
11
+ 'veu_add_sitemap_options_page'
12
+ );
13
+ }
14
+ add_action( 'veu_package_init', 'veu_sitemap_set_main_setting' );
15
+
16
+ /*-------------------------------------------*/
17
+ /* validate
18
+ /*-------------------------------------------*/
19
+ function veu_sitemap_options_validate( $input ) {
20
+ $output = $defaults = veu_get_sitemap_options_default();
21
+
22
+ $paras = array( 'excludeId' );
23
+
24
+ foreach ( $paras as $key => $value ) {
25
+ $output[ $value ] = ( isset( $input[ $value ] ) ) ? $input[ $value ] : '';
26
+ }
27
+ return apply_filters( 'veu_sitemap_options_validate', $output, $input, $defaults );
28
+ }
29
+
30
+
31
+ function veu_add_sitemap_options_page() {
32
+ $options = veu_get_sitemap_options();
33
+ // $options_default = veu_get_sns_options_default();
34
+ /*-------------------------------------------*/
35
+ /* sitemap page
36
+ /*-------------------------------------------*/
37
+ ?>
38
+ <div id="sitemapSetting" class="sectionBox">
39
+ <h3><?php _e( 'HTML Sitemap Settings', 'vk-all-in-one-expansion-unit' ); ?></h3>
40
+ <table class="form-table">
41
+ <!-- sitemap -->
42
+ <tr>
43
+ <th><?php _e( 'Exclude page Settings', 'vk-all-in-one-expansion-unit' ); ?></th>
44
+ <td>
45
+ <?php _e( 'Input you want to exclude page id.', 'vk-all-in-one-expansion-unit' ); ?><br />
46
+ <p><input type="text" name="vkExUnit_sitemap_options[excludeId]" id="excludeId" value="<?php echo esc_attr( $options['excludeId'] ); ?>" style="width:50%;" /></p>
47
+ <?php _e( '* Please enter separated by ","(commas) if there is more than one page ID that you want to exclude.', 'vk-all-in-one-expansion-unit' ); ?>
48
+ </td>
49
+ </tr>
50
+ </table>
51
+ <?php submit_button(); ?>
52
+ </div>
53
+ <?php
54
+ }
inc/sitemap-page/sitemap-page-helpers.php ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ function veu_get_sitemap_options() {
4
+ $default_options = array(
5
+ 'excludeId' => '',
6
+ );
7
+ $options = get_option( 'vkExUnit_sitemap_options', $default_options );
8
+ $options = wp_parse_args( $options, $default_options );
9
+ return apply_filters( 'vkExUnit_sitemap_options', $options );
10
+ }
11
+
12
+ function veu_get_sitemap_options_default() {
13
+ $default_options['excludeId'] = '';
14
+ return apply_filters( 'vkExUnit_sitemap_options_default', $default_options );
15
+ }
16
+
17
+ /*-------------------------------------------*/
18
+ /* サイトマップで非表示にする
19
+ /*-------------------------------------------*/
20
+
21
+ function veu_sitemap_exclude_page_ids() {
22
+ // meta_key が sitemap_hide が true で post_type が page の投稿を取得する
23
+ $args = array(
24
+ 'posts_per_page' => -1, // 取得する数
25
+ 'post_type' => 'page', // 投稿タイプ名
26
+ 'meta_query' => array(
27
+ array(
28
+ 'key' => 'sitemap_hide',
29
+ 'value' => 'true',
30
+ ),
31
+ ),
32
+ );
33
+ $sitemap_hide_customPosts = get_posts( $args );
34
+
35
+ // 取得した投稿データをループして、id名を $excludes に追加していく
36
+ // 「sitemap_hide」フィールドの値が格納されていたら「$excludes」に ID を追加する処理を開始
37
+ if ( $sitemap_hide_customPosts ) {
38
+ $excludes = '';
39
+ foreach ( $sitemap_hide_customPosts as $key => $value ) {
40
+ // print_r($value);
41
+
42
+ if ( ! $excludes ) {
43
+ $excludes .= $value->ID;
44
+ } else {
45
+ $excludes .= ',' . $value->ID;
46
+ }
47
+
48
+ $excludes = esc_attr( $excludes );
49
+ }
50
+
51
+ return $excludes;
52
+ } // if( $sitemap_hide_customPosts ) {
53
+
54
+ } // function veu_sitemap_exclude_page_ids() {
plugins/sitemap_page/sitemap_page.php → inc/sitemap-page/sitemap-page.php RENAMED
@@ -17,11 +17,10 @@
17
  /* Add setting page
18
  /*-------------------------------------------*/
19
 
20
- function veu_add_sitemap_options_page() {
21
- require dirname( __FILE__ ) . '/sitemap_admin.php';
22
- }
23
 
24
- require_once dirname( __FILE__ ) . '/hide-controller.php';
25
 
26
  /*-------------------------------------------*/
27
  /* Options Init
@@ -29,45 +28,8 @@ require_once dirname( __FILE__ ) . '/hide-controller.php';
29
  function vkExUnit_sitemap_options_init() {
30
  if ( false === veu_get_sitemap_options() ) {
31
  add_option( 'vkExUnit_sitemap_options', veu_get_sitemap_options_default() ); }
32
-
33
- vkExUnit_register_setting(
34
- __( 'HTML Sitemap', 'vkExUnit' ),
35
- 'vkExUnit_sitemap_options',
36
- 'veu_sitemap_options_validate',
37
- 'veu_add_sitemap_options_page'
38
- );
39
- }
40
- add_action( 'vkExUnit_package_init', 'vkExUnit_sitemap_options_init' );
41
-
42
- function veu_get_sitemap_options() {
43
- $options = get_option( 'vkExUnit_sitemap_options', veu_get_sitemap_options_default() );
44
- $options_dafault = veu_get_sitemap_options_default();
45
- foreach ( $options_dafault as $key => $value ) {
46
- $options[ $key ] = ( isset( $options[ $key ] ) ) ? $options[ $key ] : $options_dafault[ $key ];
47
- }
48
- return apply_filters( 'vkExUnit_sitemap_options', $options );
49
- }
50
-
51
- function veu_get_sitemap_options_default() {
52
- $default_options = array(
53
- 'excludeId' => '',
54
- );
55
- return apply_filters( 'vkExUnit_sitemap_options_default', $default_options );
56
- }
57
-
58
- /*-------------------------------------------*/
59
- /* validate
60
- /*-------------------------------------------*/
61
- function veu_sitemap_options_validate( $input ) {
62
- $output = $defaults = veu_get_sitemap_options_default();
63
-
64
- $paras = array( 'excludeId' );
65
-
66
- foreach ( $paras as $key => $value ) {
67
- $output[ $value ] = ( isset( $input[ $value ] ) ) ? $input[ $value ] : '';
68
- }
69
- return apply_filters( 'veu_sitemap_options_validate', $output, $input, $defaults );
70
  }
 
71
 
72
  /*-------------------------------------------*/
73
  /* insert sitemap page
@@ -238,17 +200,11 @@ function vkExUnit_sitemap( $atts ) {
238
  }
239
  add_shortcode( 'vkExUnit_sitemap', 'vkExUnit_sitemap' );
240
 
241
-
242
- add_filter( 'veu_content_meta_box_activation', 'vkExUnit_sitemap_activate', 10, 1 );
243
- function vkExUnit_sitemap_activate( $flag ) {
244
- return true;
245
- }
246
-
247
-
248
  /*-------------------------------------------*/
249
  /* admin _ meta box
 
250
  /*-------------------------------------------*/
251
- add_action( 'veu_content_meta_box_content', 'vkExUnit_sitemap_meta_box' );
252
  function vkExUnit_sitemap_meta_box() {
253
  global $post;
254
  // sitemap display
@@ -258,7 +214,7 @@ function vkExUnit_sitemap_meta_box() {
258
  <input type="hidden" name="_nonce_vkExUnit__custom_field_sitemap" id="_nonce_vkExUnit__custom_field_sitemap" value="<?php echo wp_create_nonce( plugin_basename( __FILE__ ) ); ?>" />
259
  <label for="vkExUnit_sitemap">
260
  <input type="checkbox" id="vkExUnit_sitemap" name="vkExUnit_sitemap" <?php echo ( $enable ) ? ' checked' : ''; ?> />
261
- <?php _e( 'Display a HTML sitemap', 'vkExUnit' ); ?>
262
  </label>
263
  </div>
264
 
17
  /* Add setting page
18
  /*-------------------------------------------*/
19
 
20
+ require_once( dirname( __FILE__ ) . '/class-veu-metabox-sitemap.php' );
21
+ require_once( dirname( __FILE__ ) . '/sitemap-page-admin-main-setting.php' );
22
+ require_once( dirname( __FILE__ ) . '/sitemap-page-helpers.php' );
23
 
 
24
 
25
  /*-------------------------------------------*/
26
  /* Options Init
28
  function vkExUnit_sitemap_options_init() {
29
  if ( false === veu_get_sitemap_options() ) {
30
  add_option( 'vkExUnit_sitemap_options', veu_get_sitemap_options_default() ); }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
31
  }
32
+ add_action( 'veu_package_init', 'vkExUnit_sitemap_options_init' );
33
 
34
  /*-------------------------------------------*/
35
  /* insert sitemap page
200
  }
201
  add_shortcode( 'vkExUnit_sitemap', 'vkExUnit_sitemap' );
202
 
 
 
 
 
 
 
 
203
  /*-------------------------------------------*/
204
  /* admin _ meta box
205
+ /* こちらは非表示設定ではなく サイトマップ自体を表示するかどうか
206
  /*-------------------------------------------*/
207
+ add_action( 'veu_metabox_insert_items', 'vkExUnit_sitemap_meta_box' );
208
  function vkExUnit_sitemap_meta_box() {
209
  global $post;
210
  // sitemap display
214
  <input type="hidden" name="_nonce_vkExUnit__custom_field_sitemap" id="_nonce_vkExUnit__custom_field_sitemap" value="<?php echo wp_create_nonce( plugin_basename( __FILE__ ) ); ?>" />
215
  <label for="vkExUnit_sitemap">
216
  <input type="checkbox" id="vkExUnit_sitemap" name="vkExUnit_sitemap" <?php echo ( $enable ) ? ' checked' : ''; ?> />
217
+ <?php _e( 'Display a HTML sitemap', 'vk-all-in-one-expansion-unit' ); ?>
218
  </label>
219
  </div>
220
 
inc/smooth-scroll/js/smooth-scroll.js ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ /*-------------------------------------------*/
3
+ /* ページ内するするスクロール
4
+ /*-------------------------------------------*/
5
+ (function($) {
6
+ // #にダブルクォーテーションが必要
7
+ $('a[href^="#"]').click(function() {
8
+ // ページ内リンク指定でない(アンカー指定がない)場合
9
+ if ( jQuery(this).attr("href") === "#" ){
10
+ return;
11
+ }
12
+ // bootstrapのタブコンポーネント
13
+ if ( jQuery(this).attr("role") === "tab" ){
14
+ return;
15
+ }
16
+ // bootstrapのアコーディオンコンポーネント
17
+ if ( jQuery(this).attr("data-toggle") ){
18
+ return;
19
+ }
20
+ // Lightningのスライダーの左右ボタン
21
+ if ( jQuery(this).hasClass('carousel-control') ){
22
+ return;
23
+ }
24
+
25
+ if ( id )
26
+ var speed = 400;
27
+ var href= $(this).attr("href");
28
+ var target = $(href == "#" || href == "" ? 'html' : href);
29
+ var id = jQuery(this).attr('id');
30
+ if ( id == 'page_top' ){
31
+ var position = 0;
32
+ } else {
33
+ // ヘッダ-固定の時用オフセット
34
+ var header_height = 0;
35
+ if ( jQuery('body').hasClass('headfix') ){
36
+ header_height = jQuery('body > header').outerHeight();
37
+ console.log(header_height);
38
+ }
39
+ // 管理バー分オフセット
40
+ var admin_bar_height = 0;
41
+ if ( jQuery('body').hasClass('admin-bar') ){
42
+ admin_bar_height = jQuery('#wpadminbar').outerHeight();
43
+ }
44
+
45
+ var position = target.offset().top - header_height - admin_bar_height;
46
+ }
47
+ $('body,html').animate({scrollTop:position}, speed, 'swing');
48
+ return;
49
+ })
50
+ })(jQuery);
inc/smooth-scroll/js/smooth-scroll.min.js ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+
2
+ (function($){$('a[href^="#"]').click(function(){if(jQuery(this).attr("href")==="#"){return;}
3
+ if(jQuery(this).attr("role")==="tab"){return;}
4
+ if(jQuery(this).attr("data-toggle")){return;}
5
+ if(jQuery(this).hasClass('carousel-control')){return;}
6
+ if(id)
7
+ var speed=400;var href=$(this).attr("href");var target=$(href=="#"||href==""?'html':href);var id=jQuery(this).attr('id');if(id=='page_top'){var position=0;}else{var header_height=0;if(jQuery('body').hasClass('headfix')){header_height=jQuery('body > header').outerHeight();console.log(header_height);}
8
+ var admin_bar_height=0;if(jQuery('body').hasClass('admin-bar')){admin_bar_height=jQuery('#wpadminbar').outerHeight();}
9
+ var position=target.offset().top-header_height-admin_bar_height;}
10
+ $('body,html').animate({scrollTop:position},speed,'swing');return;})})(jQuery);
inc/smooth-scroll/smooth-scroll.php ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*-------------------------------------------*/
3
+ /* Add vkExUnit js
4
+ /*-------------------------------------------*/
5
+ add_action( 'wp_head', 'veu_add_smooth_js' );
6
+ function veu_add_smooth_js() {
7
+ global $vkExUnit_version;
8
+ wp_register_script( 'vkExUnit_smooth-js', plugins_url( '', __FILE__ ) . '/js/smooth-scroll.min.js', array( 'jquery' ), $vkExUnit_version, true );
9
+ wp_enqueue_script( 'vkExUnit_smooth-js' );
10
+ }
inc/sns/class-veu-metabox-sns-button.php ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ if ( ! class_exists( 'VEU_Metabox' ) ) {
4
+ return;
5
+ }
6
+
7
+ class VEU_Metabox_SNS_Button extends VEU_Metabox {
8
+
9
+ public function __construct( $args = array() ) {
10
+
11
+ $this->args = array(
12
+ 'slug' => 'veu_sns_button_hide',
13
+ 'cf_name' => 'sns_share_botton_hide',
14
+ 'title' => __( 'Hide setting of share button', 'vk-all-in-one-expansion-unit' ),
15
+ 'priority' => 50,
16
+ );
17
+
18
+ parent::__construct( $this->args );
19
+
20
+ }
21
+
22
+ /**
23
+ * metabox_body_form
24
+ * Form inner
25
+ *
26
+ * @return [type] [description]
27
+ */
28
+ public function metabox_body_form( $cf_value ) {
29
+
30
+ $form = '';
31
+ // 今編集している投稿の投稿タイプを取得
32
+ $post_type = get_post_type();
33
+
34
+ // 編集中のページの投稿タイプ が シェアボタンを表示しない投稿タイプに含まれている場合
35
+ if ( ! veu_sns_is_sns_btns_meta_chekbox_hide( $post_type ) ) {
36
+
37
+ // 「この投稿タイプではシェアボタンを表示しないように設定されています。」を表示
38
+ $form .= '<p>' . __( 'This post type is not set to display the share button.', 'vk-all-in-one-expansion-unit' ) . '</p>';
39
+ $form .= ' <a href="' . admin_url( '/admin.php?page=vkExUnit_main_setting#vkExUnit_sns_options' ) . '" target="_blank" class="button button-default">' . __( 'Display setting of share button', 'vk-all-in-one-expansion-unit' ) . '</a>';
40
+
41
+ } else {
42
+
43
+ if ( $cf_value ) {
44
+ $checked = ' checked';
45
+ } else {
46
+ $checked = '';
47
+ }
48
+
49
+ $label = __( 'Don\'t display share bottons.', 'vk-all-in-one-expansion-unit' );
50
+
51
+ $form .= '<ul>';
52
+ $form .= '<li><label>' . '<input type="checkbox" id="' . esc_attr( $this->args['cf_name'] ) . '" name="' . esc_attr( $this->args['cf_name'] ) . '" value="true"' . $checked . '> ' . $label . '</label></li>';
53
+ $form .= '</ul>';
54
+
55
+ }
56
+
57
+ return $form;
58
+ }
59
+
60
+ } // class VEU_Metabox_SNS_Button {
61
+
62
+ $veu_metabox_sns_button = new VEU_Metabox_SNS_Button();
inc/sns/class-veu-metabox-sns-title.php ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ if ( ! class_exists( 'VEU_Metabox' ) ) {
4
+ return;
5
+ }
6
+
7
+ class VEU_Metabox_SNS_Title extends VEU_Metabox {
8
+
9
+ public function __construct( $args = array() ) {
10
+
11
+ $this->args = array(
12
+ 'slug' => 'veu_sns_title',
13
+ 'cf_name' => 'vkExUnit_sns_title',
14
+ 'title' => __( 'SNS Title', 'vk-all-in-one-expansion-unit' ),
15
+ 'priority' => 50,
16
+ );
17
+
18
+ parent::__construct( $this->args );
19
+
20
+ }
21
+
22
+ /**
23
+ * metabox_body_form
24
+ * Form inner
25
+ *
26
+ * @return [type] [description]
27
+ */
28
+ public function metabox_body_form( $cf_value ) {
29
+
30
+ $form = '';
31
+ $form .= '<input type=text name="' . esc_attr( $this->args['cf_name'] ) . '" value="' . esc_attr( $cf_value ) . '" size=50 />';
32
+ $form .= '<p>' . __( 'if filled this area then override title of OGP and Twitter Card', 'vk-all-in-one-expansion-unit' ) . '</p>';
33
+
34
+ return $form;
35
+ }
36
+
37
+ } // class VEU_Metabox_SNS_Title {
38
+
39
+ $veu_metabox_sns_title = new VEU_Metabox_SNS_Title();
{plugins → inc}/sns/function_follow.php RENAMED
@@ -22,7 +22,7 @@ function veu_add_follow( $content ) {
22
  if ( isset( $options['followMe_title'] ) && $options['followMe_title'] ) {
23
  $title = $options['followMe_title'];
24
  } else {
25
- $title = __( 'Follow me', 'vkExUnit' ) . '!';
26
  }
27
 
28
  // https://about.twitter.com/resources/buttons#follow
@@ -70,7 +70,7 @@ function veu_add_follow( $content ) {
70
  global $post;
71
  if ( $url = get_edit_post_link( $post->ID ) ) {
72
  $url = admin_url( 'admin.php?page=vkExUnit_main_setting#vkExUnit_sns_options' );
73
- $follow_html .= '<div class="veu_adminEdit"><a href="' . $url . '" class="btn btn-default" target="_blank">' . __( 'Edit follow button', 'vkExUnit' ) . '</a></div>';
74
  }
75
 
76
  $content .= $follow_html;
22
  if ( isset( $options['followMe_title'] ) && $options['followMe_title'] ) {
23
  $title = $options['followMe_title'];
24
  } else {
25
+ $title = __( 'Follow me', 'vk-all-in-one-expansion-unit' ) . '!';
26
  }
27
 
28
  // https://about.twitter.com/resources/buttons#follow
70
  global $post;
71
  if ( $url = get_edit_post_link( $post->ID ) ) {
72
  $url = admin_url( 'admin.php?page=vkExUnit_main_setting#vkExUnit_sns_options' );
73
+ $follow_html .= '<div class="veu_adminEdit"><a href="' . $url . '" class="btn btn-default" target="_blank">' . __( 'Edit follow button', 'vk-all-in-one-expansion-unit' ) . '</a></div>';
74
  }
75
 
76
  $content .= $follow_html;
{plugins → inc}/sns/function_og.php RENAMED
@@ -2,22 +2,15 @@
2
 
3
  add_post_type_support( 'page', 'excerpt' ); // add excerpt
4
 
5
- /*-------------------------------------------*/
6
- /* Add OGP
7
  /*-------------------------------------------*/
8
  add_action( 'wp_head', 'vkExUnit_print_og', 20 );
9
  function vkExUnit_print_og() {
10
  global $vkExUnit_sns_options;
11
- $title = '';
12
- if ( is_single() || is_page() ) {
13
- $title = get_post_meta( get_the_id(), 'vkExUnit_sns_title', true );
14
- }
15
- if ( ! $title ) {
16
- $title = strip_tags( wp_title( '', false ) );
17
- }
18
 
19
- //$ogImage = $vkExUnit_sns_options['ogImage'];
20
- //$fbAppId = $vkExUnit_sns_options['fbAppId'];
21
  global $wp_query;
22
  $post = $wp_query->get_queried_object();
23
  if ( is_home() || is_front_page() ) {
@@ -30,7 +23,7 @@ function vkExUnit_print_og() {
30
  $vkExUnitOGP = '<!-- [ ' . veu_get_name() . ' OGP ] -->' . "\n";
31
  $vkExUnitOGP .= '<meta property="og:site_name" content="' . esc_attr( get_bloginfo( 'name' ) ) . '" />' . "\n";
32
  $vkExUnitOGP .= '<meta property="og:url" content="' . $linkUrl . '" />' . "\n";
33
- $vkExUnitOGP .= '<meta property="og:title" content="' . $title . '" />' . "\n";
34
  $vkExUnitOGP .= '<meta property="og:description" content="' . esc_attr( vk_get_page_description() ) . '" />' . "\n";
35
  if ( isset( $vkExUnit_sns_options['fbAppId'] ) && $vkExUnit_sns_options['fbAppId'] ) {
36
  $vkExUnitOGP = $vkExUnitOGP . '<meta property="fb:app_id" content="' . $vkExUnit_sns_options['fbAppId'] . '" />' . "\n";
2
 
3
  add_post_type_support( 'page', 'excerpt' ); // add excerpt
4
 
5
+ /*
6
+ Add OGP
7
  /*-------------------------------------------*/
8
  add_action( 'wp_head', 'vkExUnit_print_og', 20 );
9
  function vkExUnit_print_og() {
10
  global $vkExUnit_sns_options;
 
 
 
 
 
 
 
11
 
12
+ // $ogImage = $vkExUnit_sns_options['ogImage'];
13
+ // $fbAppId = $vkExUnit_sns_options['fbAppId'];
14
  global $wp_query;
15
  $post = $wp_query->get_queried_object();
16
  if ( is_home() || is_front_page() ) {
23
  $vkExUnitOGP = '<!-- [ ' . veu_get_name() . ' OGP ] -->' . "\n";
24
  $vkExUnitOGP .= '<meta property="og:site_name" content="' . esc_attr( get_bloginfo( 'name' ) ) . '" />' . "\n";
25
  $vkExUnitOGP .= '<meta property="og:url" content="' . $linkUrl . '" />' . "\n";
26
+ $vkExUnitOGP .= '<meta property="og:title" content="' . veu_get_the_sns_title() . '" />' . "\n";
27
  $vkExUnitOGP .= '<meta property="og:description" content="' . esc_attr( vk_get_page_description() ) . '" />' . "\n";
28
  if ( isset( $vkExUnit_sns_options['fbAppId'] ) && $vkExUnit_sns_options['fbAppId'] ) {
29
  $vkExUnitOGP = $vkExUnitOGP . '<meta property="fb:app_id" content="' . $vkExUnit_sns_options['fbAppId'] . '" />' . "\n";
{plugins → inc}/sns/function_snsBtns.php RENAMED
@@ -17,11 +17,10 @@ function veu_add_sns_btns_loopend( $query ) {
17
  }
18
 
19
  // function veu_sns_set_location_option( $opt ){
20
- // if( ! veu_is_sns_btns_display() ) return $opt;
21
- // $opt['sns_linkurl'] = veu_sns_get_url();
22
- // return $opt;
23
  // }
24
-
25
  function veu_is_sns_btns_display() {
26
  global $post;
27
  $options = veu_get_sns_options();
@@ -42,8 +41,32 @@ function veu_is_sns_btns_display() {
42
  }
43
  }
44
 
45
- /*-------------------------------------------*/
46
- /* SNSアイコンに出力するCSSを出力する関数
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
47
  /*-------------------------------------------*/
48
 
49
  function veu_sns_outer_css( $options ) {
@@ -112,23 +135,16 @@ function veu_sns_icon_css( $options ) {
112
  }
113
 
114
 
115
- function veu_get_sns_btns() {
116
 
117
  $options = veu_get_sns_options();
118
  $outer_css = veu_sns_outer_css( $options );
119
  $icon_css = veu_sns_icon_css( $options );
120
 
121
- $linkUrl = urlencode( get_permalink() );
 
122
 
123
- $pageTitle = '';
124
- if ( is_single() || is_page() ) {
125
- $pageTitle = get_post_meta( get_the_id(), 'vkExUnit_sns_title', true );
126
- }
127
- if ( empty( $pageTitle ) ) {
128
- $pageTitle = urlencode( strip_tags( wp_title( '', false ) ) );
129
- }
130
-
131
- $socialSet = '<div class="veu_socialSet veu_contentAddSection"><script>window.twttr=(function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],t=window.twttr||{};if(d.getElementById(id))return t;js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);t._e=[];t.ready=function(f){t._e.push(f);};return t;}(document,"script","twitter-wjs"));</script><ul>';
132
  // facebook
133
  if ( $options['useFacebook'] ) {
134
  $socialSet .= '<li class="sb_facebook sb_icon"><a href="//www.facebook.com/sharer.php?src=bm&u=' . $linkUrl . '&amp;t=' . $pageTitle . '" target="_blank" ' . $outer_css . 'onclick="window.open(this.href,\'FBwindow\',\'width=650,height=450,menubar=no,toolbar=no,scrollbars=yes\');return false;"><span class="vk_icon_w_r_sns_fb icon_sns"' . $icon_css . '></span><span class="sns_txt"' . $icon_css . '>Facebook</span><span class="veu_count_sns_fb"' . $icon_css . '></span></a></li>';
@@ -150,7 +166,6 @@ function veu_get_sns_btns() {
150
  <a href="line://msg/text/' . $pageTitle . ' ' . $linkUrl . '" ' . $outer_css . '><span class="vk_icon_w_r_sns_line icon_sns"' . $icon_css . '></span><span class="sns_txt"' . $icon_css . '>LINE</span></a></li>';
151
  endif;
152
  // pocket
153
-
154
  if ( $options['usePocket'] ) {
155
  $socialSet .= '<li class="sb_pocket sb_icon"><a href="//getpocket.com/edit?url=' . $linkUrl . '&title=' . $pageTitle . '" target="_blank" ' . $outer_css . ' onclick="window.open(this.href,\'Pokcetwindow\',\'width=650,height=450,menubar=no,toolbar=no,scrollbars=yes\');return false;"><span class="vk_icon_w_r_sns_pocket icon_sns"' . $icon_css . '></span><span class="sns_txt"' . $icon_css . '>Pocket</span><span class="veu_count_sns_pocket"' . $icon_css . '></span></a></li>';
156
  }
@@ -183,7 +198,16 @@ function veu_add_sns_btns( $content ) {
183
  return $content; }
184
 
185
  if ( veu_is_sns_btns_display() ) {
186
- $content .= veu_get_sns_btns();
 
 
 
 
 
 
 
 
 
187
  } // if ( !isset( $options['snsBtn_ignorePosts'] ) || $options['snsBtn_ignorePosts'] != $post->ID ) {
188
 
189
  return $content;
17
  }
18
 
19
  // function veu_sns_set_location_option( $opt ){
20
+ // if( ! veu_is_sns_btns_display() ) return $opt;
21
+ // $opt['sns_linkurl'] = veu_sns_get_url();
22
+ // return $opt;
23
  // }
 
24
  function veu_is_sns_btns_display() {
25
  global $post;
26
  $options = veu_get_sns_options();
41
  }
42
  }
43
 
44
+ function veu_sns_is_sns_btns_meta_chekbox_hide( $post_type ) {
45
+ // SNS設定のオプション値を取得
46
+ $options = veu_get_sns_options();
47
+
48
+ // 表示する にチェックが入っていない場合は 投稿詳細画面でボタン非表示のチェックボックスを表示しない
49
+ if ( empty( $options['enableSnsBtns'] ) ) {
50
+ return false;
51
+ }
52
+
53
+ // シェアボタンを表示しない投稿タイプが配列で指定されている場合(チェックが入ってたら)
54
+ if ( isset( $options['snsBtn_exclude_post_types'] ) && is_array( $options['snsBtn_exclude_post_types'] ) ) {
55
+ foreach ( $options['snsBtn_exclude_post_types'] as $key => $value ) {
56
+ // 非表示チェックが入っている場合
57
+ if ( $value ) {
58
+ // 今の投稿タイプと比較。同じだったら...
59
+ if ( $post_type == $key ) {
60
+ return false;
61
+ }
62
+ }
63
+ }
64
+ }
65
+ return true;
66
+ }
67
+
68
+ /*
69
+ SNSアイコンに出力するCSSを出力する関数
70
  /*-------------------------------------------*/
71
 
72
  function veu_sns_outer_css( $options ) {
135
  }
136
 
137
 
138
+ function veu_get_sns_btns( $position = 'after' ) {
139
 
140
  $options = veu_get_sns_options();
141
  $outer_css = veu_sns_outer_css( $options );
142
  $icon_css = veu_sns_icon_css( $options );
143
 
144
+ $linkUrl = urlencode( get_permalink() );
145
+ $pageTitle = urlencode( veu_get_the_sns_title() );
146
 
147
+ $socialSet = '<div class="veu_socialSet veu_socialSet-position-' . $position . ' veu_contentAddSection"><script>window.twttr=(function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],t=window.twttr||{};if(d.getElementById(id))return t;js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);t._e=[];t.ready=function(f){t._e.push(f);};return t;}(document,"script","twitter-wjs"));</script><ul>';
 
 
 
 
 
 
 
 
148
  // facebook
149
  if ( $options['useFacebook'] ) {
150
  $socialSet .= '<li class="sb_facebook sb_icon"><a href="//www.facebook.com/sharer.php?src=bm&u=' . $linkUrl . '&amp;t=' . $pageTitle . '" target="_blank" ' . $outer_css . 'onclick="window.open(this.href,\'FBwindow\',\'width=650,height=450,menubar=no,toolbar=no,scrollbars=yes\');return false;"><span class="vk_icon_w_r_sns_fb icon_sns"' . $icon_css . '></span><span class="sns_txt"' . $icon_css . '>Facebook</span><span class="veu_count_sns_fb"' . $icon_css . '></span></a></li>';
166
  <a href="line://msg/text/' . $pageTitle . ' ' . $linkUrl . '" ' . $outer_css . '><span class="vk_icon_w_r_sns_line icon_sns"' . $icon_css . '></span><span class="sns_txt"' . $icon_css . '>LINE</span></a></li>';
167
  endif;
168
  // pocket
 
169
  if ( $options['usePocket'] ) {
170
  $socialSet .= '<li class="sb_pocket sb_icon"><a href="//getpocket.com/edit?url=' . $linkUrl . '&title=' . $pageTitle . '" target="_blank" ' . $outer_css . ' onclick="window.open(this.href,\'Pokcetwindow\',\'width=650,height=450,menubar=no,toolbar=no,scrollbars=yes\');return false;"><span class="vk_icon_w_r_sns_pocket icon_sns"' . $icon_css . '></span><span class="sns_txt"' . $icon_css . '>Pocket</span><span class="veu_count_sns_pocket"' . $icon_css . '></span></a></li>';
171
  }
198
  return $content; }
199
 
200
  if ( veu_is_sns_btns_display() ) {
201
+
202
+ $options = veu_get_sns_options();
203
+
204
+ if ( ! empty( $options['snsBtn_position']['before'] ) ) {
205
+ $content = veu_get_sns_btns( 'before' ) . $content;
206
+ }
207
+
208
+ if ( ! empty( $options['snsBtn_position']['after'] ) ) {
209
+ $content .= veu_get_sns_btns( 'after' );
210
+ }
211
  } // if ( !isset( $options['snsBtn_ignorePosts'] ) || $options['snsBtn_ignorePosts'] != $post->ID ) {
212
 
213
  return $content;
{plugins → inc}/sns/function_twitterCard.php RENAMED
@@ -25,13 +25,6 @@ function vkExUnit_add_twitterCard() {
25
  $card_image_url = ( isset( $vkExUnit_sns_options['ogImage'] ) ) ? $vkExUnit_sns_options['ogImage'] : '';
26
  }
27
 
28
- $title = '';
29
- if ( is_single() || is_page() ) {
30
- $title = get_post_meta( get_the_id(), 'vkExUnit_sns_title', true );
31
- }
32
- if ( ! $title ) {
33
- $title = strip_tags( wp_title( '', false ) );
34
- }
35
  // domain
36
  preg_match( '/https?:\/\/(.+?)\//i', admin_url(), $match );
37
  // image size
@@ -39,7 +32,7 @@ function vkExUnit_add_twitterCard() {
39
  <!-- [ <?php echo veu_get_name(); ?> twitter card ] -->
40
  <meta name="twitter:card" content="summary_large_image">
41
  <meta name="twitter:description" content="<?php echo esc_attr( vk_get_page_description() ); ?>">
42
- <meta name="twitter:title" content="<?php echo esc_attr( $title ); ?>">
43
  <meta name="twitter:url" content="<?php echo esc_url( $linkUrl ); ?>">
44
  <?php if ( isset( $card_image_url ) && $card_image_url ) { ?>
45
  <meta name="twitter:image" content="<?php echo esc_url( $card_image_url ); ?>">
25
  $card_image_url = ( isset( $vkExUnit_sns_options['ogImage'] ) ) ? $vkExUnit_sns_options['ogImage'] : '';
26
  }
27
 
 
 
 
 
 
 
 
28
  // domain
29
  preg_match( '/https?:\/\/(.+?)\//i', admin_url(), $match );
30
  // image size
32
  <!-- [ <?php echo veu_get_name(); ?> twitter card ] -->
33
  <meta name="twitter:card" content="summary_large_image">
34
  <meta name="twitter:description" content="<?php echo esc_attr( vk_get_page_description() ); ?>">
35
+ <meta name="twitter:title" content="<?php echo esc_attr( veu_get_the_sns_title() ); ?>">
36
  <meta name="twitter:url" content="<?php echo esc_url( $linkUrl ); ?>">
37
  <?php if ( isset( $card_image_url ) && $card_image_url ) { ?>
38
  <meta name="twitter:image" content="<?php echo esc_url( $card_image_url ); ?>">
{plugins → inc}/sns/icons/Read Me.txt RENAMED
File without changes
{plugins → inc}/sns/icons/demo-files/demo.css RENAMED
File without changes
{plugins → inc}/sns/icons/demo-files/demo.js RENAMED
File without changes
{plugins → inc}/sns/icons/demo.html RENAMED
File without changes
{plugins → inc}/sns/icons/fonts/vk_sns.eot RENAMED
File without changes
{plugins → inc}/sns/icons/fonts/vk_sns.svg RENAMED
File without changes
{plugins → inc}/sns/icons/fonts/vk_sns.ttf RENAMED
File without changes
{plugins → inc}/sns/icons/fonts/vk_sns.woff RENAMED
File without changes
{plugins → inc}/sns/icons/selection.json RENAMED
File without changes
{plugins → inc}/sns/icons/style.css RENAMED
File without changes
inc/sns/sns.php ADDED
@@ -0,0 +1,212 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Options Init
4
+ validate
5
+ set global $vkExUnit_sns_options
6
+ Add facebook aprication id
7
+ SNSアイコンに出力するCSSを出力する関数
8
+ Add setting page
9
+ Add Customize Panel
10
+ /*-------------------------------------------*/
11
+
12
+ require_once( dirname( __FILE__ ) . '/sns_customizer.php' );
13
+
14
+ function veu_sns_options_init() {
15
+ if ( false === veu_get_sns_options() ) {
16
+ add_option( 'vkExUnit_sns_options', veu_get_sns_options_default() );
17
+ }
18
+ vkExUnit_register_setting(
19
+ __( 'SNS', 'vk-all-in-one-expansion-unit' ), // tab label.
20
+ 'vkExUnit_sns_options', // name attr
21
+ 'vkExUnit_sns_options_validate', // sanitaise function name
22
+ 'vkExUnit_add_sns_options_page' // setting_page function name
23
+ );
24
+ }
25
+ add_action( 'veu_package_init', 'veu_sns_options_init' );
26
+
27
+ function veu_get_sns_options() {
28
+ $options = get_option( 'vkExUnit_sns_options', veu_get_sns_options_default() );
29
+ $options_dafault = veu_get_sns_options_default();
30
+ $options = wp_parse_args( $options, $options_dafault );
31
+ return apply_filters( 'vkExUnit_sns_options', $options );
32
+ }
33
+
34
+ function veu_get_sns_options_default() {
35
+ $default_options = array(
36
+ 'fbAppId' => '',
37
+ 'fbPageUrl' => '',
38
+ 'ogImage' => '',
39
+ 'twitterId' => '',
40
+ 'enableOGTags' => true,
41
+ 'snsTitle_use_only_postTitle' => false,
42
+ 'enableTwitterCardTags' => true,
43
+ 'enableSnsBtns' => true,
44
+ 'snsBtn_exclude_post_types' => array(
45
+ 'post' => '',
46
+ 'page' => '',
47
+ ),
48
+ 'snsBtn_position' => array(
49
+ 'before' => false,
50
+ 'after' => true,
51
+ ),
52
+ 'snsBtn_ignorePosts' => '',
53
+ 'snsBtn_bg_fill_not' => false,
54
+ 'snsBtn_color' => false,
55
+ 'enableFollowMe' => true,
56
+ 'followMe_title' => 'Follow me!',
57
+ 'useFacebook' => true,
58
+ 'useTwitter' => true,
59
+ 'useHatena' => true,
60
+ 'usePocket' => true,
61
+ 'useLine' => true,
62
+ );
63
+ return apply_filters( 'vkExUnit_sns_options_default', $default_options );
64
+ }
65
+
66
+ /**
67
+ * [veu_get_the_sns_title description]
68
+ *
69
+ * @return [type] [description]
70
+ */
71
+ function veu_get_the_sns_title( $post_id = '' ) {
72
+
73
+ if ( ! $post_id ) {
74
+ $post_id = get_the_id();
75
+ }
76
+ $options = veu_get_sns_options();
77
+
78
+ $title = '';
79
+
80
+ if ( is_singular() ) {
81
+ $title = get_post_meta( $post_id, 'vkExUnit_sns_title', true );
82
+ }
83
+ if ( ! $title ) {
84
+ if ( is_singular() && $options['snsTitle_use_only_postTitle'] ) {
85
+ $title = get_the_title( $post_id );
86
+ } else {
87
+ $title = wp_title( '', false );
88
+ }
89
+ }
90
+ return strip_tags( $title );
91
+ }
92
+
93
+ /*
94
+ validate
95
+ /*-------------------------------------------*/
96
+
97
+ function vkExUnit_sns_options_validate( $input ) {
98
+ $output = $defaults = veu_get_sns_options_default();
99
+
100
+ $output['fbAppId'] = esc_attr( $input['fbAppId'] );
101
+ $output['fbPageUrl'] = esc_url( $input['fbPageUrl'] );
102
+ $output['ogImage'] = esc_url( $input['ogImage'] );
103
+ $output['twitterId'] = esc_attr( $input['twitterId'] );
104
+ $output['snsBtn_ignorePosts'] = preg_replace( '/[^0-9,]/', '', $input['snsBtn_ignorePosts'] );
105
+ $output['snsTitle_use_only_postTitle'] = ( isset( $input['snsTitle_use_only_postTitle'] ) && $input['snsTitle_use_only_postTitle'] ) ? true : false;
106
+ $output['enableOGTags'] = ( isset( $input['enableOGTags'] ) && $input['enableOGTags'] ) ? true : false;
107
+ $output['enableTwitterCardTags'] = ( isset( $input['enableTwitterCardTags'] ) && $input['enableTwitterCardTags'] ) ? true : false;
108
+ $output['enableSnsBtns'] = ( isset( $input['enableSnsBtns'] ) && $input['enableSnsBtns'] ) ? true : false;
109
+ $output['snsBtn_exclude_post_types'] = ( isset( $input['snsBtn_exclude_post_types'] ) ) ? $input['snsBtn_exclude_post_types'] : '';
110
+ $output['snsBtn_position'] = ( isset( $input['snsBtn_position'] ) ) ? $input['snsBtn_position'] : '';
111
+ $output['enableFollowMe'] = ( isset( $input['enableFollowMe'] ) && $input['enableFollowMe'] ) ? true : false;
112
+ $output['followMe_title'] = $input['followMe_title'];
113
+ $output['useFacebook'] = ( isset( $input['useFacebook'] ) && $input['useFacebook'] == 'true' );
114
+ $output['useTwitter'] = ( isset( $input['useTwitter'] ) && $input['useTwitter'] == 'true' );
115
+ $output['useHatena'] = ( isset( $input['useHatena'] ) && $input['useHatena'] == 'true' );
116
+ $output['usePocket'] = ( isset( $input['usePocket'] ) && $input['usePocket'] == 'true' );
117
+ $output['useLine'] = ( isset( $input['useLine'] ) && $input['useLine'] == 'true' );
118
+
119
+ /*
120
+ SNSボタンの塗りつぶし関連は管理画面に値がないので、カスタマイザーで保存された値を入れる必要がある
121
+ 既に保存されている値をアップデート用にそのまま返すだけなのでサニタイズしていない
122
+ */
123
+ $options_old = get_option( 'vkExUnit_sns_options' );
124
+ $output['snsBtn_bg_fill_not'] = ( ! empty( $options_old['snsBtn_bg_fill_not'] ) ) ? $options_old['snsBtn_bg_fill_not'] : '';
125
+ $output['snsBtn_color'] = ( ! empty( $options_old['snsBtn_color'] ) ) ? $options_old['snsBtn_color'] : '';
126
+
127
+ return apply_filters( 'vkExUnit_sns_options_validate', $output, $input, $defaults );
128
+ }
129
+
130
+ /*
131
+ set global $vkExUnit_sns_options
132
+ /*-------------------------------------------*/
133
+ add_action( 'wp_head', 'vkExUnit_set_sns_options', 1 );
134
+ function vkExUnit_set_sns_options() {
135
+ global $vkExUnit_sns_options;
136
+ $vkExUnit_sns_options = veu_get_sns_options();
137
+ }
138
+
139
+ /*
140
+ Add facebook aprication id
141
+ /*-------------------------------------------*/
142
+ add_action( 'wp_footer', 'exUnit_print_fbId_script' );
143
+ function exUnit_print_fbId_script() {
144
+ ?>
145
+ <div id="fb-root"></div>
146
+ <?php
147
+ $options = veu_get_sns_options();
148
+ $fbAppId = ( isset( $options['fbAppId'] ) ) ? $options['fbAppId'] : '';
149
+ ?>
150
+ <script>(function(d, s, id) {
151
+ var js, fjs = d.getElementsByTagName(s)[0];
152
+ if (d.getElementById(id)) return;
153
+ js = d.createElement(s); js.id = id;
154
+ js.src = "//connect.facebook.net/<?php echo esc_attr( _x( 'en_US', 'facebook language code', 'vk-all-in-one-expansion-unit' ) ); ?>/sdk.js#xfbml=1&version=v2.9&appId=<?php echo esc_html( $fbAppId ); ?>";
155
+ fjs.parentNode.insertBefore(js, fjs);
156
+ }(document, 'script', 'facebook-jssdk'));</script>
157
+ <?php
158
+ // endif;
159
+ }
160
+
161
+ $vkExUnit_sns_options = veu_get_sns_options();
162
+
163
+ require dirname( __FILE__ ) . '/widget-fb-page-plugin.php';
164
+ require dirname( __FILE__ ) . '/widget-twitter.php';
165
+
166
+
167
+ /*
168
+ VEU_Metabox 内の get_post_type が実行タイミングによっては
169
+ カスタム投稿タイプマネージャーで作成した投稿タイプが取得できないために
170
+ admin_menu のタイミングで読み込んでいる
171
+ */
172
+ add_action(
173
+ 'admin_menu', function() {
174
+ require dirname( __FILE__ ) . '/class-veu-metabox-sns-title.php';
175
+ }
176
+ );
177
+
178
+ if ( $vkExUnit_sns_options['enableOGTags'] == true ) {
179
+ require dirname( __FILE__ ) . '/function_og.php';
180
+ }
181
+ if ( $vkExUnit_sns_options['enableSnsBtns'] == true ) {
182
+ // シェアボタンを表示する設定の読み込み
183
+ require dirname( __FILE__ ) . '/function_snsBtns.php';
184
+ /*
185
+ VEU_Metabox 内の get_post_type が実行タイミングによっては
186
+ カスタム投稿タイプマネージャーで作成した投稿タイプが取得できないために
187
+ admin_menu のタイミングで読み込んでいる
188
+ */
189
+ add_action(
190
+ 'admin_menu', function() {
191
+ require dirname( __FILE__ ) . '/class-veu-metabox-sns-button.php';
192
+ }
193
+ );
194
+ }
195
+ if ( $vkExUnit_sns_options['enableTwitterCardTags'] == true ) {
196
+ require dirname( __FILE__ ) . '/function_twitterCard.php';
197
+ }
198
+ if ( $vkExUnit_sns_options['enableFollowMe'] == true ) {
199
+ require dirname( __FILE__ ) . '/function_follow.php';
200
+ }
201
+
202
+
203
+
204
+
205
+ /*
206
+ Add setting page
207
+ /*-------------------------------------------*/
208
+
209
+ function vkExUnit_add_sns_options_page() {
210
+ require dirname( __FILE__ ) . '/sns_admin.php';
211
+
212
+ }
{plugins → inc}/sns/sns_admin.php RENAMED
@@ -1,8 +1,9 @@
1
  <h3><?php echo __( 'SNS Settings' ); ?></h3>
2
  <?php
3
  $options = veu_get_sns_options();
4
- /*-------------------------------------------*/
5
- /* SNS
 
6
  /*-------------------------------------------*/
7
  ?>
8
  <div id="snsSetting" class="sectionBox">
@@ -10,54 +11,60 @@
10
  <!-- OGP hidden -->
11
  <table class="form-table">
12
  <tr>
13
- <th><?php _e( 'facebook application ID', 'vkExUnit' ); ?></th>
 
 
 
 
 
 
14
  <td><input type="text" name="vkExUnit_sns_options[fbAppId]" id="fbAppId" value="<?php echo esc_attr( $options['fbAppId'] ); ?>" /><br />
15
- <span>[ <a href="https://developers.facebook.com/apps" target="_blank">&raquo; <?php _e( 'I will check and get the application ID', 'vkExUnit' ); ?></a> ]</span><br />
16
- <?php _e( '* If an application ID is not specified, neither a Like button nor the comment field displays and operates correctly.', 'vkExUnit' ); ?><br />
17
- <?php _e( 'Please search for terms as [get Facebook application ID] If you do not know much about how to get application ID for Facebook.', 'vkExUnit' ); ?>
18
  </td>
19
  </tr>
20
  <tr>
21
- <th><?php _e( 'facebook page URL', 'vkExUnit' ); ?></th>
22
  <td><input type="text" name="vkExUnit_sns_options[fbPageUrl]" id="fbPageUrl" value="<?php echo esc_url( $options['fbPageUrl'] ); ?>" /></td>
23
  </tr>
24
  <!-- OGP -->
25
  <tr>
26
- <th><?php _e( 'OG default image', 'vkExUnit' ); ?></th>
27
- <td><?php _e( 'If, for example someone pressed the Facebook [Like] button, this is the image that appears on the Facebook timeline.', 'vkExUnit' ); ?><br />
28
- <?php _e( 'If a featured image is specified for the page, it takes precedence.', 'vkExUnit' ); ?><br />
29
  <input type="text" name="vkExUnit_sns_options[ogImage]" id="ogImage" value="<?php echo esc_attr( $options['ogImage'] ); ?>" />
30
- <button id="media_src_ogImage" class="media_btn button"><?php _e( 'Select an image', 'vkExUnit' ); ?></button><br />
31
- <span><?php _e( 'ex) ', 'vkExUnit' ); ?>https://www.vektor-inc.co.jp/images/ogImage.png</span><br />
32
- <?php _e( '* Picture sizes are 1280x720 pixels or more and picture ratio 16:9 is recommended.', 'vkExUnit' ); ?>
33
  </td>
34
  </tr>
35
  <tr>
36
- <th><?php _e( 'twitter ID', 'vkExUnit' ); ?></th>
37
  <td>@<input type="text" name="vkExUnit_sns_options[twitterId]" id="twitterId" value="<?php echo esc_attr( $options['twitterId'] ); ?>" /></td>
38
  </tr>
39
 
40
  <tr>
41
- <th><?php _e( 'OG tags', 'vkExUnit' ); ?></th>
42
  <td><label>
43
- <input type="checkbox" name="vkExUnit_sns_options[enableOGTags]" id="enableOGTags" value="true" <?php echo ( $options['enableOGTags'] ) ? 'checked' : ''; ?> /><?php _e( 'Print the OG tags', 'vkExUnit' ); ?></label>
44
- <p><?php _e( 'If other plug-ins are used for the OG, do not output the OG using this plugin.', 'vkExUnit' ); ?></p>
45
  </td>
46
  </tr>
47
 
48
  <tr>
49
- <th><?php _e( 'Twitter Card tags', 'vkExUnit' ); ?></th>
50
  <td><label>
51
- <input type="checkbox" name="vkExUnit_sns_options[enableTwitterCardTags]" id="enableTwitterCardTags" value="true" <?php echo ( $options['enableTwitterCardTags'] ) ? 'checked' : ''; ?> /><?php _e( 'Print the Twitter Card tags', 'vkExUnit' ); ?></label>
52
  </td>
53
  </tr>
54
 
55
  <tr>
56
- <th><label for="enableSnsBtns"><?php _e( 'Social bookmark buttons', 'vkExUnit' ); ?></label></th>
57
- <td><label><input type="checkbox" name="vkExUnit_sns_options[enableSnsBtns]" id="enableSnsBtns" value="true" <?php echo ( $options['enableSnsBtns'] ) ? 'checked' : ''; ?> /><?php _e( 'Print the social bookmark buttons', 'vkExUnit' ); ?></label>
58
 
59
  <dl>
60
- <dt><?php _e( 'Exclude Post Types', 'vkExUnit' ); ?></dt>
61
  <dd>
62
  <?php
63
  $args = array(
@@ -70,7 +77,7 @@ vk_the_post_type_check_list( $args );
70
  </dl>
71
 
72
  <dl>
73
- <dt><?php _e( 'Exclude Post ID', 'vkExUnit' ); ?></dt>
74
  <dd>
75
  <input type="text" id="snsBtn_ignorePosts" name="vkExUnit_sns_options[snsBtn_ignorePosts]" value="
76
  <?php
@@ -80,11 +87,11 @@ if ( isset( $options['snsBtn_ignorePosts'] ) ) {
80
  " />
81
  <br/>
82
  <?php
83
- _e( 'if you need filtering by post_ID, add the ignore post_ID separate by ",".', 'vkExUnit' );
84
  echo '<br/>';
85
- _e( 'if empty this area, I will do not filtering.', 'vkExUnit' );
86
  echo '<br/>';
87
- _e( 'example', 'vkExUnit' );
88
  ?>
89
  (12,31,553)
90
  </dd>
@@ -93,17 +100,7 @@ _e( 'example', 'vkExUnit' );
93
  </tr>
94
 
95
  <tr>
96
- <th><label for="enableFollowMe"><?php _e( 'Follow me box', 'vkExUnit' ); ?></label></th>
97
- <td><label><input type="checkbox" name="vkExUnit_sns_options[enableFollowMe]" id="enableFollowMe" value="true" <?php echo ( $options['enableFollowMe'] ) ? 'checked' : ''; ?> /><?php _e( 'Print the Follow me box', 'vkExUnit' ); ?></label>
98
- <dl>
99
- <dt><?php _e( 'Follow me box title', 'vkExUnit' ); ?></dt>
100
- <dd><input type="text" name="vkExUnit_sns_options[followMe_title]" id="followMe_title" value="<?php echo esc_attr( $options['followMe_title'] ); ?>" /></dd>
101
- </dl>
102
- </td>
103
- </tr>
104
-
105
- <tr>
106
- <th><label><?php _e( 'Share button for display', 'vkExUnit' ); ?></label></th>
107
  <td><label></label>
108
  <ul>
109
  <li><label><input type="checkbox" name="vkExUnit_sns_options[useFacebook]" value="true"
@@ -111,35 +108,64 @@ _e( 'example', 'vkExUnit' );
111
  if ( $options['useFacebook'] ) {
112
  echo 'checked';}
113
  ?>
114
- /> <?php _e( 'Facebook', 'vkExUnit' ); ?></label></li>
115
  <li><label><input type="checkbox" name="vkExUnit_sns_options[useTwitter]" value="true"
116
  <?php
117
  if ( $options['useTwitter'] ) {
118
  echo 'checked';}
119
  ?>
120
- /> <?php _e( 'Twitter', 'vkExUnit' ); ?></label></li>
121
  <li><label><input type="checkbox" name="vkExUnit_sns_options[useHatena]" value="true"
122
  <?php
123
  if ( $options['useHatena'] ) {
124
  echo 'checked';}
125
  ?>
126
- /> <?php _e( 'Hatena', 'vkExUnit' ); ?></label></li>
127
  <li><label><input type="checkbox" name="vkExUnit_sns_options[usePocket]" value="true"
128
  <?php
129
  if ( $options['usePocket'] ) {
130
  echo 'checked';}
131
  ?>
132
- /> <?php _e( 'Pocket', 'vkExUnit' ); ?></label></li>
133
  <li><label><input type="checkbox" name="vkExUnit_sns_options[useLine]" value="true"
134
  <?php
135
  if ( $options['useLine'] ) {
136
  echo 'checked';}
137
  ?>
138
- /> <?php _e( 'LINE (mobile only)', 'vkExUnit' ); ?></label></li>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
139
  </ul>
140
  </td>
141
  </tr>
142
 
 
 
 
 
 
 
 
 
 
143
 
144
  </table>
145
 
1
  <h3><?php echo __( 'SNS Settings' ); ?></h3>
2
  <?php
3
  $options = veu_get_sns_options();
4
+
5
+ /*
6
+ SNS
7
  /*-------------------------------------------*/
8
  ?>
9
  <div id="snsSetting" class="sectionBox">
11
  <!-- OGP hidden -->
12
  <table class="form-table">
13
  <tr>
14
+ <th><?php _e( 'Post title custom for SNS', 'vk-all-in-one-expansion-unit' ); ?></th>
15
+ <td><label>
16
+ <input type="checkbox" name="vkExUnit_sns_options[snsTitle_use_only_postTitle]" id="snsTitle_use_only_postTitle" value="true" <?php echo ( $options['snsTitle_use_only_postTitle'] ) ? 'checked' : ''; ?> /><?php _e( 'For SNS title be composed by post title only.', 'vk-all-in-one-expansion-unit' ); ?></label>
17
+ </td>
18
+ </tr>
19
+ <tr>
20
+ <th><?php _e( 'facebook application ID', 'vk-all-in-one-expansion-unit' ); ?></th>
21
  <td><input type="text" name="vkExUnit_sns_options[fbAppId]" id="fbAppId" value="<?php echo esc_attr( $options['fbAppId'] ); ?>" /><br />
22
+ <span>[ <a href="https://developers.facebook.com/apps" target="_blank">&raquo; <?php _e( 'I will check and get the application ID', 'vk-all-in-one-expansion-unit' ); ?></a> ]</span><br />
23
+ <?php _e( '* If an application ID is not specified, neither a Like button nor the comment field displays and operates correctly.', 'vk-all-in-one-expansion-unit' ); ?><br />
24
+ <?php _e( 'Please search for terms as [get Facebook application ID] If you do not know much about how to get application ID for Facebook.', 'vk-all-in-one-expansion-unit' ); ?>
25
  </td>
26
  </tr>
27
  <tr>
28
+ <th><?php _e( 'facebook page URL', 'vk-all-in-one-expansion-unit' ); ?></th>
29
  <td><input type="text" name="vkExUnit_sns_options[fbPageUrl]" id="fbPageUrl" value="<?php echo esc_url( $options['fbPageUrl'] ); ?>" /></td>
30
  </tr>
31
  <!-- OGP -->
32
  <tr>
33
+ <th><?php _e( 'OG default image', 'vk-all-in-one-expansion-unit' ); ?></th>
34
+ <td><?php _e( 'If, for example someone pressed the Facebook [Like] button, this is the image that appears on the Facebook timeline.', 'vk-all-in-one-expansion-unit' ); ?><br />
35
+ <?php _e( 'If a featured image is specified for the page, it takes precedence.', 'vk-all-in-one-expansion-unit' ); ?><br />
36
  <input type="text" name="vkExUnit_sns_options[ogImage]" id="ogImage" value="<?php echo esc_attr( $options['ogImage'] ); ?>" />
37
+ <button id="media_src_ogImage" class="media_btn button"><?php _e( 'Select an image', 'vk-all-in-one-expansion-unit' ); ?></button><br />
38
+ <span><?php _e( 'ex) ', 'vk-all-in-one-expansion-unit' ); ?>https://www.vektor-inc.co.jp/images/ogImage.png</span><br />
39
+ <?php _e( '* Picture sizes are 1280x720 pixels or more and picture ratio 16:9 is recommended.', 'vk-all-in-one-expansion-unit' ); ?>
40
  </td>
41
  </tr>
42
  <tr>
43
+ <th><?php _e( 'twitter ID', 'vk-all-in-one-expansion-unit' ); ?></th>
44
  <td>@<input type="text" name="vkExUnit_sns_options[twitterId]" id="twitterId" value="<?php echo esc_attr( $options['twitterId'] ); ?>" /></td>
45
  </tr>
46
 
47
  <tr>
48
+ <th><?php _e( 'OG tags', 'vk-all-in-one-expansion-unit' ); ?></th>
49
  <td><label>
50
+ <input type="checkbox" name="vkExUnit_sns_options[enableOGTags]" id="enableOGTags" value="true" <?php echo ( $options['enableOGTags'] ) ? 'checked' : ''; ?> /><?php _e( 'Print the OG tags', 'vk-all-in-one-expansion-unit' ); ?></label>
51
+ <p><?php _e( 'If other plug-ins are used for the OG, do not output the OG using this plugin.', 'vk-all-in-one-expansion-unit' ); ?></p>
52
  </td>
53
  </tr>
54
 
55
  <tr>
56
+ <th><?php _e( 'Twitter Card tags', 'vk-all-in-one-expansion-unit' ); ?></th>
57
  <td><label>
58
+ <input type="checkbox" name="vkExUnit_sns_options[enableTwitterCardTags]" id="enableTwitterCardTags" value="true" <?php echo ( $options['enableTwitterCardTags'] ) ? 'checked' : ''; ?> /><?php _e( 'Print the Twitter Card tags', 'vk-all-in-one-expansion-unit' ); ?></label>
59
  </td>
60
  </tr>
61
 
62
  <tr>
63
+ <th><label for="enableSnsBtns"><?php _e( 'Social bookmark buttons', 'vk-all-in-one-expansion-unit' ); ?></label></th>
64
+ <td><label><input type="checkbox" name="vkExUnit_sns_options[enableSnsBtns]" id="enableSnsBtns" value="true" <?php echo ( $options['enableSnsBtns'] ) ? 'checked' : ''; ?> /><?php _e( 'Print the social bookmark buttons', 'vk-all-in-one-expansion-unit' ); ?></label>
65
 
66
  <dl>
67
+ <dt><?php _e( 'Exclude Post Types', 'vk-all-in-one-expansion-unit' ); ?></dt>
68
  <dd>
69
  <?php
70
  $args = array(
77
  </dl>
78
 
79
  <dl>
80
+ <dt><?php _e( 'Exclude Post ID', 'vk-all-in-one-expansion-unit' ); ?></dt>
81
  <dd>
82
  <input type="text" id="snsBtn_ignorePosts" name="vkExUnit_sns_options[snsBtn_ignorePosts]" value="
83
  <?php
87
  " />
88
  <br/>
89
  <?php
90
+ _e( 'if you need filtering by post_ID, add the ignore post_ID separate by ",".', 'vk-all-in-one-expansion-unit' );
91
  echo '<br/>';
92
+ _e( 'if empty this area, I will do not filtering.', 'vk-all-in-one-expansion-unit' );
93
  echo '<br/>';
94
+ _e( 'example', 'vk-all-in-one-expansion-unit' );
95
  ?>
96
  (12,31,553)
97
  </dd>
100
  </tr>
101
 
102
  <tr>
103
+ <th><label><?php _e( 'Share button for display', 'vk-all-in-one-expansion-unit' ); ?></label></th>
 
 
 
 
 
 
 
 
 
 
104
  <td><label></label>
105
  <ul>
106
  <li><label><input type="checkbox" name="vkExUnit_sns_options[useFacebook]" value="true"
108
  if ( $options['useFacebook'] ) {
109
  echo 'checked';}
110
  ?>
111
+ /> <?php _e( 'Facebook', 'vk-all-in-one-expansion-unit' ); ?></label></li>
112
  <li><label><input type="checkbox" name="vkExUnit_sns_options[useTwitter]" value="true"
113
  <?php
114
  if ( $options['useTwitter'] ) {
115
  echo 'checked';}
116
  ?>
117
+ /> <?php _e( 'Twitter', 'vk-all-in-one-expansion-unit' ); ?></label></li>
118
  <li><label><input type="checkbox" name="vkExUnit_sns_options[useHatena]" value="true"
119
  <?php
120
  if ( $options['useHatena'] ) {
121
  echo 'checked';}
122
  ?>
123
+ /> <?php _e( 'Hatena', 'vk-all-in-one-expansion-unit' ); ?></label></li>
124
  <li><label><input type="checkbox" name="vkExUnit_sns_options[usePocket]" value="true"
125
  <?php
126
  if ( $options['usePocket'] ) {
127
  echo 'checked';}
128
  ?>
129
+ /> <?php _e( 'Pocket', 'vk-all-in-one-expansion-unit' ); ?></label></li>
130
  <li><label><input type="checkbox" name="vkExUnit_sns_options[useLine]" value="true"
131
  <?php
132
  if ( $options['useLine'] ) {
133
  echo 'checked';}
134
  ?>
135
+ /> <?php _e( 'LINE (mobile only)', 'vk-all-in-one-expansion-unit' ); ?></label></li>
136
+ </ul>
137
+ </td>
138
+ </tr>
139
+
140
+ <tr>
141
+ <th><label><?php _e( 'Share button display Position', 'vk-all-in-one-expansion-unit' ); ?></label></th>
142
+ <td><label></label>
143
+ <ul>
144
+ <li><label><input type="checkbox" name="vkExUnit_sns_options[snsBtn_position][before]" value="true"
145
+ <?php
146
+ if ( ! empty( $options['snsBtn_position']['before'] ) ) {
147
+ echo 'checked';}
148
+ ?>
149
+ /> <?php _e( 'Before content', 'vk-all-in-one-expansion-unit' ); ?></label></li>
150
+ <li><label><input type="checkbox" name="vkExUnit_sns_options[snsBtn_position][after]" value="true"
151
+ <?php
152
+ if ( ! empty( $options['snsBtn_position']['after'] ) ) {
153
+ echo 'checked';}
154
+ ?>
155
+ /> <?php _e( 'After content', 'vk-all-in-one-expansion-unit' ); ?></label></li>
156
  </ul>
157
  </td>
158
  </tr>
159
 
160
+ <tr>
161
+ <th><label for="enableFollowMe"><?php _e( 'Follow me box', 'vk-all-in-one-expansion-unit' ); ?></label></th>
162
+ <td><label><input type="checkbox" name="vkExUnit_sns_options[enableFollowMe]" id="enableFollowMe" value="true" <?php echo ( $options['enableFollowMe'] ) ? 'checked' : ''; ?> /><?php _e( 'Print the Follow me box', 'vk-all-in-one-expansion-unit' ); ?></label>
163
+ <dl>
164
+ <dt><?php _e( 'Follow me box title', 'vk-all-in-one-expansion-unit' ); ?></dt>
165
+ <dd><input type="text" name="vkExUnit_sns_options[followMe_title]" id="followMe_title" value="<?php echo esc_attr( $options['followMe_title'] ); ?>" /></dd>
166
+ </dl>
167
+ </td>
168
+ </tr>
169
 
170
  </table>
171
 
{plugins → inc}/sns/sns_customizer.php RENAMED
@@ -1,7 +1,6 @@
1
  <?php
2
-
3
- /*-------------------------------------------*/
4
- /* Add Customize Panel
5
  /*-------------------------------------------*/
6
  add_filter( 'veu_customize_panel_activation', 'veu_customize_panel_activation_sns' );
7
  function veu_customize_panel_activation_sns() {
@@ -13,27 +12,66 @@ if ( apply_filters( 'veu_customize_panel_activation', false ) ) {
13
  }
14
 
15
  function veu_customize_register_sns( $wp_customize ) {
16
-
17
- /*-------------------------------------------*/
18
- /* SNS Settings
19
  /*-------------------------------------------*/
20
- //1. テーマカスタマイザー上に新しいセクションを追加
21
  $wp_customize->add_section(
22
  'veu_sns_setting',
23
  array(
24
- 'title' => __( 'SNS Settings', 'vkExUnit' ),
25
  'priority' => 1,
26
  'panel' => 'veu_setting',
27
  )
28
  );
29
 
30
- //2. WPデータベースに新しいテーマ設定を追加
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
31
  // Facebook_title
32
  $wp_customize->add_setting( 'Facebook_title', array( 'sanitize_callback' => 'sanitize_text_field' ) );
33
  $wp_customize->add_control(
34
  new ExUnit_Custom_Html(
35
  $wp_customize, 'Facebook_title', array(
36
- 'label' => __( 'Facebook Settings', 'vkExUnit' ),
37
  'section' => 'veu_sns_setting',
38
  'type' => 'text',
39
  'custom_title_sub' => '',
@@ -56,7 +94,7 @@ function veu_customize_register_sns( $wp_customize ) {
56
  $wp_customize->add_control(
57
  'fbAppId',
58
  array(
59
- 'label' => __( 'Facebook application ID', 'vkExUnit' ),
60
  'section' => 'veu_sns_setting',
61
  'settings' => 'vkExUnit_sns_options[fbAppId]',
62
  'type' => 'text',
@@ -77,7 +115,7 @@ function veu_customize_register_sns( $wp_customize ) {
77
  $wp_customize->add_control(
78
  'fbPageUrl',
79
  array(
80
- 'label' => __( 'Facebook Page URL', 'vkExUnit' ),
81
  'section' => 'veu_sns_setting',
82
  'settings' => 'vkExUnit_sns_options[fbPageUrl]',
83
  'type' => 'text',
@@ -100,20 +138,23 @@ function veu_customize_register_sns( $wp_customize ) {
100
  $wp_customize,
101
  'ogImage',
102
  array(
103
- 'label' => __( 'OG default image', 'vkExUnit' ),
104
  'section' => 'veu_sns_setting',
105
  'settings' => 'vkExUnit_sns_options[ogImage]',
106
- 'description' => __( 'If, for example someone pressed the Facebook [Like] button, this is the image that appears on the Facebook timeline.<br>If a featured image is specified for the page, it takes precedence.<br>* Picture sizes are 1280x720 pixels or more and picture ratio 16:9 is recommended.', 'vkExUnit' ),
107
  )
108
  )
109
  );
110
 
 
 
 
111
  // Print the OG_title
112
  $wp_customize->add_setting( 'Print the OG_title', array( 'sanitize_callback' => 'sanitize_text_field' ) );
113
  $wp_customize->add_control(
114
  new ExUnit_Custom_Html(
115
  $wp_customize, 'Print the OG_title', array(
116
- 'label' => __( 'OG Settings', 'vkExUnit' ),
117
  'section' => 'veu_sns_setting',
118
  'type' => 'text',
119
  'custom_title_sub' => '',
@@ -136,20 +177,23 @@ function veu_customize_register_sns( $wp_customize ) {
136
  $wp_customize->add_control(
137
  'enableOGTags',
138
  array(
139
- 'label' => __( 'Print the OG tags', 'vkExUnit' ),
140
  'section' => 'veu_sns_setting',
141
  'settings' => 'vkExUnit_sns_options[enableOGTags]',
142
  'type' => 'checkbox',
143
- 'description' => __( 'If other plug-ins are used for the OG, do not output the OG using this plugin.', 'vkExUnit' ),
144
  )
145
  );
146
 
 
 
 
147
  // Twitter_application_ID_title
148
  $wp_customize->add_setting( 'Twitter_application_ID_title', array( 'sanitize_callback' => 'sanitize_text_field' ) );
149
  $wp_customize->add_control(
150
  new ExUnit_Custom_Html(
151
  $wp_customize, 'Twitter_application_ID_title', array(
152
- 'label' => __( 'Twitter Settings', 'vkExUnit' ),
153
  'section' => 'veu_sns_setting',
154
  'type' => 'text',
155
  'custom_title_sub' => '',
@@ -172,7 +216,7 @@ function veu_customize_register_sns( $wp_customize ) {
172
  $wp_customize->add_control(
173
  new ExUnit_Custom_Text_Control(
174
  $wp_customize, 'twitterId', array(
175
- 'label' => __( 'Twitter ID', 'vkExUnit' ),
176
  'section' => 'veu_sns_setting',
177
  'settings' => 'vkExUnit_sns_options[twitterId]',
178
  'type' => 'text',
@@ -196,24 +240,24 @@ function veu_customize_register_sns( $wp_customize ) {
196
  $wp_customize->add_control(
197
  'enableTwitterCardTags',
198
  array(
199
- 'label' => __( 'Twitter Card tags', 'vkExUnit' ),
200
  'section' => 'veu_sns_setting',
201
  'settings' => 'vkExUnit_sns_options[enableTwitterCardTags]',
202
  'type' => 'checkbox',
203
- 'description' => __( 'Print the Twitter Card tags', 'vkExUnit' ),
204
  )
205
  );
206
 
 
 
207
  /*-------------------------------------------*/
208
- /* Share_button
209
- /*-------------------------------------------*/
210
 
211
  // share_button_title
212
  $wp_customize->add_setting( 'share_button_title', array( 'sanitize_callback' => 'sanitize_text_field' ) );
213
  $wp_customize->add_control(
214
  new ExUnit_Custom_Html(
215
  $wp_customize, 'share_button_title', array(
216
- 'label' => __( 'Social bookmark buttons', 'vkExUnit' ),
217
  'section' => 'veu_sns_setting',
218
  'type' => 'text',
219
  'custom_title_sub' => '',
@@ -236,65 +280,22 @@ function veu_customize_register_sns( $wp_customize ) {
236
  $wp_customize->add_control(
237
  'enableSnsBtns',
238
  array(
239
- 'label' => __( 'Print the social bookmark buttons', 'vkExUnit' ),
240
  'section' => 'veu_sns_setting',
241
  'settings' => 'vkExUnit_sns_options[enableSnsBtns]',
242
  'type' => 'checkbox',
243
  )
244
  );
245
 
246
- // share_button_title
247
- $wp_customize->add_setting( 'share_button_exclude_title', array( 'sanitize_callback' => 'sanitize_text_field' ) );
248
- $wp_customize->add_control(
249
- new ExUnit_Custom_Html(
250
- $wp_customize, 'share_button_exclude_title', array(
251
- 'label' => '',
252
- 'section' => 'veu_sns_setting',
253
- 'type' => 'text',
254
- 'custom_title_sub' => __( 'Exclude Post Types', 'vkExUnit' ),
255
- 'custom_html' => '',
256
- )
257
- )
258
- );
259
-
260
- $args = array(
261
- 'public' => true,
262
- );
263
- $post_types = get_post_types( $args, 'object' );
264
- foreach ( $post_types as $key => $value ) {
265
- if ( $key != 'attachment' ) {
266
- // Exclude Post Types(post,page)
267
- $wp_customize->add_setting(
268
- 'vkExUnit_sns_options[snsBtn_exclude_post_types][' . $key . ']',
269
- array(
270
- 'default' => false,
271
- 'type' => 'option', // 保存先 option or theme_mod
272
- 'capability' => 'edit_theme_options',
273
- 'sanitize_callback' => 'veu_sanitize_boolean',
274
- )
275
- );
276
-
277
- $wp_customize->add_control(
278
- 'snsBtn_exclude_post_types_' . $key,
279
- array(
280
- 'label' => esc_html( $value->label ),
281
- 'section' => 'veu_sns_setting',
282
- 'settings' => 'vkExUnit_sns_options[snsBtn_exclude_post_types][' . $key . ']',
283
- 'type' => 'checkbox',
284
- )
285
- );
286
- }
287
- }
288
-
289
- // share_button_bg_title
290
- $wp_customize->add_setting( 'share_button_bg_title', array( 'sanitize_callback' => 'sanitize_text_field' ) );
291
  $wp_customize->add_control(
292
  new ExUnit_Custom_Html(
293
- $wp_customize, 'share_button_bg_title', array(
294
  'label' => '',
295
  'section' => 'veu_sns_setting',
296
  'type' => 'text',
297
- 'custom_title_sub' => __( 'Social button style setting', 'vkExUnit' ),
298
  'custom_html' => '',
299
  )
300
  )
@@ -314,7 +315,7 @@ function veu_customize_register_sns( $wp_customize ) {
314
  $wp_customize->add_control(
315
  'snsBtn_bg_fill_not',
316
  array(
317
- 'label' => __( 'No background', 'vkExUnit' ),
318
  'section' => 'veu_sns_setting',
319
  'settings' => 'vkExUnit_sns_options[snsBtn_bg_fill_not]',
320
  'type' => 'checkbox',
@@ -336,28 +337,125 @@ function veu_customize_register_sns( $wp_customize ) {
336
  new WP_Customize_Color_Control(
337
  $wp_customize, 'snsBtn_color',
338
  array(
339
- 'label' => __( 'Btn color', 'vkExUnit' ),
340
  'section' => 'veu_sns_setting',
341
  'settings' => 'vkExUnit_sns_options[snsBtn_color]',
342
  )
343
  )
344
  );
345
 
346
- // Follow_me_box_use_title
347
- $wp_customize->add_setting( 'Follow_me_box_use_title', array( 'sanitize_callback' => 'sanitize_text_field' ) );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
348
  $wp_customize->add_control(
349
  new ExUnit_Custom_Html(
350
  $wp_customize, 'Follow_me_box_use_title', array(
351
  'label' => '',
352
  'section' => 'veu_sns_setting',
353
  'type' => 'text',
354
- 'custom_title_sub' => __( 'Share button for display', 'vkExUnit' ),
355
  'custom_html' => '',
356
  )
357
  )
358
  );
359
 
360
- // Follow me box(Facebook)
361
  $wp_customize->add_setting(
362
  'vkExUnit_sns_options[useFacebook]',
363
  array(
@@ -371,14 +469,14 @@ function veu_customize_register_sns( $wp_customize ) {
371
  $wp_customize->add_control(
372
  'useFacebook',
373
  array(
374
- 'label' => __( 'Facebook ', 'vkExUnit' ),
375
  'section' => 'veu_sns_setting',
376
  'settings' => 'vkExUnit_sns_options[useFacebook]',
377
  'type' => 'checkbox',
378
  )
379
  );
380
 
381
- // Follow me box(Twitter)
382
  $wp_customize->add_setting(
383
  'vkExUnit_sns_options[useTwitter]',
384
  array(
@@ -392,14 +490,14 @@ function veu_customize_register_sns( $wp_customize ) {
392
  $wp_customize->add_control(
393
  'useTwitter',
394
  array(
395
- 'label' => __( 'Twitter', 'vkExUnit' ),
396
  'section' => 'veu_sns_setting',
397
  'settings' => 'vkExUnit_sns_options[useTwitter]',
398
  'type' => 'checkbox',
399
  )
400
  );
401
 
402
- // Follow me box(Hatena)
403
  $wp_customize->add_setting(
404
  'vkExUnit_sns_options[useHatena]',
405
  array(
@@ -413,14 +511,14 @@ function veu_customize_register_sns( $wp_customize ) {
413
  $wp_customize->add_control(
414
  'useHatena',
415
  array(
416
- 'label' => __( 'Hatena', 'vkExUnit' ),
417
  'section' => 'veu_sns_setting',
418
  'settings' => 'vkExUnit_sns_options[useHatena]',
419
  'type' => 'checkbox',
420
  )
421
  );
422
 
423
- // Follow me box(Pocket)
424
  $wp_customize->add_setting(
425
  'vkExUnit_sns_options[usePocket]',
426
  array(
@@ -434,14 +532,14 @@ function veu_customize_register_sns( $wp_customize ) {
434
  $wp_customize->add_control(
435
  'usePocket',
436
  array(
437
- 'label' => __( 'Pocket', 'vkExUnit' ),
438
  'section' => 'veu_sns_setting',
439
  'settings' => 'vkExUnit_sns_options[usePocket]',
440
  'type' => 'checkbox',
441
  )
442
  );
443
 
444
- // Follow me box(LINE)
445
  $wp_customize->add_setting(
446
  'vkExUnit_sns_options[useLine]',
447
  array(
@@ -455,19 +553,22 @@ function veu_customize_register_sns( $wp_customize ) {
455
  $wp_customize->add_control(
456
  'useLine',
457
  array(
458
- 'label' => __( 'LINE (mobile only)', 'vkExUnit' ),
459
  'section' => 'veu_sns_setting',
460
  'settings' => 'vkExUnit_sns_options[useLine]',
461
  'type' => 'checkbox',
462
  )
463
  );
464
 
465
- // Follow_me_box_title
466
- $wp_customize->add_setting( 'Follow_me_box_title', array( 'sanitize_callback' => 'sanitize_text_field' ) );
 
 
 
467
  $wp_customize->add_control(
468
  new ExUnit_Custom_Html(
469
  $wp_customize, 'Follow_me_box_title', array(
470
- 'label' => __( 'Follow me box', 'vkExUnit' ),
471
  'section' => 'veu_sns_setting',
472
  'type' => 'text',
473
  'custom_title_sub' => '',
@@ -480,12 +581,21 @@ function veu_customize_register_sns( $wp_customize ) {
480
  $wp_customize->add_setting(
481
  'vkExUnit_sns_options[enableFollowMe]',
482
  array(
483
- 'default' => false,
484
  'type' => 'option', // 保存先 option or theme_mod
485
  'capability' => 'edit_theme_options',
486
  'sanitize_callback' => 'veu_sanitize_boolean',
487
  )
488
  );
 
 
 
 
 
 
 
 
 
489
 
490
  // Follow me box title
491
  $wp_customize->add_setting(
@@ -497,17 +607,19 @@ function veu_customize_register_sns( $wp_customize ) {
497
  'sanitize_callback' => 'sanitize_text_field',
498
  )
499
  );
500
-
501
  $wp_customize->add_control(
502
  'followMe_title',
503
  array(
504
- 'label' => __( 'Follow me box title', 'vkExUnit' ),
505
  'section' => 'veu_sns_setting',
506
  'settings' => 'vkExUnit_sns_options[followMe_title]',
507
  'type' => 'text',
508
  )
509
  );
510
- // Add Edit Customize Link Btn
 
 
 
511
  $wp_customize->selective_refresh->add_partial(
512
  'vkExUnit_sns_options[followMe_title]', array(
513
  'selector' => '.followSet_title',
@@ -515,13 +627,14 @@ function veu_customize_register_sns( $wp_customize ) {
515
  )
516
  );
517
 
 
 
518
  /*-------------------------------------------*/
519
- /* Add Edit Customize Link Btn
520
- /*-------------------------------------------*/
521
  $wp_customize->selective_refresh->add_partial(
522
  'vkExUnit_sns_options[snsBtn_bg_fill_not]', array(
523
  'selector' => '.veu_socialSet',
524
  'render_callback' => '',
525
  )
526
  );
 
527
  }
1
  <?php
2
+ /*
3
+ Add Customize Panel
 
4
  /*-------------------------------------------*/
5
  add_filter( 'veu_customize_panel_activation', 'veu_customize_panel_activation_sns' );
6
  function veu_customize_panel_activation_sns() {
12
  }
13
 
14
  function veu_customize_register_sns( $wp_customize ) {
15
+ /*
16
+ SNS Settings
 
17
  /*-------------------------------------------*/
18
+ // 1. テーマカスタマイザー上に新しいセクションを追加
19
  $wp_customize->add_section(
20
  'veu_sns_setting',
21
  array(
22
+ 'title' => __( 'SNS Settings', 'vk-all-in-one-expansion-unit' ),
23
  'priority' => 1,
24
  'panel' => 'veu_setting',
25
  )
26
  );
27
 
28
+ /*
29
+ Change OG Title
30
+ /*-------------------------------------------*/
31
+ // Customize inner title
32
+ $wp_customize->add_setting( 'Post_title_custom_for_SNS', array( 'sanitize_callback' => 'sanitize_text_field' ) );
33
+ $wp_customize->add_control(
34
+ new ExUnit_Custom_Html(
35
+ $wp_customize, 'Post_title_custom_for_SNS', array(
36
+ 'label' => __( 'Post title custom for SNS', 'vk-all-in-one-expansion-unit' ),
37
+ 'section' => 'veu_sns_setting',
38
+ 'type' => 'text',
39
+ 'custom_title_sub' => '',
40
+ 'custom_html' => '',
41
+ )
42
+ )
43
+ );
44
+ // Print the OG tags
45
+ $wp_customize->add_setting(
46
+ 'vkExUnit_sns_options[snsTitle_use_only_postTitle]',
47
+ array(
48
+ 'default' => false,
49
+ 'type' => 'option', // 保存先 option or theme_mod
50
+ 'capability' => 'edit_theme_options',
51
+ 'sanitize_callback' => 'veu_sanitize_boolean',
52
+ )
53
+ );
54
+
55
+ $wp_customize->add_control(
56
+ 'snsTitle_use_only_postTitle',
57
+ array(
58
+ 'label' => __( 'For SNS title be composed by post title only.', 'vk-all-in-one-expansion-unit' ),
59
+ 'section' => 'veu_sns_setting',
60
+ 'settings' => 'vkExUnit_sns_options[snsTitle_use_only_postTitle]',
61
+ 'type' => 'checkbox',
62
+ 'description' => '',
63
+ )
64
+ );
65
+
66
+ /*
67
+ Facebook Settings
68
+ /*-------------------------------------------*/
69
  // Facebook_title
70
  $wp_customize->add_setting( 'Facebook_title', array( 'sanitize_callback' => 'sanitize_text_field' ) );
71
  $wp_customize->add_control(
72
  new ExUnit_Custom_Html(
73
  $wp_customize, 'Facebook_title', array(
74
+ 'label' => __( 'Facebook Settings', 'vk-all-in-one-expansion-unit' ),
75
  'section' => 'veu_sns_setting',
76
  'type' => 'text',
77
  'custom_title_sub' => '',
94
  $wp_customize->add_control(
95
  'fbAppId',
96
  array(
97
+ 'label' => __( 'Facebook application ID', 'vk-all-in-one-expansion-unit' ),
98
  'section' => 'veu_sns_setting',
99
  'settings' => 'vkExUnit_sns_options[fbAppId]',
100
  'type' => 'text',
115
  $wp_customize->add_control(
116
  'fbPageUrl',
117
  array(
118
+ 'label' => __( 'Facebook Page URL', 'vk-all-in-one-expansion-unit' ),
119
  'section' => 'veu_sns_setting',
120
  'settings' => 'vkExUnit_sns_options[fbPageUrl]',
121
  'type' => 'text',
138
  $wp_customize,
139
  'ogImage',
140
  array(
141
+ 'label' => __( 'OG default image', 'vk-all-in-one-expansion-unit' ),
142
  'section' => 'veu_sns_setting',
143
  'settings' => 'vkExUnit_sns_options[ogImage]',
144
+ 'description' => __( 'If, for example someone pressed the Facebook [Like] button, this is the image that appears on the Facebook timeline.<br>If a featured image is specified for the page, it takes precedence.<br>* Picture sizes are 1280x720 pixels or more and picture ratio 16:9 is recommended.', 'vk-all-in-one-expansion-unit' ),
145
  )
146
  )
147
  );
148
 
149
+ /*
150
+ OG Setting
151
+ /*-------------------------------------------*/
152
  // Print the OG_title
153
  $wp_customize->add_setting( 'Print the OG_title', array( 'sanitize_callback' => 'sanitize_text_field' ) );
154
  $wp_customize->add_control(
155
  new ExUnit_Custom_Html(
156
  $wp_customize, 'Print the OG_title', array(
157
+ 'label' => __( 'OG Settings', 'vk-all-in-one-expansion-unit' ),
158
  'section' => 'veu_sns_setting',
159
  'type' => 'text',
160
  'custom_title_sub' => '',
177
  $wp_customize->add_control(
178
  'enableOGTags',
179
  array(
180
+ 'label' => __( 'Print the OG tags', 'vk-all-in-one-expansion-unit' ),
181
  'section' => 'veu_sns_setting',
182
  'settings' => 'vkExUnit_sns_options[enableOGTags]',
183
  'type' => 'checkbox',
184
+ 'description' => __( 'If other plug-ins are used for the OG, do not output the OG using this plugin.', 'vk-all-in-one-expansion-unit' ),
185
  )
186
  );
187
 
188
+ /*
189
+ Twitter Settings
190
+ /*-------------------------------------------*/
191
  // Twitter_application_ID_title
192
  $wp_customize->add_setting( 'Twitter_application_ID_title', array( 'sanitize_callback' => 'sanitize_text_field' ) );
193
  $wp_customize->add_control(
194
  new ExUnit_Custom_Html(
195
  $wp_customize, 'Twitter_application_ID_title', array(
196
+ 'label' => __( 'Twitter Settings', 'vk-all-in-one-expansion-unit' ),
197
  'section' => 'veu_sns_setting',
198
  'type' => 'text',
199
  'custom_title_sub' => '',
216
  $wp_customize->add_control(
217
  new ExUnit_Custom_Text_Control(
218
  $wp_customize, 'twitterId', array(
219
+ 'label' => __( 'Twitter ID', 'vk-all-in-one-expansion-unit' ),
220
  'section' => 'veu_sns_setting',
221
  'settings' => 'vkExUnit_sns_options[twitterId]',
222
  'type' => 'text',
240
  $wp_customize->add_control(
241
  'enableTwitterCardTags',
242
  array(
243
+ 'label' => __( 'Twitter Card tags', 'vk-all-in-one-expansion-unit' ),
244
  'section' => 'veu_sns_setting',
245
  'settings' => 'vkExUnit_sns_options[enableTwitterCardTags]',
246
  'type' => 'checkbox',
247
+ 'description' => __( 'Print the Twitter Card tags', 'vk-all-in-one-expansion-unit' ),
248
  )
249
  );
250
 
251
+ /*
252
+ Share_button
253
  /*-------------------------------------------*/
 
 
254
 
255
  // share_button_title
256
  $wp_customize->add_setting( 'share_button_title', array( 'sanitize_callback' => 'sanitize_text_field' ) );
257
  $wp_customize->add_control(
258
  new ExUnit_Custom_Html(
259
  $wp_customize, 'share_button_title', array(
260
+ 'label' => __( 'Social bookmark buttons', 'vk-all-in-one-expansion-unit' ),
261
  'section' => 'veu_sns_setting',
262
  'type' => 'text',
263
  'custom_title_sub' => '',
280
  $wp_customize->add_control(
281
  'enableSnsBtns',
282
  array(
283
+ 'label' => __( 'Print the social bookmark buttons', 'vk-all-in-one-expansion-unit' ),
284
  'section' => 'veu_sns_setting',
285
  'settings' => 'vkExUnit_sns_options[enableSnsBtns]',
286
  'type' => 'checkbox',
287
  )
288
  );
289
 
290
+ // Social button style setting ///////////////////////////
291
+ $wp_customize->add_setting( 'share_button_style', array( 'sanitize_callback' => 'sanitize_text_field' ) );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
292
  $wp_customize->add_control(
293
  new ExUnit_Custom_Html(
294
+ $wp_customize, 'share_button_style', array(
295
  'label' => '',
296
  'section' => 'veu_sns_setting',
297
  'type' => 'text',
298
+ 'custom_title_sub' => __( 'Social button style setting', 'vk-all-in-one-expansion-unit' ),
299
  'custom_html' => '',
300
  )
301
  )
315
  $wp_customize->add_control(
316
  'snsBtn_bg_fill_not',
317
  array(
318
+ 'label' => __( 'No background', 'vk-all-in-one-expansion-unit' ),
319
  'section' => 'veu_sns_setting',
320
  'settings' => 'vkExUnit_sns_options[snsBtn_bg_fill_not]',
321
  'type' => 'checkbox',
337
  new WP_Customize_Color_Control(
338
  $wp_customize, 'snsBtn_color',
339
  array(
340
+ 'label' => __( 'Btn color', 'vk-all-in-one-expansion-unit' ),
341
  'section' => 'veu_sns_setting',
342
  'settings' => 'vkExUnit_sns_options[snsBtn_color]',
343
  )
344
  )
345
  );
346
 
347
+ // Share button display Position ///////////////////////////
348
+ $wp_customize->add_setting( 'share_button_position', array( 'sanitize_callback' => 'sanitize_text_field' ) );
349
+ $wp_customize->add_control(
350
+ new ExUnit_Custom_Html(
351
+ $wp_customize, 'share_button_position', array(
352
+ 'label' => '',
353
+ 'section' => 'veu_sns_setting',
354
+ 'type' => 'text',
355
+ 'custom_title_sub' => __( 'Share button display Position', 'vk-all-in-one-expansion-unit' ),
356
+ 'custom_html' => '',
357
+ )
358
+ )
359
+ );
360
+
361
+ // snsBtn_position before
362
+ $wp_customize->add_setting(
363
+ 'vkExUnit_sns_options[snsBtn_position][before]',
364
+ array(
365
+ 'default' => false,
366
+ 'type' => 'option', // 保存先 option or theme_mod
367
+ 'capability' => 'edit_theme_options',
368
+ 'sanitize_callback' => 'veu_sanitize_boolean',
369
+ )
370
+ );
371
+ $wp_customize->add_control(
372
+ 'snsBtn_position_before',
373
+ array(
374
+ 'label' => __( 'Before content', 'vk-all-in-one-expansion-unit' ),
375
+ 'section' => 'veu_sns_setting',
376
+ 'settings' => 'vkExUnit_sns_options[snsBtn_position][before]',
377
+ 'type' => 'checkbox',
378
+ )
379
+ );
380
+
381
+ // snsBtn_position after
382
+ $wp_customize->add_setting(
383
+ 'vkExUnit_sns_options[snsBtn_position][after]',
384
+ array(
385
+ 'default' => true,
386
+ 'type' => 'option', // 保存先 option or theme_mod
387
+ 'capability' => 'edit_theme_options',
388
+ 'sanitize_callback' => 'veu_sanitize_boolean',
389
+ )
390
+ );
391
+ $wp_customize->add_control(
392
+ 'snsBtn_position_after',
393
+ array(
394
+ 'label' => __( 'After content', 'vk-all-in-one-expansion-unit' ),
395
+ 'section' => 'veu_sns_setting',
396
+ 'settings' => 'vkExUnit_sns_options[snsBtn_position][after]',
397
+ 'type' => 'checkbox',
398
+ )
399
+ );
400
+
401
+ // Exclude Post Types ///////////////////////////
402
+ $wp_customize->add_setting( 'share_button_exclude_title', array( 'sanitize_callback' => 'sanitize_text_field' ) );
403
+ $wp_customize->add_control(
404
+ new ExUnit_Custom_Html(
405
+ $wp_customize, 'share_button_exclude_title', array(
406
+ 'label' => '',
407
+ 'section' => 'veu_sns_setting',
408
+ 'type' => 'text',
409
+ 'custom_title_sub' => __( 'Exclude Post Types', 'vk-all-in-one-expansion-unit' ),
410
+ 'custom_html' => '',
411
+ )
412
+ )
413
+ );
414
+
415
+ $args = array(
416
+ 'public' => true,
417
+ );
418
+ $post_types = get_post_types( $args, 'object' );
419
+ foreach ( $post_types as $key => $value ) {
420
+ if ( $key != 'attachment' ) {
421
+ // Exclude Post Types(post,page)
422
+ $wp_customize->add_setting(
423
+ 'vkExUnit_sns_options[snsBtn_exclude_post_types][' . $key . ']',
424
+ array(
425
+ 'default' => false,
426
+ 'type' => 'option', // 保存先 option or theme_mod
427
+ 'capability' => 'edit_theme_options',
428
+ 'sanitize_callback' => 'veu_sanitize_boolean',
429
+ )
430
+ );
431
+
432
+ $wp_customize->add_control(
433
+ 'snsBtn_exclude_post_types_' . $key,
434
+ array(
435
+ 'label' => esc_html( $value->label ),
436
+ 'section' => 'veu_sns_setting',
437
+ 'settings' => 'vkExUnit_sns_options[snsBtn_exclude_post_types][' . $key . ']',
438
+ 'type' => 'checkbox',
439
+ )
440
+ );
441
+ }
442
+ }
443
+
444
+ // Share button for display ///////////////////////////
445
+ $wp_customize->add_setting( 'Follow_me_box_use_title', array( 'sanitize_callback' => 'sanitize_text_field' ) );
446
  $wp_customize->add_control(
447
  new ExUnit_Custom_Html(
448
  $wp_customize, 'Follow_me_box_use_title', array(
449
  'label' => '',
450
  'section' => 'veu_sns_setting',
451
  'type' => 'text',
452
+ 'custom_title_sub' => __( 'Share button for display', 'vk-all-in-one-expansion-unit' ),
453
  'custom_html' => '',
454
  )
455
  )
456
  );
457
 
458
+ // SNS Btn (Facebook)
459
  $wp_customize->add_setting(
460
  'vkExUnit_sns_options[useFacebook]',
461
  array(
469
  $wp_customize->add_control(
470
  'useFacebook',
471
  array(
472
+ 'label' => __( 'Facebook ', 'vk-all-in-one-expansion-unit' ),
473
  'section' => 'veu_sns_setting',
474
  'settings' => 'vkExUnit_sns_options[useFacebook]',
475
  'type' => 'checkbox',
476
  )
477
  );
478
 
479
+ // SNS Btn (Twitter)
480
  $wp_customize->add_setting(
481
  'vkExUnit_sns_options[useTwitter]',
482
  array(
490
  $wp_customize->add_control(
491
  'useTwitter',
492
  array(
493
+ 'label' => __( 'Twitter', 'vk-all-in-one-expansion-unit' ),
494
  'section' => 'veu_sns_setting',
495
  'settings' => 'vkExUnit_sns_options[useTwitter]',
496
  'type' => 'checkbox',
497
  )
498
  );
499
 
500
+ // SNS Btn (Hatena)
501
  $wp_customize->add_setting(
502
  'vkExUnit_sns_options[useHatena]',
503
  array(
511
  $wp_customize->add_control(
512
  'useHatena',
513
  array(
514
+ 'label' => __( 'Hatena', 'vk-all-in-one-expansion-unit' ),
515
  'section' => 'veu_sns_setting',
516
  'settings' => 'vkExUnit_sns_options[useHatena]',
517
  'type' => 'checkbox',
518
  )
519
  );
520
 
521
+ // SNS Btn (Pocket)
522
  $wp_customize->add_setting(
523
  'vkExUnit_sns_options[usePocket]',
524
  array(
532
  $wp_customize->add_control(
533
  'usePocket',
534
  array(
535
+ 'label' => __( 'Pocket', 'vk-all-in-one-expansion-unit' ),
536
  'section' => 'veu_sns_setting',
537
  'settings' => 'vkExUnit_sns_options[usePocket]',
538
  'type' => 'checkbox',
539
  )
540
  );
541
 
542
+ // SNS Btn (LINE)
543
  $wp_customize->add_setting(
544
  'vkExUnit_sns_options[useLine]',
545
  array(
553
  $wp_customize->add_control(
554
  'useLine',
555
  array(
556
+ 'label' => __( 'LINE (mobile only)', 'vk-all-in-one-expansion-unit' ),
557
  'section' => 'veu_sns_setting',
558
  'settings' => 'vkExUnit_sns_options[useLine]',
559
  'type' => 'checkbox',
560
  )
561
  );
562
 
563
+ /*
564
+ Follow me box
565
+ /*-------------------------------------------*/
566
+ // Follow_me_box_title
567
+ $wp_customize->add_setting( 'Follow_me_box_title', array( 'sanitize_callback' => 'sanitize_text_field' ) );
568
  $wp_customize->add_control(
569
  new ExUnit_Custom_Html(
570
  $wp_customize, 'Follow_me_box_title', array(
571
+ 'label' => __( 'Follow me box', 'vk-all-in-one-expansion-unit' ),
572
  'section' => 'veu_sns_setting',
573
  'type' => 'text',
574
  'custom_title_sub' => '',
581
  $wp_customize->add_setting(
582
  'vkExUnit_sns_options[enableFollowMe]',
583
  array(
584
+ 'default' => true,
585
  'type' => 'option', // 保存先 option or theme_mod
586
  'capability' => 'edit_theme_options',
587
  'sanitize_callback' => 'veu_sanitize_boolean',
588
  )
589
  );
590
+ $wp_customize->add_control(
591
+ 'enableFollowMe',
592
+ array(
593
+ 'label' => __( 'Print the Follow me box', 'vk-all-in-one-expansion-unit' ),
594
+ 'section' => 'veu_sns_setting',
595
+ 'settings' => 'vkExUnit_sns_options[enableFollowMe]',
596
+ 'type' => 'checkbox',
597
+ )
598
+ );
599
 
600
  // Follow me box title
601
  $wp_customize->add_setting(
607
  'sanitize_callback' => 'sanitize_text_field',
608
  )
609
  );
 
610
  $wp_customize->add_control(
611
  'followMe_title',
612
  array(
613
+ 'label' => __( 'Follow me box title', 'vk-all-in-one-expansion-unit' ),
614
  'section' => 'veu_sns_setting',
615
  'settings' => 'vkExUnit_sns_options[followMe_title]',
616
  'type' => 'text',
617
  )
618
  );
619
+
620
+ /*
621
+ Add Edit Customize Link Btn
622
+ /*-------------------------------------------*/
623
  $wp_customize->selective_refresh->add_partial(
624
  'vkExUnit_sns_options[followMe_title]', array(
625
  'selector' => '.followSet_title',
627
  )
628
  );
629
 
630
+ /*
631
+ Add Edit Customize Link Btn
632
  /*-------------------------------------------*/
 
 
633
  $wp_customize->selective_refresh->add_partial(
634
  'vkExUnit_sns_options[snsBtn_bg_fill_not]', array(
635
  'selector' => '.veu_socialSet',
636
  'render_callback' => '',
637
  )
638
  );
639
+
640
  }
{plugins → inc}/sns/widget-fb-page-plugin.php RENAMED
@@ -10,7 +10,7 @@ class WP_Widget_vkExUnit_fbPagePlugin extends WP_Widget {
10
  parent::__construct(
11
  'vkExUnit_fbPagePlugin',
12
  $widget_name,
13
- array( 'description' => __( 'Displays a Facebook Page Plugin', 'vkExUnit' ) )
14
  );
15
  }
16
 
@@ -76,7 +76,7 @@ class WP_Widget_vkExUnit_fbPagePlugin extends WP_Widget {
76
  ?>
77
 
78
  <?php //タイトル ?>
79
- <label for="<?php echo $this->get_field_id( 'label' ); ?>"><?php _e( 'Title:', 'vkExUnit' ); ?></label><br/>
80
  <input type="text" id="<?php echo $this->get_field_id( 'label' ); ?>-title" name="<?php echo $this->get_field_name( 'label' ); ?>" value="<?php echo $instance['label']; ?>" />
81
  <br/>
82
 
@@ -86,22 +86,22 @@ class WP_Widget_vkExUnit_fbPagePlugin extends WP_Widget {
86
  <br/>
87
 
88
  <?php //Height ?>
89
- <label for="<?php echo $this->get_field_id( 'height' ); ?>"><?php _e( 'Height', 'vkExUnit' ); ?></label><br/>
90
  <input type="text" id="<?php echo $this->get_field_id( 'height' ); ?>" name="<?php echo $this->get_field_name( 'height' ); ?>" value="<?php echo $instance['height']; ?>" />
91
  <br/>
92
 
93
  <?php //showFaces ?>
94
- <label for="<?php echo $this->get_field_id( 'showFaces' ); ?>"><?php _e( "Show Friend's Faces", 'vkExUnit' ); ?></label><br/>
95
  <input type="checkbox" name="<?php echo $this->get_field_name( 'showFaces' ); ?>" value="true" <?php echo ( $instance['showFaces'] == 'true' ) ? 'checked' : ''; ?> >
96
  <br/>
97
 
98
  <?php //hideCover ?>
99
- <label for="<?php echo $this->get_field_id( 'hideCover' ); ?>"><?php _e( 'Hide Cover Photo', 'vkExUnit' ); ?></label><br/>
100
  <input type="checkbox" name="<?php echo $this->get_field_name( 'hideCover' ); ?>" value="true" <?php echo ( $instance['hideCover'] == 'true' ) ? 'checked' : ''; ?> >
101
  <br/>
102
 
103
  <?php //showPosts ?>
104
- <label for="<?php echo $this->get_field_id( 'showPosts' ); ?>"><?php _e( 'Show Page Posts', 'vkExUnit' ); ?></label><br/>
105
  <input type="checkbox" name="<?php echo $this->get_field_name( 'showPosts' ); ?>" value="true" <?php echo ( $instance['showPosts'] == 'true' ) ? 'checked' : ''; ?> >
106
  <br/>
107
  <?php
10
  parent::__construct(
11
  'vkExUnit_fbPagePlugin',
12
  $widget_name,
13
+ array( 'description' => __( 'Displays a Facebook Page Plugin', 'vk-all-in-one-expansion-unit' ) )
14
  );
15
  }
16
 
76
  ?>
77
 
78
  <?php //タイトル ?>
79
+ <label for="<?php echo $this->get_field_id( 'label' ); ?>"><?php _e( 'Title:', 'vk-all-in-one-expansion-unit' ); ?></label><br/>
80
  <input type="text" id="<?php echo $this->get_field_id( 'label' ); ?>-title" name="<?php echo $this->get_field_name( 'label' ); ?>" value="<?php echo $instance['label']; ?>" />
81
  <br/>
82
 
86
  <br/>
87
 
88
  <?php //Height ?>
89
+ <label for="<?php echo $this->get_field_id( 'height' ); ?>"><?php _e( 'Height', 'vk-all-in-one-expansion-unit' ); ?></label><br/>
90
  <input type="text" id="<?php echo $this->get_field_id( 'height' ); ?>" name="<?php echo $this->get_field_name( 'height' ); ?>" value="<?php echo $instance['height']; ?>" />
91
  <br/>
92
 
93
  <?php //showFaces ?>
94
+ <label for="<?php echo $this->get_field_id( 'showFaces' ); ?>"><?php _e( "Show Friend's Faces", 'vk-all-in-one-expansion-unit' ); ?></label><br/>
95
  <input type="checkbox" name="<?php echo $this->get_field_name( 'showFaces' ); ?>" value="true" <?php echo ( $instance['showFaces'] == 'true' ) ? 'checked' : ''; ?> >
96
  <br/>
97
 
98
  <?php //hideCover ?>
99
+ <label for="<?php echo $this->get_field_id( 'hideCover' ); ?>"><?php _e( 'Hide Cover Photo', 'vk-all-in-one-expansion-unit' ); ?></label><br/>
100
  <input type="checkbox" name="<?php echo $this->get_field_name( 'hideCover' ); ?>" value="true" <?php echo ( $instance['hideCover'] == 'true' ) ? 'checked' : ''; ?> >
101
  <br/>
102
 
103
  <?php //showPosts ?>
104
+ <label for="<?php echo $this->get_field_id( 'showPosts' ); ?>"><?php _e( 'Show Page Posts', 'vk-all-in-one-expansion-unit' ); ?></label><br/>
105
  <input type="checkbox" name="<?php echo $this->get_field_name( 'showPosts' ); ?>" value="true" <?php echo ( $instance['showPosts'] == 'true' ) ? 'checked' : ''; ?> >
106
  <br/>
107
  <?php
{plugins → inc}/sns/widget-twitter.php RENAMED
@@ -6,11 +6,11 @@ class VK_Twitter_Widget extends WP_Widget {
6
  * ウィジェット名などを設定
7
  */
8
  public function __construct() {
9
- $widget_name = veu_get_prefix() . __( 'Twitter', 'vkExUnit' );
10
  parent::__construct(
11
  'vk_twitter_widget', // Base ID
12
  $widget_name, // Name
13
- array( 'description' => __( 'Display Twitter timeline.', 'vkExUnit' ) ) // Args
14
  );
15
  // widget actual processes
16
  }
@@ -81,22 +81,22 @@ class VK_Twitter_Widget extends WP_Widget {
81
  ?>
82
 
83
  <?php // title ?>
84
- <p><label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:', 'vkExUnit' ); ?></label><br>
85
  <input type="text" id="<?php echo $this->get_field_id( 'title' ); ?>" class="admin-custom-input" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo esc_attr( $instance['title'] ); ?>" />
86
  </p>
87
 
88
  <?php // account ?>
89
- <p><label for="<?php echo $this->get_field_id( 'account' ); ?>"><?php _e( 'Account:<br>Please enter your Twitter account.', 'vkExUnit' ); ?></label><br>
90
- <?php _e( '@', 'vkExUnit' ); ?><input type="" id="<?php echo $this->get_field_id( 'account' ); ?>" class="" name="<?php echo $this->get_field_name( 'account' ); ?>" value="<?php echo esc_attr( $instance['account'] ); ?>" />
91
  </p>
92
 
93
  <?php // height ?>
94
- <p><label for="<?php echo $this->get_field_id( 'height' ); ?>"><?php _e( 'Height:<br>Please enter an arbitrary number.(Example: 300)', 'vkExUnit' ); ?></label><br>
95
  <input type="text" id="<?php echo $this->get_field_id( 'height' ); ?>" class="admin-custom-input" name="<?php echo $this->get_field_name( 'height' ); ?>" value="<?php echo esc_attr( $instance['height'] ); ?>" />
96
  </p>
97
 
98
  <?php // bg color ?>
99
- <p><label for="<?php echo $this->get_field_id( 'bg_color' ); ?>"><?php _e( 'Background color:', 'vkExUnit' ); ?></label><br>
100
  <select id="<?php echo $this->get_field_id( 'bg_color' ); ?>" name="<?php echo $this->get_field_name( 'bg_color' ); ?>" class="admin-custom-input">
101
  <?php
102
  if ( ! isset( $instance['bg_color'] ) || ! $instance['bg_color'] ) {
@@ -111,7 +111,7 @@ class VK_Twitter_Widget extends WP_Widget {
111
  }
112
  ?>
113
  >
114
- <?php _e( $label, 'vkExUnit' ); ?>
115
  </option>
116
  <?php endforeach; ?>
117
  </select>
@@ -119,7 +119,7 @@ class VK_Twitter_Widget extends WP_Widget {
119
 
120
  <?php // link color ?>
121
  <p class="color_picker_wrap">
122
- <label for="<?php echo $this->get_field_id( 'link_color' ); ?>"><?php _e( 'Link color:', 'vkExUnit' ); ?></label><br>
123
  <input type="text" id="<?php echo $this->get_field_id( 'link_color' ); ?>" class="color_picker admin-custom-input" name="<?php echo $this->get_field_name( 'link_color' ); ?>" value="
124
  <?php
125
  if ( $instance['link_color'] ) {
6
  * ウィジェット名などを設定
7
  */
8
  public function __construct() {
9
+ $widget_name = veu_get_prefix() . __( 'Twitter', 'vk-all-in-one-expansion-unit' );
10
  parent::__construct(
11
  'vk_twitter_widget', // Base ID
12
  $widget_name, // Name
13
+ array( 'description' => __( 'Display Twitter timeline.', 'vk-all-in-one-expansion-unit' ) ) // Args
14
  );
15
  // widget actual processes
16
  }
81
  ?>
82
 
83
  <?php // title ?>
84
+ <p><label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:', 'vk-all-in-one-expansion-unit' ); ?></label><br>
85
  <input type="text" id="<?php echo $this->get_field_id( 'title' ); ?>" class="admin-custom-input" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo esc_attr( $instance['title'] ); ?>" />
86
  </p>
87
 
88
  <?php // account ?>
89
+ <p><label for="<?php echo $this->get_field_id( 'account' ); ?>"><?php _e( 'Account:<br>Please enter your Twitter account.', 'vk-all-in-one-expansion-unit' ); ?></label><br>
90
+ <?php _e( '@', 'vk-all-in-one-expansion-unit' ); ?><input type="" id="<?php echo $this->get_field_id( 'account' ); ?>" class="" name="<?php echo $this->get_field_name( 'account' ); ?>" value="<?php echo esc_attr( $instance['account'] ); ?>" />
91
  </p>
92
 
93
  <?php // height ?>
94
+ <p><label for="<?php echo $this->get_field_id( 'height' ); ?>"><?php _e( 'Height:<br>Please enter an arbitrary number.(Example: 300)', 'vk-all-in-one-expansion-unit' ); ?></label><br>
95
  <input type="text" id="<?php echo $this->get_field_id( 'height' ); ?>" class="admin-custom-input" name="<?php echo $this->get_field_name( 'height' ); ?>" value="<?php echo esc_attr( $instance['height'] ); ?>" />
96
  </p>
97
 
98
  <?php // bg color ?>
99
+ <p><label for="<?php echo $this->get_field_id( 'bg_color' ); ?>"><?php _e( 'Background color:', 'vk-all-in-one-expansion-unit' ); ?></label><br>
100
  <select id="<?php echo $this->get_field_id( 'bg_color' ); ?>" name="<?php echo $this->get_field_name( 'bg_color' ); ?>" class="admin-custom-input">
101
  <?php
102
  if ( ! isset( $instance['bg_color'] ) || ! $instance['bg_color'] ) {
111
  }
112
  ?>
113
  >
114
+ <?php _e( $label, 'vk-all-in-one-expansion-unit' ); ?>
115
  </option>
116
  <?php endforeach; ?>
117
  </select>
119
 
120
  <?php // link color ?>
121
  <p class="color_picker_wrap">
122
+ <label for="<?php echo $this->get_field_id( 'link_color' ); ?>"><?php _e( 'Link color:', 'vk-all-in-one-expansion-unit' ); ?></label><br>
123
  <input type="text" id="<?php echo $this->get_field_id( 'link_color' ); ?>" class="color_picker admin-custom-input" name="<?php echo $this->get_field_name( 'link_color' ); ?>" value="
124
  <?php
125
  if ( $instance['link_color'] ) {
inc/template-tags/template-tags-veu-old.php ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /*
4
+ このファイルの元ファイルは
5
+ https://github.com/vektor-inc/vektor-wp-libraries
6
+ にあります。修正の際は上記リポジトリのデータを修正してください。
7
+ */
8
+
9
+ function vkExUnit_get_directory( $path = '' ) {
10
+ return veu_get_directory( $path );
11
+ }
12
+ function vkExUnit_get_directory_uri( $path = '' ) {
13
+ return veu_get_directory_uri( $path );
14
+ }
15
+
16
+ if ( ! function_exists( 'vkExUnit_get_common_options' ) ) {
17
+ function vkExUnit_get_common_options() {
18
+ return veu_get_common_options();
19
+ }
20
+ }
21
+ if ( ! function_exists( 'vkExUnit_is_excerpt' ) ) {
22
+ function vkExUnit_is_excerpt() {
23
+ return vk_is_excerpt();
24
+ }
25
+ }
26
+
27
+ if ( ! function_exists( 'vkExUnit_get_name' ) ) {
28
+ function vkExUnit_get_name() {
29
+ return veu_get_name();
30
+ }
31
+ }
32
+
33
+ if ( ! function_exists( 'vkExUnit_get_little_short_name' ) ) {
34
+ function vkExUnit_get_little_short_name() {
35
+ return veu_get_little_short_name();
36
+ }
37
+ }
38
+
39
+ if ( ! function_exists( 'vkExUnit_get_short_name' ) ) {
40
+ function vkExUnit_get_short_name() {
41
+ return veu_get_short_name();
42
+ }
43
+ }
44
+
45
+ if ( ! function_exists( 'vkExUnit_get_page_for_posts' ) ) {
46
+ function vkExUnit_get_page_for_posts() {
47
+ return vk_get_page_for_posts();
48
+ }
49
+ }
50
+
51
+ if ( ! function_exists( 'vkExUnit_get_post_type' ) ) {
52
+ function vkExUnit_get_post_type() {
53
+ return vk_get_post_type();
54
+ }
55
+ }
56
+
57
+ if ( ! function_exists( 'vkExUnit_get_the_archive_title' ) ) {
58
+ function vkExUnit_get_the_archive_title() {
59
+ $title = vk_get_the_archive_title();
60
+ return apply_filters( 'vkExUnit_get_the_archive_title', $title );
61
+ }
62
+ }
63
+
64
+ if ( ! function_exists( 'vkExUnit_get_pageDescription' ) ) {
65
+ function vkExUnit_get_pageDescription() {
66
+ $title = vk_get_page_description();
67
+ return apply_filters( 'vkExUnit_pageDescriptionCustom', $title );
68
+ }
69
+ }
{plugins → inc}/template-tags/template-tags-veu.php RENAMED
@@ -7,12 +7,28 @@ https://github.com/vektor-inc/vektor-wp-libraries
7
  */
8
 
9
  /**
10
- * ExUnit固有の関数だが、ExUnitの機能を複製しているために独立化したプラグインにも使用される関数
11
  */
12
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  if ( ! function_exists( 'veu_content_filter_state' ) ) {
14
  function veu_content_filter_state() {
15
- // $opt = vkExUnit_get_common_options();
16
  // return empty( $opt['content_filter_state'] )? 'content' : $opt['content_filter_state'];
17
  // コンテンツループ下部に出力すると誤動作が多いので、一旦コンテンツ下部出力に強制変更
18
  return 'content';
@@ -60,7 +76,7 @@ if ( ! function_exists( 'veu_get_prefix_customize_panel' ) ) {
60
 
61
  if ( ! function_exists( 'veu_is_cta_active' ) ) {
62
  function veu_is_cta_active() {
63
- if ( vk_is_plugin_active( 'vk-all-in-one-expantion-unit/vkExUnit.php' ) ) {
64
  $veu_common_options = get_option( 'vkExUnit_common_options' );
65
  if ( isset( $veu_common_options['active_call_to_action'] ) && $veu_common_options['active_call_to_action'] ) {
66
  return true;
7
  */
8
 
9
  /**
10
+ * ExUnit固有の関数だが、ExUnitの機能を複製している他のプラグインにも使用されるものもある
11
  */
12
 
13
+ if ( ! function_exists( 'veu_get_capability_required' ) ) {
14
+ function veu_get_capability_required() {
15
+ return add_filter( 'veu_get_capability_required', 'edit_theme_options' );
16
+ }
17
+ }
18
+
19
+ if ( ! function_exists( 'veu_get_systemlogo_html' ) ) {
20
+ function veu_get_systemlogo_html() {
21
+ $logo = '<div class="logo_exUnit">';
22
+ $logo .= '<img src="' . apply_filters( 'vkExUnit_news_image_URL_small', veu_get_directory_uri( '/assets/images/head_logo_ExUnit.png' ) ) . '" alt="VK ExUnit" />';
23
+ $logo .= '</div>';
24
+ $logo = apply_filters( 'veu_get_systemlogo_html', $logo );
25
+ return $logo;
26
+ }
27
+ }
28
+
29
  if ( ! function_exists( 'veu_content_filter_state' ) ) {
30
  function veu_content_filter_state() {
31
+ // $opt = veu_get_common_options();
32
  // return empty( $opt['content_filter_state'] )? 'content' : $opt['content_filter_state'];
33
  // コンテンツループ下部に出力すると誤動作が多いので、一旦コンテンツ下部出力に強制変更
34
  return 'content';
76
 
77
  if ( ! function_exists( 'veu_is_cta_active' ) ) {
78
  function veu_is_cta_active() {
79
+ if ( vk_is_plugin_active( 'vk-all-in-one-expansion-unit/vkExUnit.php' ) ) {
80
  $veu_common_options = get_option( 'vkExUnit_common_options' );
81
  if ( isset( $veu_common_options['active_call_to_action'] ) && $veu_common_options['active_call_to_action'] ) {
82
  return true;
{plugins → inc}/template-tags/template-tags.php RENAMED
@@ -6,6 +6,18 @@ https://github.com/vektor-inc/vektor-wp-libraries
6
  にあります。修正の際は上記リポジトリのデータを修正してください。
7
  */
8
 
 
 
 
 
 
 
 
 
 
 
 
 
9
 
10
  if ( ! function_exists( 'vk_is_excerpt' ) ) {
11
  function vk_is_excerpt() {
@@ -17,8 +29,8 @@ if ( ! function_exists( 'vk_is_excerpt' ) ) {
17
  }
18
 
19
 
20
- /*-------------------------------------------*/
21
- /* Chack use post top page
22
  /*-------------------------------------------*/
23
  if ( ! function_exists( 'vk_get_page_for_posts' ) ) {
24
  function vk_get_page_for_posts() {
@@ -36,25 +48,34 @@ if ( ! function_exists( 'vk_get_page_for_posts' ) ) {
36
  }
37
 
38
 
39
- /*-------------------------------------------*/
40
- /* Chack post type info
41
  /*-------------------------------------------*/
42
  if ( ! function_exists( 'vk_get_post_type' ) ) {
43
  function vk_get_post_type() {
44
-
45
  $page_for_posts = vk_get_page_for_posts();
46
 
47
- // Get post type slug
48
  /*-------------------------------------------*/
49
  $postType['slug'] = get_post_type();
50
  if ( ! $postType['slug'] ) {
51
- global $wp_query;
52
  if ( $wp_query->query_vars['post_type'] ) {
 
53
  $postType['slug'] = $wp_query->query_vars['post_type'];
 
54
  } else {
55
- // Case of tax archive and no posts
56
- $taxonomy = get_queried_object()->taxonomy;
57
- $postType['slug'] = get_taxonomy( $taxonomy )->object_type[0];
 
 
 
 
 
 
 
 
58
  }
59
  }
60
 
@@ -62,8 +83,12 @@ if ( ! function_exists( 'vk_get_post_type' ) ) {
62
  /*-------------------------------------------*/
63
  $post_type_object = get_post_type_object( $postType['slug'] );
64
  if ( $post_type_object ) {
 
 
 
 
65
  if ( $page_for_posts['post_top_use'] && $postType['slug'] == 'post' ) {
66
- $postType['name'] = esc_html( get_the_title( $page_for_posts['post_top_id'] ) );
67
  } else {
68
  $postType['name'] = esc_html( $post_type_object->labels->name );
69
  }
@@ -82,8 +107,8 @@ if ( ! function_exists( 'vk_get_post_type' ) ) {
82
  }
83
  }
84
 
85
- /*-------------------------------------------*/
86
- /* Archive title
87
  /*-------------------------------------------*/
88
  if ( ! function_exists( 'vk_get_the_archive_title' ) ) {
89
  function vk_get_the_archive_title() {
@@ -92,13 +117,13 @@ if ( ! function_exists( 'vk_get_the_archive_title' ) ) {
92
  } elseif ( is_tag() ) {
93
  $title = single_tag_title( '', false );
94
  } elseif ( is_author() ) {
95
- $title = sprintf( __( 'Author: %s', 'vkExUnit' ), '<span class="vcard">' . get_the_author() . '</span>' );
96
  } elseif ( is_year() ) {
97
- $title = get_the_date( _x( 'Y', 'yearly archives date format', 'vkExUnit' ) );
98
  } elseif ( is_month() ) {
99
- $title = get_the_date( _x( 'F Y', 'monthly archives date format', 'vkExUnit' ) );
100
  } elseif ( is_day() ) {
101
- $title = get_the_date( _x( 'F j, Y', 'daily archives date format', 'vkExUnit' ) );
102
  } elseif ( is_tax( 'post_format' ) ) {
103
  if ( is_tax( 'post_format', 'post-format-aside' ) ) {
104
  $title = _x( 'Asides', 'post format archive title' );
@@ -133,7 +158,7 @@ if ( ! function_exists( 'vk_get_the_archive_title' ) ) {
133
  if ( $postType ) {
134
  $title = get_post_type_object( $postType )->labels->name;
135
  } else {
136
- $title = __( 'Archives', 'vkExUnit' );
137
  }
138
  }
139
  return apply_filters( 'vk_get_the_archive_title', $title );
@@ -141,8 +166,8 @@ if ( ! function_exists( 'vk_get_the_archive_title' ) ) {
141
  }
142
 
143
 
144
- /*-------------------------------------------*/
145
- /* Page description
146
  /*-------------------------------------------*/
147
  if ( ! function_exists( 'vk_get_page_description' ) ) {
148
  function vk_get_page_description() {
@@ -164,7 +189,7 @@ if ( ! function_exists( 'vk_get_page_description' ) ) {
164
  }
165
  } elseif ( is_category() || is_tax() ) {
166
  if ( ! $post->description ) {
167
- $page_description = sprintf( __( 'About %s', 'vkExUnit' ), single_cat_title( '', false ) ) . ' ' . get_bloginfo( 'name' ) . ' ' . get_bloginfo( 'description' );
168
  } else {
169
  $page_description = $post->description;
170
  }
@@ -172,44 +197,44 @@ if ( ! function_exists( 'vk_get_page_description' ) ) {
172
  $page_description = strip_tags( tag_description() );
173
  $page_description = str_replace( array( "\r\n", "\r", "\n" ), '', $page_description ); // delete br
174
  if ( ! $page_description ) {
175
- $page_description = sprintf( __( 'About %s', 'vkExUnit' ), single_tag_title( '', false ) ) . ' ' . get_bloginfo( 'name' ) . ' ' . get_bloginfo( 'description' );
176
  }
177
  } elseif ( is_archive() ) {
178
  if ( is_year() ) {
179
- $description_date = get_the_date( _x( 'Y', 'yearly archives date format', 'vkExUnit' ) );
180
- $page_description = sprintf( _x( 'Article of %s.', 'Yearly archive description', 'vkExUnit' ), $description_date );
181
  $page_description .= ' ' . get_bloginfo( 'name' ) . ' ' . get_bloginfo( 'description' );
182
  } elseif ( is_month() ) {
183
- $description_date = get_the_date( _x( 'F Y', 'monthly archives date format', 'vkExUnit' ) );
184
- $page_description = sprintf( _x( 'Article of %s.', 'Archive description', 'vkExUnit' ), $description_date );
185
  $page_description .= ' ' . get_bloginfo( 'name' ) . ' ' . get_bloginfo( 'description' );
186
  } elseif ( is_author() ) {
187
  $userObj = get_queried_object();
188
- $page_description = sprintf( _x( 'Article of %s.', 'Archive description', 'vkExUnit' ), esc_html( $userObj->display_name ) );
189
  $page_description .= ' ' . get_bloginfo( 'name' ) . ' ' . get_bloginfo( 'description' );
190
  } else {
191
  $postType = get_post_type();
192
  if ( $postType ) {
193
- $page_description = sprintf( _x( 'Article of %s.', 'Archive description', 'vkExUnit' ), esc_html( get_post_type_object( $postType )->label ) );
194
  $page_description .= ' ' . get_bloginfo( 'name' ) . ' ' . get_bloginfo( 'description' );
195
  } else {
196
  $page_description = get_bloginfo( 'description' );
197
  }
198
  }
199
  } elseif ( is_page() || is_single() ) {
200
- $metaExcerpt = $post->post_excerpt;
201
- if ( $metaExcerpt ) {
202
- $page_description = $metaExcerpt;
203
  } else {
204
- $page_description = mb_substr( strip_tags( $post->post_content ), 0, 240 ); // kill tags and trim 240 chara
205
  }
206
  } else {
207
  $page_description = get_bloginfo( 'description' );
208
  }
209
  global $paged;
210
  if ( $paged != '0' ) {
211
- $page_description = '[' . sprintf( __( 'Page of %s', 'vkExUnit' ), $paged ) . '] ' . $page_description;
212
  }
 
213
  $page_description = apply_filters( 'vkExUnit_pageDescriptionCustom', $page_description );
214
 
215
  /*
@@ -218,22 +243,29 @@ if ( ! function_exists( 'vk_get_page_description' ) ) {
218
  * ショートコードの中の引数の "" が入るとタグの終了がおかしくなりシェアやRSSで問題が出る
219
  という理由で do_shortcode で実行した後 html タグを除去していた
220
  $page_description = esc_html( strip_tags( do_shortcode( $page_description ) ) );
 
221
  しかし、ここで do_shortcode 入れるとWooCommerceなどのエラーメッセージが正常に表示されなくなる。
222
- なので、ショートコードの実行は行わないが、不具合の原因となる " は 全角に変換する ... と、
223
- この関数はそもそもディスクリプションを出力するためだけで " をそのまま出力したい時もありえる事から、
224
- タグの属性として使う側で esc_attr などのエスケープを実施する
225
- そもそもショートコードが出るなら適切に抜粋欄に記入して運用でカバーする。
226
  */
227
- $page_description = esc_html( strip_tags( $page_description ) );
 
 
 
 
 
 
 
228
  // Delete Line break
229
  $page_description = str_replace( array( "\r\n", "\r", "\n", "\t" ), '', $page_description );
230
- $page_description = preg_replace( '/\[(.*?)\]/m', '', $page_description );
231
- return $page_description;
232
  }
233
  }
234
 
235
- /*-------------------------------------------*/
236
- /* vk_is_plugin_active
237
  /*-------------------------------------------*/
238
  if ( ! function_exists( 'vk_is_plugin_active' ) ) {
239
  function vk_is_plugin_active( $plugin_path = '' ) {
@@ -248,8 +280,8 @@ if ( ! function_exists( 'vk_is_plugin_active' ) ) {
248
  }
249
  }
250
 
251
- /*-------------------------------------------*/
252
- /* Sanitize
253
  /*-------------------------------------------*/
254
  if ( ! function_exists( 'veu_sanitize_boolean' ) ) {
255
  function veu_sanitize_boolean( $input ) {
@@ -274,11 +306,12 @@ if ( ! function_exists( 'vk_sanitize_number' ) ) {
274
  }
275
  }
276
 
277
- /*-------------------------------------------*/
278
- /* Post Type Check Box
279
  /*-------------------------------------------*/
280
  /**
281
  * 投稿タイプのチェックボックスを表示する関数
 
282
  * @param [type] $args 取得する投稿タイプ情報の判別や保存されてる値の情報など
283
  * @return [type] [description]
284
  */
@@ -289,17 +322,48 @@ function vk_the_post_type_check_list( $args ) {
289
  ),
290
  'name' => '',
291
  'checked' => '',
 
292
  );
293
  $args = wp_parse_args( $args, $default );
294
  $post_types = get_post_types( $args['post_types_args'], 'object' );
295
  echo '<ul>';
296
  foreach ( $post_types as $key => $value ) {
297
  if ( $key != 'attachment' ) {
 
298
  $checked = ( isset( $args['checked'][ $key ] ) && $args['checked'][ $key ] == 'true' ) ? ' checked' : '';
 
 
 
 
 
 
 
 
 
299
  echo '<li><label>';
300
- echo '<input type="checkbox" name="' . $args['name'] . '[' . $key . ']" id="snsBtn_exclude_post_types" value="true"' . $checked . ' />' . esc_html( $value->label );
301
  echo '</label></li>';
302
  }
303
  }
304
  echo '</ul>';
305
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
  にあります。修正の際は上記リポジトリのデータを修正してください。
7
  */
8
 
9
+ /*
10
+ Chack use post top page
11
+ Chack post type info
12
+ Archive title
13
+ Page description
14
+ vk_is_plugin_active
15
+ Sanitize
16
+ Post Type Check Box
17
+ vk_is_checked
18
+ */
19
+
20
+
21
 
22
  if ( ! function_exists( 'vk_is_excerpt' ) ) {
23
  function vk_is_excerpt() {
29
  }
30
 
31
 
32
+ /*
33
+ Chack use post top page
34
  /*-------------------------------------------*/
35
  if ( ! function_exists( 'vk_get_page_for_posts' ) ) {
36
  function vk_get_page_for_posts() {
48
  }
49
 
50
 
51
+ /*
52
+ Chack post type info
53
  /*-------------------------------------------*/
54
  if ( ! function_exists( 'vk_get_post_type' ) ) {
55
  function vk_get_post_type() {
56
+ global $wp_query;
57
  $page_for_posts = vk_get_page_for_posts();
58
 
 
59
  /*-------------------------------------------*/
60
  $postType['slug'] = get_post_type();
61
  if ( ! $postType['slug'] ) {
62
+
63
  if ( $wp_query->query_vars['post_type'] ) {
64
+
65
  $postType['slug'] = $wp_query->query_vars['post_type'];
66
+
67
  } else {
68
+ // Case of no post type query
69
+ if ( ! empty( $wp_query->queried_object->taxonomy ) ) {
70
+ // Case of tax archive and no posts
71
+ $taxonomy = $wp_query->queried_object->taxonomy;
72
+ $postType['slug'] = get_taxonomy( $taxonomy )->object_type[0];
73
+
74
+ } else {
75
+ // Case of no tax query and no post type query and no posts
76
+ $postType['slug'] = 'post';
77
+
78
+ } // if ( ! empty( $wp_query->queried_object->taxonomy ) ) {
79
  }
80
  }
81
 
83
  /*-------------------------------------------*/
84
  $post_type_object = get_post_type_object( $postType['slug'] );
85
  if ( $post_type_object ) {
86
+ $allowed_html = array(
87
+ 'span' => array( 'class' => array() ),
88
+ 'b' => array(),
89
+ );
90
  if ( $page_for_posts['post_top_use'] && $postType['slug'] == 'post' ) {
91
+ $postType['name'] = wp_kses( get_the_title( $page_for_posts['post_top_id'] ), $allowed_html );
92
  } else {
93
  $postType['name'] = esc_html( $post_type_object->labels->name );
94
  }
107
  }
108
  }
109
 
110
+ /*
111
+ Archive title
112
  /*-------------------------------------------*/
113
  if ( ! function_exists( 'vk_get_the_archive_title' ) ) {
114
  function vk_get_the_archive_title() {
117
  } elseif ( is_tag() ) {
118
  $title = single_tag_title( '', false );
119
  } elseif ( is_author() ) {
120
+ $title = sprintf( __( 'Author: %s', 'vk-all-in-one-expansion-unit' ), '<span class="vcard">' . get_the_author() . '</span>' );
121
  } elseif ( is_year() ) {
122
+ $title = get_the_date( _x( 'Y', 'yearly archives date format', 'vk-all-in-one-expansion-unit' ) );
123
  } elseif ( is_month() ) {
124
+ $title = get_the_date( _x( 'F Y', 'monthly archives date format', 'vk-all-in-one-expansion-unit' ) );
125
  } elseif ( is_day() ) {
126
+ $title = get_the_date( _x( 'F j, Y', 'daily archives date format', 'vk-all-in-one-expansion-unit' ) );
127
  } elseif ( is_tax( 'post_format' ) ) {
128
  if ( is_tax( 'post_format', 'post-format-aside' ) ) {
129
  $title = _x( 'Asides', 'post format archive title' );
158
  if ( $postType ) {
159
  $title = get_post_type_object( $postType )->labels->name;
160
  } else {
161
+ $title = __( 'Archives', 'vk-all-in-one-expansion-unit' );
162
  }
163
  }
164
  return apply_filters( 'vk_get_the_archive_title', $title );
166
  }
167
 
168
 
169
+ /*
170
+ Page description
171
  /*-------------------------------------------*/
172
  if ( ! function_exists( 'vk_get_page_description' ) ) {
173
  function vk_get_page_description() {
189
  }
190
  } elseif ( is_category() || is_tax() ) {
191
  if ( ! $post->description ) {
192
+ $page_description = sprintf( __( 'About %s', 'vk-all-in-one-expansion-unit' ), single_cat_title( '', false ) ) . ' ' . get_bloginfo( 'name' ) . ' ' . get_bloginfo( 'description' );
193
  } else {
194
  $page_description = $post->description;
195
  }
197
  $page_description = strip_tags( tag_description() );
198
  $page_description = str_replace( array( "\r\n", "\r", "\n" ), '', $page_description ); // delete br
199
  if ( ! $page_description ) {
200
+ $page_description = sprintf( __( 'About %s', 'vk-all-in-one-expansion-unit' ), single_tag_title( '', false ) ) . ' ' . get_bloginfo( 'name' ) . ' ' . get_bloginfo( 'description' );
201
  }
202
  } elseif ( is_archive() ) {
203
  if ( is_year() ) {
204
+ $description_date = get_the_date( _x( 'Y', 'yearly archives date format', 'vk-all-in-one-expansion-unit' ) );
205
+ $page_description = sprintf( _x( 'Article of %s.', 'Yearly archive description', 'vk-all-in-one-expansion-unit' ), $description_date );
206
  $page_description .= ' ' . get_bloginfo( 'name' ) . ' ' . get_bloginfo( 'description' );
207
  } elseif ( is_month() ) {
208
+ $description_date = get_the_date( _x( 'F Y', 'monthly archives date format', 'vk-all-in-one-expansion-unit' ) );
209
+ $page_description = sprintf( _x( 'Article of %s.', 'Archive description', 'vk-all-in-one-expansion-unit' ), $description_date );
210
  $page_description .= ' ' . get_bloginfo( 'name' ) . ' ' . get_bloginfo( 'description' );
211
  } elseif ( is_author() ) {
212
  $userObj = get_queried_object();
213
+ $page_description = sprintf( _x( 'Article of %s.', 'Archive description', 'vk-all-in-one-expansion-unit' ), esc_html( $userObj->display_name ) );
214
  $page_description .= ' ' . get_bloginfo( 'name' ) . ' ' . get_bloginfo( 'description' );
215
  } else {
216
  $postType = get_post_type();
217
  if ( $postType ) {
218
+ $page_description = sprintf( _x( 'Article of %s.', 'Archive description', 'vk-all-in-one-expansion-unit' ), esc_html( get_post_type_object( $postType )->label ) );
219
  $page_description .= ' ' . get_bloginfo( 'name' ) . ' ' . get_bloginfo( 'description' );
220
  } else {
221
  $page_description = get_bloginfo( 'description' );
222
  }
223
  }
224
  } elseif ( is_page() || is_single() ) {
225
+ if ( $post->post_excerpt ) {
226
+ $page_description = $post->post_excerpt;
 
227
  } else {
228
+ $page_description = $post->post_content;
229
  }
230
  } else {
231
  $page_description = get_bloginfo( 'description' );
232
  }
233
  global $paged;
234
  if ( $paged != '0' ) {
235
+ $page_description = '[' . sprintf( __( 'Page of %s', 'vk-all-in-one-expansion-unit' ), $paged ) . '] ' . $page_description;
236
  }
237
+ // This filter (vkExUnit_pageDescriptionCustom) is deprecated.
238
  $page_description = apply_filters( 'vkExUnit_pageDescriptionCustom', $page_description );
239
 
240
  /*
243
  * ショートコードの中の引数の "" が入るとタグの終了がおかしくなりシェアやRSSで問題が出る
244
  という理由で do_shortcode で実行した後 html タグを除去していた
245
  $page_description = esc_html( strip_tags( do_shortcode( $page_description ) ) );
246
+
247
  しかし、ここで do_shortcode 入れるとWooCommerceなどのエラーメッセージが正常に表示されなくなる。
248
+ なので、ショートコードの実行は行わないが、ショートコードの引き値としての " は不具合の原因となるので
249
+ " esc_attr でエスケープを実施する
250
+ 本来ショートコードが出る場合は適切に抜粋欄に記入して運用でカバーする。
 
251
  */
252
+ // この関数は get_the_ ではないので関数内では esc_attr() は行わない
253
+ $page_description = strip_tags( $page_description );
254
+ $page_description = strip_shortcodes( $page_description );
255
+
256
+ if ( is_singular() ) {
257
+ $page_description = mb_substr( $page_description, 0, 240 ); // kill tags and trim 240 chara
258
+ }
259
+
260
  // Delete Line break
261
  $page_description = str_replace( array( "\r\n", "\r", "\n", "\t" ), '', $page_description );
262
+
263
+ return apply_filters( 'vk_get_page_description', $page_description );
264
  }
265
  }
266
 
267
+ /*
268
+ vk_is_plugin_active
269
  /*-------------------------------------------*/
270
  if ( ! function_exists( 'vk_is_plugin_active' ) ) {
271
  function vk_is_plugin_active( $plugin_path = '' ) {
280
  }
281
  }
282
 
283
+ /*
284
+ Sanitize
285
  /*-------------------------------------------*/
286
  if ( ! function_exists( 'veu_sanitize_boolean' ) ) {
287
  function veu_sanitize_boolean( $input ) {
306
  }
307
  }
308
 
309
+ /*
310
+ Post Type Check Box
311
  /*-------------------------------------------*/
312
  /**
313
  * 投稿タイプのチェックボックスを表示する関数
314
+ *
315
  * @param [type] $args 取得する投稿タイプ情報の判別や保存されてる値の情報など
316
  * @return [type] [description]
317
  */
322
  ),
323
  'name' => '',
324
  'checked' => '',
325
+ 'id' => '',
326
  );
327
  $args = wp_parse_args( $args, $default );
328
  $post_types = get_post_types( $args['post_types_args'], 'object' );
329
  echo '<ul>';
330
  foreach ( $post_types as $key => $value ) {
331
  if ( $key != 'attachment' ) {
332
+
333
  $checked = ( isset( $args['checked'][ $key ] ) && $args['checked'][ $key ] == 'true' ) ? ' checked' : '';
334
+
335
+ if ( $args['id'] ) {
336
+ $id = ' id="' . esc_attr( $args['id'] ) . '"';
337
+ } elseif ( $args['name'] ) {
338
+ $id = ' id="' . esc_attr( $args['name'] ) . '"';
339
+ } else {
340
+ $id = '';
341
+ }
342
+
343
  echo '<li><label>';
344
+ echo '<input type="checkbox" name="' . esc_attr( $args['name'] ) . '[' . $key . ']"' . $id . ' value="true"' . $checked . ' />' . esc_html( $value->label );
345
  echo '</label></li>';
346
  }
347
  }
348
  echo '</ul>';
349
  }
350
+
351
+ /*
352
+ vk_is_checked
353
+ /*-------------------------------------------*/
354
+ /**
355
+ * [vk_is_checked description]
356
+ *
357
+ * @param string $checked_value checkedにする場合の値
358
+ * @param string $value 保存値
359
+ * @return boolean [description]
360
+ */
361
+ if ( ! function_exists( 'vk_is_checked' ) ) {
362
+ function vk_is_checked( $checked_value = '', $value = '' ) {
363
+ $checked = '';
364
+ if ( $checked_value == $value ) {
365
+ $checked = ' checked';
366
+ }
367
+ echo $checked;
368
+ }
369
+ }
plugins/tiny_mce_style_tags.php → inc/tiny-mce-styletags.php RENAMED
File without changes
inc/vk-blocks/package/build/block-build-editor.css ADDED
@@ -0,0 +1 @@
 
1
+ @charset "UTF-8";.vk_block_icon_pro{fill:#c00}.editor-block-list-item-vk-blocks-outer:after,.editor-block-list-item-vk-blocks-simple-table:after,.editor-block-list-item-vk-blocks-table-of-contents:after{position:absolute;top:0;right:0;content:"Pro";display:inline-block;font-size:10px;line-height:1;color:#fff;background-color:#cd3034;border-radius:2px;padding:3px 4px}.components-base-control__label{font-weight:700}.components-base-control .components-base-control__help{margin-top:0}.components-radio-control__option label{margin-bottom:0}.components-checkbox-control__label{margin-bottom:0}.components-color-palette{display:block;overflow:hidden}html{font-size:10px}input[type=range]{margin:1px}.edit-post-visual-editor.editor-styles-wrapper h1:first-child.vk_prBlocks_item_title{margin-top:.9em}.edit-post-visual-editor.editor-styles-wrapper .editor-block-list__layout>.wp-block,.edit-post-visual-editor.editor-styles-wrapper .wp-block{max-width:calc(100% - 20%)}.edit-post-visual-editor.editor-styles-wrapper .editor-block-list__layout>.wp-block .wp-block,.edit-post-visual-editor.editor-styles-wrapper .wp-block .wp-block{max-width:100%}@media (min-width:600px){.edit-post-visual-editor.editor-styles-wrapper .wp-block-columns{margin-left:-15px;margin-right:-15px}.edit-post-visual-editor.editor-styles-wrapper .wp-block-column{flex-basis:auto;margin-left:15px;margin-right:15px;width:calc(50% - 30px)}.edit-post-visual-editor.editor-styles-wrapper .wp-block-column:not(:first-child),.edit-post-visual-editor.editor-styles-wrapper .wp-block-column:not(:last-child),.edit-post-visual-editor.editor-styles-wrapper .wp-block-column:nth-child(odd){margin-left:15px;margin-right:15px}}.edit-post-visual-editor.editor-styles-wrapper .alert{padding:1em;margin:1em 0;border-radius:3px}.edit-post-visual-editor.editor-styles-wrapper .alert+.edit-post-visual-editor.editor-styles-wrapper .alert{margin-top:2em}.edit-post-visual-editor.editor-styles-wrapper .alert a{transition:color .3s linear,opacity .3s linear}.edit-post-visual-editor.editor-styles-wrapper .alert a:link,.edit-post-visual-editor.editor-styles-wrapper .alert a:visited{opacity:.8;text-decoration:underline}.edit-post-visual-editor.editor-styles-wrapper .alert a:hover,.edit-post-visual-editor.editor-styles-wrapper .alert a:visited{opacity:1;text-decoration:none}.edit-post-visual-editor.editor-styles-wrapper .alert-success{background-color:#dff0d8;color:#3c763d;border-color:#d6e9c6}.edit-post-visual-editor.editor-styles-wrapper .alert-info{background-color:#d9edf7;color:#31708f;border-color:#bce8f1}.edit-post-visual-editor.editor-styles-wrapper .alert-warning{background-color:#fcf8e3;color:#8a6d3b;border-color:#faebcc}.edit-post-visual-editor.editor-styles-wrapper .alert-danger{background-color:#f2dede;color:#a94442;border-color:#ebccd1}.edit-post-visual-editor.editor-styles-wrapper .vk_balloon{display:flex;align-items:center;margin-bottom:1em}.edit-post-visual-editor.editor-styles-wrapper .vk_balloon figure{margin:0}.edit-post-visual-editor.editor-styles-wrapper .vk_balloon p{word-break:break-all;background:#f5f5f5;padding:1.1rem 1.4rem}.edit-post-visual-editor.editor-styles-wrapper .vk_balloon_icon{flex-basis:96px;flex-shrink:0;text-align:center}.edit-post-visual-editor.editor-styles-wrapper .vk_balloon_icon_image{vertical-align:bottom;max-width:64px}.edit-post-visual-editor.editor-styles-wrapper .vk_balloon_icon_name{display:block;text-align:center;font-size:.7rem;margin-top:.2rem}.edit-post-visual-editor.editor-styles-wrapper .vk_balloon_content{position:relative;text-align:left}.edit-post-visual-editor.editor-styles-wrapper .vk_balloon_content.editor-rich-text__tinymce[data-is-placeholder-visible=true]{position:absolute}.edit-post-visual-editor.editor-styles-wrapper .vk_balloon-type-serif .vk_balloon_content{border-color:#f5f5f5;border-radius:.4em}.edit-post-visual-editor.editor-styles-wrapper .vk_balloon-type-serif .vk_balloon_content::after{content:'';position:absolute;width:0;height:0;border:20px solid transparent}.edit-post-visual-editor.editor-styles-wrapper .vk_balloon-type-think .vk_balloon_content{border-radius:2rem}.edit-post-visual-editor.editor-styles-wrapper .vk_balloon-type-think .vk_balloon_content::after,.edit-post-visual-editor.editor-styles-wrapper .vk_balloon-type-think .vk_balloon_content::before{position:absolute;content:'';border-radius:50%;background:inherit}.edit-post-visual-editor.editor-styles-wrapper .vk_balloon-type-think .vk_balloon_content::before{width:20px;height:20px}.edit-post-visual-editor.editor-styles-wrapper .vk_balloon-type-think .vk_balloon_content::after{width:10px;height:10px}.edit-post-visual-editor.editor-styles-wrapper .vk_balloon-position-left.vk_balloon-type-serif .vk_balloon_icon{margin-right:2rem}.edit-post-visual-editor.editor-styles-wrapper .vk_balloon-position-left.vk_balloon-type-serif .vk_balloon_content::after{left:0;top:50%;border-right-color:inherit;border-left:0;margin-top:-20px;margin-left:-20px}.edit-post-visual-editor.editor-styles-wrapper .vk_balloon-position-left.vk_balloon-type-think .vk_balloon_icon{margin-right:2.5rem}.edit-post-visual-editor.editor-styles-wrapper .vk_balloon-position-left.vk_balloon-type-think .vk_balloon_content::before{left:-22px;top:7px}.edit-post-visual-editor.editor-styles-wrapper .vk_balloon-position-left.vk_balloon-type-think .vk_balloon_content::after{left:-35px;top:20px}.edit-post-visual-editor.editor-styles-wrapper .vk_balloon-position-right{flex-direction:row-reverse}.edit-post-visual-editor.editor-styles-wrapper .vk_balloon-position-right.vk_balloon-type-serif .vk_balloon_icon{margin-left:2rem}.edit-post-visual-editor.editor-styles-wrapper .vk_balloon-position-right.vk_balloon-type-serif .vk_balloon_content::after{right:0;top:50%;border-left-color:inherit;border-right:0;margin-top:-20px;margin-right:-20px}.edit-post-visual-editor.editor-styles-wrapper .vk_balloon-position-right.vk_balloon-type-think .vk_balloon_icon{margin-left:2.5rem}.edit-post-visual-editor.editor-styles-wrapper .vk_balloon-position-right.vk_balloon-type-think .vk_balloon_content::before{right:-22px;top:7px}.edit-post-visual-editor.editor-styles-wrapper .vk_balloon-position-right.vk_balloon-type-think .vk_balloon_content::after{right:-35px;top:20px}.edit-post-visual-editor.editor-styles-wrapper .vk_balloon.animation-vibration .vk_balloon_content{display:inline-block;animation:vibration .1s infinite}@keyframes vibration{0%{transform:translate(0,0) rotateZ(0)}25%{transform:translate(2px,2px) rotateZ(1deg)}50%{transform:translate(0,2px) rotateZ(0)}75%{transform:translate(2px,0) rotateZ(-1deg)}100%{transform:translate(0,0) rotateZ(0)}}@media only screen and (max-width:480px){.edit-post-visual-editor.editor-styles-wrapper .vk_balloon{display:block}.edit-post-visual-editor.editor-styles-wrapper .vk_balloon.vk_balloon-position-left.vk_balloon-type-serif .vk_balloon_content{display:inline-block}.edit-post-visual-editor.editor-styles-wrapper .vk_balloon.vk_balloon-position-left.vk_balloon-type-serif .vk_balloon_content::after{top:0;left:2.9rem;width:0;height:0;border:20px solid transparent;border-bottom-color:inherit;border-top:0;margin-left:-20px;margin-top:-20px}.edit-post-visual-editor.editor-styles-wrapper .vk_balloon.vk_balloon-position-left.vk_balloon-type-think .vk_balloon_content{display:inline-block}.edit-post-visual-editor.editor-styles-wrapper .vk_balloon.vk_balloon-position-left.vk_balloon-type-think .vk_balloon_content::before{left:36px;top:-8px}.edit-post-visual-editor.editor-styles-wrapper .vk_balloon.vk_balloon-position-left.vk_balloon-type-think .vk_balloon_content::after{left:47px;top:-20px}.edit-post-visual-editor.editor-styles-wrapper .vk_balloon.vk_balloon-position-right{text-align:right}.edit-post-visual-editor.editor-styles-wrapper .vk_balloon.vk_balloon-position-right.vk_balloon-type-serif .vk_balloon_icon{margin-left:auto;margin-right:0}.edit-post-visual-editor.editor-styles-wrapper .vk_balloon.vk_balloon-position-right.vk_balloon-type-serif .vk_balloon_content{display:inline-block}.edit-post-visual-editor.editor-styles-wrapper .vk_balloon.vk_balloon-position-right.vk_balloon-type-serif .vk_balloon_content::after{top:0;right:2.9rem;width:0;height:0;border:20px solid transparent;border-bottom-color:inherit;border-top:0;margin-left:-20px;margin-top:-20px}.edit-post-visual-editor.editor-styles-wrapper .vk_balloon.vk_balloon-position-right.vk_balloon-type-think .vk_balloon_icon{margin-left:auto;margin-right:0}.edit-post-visual-editor.editor-styles-wrapper .vk_balloon.vk_balloon-position-right.vk_balloon-type-think .vk_balloon_content{display:inline-block}.edit-post-visual-editor.editor-styles-wrapper .vk_balloon.vk_balloon-position-right.vk_balloon-type-think .vk_balloon_content::before{right:36px;top:-8px}.edit-post-visual-editor.editor-styles-wrapper .vk_balloon.vk_balloon-position-right.vk_balloon-type-think .vk_balloon_content::after{right:47px;top:-20px}.edit-post-visual-editor.editor-styles-wrapper .vk_balloon_icon{max-width:96px}}.edit-post-visual-editor.editor-styles-wrapper .vk_button{margin:5px 0}.edit-post-visual-editor.editor-styles-wrapper .vk_button-color-custom a:hover{opacity:.8;box-shadow:0 0 0 .2rem rgba(171,184,195,.25)}.edit-post-visual-editor.editor-styles-wrapper .vk_button-align-left{text-align:left}.edit-post-visual-editor.editor-styles-wrapper .vk_button-align-center{text-align:center}.edit-post-visual-editor.editor-styles-wrapper .vk_button-align-right{text-align:right}.edit-post-visual-editor.editor-styles-wrapper .vk_button-align-block{display:block}.edit-post-visual-editor.editor-styles-wrapper .vk_button_link.btn{padding-top:.7em;padding-bottom:.6em}.edit-post-visual-editor.editor-styles-wrapper .vk_button_link_before{margin-right:.7rem}.edit-post-visual-editor.editor-styles-wrapper .vk_button_link_after{margin-left:.7rem}.edit-post-visual-editor.editor-styles-wrapper .vk_button_link_subCaption{display:block;overflow:hidden;margin:0;font-size:80%}.edit-post-visual-editor.editor-styles-wrapper .vk_button .editor-rich-text{display:inline-block}.edit-post-visual-editor.editor-styles-wrapper .btn.btn-primary{color:#fff}.edit-post-visual-editor.editor-styles-wrapper .btn.btn-secondary{color:#fff;background-color:#6c757d}.edit-post-visual-editor.editor-styles-wrapper .btn.btn-success{color:#fff}.edit-post-visual-editor.editor-styles-wrapper .btn.btn-info{color:#fff}.edit-post-visual-editor.editor-styles-wrapper .btn.btn-warning{color:#fff}.edit-post-visual-editor.editor-styles-wrapper .btn.btn-danger{color:#fff}.edit-post-visual-editor.editor-styles-wrapper .btn.btn-light{color:#fff;background-color:#f8f9fa}.edit-post-visual-editor.editor-styles-wrapper .btn.btn-dark{color:#fff;background-color:#343a40}.edit-post-visual-editor.editor-styles-wrapper .btn.btn-dark:hover,.edit-post-visual-editor.editor-styles-wrapper .btn.btn-secondary:hover{color:#fff}.edit-post-visual-editor.editor-styles-wrapper .btn.btn-outline-primary{color:#007bff;border:1px solid #007bff;background:0 0;box-shadow:none}.edit-post-visual-editor.editor-styles-wrapper .btn.btn-outline-secondary{color:#6c757d;border:1px solid #6c757d;background:0 0;box-shadow:none}.edit-post-visual-editor.editor-styles-wrapper .btn.btn-outline-success{color:#28a745;border:1px solid #28a745;background:0 0;box-shadow:none}.edit-post-visual-editor.editor-styles-wrapper .btn.btn-outline-info{color:#17a2b8;border:1px solid #17a2b8;background:0 0;box-shadow:none}.edit-post-visual-editor.editor-styles-wrapper .btn.btn-outline-warning{color:#ffc107;border:1px solid #ffc107;background:0 0;box-shadow:none}.edit-post-visual-editor.editor-styles-wrapper .btn.btn-outline-danger{color:#dc3545;border:1px solid #dc3545;background:0 0;box-shadow:none}.edit-post-visual-editor.editor-styles-wrapper .btn.btn-outline-light{color:#f8f9fa;border:1px solid #f8f9fa;background:0 0;box-shadow:none}.edit-post-visual-editor.editor-styles-wrapper .btn.btn-outline-dark{color:#343a40;border:1px solid #343a40;background:0 0;box-shadow:none}.edit-post-visual-editor.editor-styles-wrapper .btn.btn-outline-primary:focus,.edit-post-visual-editor.editor-styles-wrapper .btn.btn-outline-primary:hover{background:#007bff;color:#fff}.edit-post-visual-editor.editor-styles-wrapper .btn.btn-outline-secondary:focus,.edit-post-visual-editor.editor-styles-wrapper .btn.btn-outline-secondary:hover{background:#6c757d;color:#fff}.edit-post-visual-editor.editor-styles-wrapper .btn.btn-outline-success:focus,.edit-post-visual-editor.editor-styles-wrapper .btn.btn-outline-success:hover{background:#28a745;color:#fff}.edit-post-visual-editor.editor-styles-wrapper .btn.btn-outline-info:focus,.edit-post-visual-editor.editor-styles-wrapper .btn.btn-outline-info:hover{background:#17a2b8;color:#fff}.edit-post-visual-editor.editor-styles-wrapper .btn.btn-outline-warning:focus,.edit-post-visual-editor.editor-styles-wrapper .btn.btn-outline-warning:hover{background:#ffc107;color:#fff}.edit-post-visual-editor.editor-styles-wrapper .btn.btn-outline-danger:focus,.edit-post-visual-editor.editor-styles-wrapper .btn.btn-outline-danger:hover{background:#dc3545;color:#fff}.edit-post-visual-editor.editor-styles-wrapper .btn.btn-outline-light:focus,.edit-post-visual-editor.editor-styles-wrapper .btn.btn-outline-light:hover{background:#f8f9fa;color:#fff}.edit-post-visual-editor.editor-styles-wrapper .btn.btn-outline-dark:focus,.edit-post-visual-editor.editor-styles-wrapper .btn.btn-outline-dark:hover{background:#343a40;color:#fff}.edit-post-visual-editor.editor-styles-wrapper .vk_faq{display:block;overflow:hidden;border-bottom:1px dotted #ccc;padding:0 0 25px;margin:25px 0;width:100%;position:relative}.edit-post-visual-editor.editor-styles-wrapper .vk_faq_content,.edit-post-visual-editor.editor-styles-wrapper .vk_faq_title{border:none;padding-left:35px}.edit-post-visual-editor.editor-styles-wrapper .vk_faq_content:before,.edit-post-visual-editor.editor-styles-wrapper .vk_faq_title:before{position:absolute;left:0;font-size:24px;line-height:105%}.edit-post-visual-editor.editor-styles-wrapper .vk_faq_title{margin-bottom:15px;font-size:18px;font-weight:700}.edit-post-visual-editor.editor-styles-wrapper .vk_faq_title:before{font-family:areal;content:"Q ";color:#e50000}.edit-post-visual-editor.editor-styles-wrapper .vk_faq_content{margin:0}.edit-post-visual-editor.editor-styles-wrapper .vk_faq_content:before{content:"A ";color:#337ab7;font-family:""}.edit-post-visual-editor.editor-styles-wrapper .vk_flow-arrow-on:after{content:"";background:url(../images/arrow_bottom.svg) center 50% no-repeat;background-size:50px 50px;display:block;overflow:hidden;height:50px;width:50px;margin:0 auto}.edit-post-visual-editor.editor-styles-wrapper .vk_flow-arrow-off{padding-bottom:0;margin-bottom:30px}.edit-post-visual-editor.editor-styles-wrapper .vk_flow-arrow-off:after{content:"";font-size:0;background-image:none}.edit-post-visual-editor.editor-styles-wrapper .vk_flow_frame{display:flex;padding:20px 25px;border:3px solid #e5e5e5;margin:0;justify-content:space-between}.edit-post-visual-editor.editor-styles-wrapper .vk_flow_frame_text{display:block;overflow:hidden;margin:0;width:100%;box-sizing:border-box}.edit-post-visual-editor.editor-styles-wrapper .vk_flow_frame_text_content,.edit-post-visual-editor.editor-styles-wrapper .vk_flow_frame_text_title{padding-left:0;border:none}.edit-post-visual-editor.editor-styles-wrapper .vk_flow_frame_text_title{border-bottom:1px dotted #ccc;margin:0 0 10px;padding:0 0 5px;font-size:1.2em}.edit-post-visual-editor.editor-styles-wrapper .vk_flow_frame_text_content{margin-bottom:0}.edit-post-visual-editor.editor-styles-wrapper .vk_flow_frame_image{max-width:150px;margin-left:15px;box-sizing:border-box}.edit-post-visual-editor.editor-styles-wrapper .vk_heading_title-style-plain{background:0 0;border:none;border-radius:0;padding:0;font-weight:400;box-shadow:none}.edit-post-visual-editor.editor-styles-wrapper .vk_heading_title-style-plain:after{border:none}.edit-post-visual-editor.editor-styles-wrapper .vk_heading_subtext{margin-bottom:0}.edit-post-visual-editor.editor-styles-wrapper .vk_outer{background-position:center;background-size:cover;background-repeat:no-repeat;position:relative}.edit-post-visual-editor.editor-styles-wrapper .vk_outer .vk_outer_container{min-height:40px}.edit-post-visual-editor.editor-styles-wrapper .vk_outer-width-full{margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);padding-left:calc(50vw - 50%);padding-right:calc(50vw - 50%)}.edit-post-visual-editor.editor-styles-wrapper .vk_outer-paddingLR-use{padding-left:1.5em;padding-right:1.5em}@media (min-width:576px){.edit-post-visual-editor.editor-styles-wrapper .vk_outer-paddingLR-use{padding-left:2em;padding-right:2em}}@media (min-width:768px){.edit-post-visual-editor.editor-styles-wrapper .vk_outer-paddingLR-use{padding-left:2.5em;padding-right:2.5em}}@media (min-width:992px){.edit-post-visual-editor.editor-styles-wrapper .vk_outer-paddingLR-use{padding-left:3em;padding-right:3em}}@media (min-width:1200px){.edit-post-visual-editor.editor-styles-wrapper .vk_outer-paddingLR-use{padding-left:3.5em;padding-right:3.5em}}.edit-post-visual-editor.editor-styles-wrapper .vk_outer-paddingVertical-use{padding-top:1.5em;padding-bottom:1.5em}@media (min-width:576px){.edit-post-visual-editor.editor-styles-wrapper .vk_outer-paddingVertical-use{padding-top:2em;padding-bottom:2em}}@media (min-width:768px){.edit-post-visual-editor.editor-styles-wrapper .vk_outer-paddingVertical-use{padding-top:2.5em;padding-bottom:2.5em}}@media (min-width:992px){.edit-post-visual-editor.editor-styles-wrapper .vk_outer-paddingVertical-use{padding-top:3em;padding-bottom:3em}}@media (min-width:1200px){.edit-post-visual-editor.editor-styles-wrapper .vk_outer-paddingVertical-use{padding-top:3.5em;padding-bottom:3.5em}}.edit-post-visual-editor.editor-styles-wrapper .vk_outer-bgPosition-fixed{background-attachment:fixed!important;background-size:cover!important}.edit-post-visual-editor.editor-styles-wrapper .vk_outer-bgPosition-normal{background-attachment:unset!important;background-size:cover!important}.edit-post-visual-editor.editor-styles-wrapper .vk_outer_separator svg{display:block;max-height:100px;position:absolute;left:0;width:100%}.edit-post-visual-editor.editor-styles-wrapper .vk_outer_separator-position-upper svg{top:0;transform:rotate(180deg)}.edit-post-visual-editor.editor-styles-wrapper .vk_outer_separator-position-lower svg{bottom:0}.edit-post-visual-editor.editor-styles-wrapper .vk_outer .editor-block-list__block{margin:0}@media screen and (max-width:992px){.edit-post-visual-editor.editor-styles-wrapper .vk_prBlocks_item{margin-bottom:1.5em}}.edit-post-visual-editor.editor-styles-wrapper .vk_prBlocks_item_link{color:#333}.edit-post-visual-editor.editor-styles-wrapper .vk_prBlocks_item_link:hover{color:#333;text-decoration:none}.edit-post-visual-editor.editor-styles-wrapper .vk_prBlocks_item_icon_outer{display:block;position:relative;margin:0 auto;width:80px;height:80px;border-radius:50%}.edit-post-visual-editor.editor-styles-wrapper .vk_prBlocks_item_icon{position:absolute;top:50%;left:50%;transform:translateY(-50%) translateX(-50%);font-size:36px;color:#fff}.edit-post-visual-editor.editor-styles-wrapper .vk_prBlocks_item_title{margin-top:.9em;margin-bottom:.6em;text-align:center;font-size:21px;line-height:1.4em;border:none;padding:0}.edit-post-visual-editor.editor-styles-wrapper .vk_prBlocks_item_title::after{border:none}.edit-post-visual-editor.editor-styles-wrapper .vk_prBlocks_item_image{position:relative;display:block;width:120px;height:120px;margin:0 auto;overflow:hidden;border-radius:50%;text-indent:-9999px}.edit-post-visual-editor.editor-styles-wrapper .vk_prBlocks_item_summary{margin-bottom:.5em;text-align:center;line-height:1.8em}.edit-post-visual-editor.editor-styles-wrapper .vk_prContent{margin-left:-15px;margin-right:-15px}@media (min-width:576px){.edit-post-visual-editor.editor-styles-wrapper .vk_prContent{display:flex}.edit-post-visual-editor.editor-styles-wrapper .vk_prContent .col-sm-6{width:50%}.edit-post-visual-editor.editor-styles-wrapper .vk_prContent-layout-imageLeft{flex-direction:row}.edit-post-visual-editor.editor-styles-wrapper .vk_prContent-layout-imageRight{flex-direction:row-reverse}.edit-post-visual-editor.editor-styles-wrapper .vk_prContent-layout-imageLeft .vk_prContent_colImg{padding-right:2em}.edit-post-visual-editor.editor-styles-wrapper .vk_prContent-layout-imageRight .vk_prContent_colImg{padding-left:2em}}.edit-post-visual-editor.editor-styles-wrapper .vk_prContent_colTxt{vertical-align:top}.edit-post-visual-editor.editor-styles-wrapper .vk_prContent_colTxt_title{background-color:transparent;font-weight:700;padding:0;box-shadow:none;border:none;margin-bottom:.8em}@media (max-width:575.98px){.edit-post-visual-editor.editor-styles-wrapper .vk_prContent_colTxt_title:first-child{margin-top:30px}}.edit-post-visual-editor.editor-styles-wrapper .vk_prContent_colTxt_title:after{content:"";line-height:0;display:block;overflow:hidden;position:absolute;bottom:-1px;width:0;border:none}.edit-post-visual-editor.editor-styles-wrapper .vk_prContent_colTxt_text{line-height:2em;margin-bottom:1.7em}@media (min-width:992px){.edit-post-visual-editor.editor-styles-wrapper .vk_prContent_colTxt_btn.btn{font-size:16px}}.edit-post-visual-editor.editor-styles-wrapper .vk_prContent_colImg_image{max-width:100%;height:auto}.edit-post-visual-editor.editor-styles-wrapper .vk_prContent_colImg .components-button.button{margin:1em}.edit-post-visual-editor.editor-styles-wrapper .vk_prContent_colImg .components-button.image-button{margin:0}@media (max-width:576px){.edit-post-visual-editor.editor-styles-wrapper .vk_spacer .vk_spacer-display-pc{display:none}.edit-post-visual-editor.editor-styles-wrapper .vk_spacer .vk_spacer-display-tablet{display:none}.edit-post-visual-editor.editor-styles-wrapper .vk_spacer .vk_spacer-display-mobile{display:block}}@media (min-width:577px) and (max-width:768px){.edit-post-visual-editor.editor-styles-wrapper .vk_spacer .vk_spacer-display-pc{display:none}.edit-post-visual-editor.editor-styles-wrapper .vk_spacer .vk_spacer-display-tablet{display:block}.edit-post-visual-editor.editor-styles-wrapper .vk_spacer .vk_spacer-display-mobile{display:none}}@media (min-width:769px){.edit-post-visual-editor.editor-styles-wrapper .vk_spacer .vk_spacer-display-pc{display:block}.edit-post-visual-editor.editor-styles-wrapper .vk_spacer .vk_spacer-display-tablet{display:none}.edit-post-visual-editor.editor-styles-wrapper .vk_spacer .vk_spacer-display-mobile{display:none}}@media (max-width:575.98px){.edit-post-visual-editor.editor-styles-wrapper .vk_table-col-mobile1 td,.edit-post-visual-editor.editor-styles-wrapper .vk_table-col-mobile1 th{display:block}.edit-post-visual-editor.editor-styles-wrapper .vk_table-col-mobile1 th{background-color:rgba(0,0,0,.05)}.edit-post-visual-editor.editor-styles-wrapper .vk_table-col-mobile1.table-striped tbody tr:nth-of-type(odd){background:inherit}}.edit-post-visual-editor.editor-styles-wrapper .vk_simpleTable-edit .editor-block-list__block,.edit-post-visual-editor.editor-styles-wrapper .vk_simpleTable-edit .editor-block-list__block-edit,.edit-post-visual-editor.editor-styles-wrapper .vk_simpleTable-edit .editor-block-list__layout,.edit-post-visual-editor.editor-styles-wrapper .vk_simpleTable-edit .editor-inner-blocks,.edit-post-visual-editor.editor-styles-wrapper .vk_simpleTable-edit .editor-rich-text__editable{padding:0;margin:0;width:100%}.edit-post-visual-editor.editor-styles-wrapper .vk_simpleTable-edit>.editor-inner-blocks{margin-top:-1px}.edit-post-visual-editor.editor-styles-wrapper .vk_simpleTable-edit .editor-block-list__block-edit{height:100%}.edit-post-visual-editor.editor-styles-wrapper .vk_simpleTable-edit .block-editor-block-list__insertion-point{top:-5px}.edit-post-visual-editor.editor-styles-wrapper .vk_simpleTable-edit .editor-block-list__block-edit:before{right:0;left:0;top:0;bottom:0}.edit-post-visual-editor.editor-styles-wrapper .vk_simpleTable-edit .editor-inner-blocks tr{width:100%;display:block;border-bottom:1px solid #e5e5e5}.edit-post-visual-editor.editor-styles-wrapper .vk_simpleTable-edit .editor-inner-blocks tr .editor-block-list__layout{display:flex}.edit-post-visual-editor.editor-styles-wrapper .vk_simpleTable-edit .editor-inner-blocks td,.edit-post-visual-editor.editor-styles-wrapper .vk_simpleTable-edit .editor-inner-blocks th{padding:0;display:block;width:100%;border:none}.edit-post-visual-editor.editor-styles-wrapper .vk_simpleTable-edit .editor-inner-blocks td .editor-rich-text__editable,.edit-post-visual-editor.editor-styles-wrapper .vk_simpleTable-edit .editor-inner-blocks th .editor-rich-text__editable{padding:14px}.edit-post-visual-editor.editor-styles-wrapper .vk_simpleTable-edit.table-striped>tbody>.editor-inner-blocks>.editor-block-list__layout>div:nth-of-type(odd){background-color:rgba(0,0,0,.05)}.edit-post-visual-editor.editor-styles-wrapper .vk_staff_text{float:left;width:61.6%}.edit-post-visual-editor.editor-styles-wrapper .vk_staff_photo{float:right;width:32%}.edit-post-visual-editor.editor-styles-wrapper .vk_staff-layout-imageLeft .vk_staff_text{float:right}.edit-post-visual-editor.editor-styles-wrapper .vk_staff-layout-imageLeft .vk_staff_photo{float:left}.edit-post-visual-editor.editor-styles-wrapper .vk_staff{display:block;overflow:hidden}.edit-post-visual-editor.editor-styles-wrapper .vk_staff_text_name{text-align:left;box-shadow:none;font-size:3.5rem;font-family:"MS P明朝","MS PMincho","ヒラギノ明朝 Pro W3","Hiragino Mincho Pro",serif;line-height:1;margin-bottom:.5rem;border:none;padding:0;background-color:transparent}.edit-post-visual-editor.editor-styles-wrapper .vk_staff_text_name:after,.edit-post-visual-editor.editor-styles-wrapper .vk_staff_text_name:before{border:none}.edit-post-visual-editor.editor-styles-wrapper .vk_staff_text_caption{font-family:"MS P明朝","MS PMincho","ヒラギノ明朝 Pro W3","Hiragino Mincho Pro",serif;font-size:14px;display:block;margin:0 0 .5rem 4px;letter-spacing:5px}.edit-post-visual-editor.editor-styles-wrapper .vk_staff_text_role{font-size:14px;line-height:1.6em;font-family:"MS P明朝","MS PMincho","ヒラギノ明朝 Pro W3","Hiragino Mincho Pro",serif}.edit-post-visual-editor.editor-styles-wrapper .vk_staff_text_profileTitle{font-size:18px;font-family:"MS P明朝","MS PMincho","ヒラギノ明朝 Pro W3","Hiragino Mincho Pro",serif;padding-top:0;padding-left:0;padding-bottom:2px;margin-bottom:1.2rem;border-top:none;border-bottom:1px solid #ccc;background:0 0}.edit-post-visual-editor.editor-styles-wrapper .vk_staff_text_profileTitle:after,.edit-post-visual-editor.editor-styles-wrapper .vk_staff_text_profileTitle:before{border:none}.edit-post-visual-editor.editor-styles-wrapper .vk_staff_text_profileText{font-size:14px}.edit-post-visual-editor.editor-styles-wrapper .vk_staff_photo{display:block;vertical-align:top;text-align:center}.edit-post-visual-editor.editor-styles-wrapper .vk_staff_photo button{width:100%}.edit-post-visual-editor.editor-styles-wrapper .vk_staff_photo .image-button{padding:0;margin:0;display:block}.edit-post-visual-editor.editor-styles-wrapper .vk_staff_photo-border-default{border:4px solid #efefef;padding:1px}.edit-post-visual-editor.editor-styles-wrapper .vk_staff_photo-border-none{border:none}.edit-post-visual-editor.editor-styles-wrapper .vk_staff_photo_image{width:100%;margin:0;display:block}@media (min-width:992px){.edit-post-visual-editor.editor-styles-wrapper .page-template-page-lp .vk_staff_text,.edit-post-visual-editor.editor-styles-wrapper .page-template-page-lp-builder .vk_staff_text,.edit-post-visual-editor.editor-styles-wrapper .page-template-page-onecolumn .vk_staff_text{width:74%}.edit-post-visual-editor.editor-styles-wrapper .page-template-page-lp .vk_staff_text_name,.edit-post-visual-editor.editor-styles-wrapper .page-template-page-lp-builder .vk_staff_text_name,.edit-post-visual-editor.editor-styles-wrapper .page-template-page-onecolumn .vk_staff_text_name{font-size:4rem}.edit-post-visual-editor.editor-styles-wrapper .page-template-page-lp .vk_staff_text_caption,.edit-post-visual-editor.editor-styles-wrapper .page-template-page-lp-builder .vk_staff_text_caption,.edit-post-visual-editor.editor-styles-wrapper .page-template-page-onecolumn .vk_staff_text_caption{font-size:16px;letter-spacing:.5rem}.edit-post-visual-editor.editor-styles-wrapper .page-template-page-lp .vk_staff_text_role,.edit-post-visual-editor.editor-styles-wrapper .page-template-page-lp-builder .vk_staff_text_role,.edit-post-visual-editor.editor-styles-wrapper .page-template-page-onecolumn .vk_staff_text_role{letter-spacing:.5rem}.edit-post-visual-editor.editor-styles-wrapper .page-template-page-lp .vk_staff_photo,.edit-post-visual-editor.editor-styles-wrapper .page-template-page-lp-builder .vk_staff_photo,.edit-post-visual-editor.editor-styles-wrapper .page-template-page-onecolumn .vk_staff_photo{width:22%}}@media (min-width:1200px){.edit-post-visual-editor.editor-styles-wrapper .page-template-page-lp .vk_staff_text,.edit-post-visual-editor.editor-styles-wrapper .page-template-page-lp-builder .vk_staff_text,.edit-post-visual-editor.editor-styles-wrapper .page-template-page-onecolumn .vk_staff_text{width:75%}.edit-post-visual-editor.editor-styles-wrapper .page-template-page-lp .vk_staff_photo,.edit-post-visual-editor.editor-styles-wrapper .page-template-page-lp-builder .vk_staff_photo,.edit-post-visual-editor.editor-styles-wrapper .page-template-page-onecolumn .vk_staff_photo{width:20%}}.edit-post-visual-editor.editor-styles-wrapper .vk_tableOfContents{margin-top:3.5em;margin-bottom:3.5em}.edit-post-visual-editor.editor-styles-wrapper .vk_tableOfContents-style-default{border:3px solid rgba(0,0,0,.04);box-shadow:inset 0 0 0 1px #fff;background-color:rgba(0,0,0,.015);padding:3rem 4rem}.edit-post-visual-editor.editor-styles-wrapper .vk_tableOfContents_title{text-align:center;font-size:1.2em;letter-spacing:.5em}.edit-post-visual-editor.editor-styles-wrapper .vk_tableOfContents li{margin:0}.edit-post-visual-editor.editor-styles-wrapper .vk_tableOfContents_list{padding:0;margin-top:1em}.edit-post-visual-editor.editor-styles-wrapper .vk_tableOfContents_list_item{list-style:none;border-bottom:1px solid #e5e5e5;padding:.8rem 0}.edit-post-visual-editor.editor-styles-wrapper .vk_tableOfContents_list_item-h-3{padding-left:1rem}.edit-post-visual-editor.editor-styles-wrapper .vk_tableOfContents_list_item-h-4{padding-left:2rem}.edit-post-visual-editor.editor-styles-wrapper .vk_tableOfContents_list_item-h-5{padding-left:3rem}.edit-post-visual-editor.editor-styles-wrapper .vk_tableOfContents_list_item-h-6{padding-left:4rem}.edit-post-visual-editor.editor-styles-wrapper .vk_tableOfContents_list_item_link{color:#333;border-bottom:1px solid #ccc}.edit-post-visual-editor.editor-styles-wrapper .vk_tableOfContents_list_item_link:hover{text-decoration:none;border-bottom:none}.edit-post-visual-editor.editor-styles-wrapper .vk_table-col-overflow{white-space:nowrap!important}
inc/vk-blocks/package/build/block-build.css ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @media (min-width: 600px){.wp-block-columns{margin-left:-15px;margin-right:-15px}.wp-block-column{-ms-flex-preferred-size:auto;flex-basis:auto;margin-left:15px;margin-right:15px;width:calc( 50% - 30px)}.wp-block-column:not(:first-child),.wp-block-column:not(:last-child),.wp-block-column:nth-child(odd){margin-left:15px;margin-right:15px}}
2
+
3
+ .alert{padding:1em;margin:1em 0;border-radius:3px}.alert+.alert{margin-top:2em}.alert a{transition:color .3s linear, opacity .3s linear}.alert a:link,.alert a:visited{opacity:.8;text-decoration:underline}.alert a:hover,.alert a:visited{opacity:1;text-decoration:none}.alert-success{background-color:#dff0d8;color:#3c763d;border-color:#d6e9c6}.alert-info{background-color:#d9edf7;color:#31708f;border-color:#bce8f1}.alert-warning{background-color:#fcf8e3;color:#8a6d3b;border-color:#faebcc}.alert-danger{background-color:#f2dede;color:#a94442;border-color:#ebccd1}
4
+
5
+ .vk_balloon{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:1em}.vk_balloon figure{margin:0}.vk_balloon p{word-break:break-all;background:#f5f5f5;padding:1.1rem 1.4rem}.vk_balloon_icon{-ms-flex-preferred-size:96px;flex-basis:96px;-ms-flex-negative:0;flex-shrink:0;text-align:center}.vk_balloon_icon_image{vertical-align:bottom;max-width:64px}.vk_balloon_icon_name{display:block;text-align:center;font-size:0.7rem;margin-top:0.2rem}.vk_balloon_content{position:relative;text-align:left}.vk_balloon_content.editor-rich-text__tinymce[data-is-placeholder-visible=true]{position:absolute}.vk_balloon-type-serif .vk_balloon_content{border-color:#f5f5f5;border-radius:.4em}.vk_balloon-type-serif .vk_balloon_content::after{content:'';position:absolute;width:0;height:0;border:20px solid transparent}.vk_balloon-type-think .vk_balloon_content{border-radius:2rem}.vk_balloon-type-think .vk_balloon_content::before,.vk_balloon-type-think .vk_balloon_content::after{position:absolute;content:'';border-radius:50%;background:inherit}.vk_balloon-type-think .vk_balloon_content::before{width:20px;height:20px}.vk_balloon-type-think .vk_balloon_content::after{width:10px;height:10px}.vk_balloon-position-left.vk_balloon-type-serif .vk_balloon_icon{margin-right:2rem}.vk_balloon-position-left.vk_balloon-type-serif .vk_balloon_content::after{left:0;top:50%;border-right-color:inherit;border-left:0;margin-top:-20px;margin-left:-20px}.vk_balloon-position-left.vk_balloon-type-think .vk_balloon_icon{margin-right:2.5rem}.vk_balloon-position-left.vk_balloon-type-think .vk_balloon_content::before{left:-22px;top:7px}.vk_balloon-position-left.vk_balloon-type-think .vk_balloon_content::after{left:-35px;top:20px}.vk_balloon-position-right{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.vk_balloon-position-right.vk_balloon-type-serif .vk_balloon_icon{margin-left:2rem}.vk_balloon-position-right.vk_balloon-type-serif .vk_balloon_content::after{right:0;top:50%;border-left-color:inherit;border-right:0;margin-top:-20px;margin-right:-20px}.vk_balloon-position-right.vk_balloon-type-think .vk_balloon_icon{margin-left:2.5rem}.vk_balloon-position-right.vk_balloon-type-think .vk_balloon_content::before{right:-22px;top:7px}.vk_balloon-position-right.vk_balloon-type-think .vk_balloon_content::after{right:-35px;top:20px}.vk_balloon.animation-vibration .vk_balloon_content{display:inline-block;animation:vibration .1s infinite}@keyframes vibration{0%{transform:translate(0px, 0px) rotateZ(0deg)}25%{transform:translate(2px, 2px) rotateZ(1deg)}50%{transform:translate(0px, 2px) rotateZ(0deg)}75%{transform:translate(2px, 0px) rotateZ(-1deg)}100%{transform:translate(0px, 0px) rotateZ(0deg)}}@media only screen and (max-width: 480px){.vk_balloon{display:block}.vk_balloon.vk_balloon-position-left.vk_balloon-type-serif .vk_balloon_content{display:inline-block}.vk_balloon.vk_balloon-position-left.vk_balloon-type-serif .vk_balloon_content::after{top:0;left:2.9rem;width:0;height:0;border:20px solid transparent;border-bottom-color:inherit;border-top:0;margin-left:-20px;margin-top:-20px}.vk_balloon.vk_balloon-position-left.vk_balloon-type-think .vk_balloon_content{display:inline-block}.vk_balloon.vk_balloon-position-left.vk_balloon-type-think .vk_balloon_content::before{left:36px;top:-8px}.vk_balloon.vk_balloon-position-left.vk_balloon-type-think .vk_balloon_content::after{left:47px;top:-20px}.vk_balloon.vk_balloon-position-right{text-align:right}.vk_balloon.vk_balloon-position-right.vk_balloon-type-serif .vk_balloon_icon{margin-left:auto;margin-right:0}.vk_balloon.vk_balloon-position-right.vk_balloon-type-serif .vk_balloon_content{display:inline-block}.vk_balloon.vk_balloon-position-right.vk_balloon-type-serif .vk_balloon_content::after{top:0;right:2.9rem;width:0;height:0;border:20px solid transparent;border-bottom-color:inherit;border-top:0;margin-left:-20px;margin-top:-20px}.vk_balloon.vk_balloon-position-right.vk_balloon-type-think .vk_balloon_icon{margin-left:auto;margin-right:0}.vk_balloon.vk_balloon-position-right.vk_balloon-type-think .vk_balloon_content{display:inline-block}.vk_balloon.vk_balloon-position-right.vk_balloon-type-think .vk_balloon_content::before{right:36px;top:-8px}.vk_balloon.vk_balloon-position-right.vk_balloon-type-think .vk_balloon_content::after{right:47px;top:-20px}.vk_balloon_icon{max-width:96px}}
6
+
7
+ .vk_button{margin:5px 0}.vk_button-color-custom a:hover{opacity:0.8;box-shadow:0 0 0 0.2rem rgba(171,184,195,0.25)}.vk_button-align-left{text-align:left}.vk_button-align-center{text-align:center}.vk_button-align-right{text-align:right}.vk_button-align-block{display:block}.vk_button_link.btn{padding-top:.7em;padding-bottom:.6em}.vk_button_link_before{margin-right:0.7rem}.vk_button_link_after{margin-left:0.7rem}.vk_button_link_subCaption{display:block;overflow:hidden;margin:0;font-size:80%}.vk_button .editor-rich-text{display:inline-block}.btn.btn-primary{color:#fff}.btn.btn-secondary{color:#fff;background-color:#6c757d}.btn.btn-success{color:#fff}.btn.btn-info{color:#fff}.btn.btn-warning{color:#fff}.btn.btn-danger{color:#fff}.btn.btn-light{color:#fff;background-color:#f8f9fa}.btn.btn-dark{color:#fff;background-color:#343a40}.btn.btn-secondary:hover,.btn.btn-dark:hover{color:#fff}.btn.btn-outline-primary{color:#007bff;border:1px solid #007bff;background:none;box-shadow:none}.btn.btn-outline-secondary{color:#6c757d;border:1px solid #6c757d;background:none;box-shadow:none}.btn.btn-outline-success{color:#28a745;border:1px solid #28a745;background:none;box-shadow:none}.btn.btn-outline-info{color:#17a2b8;border:1px solid #17a2b8;background:none;box-shadow:none}.btn.btn-outline-warning{color:#ffc107;border:1px solid #ffc107;background:none;box-shadow:none}.btn.btn-outline-danger{color:#dc3545;border:1px solid #dc3545;background:none;box-shadow:none}.btn.btn-outline-light{color:#f8f9fa;border:1px solid #f8f9fa;background:none;box-shadow:none}.btn.btn-outline-dark{color:#343a40;border:1px solid #343a40;background:none;box-shadow:none}.btn.btn-outline-primary:hover,.btn.btn-outline-primary:focus{background:#007bff;color:#fff}.btn.btn-outline-secondary:hover,.btn.btn-outline-secondary:focus{background:#6c757d;color:#fff}.btn.btn-outline-success:hover,.btn.btn-outline-success:focus{background:#28a745;color:#fff}.btn.btn-outline-info:hover,.btn.btn-outline-info:focus{background:#17a2b8;color:#fff}.btn.btn-outline-warning:hover,.btn.btn-outline-warning:focus{background:#ffc107;color:#fff}.btn.btn-outline-danger:hover,.btn.btn-outline-danger:focus{background:#dc3545;color:#fff}.btn.btn-outline-light:hover,.btn.btn-outline-light:focus{background:#f8f9fa;color:#fff}.btn.btn-outline-dark:hover,.btn.btn-outline-dark:focus{background:#343a40;color:#fff}
8
+
9
+ .vk_faq{display:block;overflow:hidden;border-bottom:1px dotted #ccc;padding:0px 0px 25px;margin:25px 0px;width:100%;position:relative}.vk_faq_title,.vk_faq_content{border:none;padding-left:35px}.vk_faq_title:before,.vk_faq_content:before{position:absolute;left:0;font-size:24px;line-height:105%}.vk_faq_title{margin-bottom:15px;font-size:18px;font-weight:700}.vk_faq_title:before{font-family:"areal";content:"Q ";color:#e50000}.vk_faq_content{margin:0px}.vk_faq_content:before{content:"A ";color:#337ab7;font-family:""}
10
+
11
+ .vk_flow-arrow-on:after{content:"";background:url("../images/arrow_bottom.svg") center 50% no-repeat;background-size:50px 50px;display:block;overflow:hidden;height:50px;width:50px;margin:0 auto}.vk_flow-arrow-off{padding-bottom:0px;margin-bottom:30px}.vk_flow-arrow-off:after{content:"";font-size:0;background-image:none}.vk_flow_frame{display:-ms-flexbox;display:flex;padding:20px 25px;border:3px solid #e5e5e5;margin:0;-ms-flex-pack:justify;justify-content:space-between}.vk_flow_frame_text{display:block;overflow:hidden;margin:0;width:100%;box-sizing:border-box}.vk_flow_frame_text_title,.vk_flow_frame_text_content{padding-left:0;border:none}.vk_flow_frame_text_title{border-bottom:1px dotted #ccc;margin:0 0 10px;padding:0 0 5px;font-size:1.2em}.vk_flow_frame_text_content{margin-bottom:0px}.vk_flow_frame_image{max-width:150px;margin-left:15px;box-sizing:border-box}
12
+
13
+ .vk_heading_title-style-plain{background:none;border:none;border-radius:0;padding:0;font-weight:normal;box-shadow:none}.vk_heading_title-style-plain:after{border:none}.vk_heading_subtext{margin-bottom:0}
14
+
15
+ .vk_outer{background-position:center;background-size:cover;background-repeat:no-repeat;position:relative}.vk_outer .vk_outer_container{min-height:40px}.vk_outer-width-full{margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);padding-left:calc(50vw - 50%);padding-right:calc(50vw - 50%)}.vk_outer-paddingLR-use{padding-left:1.5em;padding-right:1.5em}@media (min-width: 576px){.vk_outer-paddingLR-use{padding-left:2em;padding-right:2em}}@media (min-width: 768px){.vk_outer-paddingLR-use{padding-left:2.5em;padding-right:2.5em}}@media (min-width: 992px){.vk_outer-paddingLR-use{padding-left:3em;padding-right:3em}}@media (min-width: 1200px){.vk_outer-paddingLR-use{padding-left:3.5em;padding-right:3.5em}}.vk_outer-paddingVertical-use{padding-top:1.5em;padding-bottom:1.5em}@media (min-width: 576px){.vk_outer-paddingVertical-use{padding-top:2em;padding-bottom:2em}}@media (min-width: 768px){.vk_outer-paddingVertical-use{padding-top:2.5em;padding-bottom:2.5em}}@media (min-width: 992px){.vk_outer-paddingVertical-use{padding-top:3em;padding-bottom:3em}}@media (min-width: 1200px){.vk_outer-paddingVertical-use{padding-top:3.5em;padding-bottom:3.5em}}.vk_outer-bgPosition-fixed{background-attachment:fixed !important;background-size:cover !important}.vk_outer-bgPosition-normal{background-attachment:unset !important;background-size:cover !important}.vk_outer_separator svg{display:block;max-height:100px;position:absolute;left:0;width:100%}.vk_outer_separator-position-upper svg{top:0;transform:rotate(180deg)}.vk_outer_separator-position-lower svg{bottom:0}.vk_outer .editor-block-list__block{margin:0}
16
+
17
+ @media screen and (max-width: 992px){.vk_prBlocks_item{margin-bottom:1.5em}}.vk_prBlocks_item_link{color:#333}.vk_prBlocks_item_link:hover{color:#333;text-decoration:none}.vk_prBlocks_item_icon_outer{display:block;position:relative;margin:0 auto;width:80px;height:80px;border-radius:50%}.vk_prBlocks_item_icon{position:absolute;top:50%;left:50%;transform:translateY(-50%) translateX(-50%);font-size:36px;color:#fff}.vk_prBlocks_item_title{margin-top:0.9em;margin-bottom:0.6em;text-align:center;font-size:21px;line-height:1.4em;border:none;padding:0}.vk_prBlocks_item_title::after{border:none}.vk_prBlocks_item_image{position:relative;display:block;width:120px;height:120px;margin:0 auto;overflow:hidden;border-radius:50%;text-indent:-9999px}.vk_prBlocks_item_summary{margin-bottom:0.5em;text-align:center;line-height:1.8em}
18
+
19
+ .vk_prContent{margin-left:-15px;margin-right:-15px}@media (min-width: 576px){.vk_prContent{display:-ms-flexbox;display:flex}.vk_prContent .col-sm-6{width:50%}.vk_prContent-layout-imageLeft{-ms-flex-direction:row;flex-direction:row}.vk_prContent-layout-imageRight{-ms-flex-direction:row-reverse;flex-direction:row-reverse}.vk_prContent-layout-imageLeft .vk_prContent_colImg{padding-right:2em}.vk_prContent-layout-imageRight .vk_prContent_colImg{padding-left:2em}}.vk_prContent_colTxt{vertical-align:top}.vk_prContent_colTxt_title{background-color:transparent;font-weight:bold;padding:0;box-shadow:none;border:none;margin-bottom:0.8em}@media (max-width: 575.98px){.vk_prContent_colTxt_title:first-child{margin-top:30px}}.vk_prContent_colTxt_title:after{content:"";line-height:0;display:block;overflow:hidden;position:absolute;bottom:-1px;width:0;border:none}.vk_prContent_colTxt_text{line-height:2em;margin-bottom:1.7em}@media (min-width: 992px){.vk_prContent_colTxt_btn.btn{font-size:16px}}.vk_prContent_colImg_image{max-width:100%;height:auto}.vk_prContent_colImg .components-button.button{margin:1em}.vk_prContent_colImg .components-button.image-button{margin:0}
20
+
21
+ @media (max-width: 576px){.vk_spacer .vk_spacer-display-pc{display:none}.vk_spacer .vk_spacer-display-tablet{display:none}.vk_spacer .vk_spacer-display-mobile{display:block}}@media (min-width: 577px) and (max-width: 768px){.vk_spacer .vk_spacer-display-pc{display:none}.vk_spacer .vk_spacer-display-tablet{display:block}.vk_spacer .vk_spacer-display-mobile{display:none}}@media (min-width: 769px){.vk_spacer .vk_spacer-display-pc{display:block}.vk_spacer .vk_spacer-display-tablet{display:none}.vk_spacer .vk_spacer-display-mobile{display:none}}
22
+
23
+ @media (max-width: 575.98px){.vk_table-col-mobile1 th,.vk_table-col-mobile1 td{display:block}.vk_table-col-mobile1 th{background-color:rgba(0,0,0,0.05)}.vk_table-col-mobile1.table-striped tbody tr:nth-of-type(odd){background:inherit}}.vk_simpleTable-edit .editor-inner-blocks,.vk_simpleTable-edit .editor-block-list__layout,.vk_simpleTable-edit .editor-block-list__block,.vk_simpleTable-edit .editor-rich-text__editable,.vk_simpleTable-edit .editor-block-list__block-edit{padding:0;margin:0;width:100%}.vk_simpleTable-edit>.editor-inner-blocks{margin-top:-1px}.vk_simpleTable-edit .editor-block-list__block-edit{height:100%}.vk_simpleTable-edit .block-editor-block-list__insertion-point{top:-5px}.vk_simpleTable-edit .editor-block-list__block-edit:before{right:-0px;left:-0px;top:-0px;bottom:-0px}.vk_simpleTable-edit .editor-inner-blocks tr{width:100%;display:block;border-bottom:1px solid #e5e5e5}.vk_simpleTable-edit .editor-inner-blocks tr .editor-block-list__layout{display:-ms-flexbox;display:flex}.vk_simpleTable-edit .editor-inner-blocks th,.vk_simpleTable-edit .editor-inner-blocks td{padding:0;display:block;width:100%;border:none}.vk_simpleTable-edit .editor-inner-blocks th .editor-rich-text__editable,.vk_simpleTable-edit .editor-inner-blocks td .editor-rich-text__editable{padding:14px}.vk_simpleTable-edit.table-striped>tbody>.editor-inner-blocks>.editor-block-list__layout>div:nth-of-type(odd){background-color:rgba(0,0,0,0.05)}
24
+
25
+ .vk_staff_text{float:left;width:61.6%}.vk_staff_photo{float:right;width:32%}.vk_staff-layout-imageLeft .vk_staff_text{float:right}.vk_staff-layout-imageLeft .vk_staff_photo{float:left}.vk_staff{display:block;overflow:hidden}.vk_staff_text_name{text-align:left;box-shadow:none;font-size:3.5rem;font-family:"MS P明朝","MS PMincho","ヒラギノ明朝 Pro W3","Hiragino Mincho Pro","serif";line-height:1.0;margin-bottom:0.5rem;border:none;padding:0;background-color:transparent}.vk_staff_text_name:before,.vk_staff_text_name:after{border:none}.vk_staff_text_caption{font-family:"MS P明朝","MS PMincho","ヒラギノ明朝 Pro W3","Hiragino Mincho Pro","serif";font-size:14px;display:block;margin:0 0 0.5rem 4px;letter-spacing:5px}.vk_staff_text_role{font-size:14px;line-height:1.6em;font-family:"MS P明朝","MS PMincho","ヒラギノ明朝 Pro W3","Hiragino Mincho Pro","serif"}.vk_staff_text_profileTitle{font-size:18px;font-family:"MS P明朝","MS PMincho","ヒラギノ明朝 Pro W3","Hiragino Mincho Pro","serif";padding-top:0;padding-left:0;padding-bottom:2px;margin-bottom:1.2rem;border-top:none;border-bottom:1px solid #ccc;background:none}.vk_staff_text_profileTitle:before,.vk_staff_text_profileTitle:after{border:none}.vk_staff_text_profileText{font-size:14px}.vk_staff_photo{display:block;vertical-align:top;text-align:center}.vk_staff_photo button{width:100%}.vk_staff_photo .image-button{padding:0;margin:0;display:block}.vk_staff_photo-border-default{border:4px solid #efefef;padding:1px}.vk_staff_photo-border-none{border:none}.vk_staff_photo_image{width:100%;margin:0;display:block}@media (min-width: 992px){.page-template-page-onecolumn .vk_staff_text,.page-template-page-lp .vk_staff_text,.page-template-page-lp-builder .vk_staff_text{width:74%}.page-template-page-onecolumn .vk_staff_text_name,.page-template-page-lp .vk_staff_text_name,.page-template-page-lp-builder .vk_staff_text_name{font-size:4rem}.page-template-page-onecolumn .vk_staff_text_caption,.page-template-page-lp .vk_staff_text_caption,.page-template-page-lp-builder .vk_staff_text_caption{font-size:16px;letter-spacing:0.5rem}.page-template-page-onecolumn .vk_staff_text_role,.page-template-page-lp .vk_staff_text_role,.page-template-page-lp-builder .vk_staff_text_role{letter-spacing:0.5rem}.page-template-page-onecolumn .vk_staff_photo,.page-template-page-lp .vk_staff_photo,.page-template-page-lp-builder .vk_staff_photo{width:22%}}@media (min-width: 1200px){.page-template-page-onecolumn .vk_staff_text,.page-template-page-lp .vk_staff_text,.page-template-page-lp-builder .vk_staff_text{width:75%}.page-template-page-onecolumn .vk_staff_photo,.page-template-page-lp .vk_staff_photo,.page-template-page-lp-builder .vk_staff_photo{width:20%}}
26
+
27
+ .vk_tableOfContents{margin-top:3.5em;margin-bottom:3.5em}.vk_tableOfContents-style-default{border:3px solid rgba(0,0,0,0.04);box-shadow:inset 0px 0px 0px 1px #fff;background-color:rgba(0,0,0,0.015);padding:3rem 4rem}.vk_tableOfContents_title{text-align:center;font-size:1.2em;letter-spacing:0.5em}.vk_tableOfContents li{margin:0}.vk_tableOfContents_list{padding:0;margin-top:1em}.vk_tableOfContents_list_item{list-style:none;border-bottom:1px solid #e5e5e5;padding:0.8rem 0}.vk_tableOfContents_list_item-h-3{padding-left:1rem}.vk_tableOfContents_list_item-h-4{padding-left:2rem}.vk_tableOfContents_list_item-h-5{padding-left:3rem}.vk_tableOfContents_list_item-h-6{padding-left:4rem}.vk_tableOfContents_list_item_link{color:#333;border-bottom:1px solid #ccc}.vk_tableOfContents_list_item_link:hover{text-decoration:none;border-bottom:none}
28
+
29
+ .vk_table-col-overflow{white-space:nowrap !important}
30
+
inc/vk-blocks/package/build/block-build.js ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ !function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=8)}([function(e,t,n){"use strict";e.exports=n(3)},function(e,t,n){var o;
2
+ /*!
3
+ Copyright (c) 2017 Jed Watson.
4
+ Licensed under the MIT License (MIT), see
5
+ http://jedwatson.github.io/classnames
6
+ */
7
+ /*!
8
+ Copyright (c) 2017 Jed Watson.
9
+ Licensed under the MIT License (MIT), see
10
+ http://jedwatson.github.io/classnames
11
+ */
12
+ !function(){"use strict";var n={}.hasOwnProperty;function r(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var a=typeof o;if("string"===a||"number"===a)e.push(o);else if(Array.isArray(o)&&o.length){var l=r.apply(null,o);l&&e.push(l)}else if("object"===a)for(var c in o)n.call(o,c)&&o[c]&&e.push(c)}}return e.join(" ")}e.exports?(r.default=r,e.exports=r):void 0===(o=function(){return r}.apply(t,[]))||(e.exports=o)}()},function(e,t,n){"use strict";e.exports=n(5)},function(e,t,n){"use strict";
13
+ /** @license React v16.7.0
14
+ * react.production.min.js
15
+ *
16
+ * Copyright (c) Facebook, Inc. and its affiliates.
17
+ *
18
+ * This source code is licensed under the MIT license found in the
19
+ * LICENSE file in the root directory of this source tree.
20
+ */var o=n(4),r="function"==typeof Symbol&&Symbol.for,a=r?Symbol.for("react.element"):60103,l=r?Symbol.for("react.portal"):60106,c=r?Symbol.for("react.fragment"):60107,i=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,u=r?Symbol.for("react.provider"):60109,p=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.concurrent_mode"):60111,m=r?Symbol.for("react.forward_ref"):60112,b=r?Symbol.for("react.suspense"):60113,v=r?Symbol.for("react.memo"):60115,k=r?Symbol.for("react.lazy"):60116,d="function"==typeof Symbol&&Symbol.iterator;function y(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,o=0;o<t;o++)n+="&args[]="+encodeURIComponent(arguments[o+1]);!function(e,t,n,o,r,a,l,c){if(!e){if(e=void 0,void 0===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var i=[n,o,r,a,l,c],s=0;(e=Error(t.replace(/%s/g,function(){return i[s++]}))).name="Invariant Violation"}throw e.framesToPop=1,e}}(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h={};function _(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||g}function E(){}function C(e,t,n){this.props=e,this.context=t,this.refs=h,this.updater=n||g}_.prototype.isReactComponent={},_.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&y("85"),this.updater.enqueueSetState(this,e,t,"setState")},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},E.prototype=_.prototype;var w=C.prototype=new E;w.constructor=C,o(w,_.prototype),w.isPureReactComponent=!0;var x={current:null,currentDispatcher:null},N=Object.prototype.hasOwnProperty,S={key:!0,ref:!0,__self:!0,__source:!0};function T(e,t,n){var o=void 0,r={},l=null,c=null;if(null!=t)for(o in void 0!==t.ref&&(c=t.ref),void 0!==t.key&&(l=""+t.key),t)N.call(t,o)&&!S.hasOwnProperty(o)&&(r[o]=t[o]);var i=arguments.length-2;if(1===i)r.children=n;else if(1<i){for(var s=Array(i),u=0;u<i;u++)s[u]=arguments[u+2];r.children=s}if(e&&e.defaultProps)for(o in i=e.defaultProps)void 0===r[o]&&(r[o]=i[o]);return{$$typeof:a,type:e,key:l,ref:c,props:r,_owner:x.current}}function B(e){return"object"==typeof e&&null!==e&&e.$$typeof===a}var O=/\/+/g,I=[];function R(e,t,n,o){if(I.length){var r=I.pop();return r.result=e,r.keyPrefix=t,r.func=n,r.context=o,r.count=0,r}return{result:e,keyPrefix:t,func:n,context:o,count:0}}function A(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>I.length&&I.push(e)}function P(e,t,n){return null==e?0:function e(t,n,o,r){var c=typeof t;"undefined"!==c&&"boolean"!==c||(t=null);var i=!1;if(null===t)i=!0;else switch(c){case"string":case"number":i=!0;break;case"object":switch(t.$$typeof){case a:case l:i=!0}}if(i)return o(r,t,""===n?"."+j(t,0):n),1;if(i=0,n=""===n?".":n+":",Array.isArray(t))for(var s=0;s<t.length;s++){var u=n+j(c=t[s],s);i+=e(c,u,o,r)}else if(u=null===t||"object"!=typeof t?null:"function"==typeof(u=d&&t[d]||t["@@iterator"])?u:null,"function"==typeof u)for(t=u.call(t),s=0;!(c=t.next()).done;)i+=e(c=c.value,u=n+j(c,s++),o,r);else"object"===c&&y("31","[object Object]"==(o=""+t)?"object with keys {"+Object.keys(t).join(", ")+"}":o,"");return i}(e,"",t,n)}function j(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}(e.key):t.toString(36)}function z(e,t){e.func.call(e.context,t,e.count++)}function M(e,t,n){var o=e.result,r=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?F(e,o,n,function(e){return e}):null!=e&&(B(e)&&(e=function(e,t){return{$$typeof:a,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,r+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(O,"$&/")+"/")+n)),o.push(e))}function F(e,t,n,o,r){var a="";null!=n&&(a=(""+n).replace(O,"$&/")+"/"),P(e,M,t=R(t,a,o,r)),A(t)}var L={Children:{map:function(e,t,n){if(null==e)return e;var o=[];return F(e,o,null,t,n),o},forEach:function(e,t,n){if(null==e)return e;P(e,z,t=R(null,null,t,n)),A(t)},count:function(e){return P(e,function(){return null},null)},toArray:function(e){var t=[];return F(e,t,null,function(e){return e}),t},only:function(e){return B(e)||y("143"),e}},createRef:function(){return{current:null}},Component:_,PureComponent:C,createContext:function(e,t){return void 0===t&&(t=null),(e={$$typeof:p,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:u,_context:e},e.Consumer=e},forwardRef:function(e){return{$$typeof:m,render:e}},lazy:function(e){return{$$typeof:k,_ctor:e,_status:-1,_result:null}},memo:function(e,t){return{$$typeof:v,type:e,compare:void 0===t?null:t}},Fragment:c,StrictMode:i,Suspense:b,createElement:T,cloneElement:function(e,t,n){null==e&&y("267",e);var r=void 0,l=o({},e.props),c=e.key,i=e.ref,s=e._owner;if(null!=t){void 0!==t.ref&&(i=t.ref,s=x.current),void 0!==t.key&&(c=""+t.key);var u=void 0;for(r in e.type&&e.type.defaultProps&&(u=e.type.defaultProps),t)N.call(t,r)&&!S.hasOwnProperty(r)&&(l[r]=void 0===t[r]&&void 0!==u?u[r]:t[r])}if(1===(r=arguments.length-2))l.children=n;else if(1<r){u=Array(r);for(var p=0;p<r;p++)u[p]=arguments[p+2];l.children=u}return{$$typeof:a,type:e.type,key:c,ref:i,props:l,_owner:s}},createFactory:function(e){var t=T.bind(null,e);return t.type=e,t},isValidElement:B,version:"16.7.0",unstable_ConcurrentMode:f,unstable_Profiler:s,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:x,assign:o}},D={default:L},U=D&&L||D;e.exports=U.default||U},function(e,t,n){"use strict";
21
+ /*
22
+ object-assign
23
+ (c) Sindre Sorhus
24
+ @license MIT
25
+ */var o=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(e){o[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,l,c=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),i=1;i<arguments.length;i++){for(var s in n=Object(arguments[i]))r.call(n,s)&&(c[s]=n[s]);if(o){l=o(n);for(var u=0;u<l.length;u++)a.call(n,l[u])&&(c[l[u]]=n[l[u]])}}return c}},function(e,t,n){"use strict";
26
+ /** @license React v16.7.0
27
+ * react-dom-server.browser.production.min.js
28
+ *
29
+ * Copyright (c) Facebook, Inc. and its affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var o=n(6),r=n(0);function a(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,o=0;o<t;o++)n+="&args[]="+encodeURIComponent(arguments[o+1]);!function(e,t,n,o,r,a,l,c){if(!e){if(e=void 0,void 0===t)e=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var i=[n,o,r,a,l,c],s=0;(e=Error(t.replace(/%s/g,function(){return i[s++]}))).name="Invariant Violation"}throw e.framesToPop=1,e}}(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}var l="function"==typeof Symbol&&Symbol.for,c=l?Symbol.for("react.portal"):60106,i=l?Symbol.for("react.fragment"):60107,s=l?Symbol.for("react.strict_mode"):60108,u=l?Symbol.for("react.profiler"):60114,p=l?Symbol.for("react.provider"):60109,f=l?Symbol.for("react.context"):60110,m=l?Symbol.for("react.concurrent_mode"):60111,b=l?Symbol.for("react.forward_ref"):60112,v=l?Symbol.for("react.suspense"):60113,k=l?Symbol.for("react.memo"):60115,d=l?Symbol.for("react.lazy"):60116;function y(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case m:return"ConcurrentMode";case i:return"Fragment";case c:return"Portal";case u:return"Profiler";case s:return"StrictMode";case v:return"Suspense"}if("object"==typeof e)switch(e.$$typeof){case f:return"Context.Consumer";case p:return"Context.Provider";case b:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case k:return y(e.type);case d:if(e=1===e._status?e._result:null)return y(e)}return null}var g=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,h={};function _(e,t){for(var n=0|e._threadCount;n<=t;n++)e[n]=e._currentValue2,e._threadCount=n+1}for(var E=new Uint16Array(16),C=0;15>C;C++)E[C]=C+1;E[15]=0;var w=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,x=Object.prototype.hasOwnProperty,N={},S={};function T(e){return!!x.call(S,e)||!x.call(N,e)&&(w.test(e)?S[e]=!0:(N[e]=!0,!1))}function B(e,t,n,o){if(null==t||function(e,t,n,o){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!o&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,o))return!0;if(o)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function O(e,t,n,o,r){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=o,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t}var I={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){I[e]=new O(e,0,!1,e,null)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];I[t]=new O(t,1,!1,e[1],null)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){I[e]=new O(e,2,!1,e.toLowerCase(),null)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){I[e]=new O(e,2,!1,e,null)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){I[e]=new O(e,3,!1,e.toLowerCase(),null)}),["checked","multiple","muted","selected"].forEach(function(e){I[e]=new O(e,3,!0,e,null)}),["capture","download"].forEach(function(e){I[e]=new O(e,4,!1,e,null)}),["cols","rows","size","span"].forEach(function(e){I[e]=new O(e,6,!1,e,null)}),["rowSpan","start"].forEach(function(e){I[e]=new O(e,5,!1,e.toLowerCase(),null)});var R=/[\-:]([a-z])/g;function A(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(R,A);I[t]=new O(t,1,!1,e,null)}),"xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(R,A);I[t]=new O(t,1,!1,e,"http://www.w3.org/1999/xlink")}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(R,A);I[t]=new O(t,1,!1,e,"http://www.w3.org/XML/1998/namespace")}),I.tabIndex=new O("tabIndex",1,!1,"tabindex",null);var P=/["'&<>]/;function j(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=P.exec(e);if(t){var n,o="",r=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#x27;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}r!==n&&(o+=e.substring(r,n)),r=n+1,o+=t}e=r!==n?o+e.substring(r,n):o}return e}var z=!1;function M(e,t,n,o){for(;z;)z=!1,n=e(t,o);return n}var F=0,L={readContext:function(e){var t=F;return _(e,t),e[t]}},D={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function U(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}var V={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},W=o({menuitem:!0},V),H={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},$=["Webkit","ms","Moz","O"];Object.keys(H).forEach(function(e){$.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),H[t]=H[e]})});var q=/([A-Z])/g,G=/^ms-/,Y=r.Children.toArray,Z=g.ReactCurrentOwner,Q={listing:!0,pre:!0,textarea:!0},X=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,J={},K={};var ee=Object.prototype.hasOwnProperty,te={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function ne(e,t){void 0===e&&a("152",y(t)||"Component")}function oe(e,t,n){function l(r,l){var c=function(e,t,n){var o=e.contextType;if("object"==typeof o&&null!==o)return _(o,n),o[n];if(e=e.contextTypes){for(var r in n={},e)n[r]=t[r];t=n}else t=h;return t}(l,t,n),i=[],s=!1,u={isMounted:function(){return!1},enqueueForceUpdate:function(){if(null===i)return null},enqueueReplaceState:function(e,t){s=!0,i=[t]},enqueueSetState:function(e,t){if(null===i)return null;i.push(t)}},p=void 0;if(l.prototype&&l.prototype.isReactComponent){if(p=new l(r.props,c,u),"function"==typeof l.getDerivedStateFromProps){var f=l.getDerivedStateFromProps.call(null,r.props,p.state);null!=f&&(p.state=o({},p.state,f))}}else if(p=l(r.props,c,u),null==(p=M(l,r.props,p,c))||null==p.render)return void ne(e=p,l);if(p.props=r.props,p.context=c,p.updater=u,void 0===(u=p.state)&&(p.state=u=null),"function"==typeof p.UNSAFE_componentWillMount||"function"==typeof p.componentWillMount)if("function"==typeof p.componentWillMount&&"function"!=typeof l.getDerivedStateFromProps&&p.componentWillMount(),"function"==typeof p.UNSAFE_componentWillMount&&"function"!=typeof l.getDerivedStateFromProps&&p.UNSAFE_componentWillMount(),i.length){u=i;var m=s;if(i=null,s=!1,m&&1===u.length)p.state=u[0];else{f=m?u[0]:p.state;var b=!0;for(m=m?1:0;m<u.length;m++){var v=u[m];null!=(v="function"==typeof v?v.call(p,f,r.props,c):v)&&(b?(b=!1,f=o({},f,v)):o(f,v))}p.state=f}}else i=null;if(ne(e=p.render(),l),r=void 0,"function"==typeof p.getChildContext&&"object"==typeof(c=l.childContextTypes))for(var k in r=p.getChildContext())k in c||a("108",y(l)||"Unknown",k);r&&(t=o({},t,r))}for(;r.isValidElement(e);){var c=e,i=c.type;if("function"!=typeof i)break;l(c,i)}return{child:e,context:t}}var re=function(){function e(t,n){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");r.isValidElement(t)?t.type!==i?t=[t]:(t=t.props.children,t=r.isValidElement(t)?[t]:Y(t)):t=Y(t),t={type:null,domNamespace:D.html,children:t,childIndex:0,context:h,footer:""};var o=E[0];if(0===o){var l=E,c=2*(o=l.length);65536>=c||a("304");var s=new Uint16Array(c);for(s.set(l),(E=s)[0]=o+1,l=o;l<c-1;l++)E[l]=l+1;E[c-1]=0}else E[0]=E[o];this.threadID=o,this.stack=[t],this.exhausted=!1,this.currentSelectValue=null,this.previousWasTextNode=!1,this.makeStaticMarkup=n,this.suspenseDepth=0,this.contextIndex=-1,this.contextStack=[],this.contextValueStack=[]}return e.prototype.destroy=function(){if(!this.exhausted){this.exhausted=!0;var e=this.threadID;E[e]=E[0],E[0]=e}},e.prototype.pushProvider=function(e){var t=++this.contextIndex,n=e.type._context,o=this.threadID;_(n,o);var r=n[o];this.contextStack[t]=n,this.contextValueStack[t]=r,n[o]=e.props.value},e.prototype.popProvider=function(){var e=this.contextIndex,t=this.contextStack[e],n=this.contextValueStack[e];this.contextStack[e]=null,this.contextValueStack[e]=null,this.contextIndex--,t[this.threadID]=n},e.prototype.read=function(e){if(this.exhausted)return null;var t=F;F=this.threadID;var n=Z.currentDispatcher;Z.currentDispatcher=L;try{for(var o=[""],r=!1;o[0].length<e;){if(0===this.stack.length){this.exhausted=!0;var l=this.threadID;E[l]=E[0],E[0]=l;break}var c=this.stack[this.stack.length-1];if(r||c.childIndex>=c.children.length){var i=c.footer;if(""!==i&&(this.previousWasTextNode=!1),this.stack.pop(),"select"===c.type)this.currentSelectValue=null;else if(null!=c.type&&null!=c.type.type&&c.type.type.$$typeof===p)this.popProvider(c.type);else if(c.type===v){this.suspenseDepth--;var s=o.pop();if(r){r=!1;var u=c.fallbackFrame;u||a("303"),this.stack.push(u);continue}o[this.suspenseDepth]+=s}o[this.suspenseDepth]+=i}else{var f=c.children[c.childIndex++],m="";try{m+=this.render(f,c.context,c.domNamespace)}catch(e){throw e}o.length<=this.suspenseDepth&&o.push(""),o[this.suspenseDepth]+=m}}return o[0]}finally{Z.currentDispatcher=n,F=t}},e.prototype.render=function(e,t,n){if("string"==typeof e||"number"==typeof e)return""===(n=""+e)?"":this.makeStaticMarkup?j(n):this.previousWasTextNode?"\x3c!-- --\x3e"+j(n):(this.previousWasTextNode=!0,j(n));if(e=(t=oe(e,t,this.threadID)).child,t=t.context,null===e||!1===e)return"";if(!r.isValidElement(e)){if(null!=e&&null!=e.$$typeof){var l=e.$$typeof;l===c&&a("257"),a("258",l.toString())}return e=Y(e),this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),""}if("string"==typeof(l=e.type))return this.renderDOM(e,t,n);switch(l){case s:case m:case u:case i:return e=Y(e.props.children),this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case v:a("294")}if("object"==typeof l&&null!==l)switch(l.$$typeof){case b:var y=l.render(e.props,e.ref);return y=M(l.render,e.props,y,e.ref),y=Y(y),this.stack.push({type:null,domNamespace:n,children:y,childIndex:0,context:t,footer:""}),"";case k:return e=[r.createElement(l.type,o({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case p:return n={type:e,domNamespace:n,children:l=Y(e.props.children),childIndex:0,context:t,footer:""},this.pushProvider(e),this.stack.push(n),"";case f:l=e.type,y=e.props;var g=this.threadID;return _(l,g),l=Y(y.children(l[g])),this.stack.push({type:e,domNamespace:n,children:l,childIndex:0,context:t,footer:""}),"";case d:a("295")}a("130",null==l?l:typeof l,"")},e.prototype.renderDOM=function(e,t,n){var l=e.type.toLowerCase();n===D.html&&U(l),J.hasOwnProperty(l)||(X.test(l)||a("65",l),J[l]=!0);var c=e.props;if("input"===l)c=o({type:void 0},c,{defaultChecked:void 0,defaultValue:void 0,value:null!=c.value?c.value:c.defaultValue,checked:null!=c.checked?c.checked:c.defaultChecked});else if("textarea"===l){var i=c.value;if(null==i){i=c.defaultValue;var s=c.children;null!=s&&(null!=i&&a("92"),Array.isArray(s)&&(1>=s.length||a("93"),s=s[0]),i=""+s),null==i&&(i="")}c=o({},c,{value:void 0,children:""+i})}else if("select"===l)this.currentSelectValue=null!=c.value?c.value:c.defaultValue,c=o({},c,{value:void 0});else if("option"===l){s=this.currentSelectValue;var u=function(e){if(null==e)return e;var t="";return r.Children.forEach(e,function(e){null!=e&&(t+=e)}),t}(c.children);if(null!=s){var p=null!=c.value?c.value+"":u;if(i=!1,Array.isArray(s)){for(var f=0;f<s.length;f++)if(""+s[f]===p){i=!0;break}}else i=""+s===p;c=o({selected:void 0,children:void 0},c,{selected:i,children:u})}}for(h in(i=c)&&(W[l]&&(null!=i.children||null!=i.dangerouslySetInnerHTML)&&a("137",l,""),null!=i.dangerouslySetInnerHTML&&(null!=i.children&&a("60"),"object"==typeof i.dangerouslySetInnerHTML&&"__html"in i.dangerouslySetInnerHTML||a("61")),null!=i.style&&"object"!=typeof i.style&&a("62","")),i=c,s=this.makeStaticMarkup,u=1===this.stack.length,p="<"+e.type,i)if(ee.call(i,h)){var m=i[h];if(null!=m){if("style"===h){f=void 0;var b="",v="";for(f in m)if(m.hasOwnProperty(f)){var k=0===f.indexOf("--"),d=m[f];if(null!=d){var y=f;if(K.hasOwnProperty(y))y=K[y];else{var g=y.replace(q,"-$1").toLowerCase().replace(G,"-ms-");y=K[y]=g}b+=v+y+":",v=f,b+=k=null==d||"boolean"==typeof d||""===d?"":k||"number"!=typeof d||0===d||H.hasOwnProperty(v)&&H[v]?(""+d).trim():d+"px",v=";"}}m=b||null}f=null;e:if(k=l,d=i,-1===k.indexOf("-"))k="string"==typeof d.is;else switch(k){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":k=!1;break e;default:k=!0}k?te.hasOwnProperty(h)||(f=T(f=h)&&null!=m?f+'="'+j(m)+'"':""):(k=h,f=m,m=I.hasOwnProperty(k)?I[k]:null,(d="style"!==k)&&(d=null!==m?0===m.type:2<k.length&&("o"===k[0]||"O"===k[0])&&("n"===k[1]||"N"===k[1])),d||B(k,f,m,!1)?f="":null!==m?(k=m.attributeName,f=3===(m=m.type)||4===m&&!0===f?k+'=""':k+'="'+j(f)+'"'):f=T(k)?k+'="'+j(f)+'"':""),f&&(p+=" "+f)}}s||u&&(p+=' data-reactroot=""');var h=p;i="",V.hasOwnProperty(l)?h+="/>":(h+=">",i="</"+e.type+">");e:{if(null!=(s=c.dangerouslySetInnerHTML)){if(null!=s.__html){s=s.__html;break e}}else if("string"==typeof(s=c.children)||"number"==typeof s){s=j(s);break e}s=null}return null!=s?(c=[],Q[l]&&"\n"===s.charAt(0)&&(h+="\n"),h+=s):c=Y(c.children),e=e.type,n=null==n||"http://www.w3.org/1999/xhtml"===n?U(e):"http://www.w3.org/2000/svg"===n&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":n,this.stack.push({domNamespace:n,type:l,children:c,childIndex:0,context:t,footer:i}),this.previousWasTextNode=!1,h},e}(),ae={renderToString:function(e){e=new re(e,!1);try{return e.read(1/0)}finally{e.destroy()}},renderToStaticMarkup:function(e){e=new re(e,!0);try{return e.read(1/0)}finally{e.destroy()}},renderToNodeStream:function(){a("207")},renderToStaticNodeStream:function(){a("208")},version:"16.7.0"},le={default:ae},ce=le&&ae||le;e.exports=ce.default||ce},function(e,t,n){"use strict";
34
+ /*
35
+ object-assign
36
+ (c) Sindre Sorhus
37
+ @license MIT
38
+ */var o=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(e){o[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,l,c=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),i=1;i<arguments.length;i++){for(var s in n=Object(arguments[i]))r.call(n,s)&&(c[s]=n[s]);if(o){l=o(n);for(var u=0;u<l.length;u++)a.call(n,l[u])&&(c[l[u]]=n[l[u]])}}return c}},function(e,t){var n=wp.i18n.__,o=wp.blocks.registerBlockType,r=wp.components,a=(r.RangeControl,r.RadioControl),l=r.PanelBody,c=r.Button,i=wp.element.Fragment,s=wp.editor,u=s.RichText,p=s.InspectorControls,f=s.MediaUpload,m=s.ColorPalette,b=React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"576",height:"512",viewBox:"0 0 576 512"},React.createElement("path",{d:"M544 450.583c0 22.75 13.014 42.454 32 52.092v7.969c-5.313 0.727-10.736 1.112-16.25 1.112-34.004 0-64.674-14.264-86.361-37.132-13.111 3.491-27.001 5.376-41.389 5.376-79.529 0-144-57.308-144-128s64.471-128 144-128c79.529 0 144 57.308 144 128 0 27.674-9.882 53.296-26.678 74.233-3.412 7.412-5.322 15.656-5.322 24.35zM115.339 110.593c-33.107 26.899-51.339 61.492-51.339 97.407 0 20.149 5.594 39.689 16.626 58.075 11.376 18.96 28.491 36.293 49.494 50.126 15.178 9.996 25.39 25.974 28.088 43.947 0.9 5.992 1.464 12.044 1.685 18.062 3.735-3.097 7.375-6.423 10.94-9.988 12.077-12.076 28.39-18.745 45.251-18.745 2.684 0 5.381 0.168 8.078 0.512 10.474 1.331 21.172 2.008 31.797 2.010v64c-13.564-0.001-26.877-0.869-39.871-2.521-54.989 54.989-120.625 64.85-184.088 66.298v-13.458c34.268-16.789 64-47.37 64-82.318 0-4.877-0.379-9.665-1.082-14.348-57.898-38.132-94.918-96.377-94.918-161.652 0-114.875 114.615-208 256-208 139.229 0 252.496 90.307 255.918 202.76-20.548-9.158-42.92-14.711-66.131-16.289-5.765-28.034-22.701-54.408-49.126-75.878-17.661-14.349-38.458-25.695-61.814-33.722-24.853-8.54-51.38-12.871-78.847-12.871s-53.994 4.331-78.847 12.871c-23.356 8.027-44.153 19.372-61.814 33.722z"}));o("vk-blocks/balloon",{title:n("Ballon","vk-blocks"),icon:b,category:"vk-blocks-cat",attributes:{content:{source:"html",selector:"p"},balloonName:{source:"html",selector:"figcaption"},balloonType:{type:"string",default:"type-serif"},balloonBgColor:{type:"string"},balloonAlign:{type:"string",default:"position-left"},IconImage:{type:"string",default:null}},edit:function(e){var t=e.attributes,o=e.className,r=e.setAttributes,s=t.content,b=t.balloonName,v=t.balloonType,k=t.balloonBgColor,d=t.balloonAlign,y=t.IconImage;return React.createElement(i,null,React.createElement(p,null,React.createElement(l,{title:n("Balloon setting","vk-blocks")},React.createElement(a,{label:n("Position","vk-blocks"),help:n("Please specify the layout of the balloon.","vk-blocks"),selected:d,options:[{label:n("Left","vk-blocks"),value:"position-left"},{label:n("Right","vk-blocks"),value:"position-right"}],onChange:function(e){return r({balloonAlign:e})}}),React.createElement(a,{label:n("Type","vk-blocks"),help:n("Please select the type of balloon.","vk-blocks"),selected:v,options:[{label:n("Serif","vk-blocks"),value:"type-serif"},{label:n("Thinking","vk-blocks"),value:"type-think"}],onChange:function(e){return r({balloonType:e})}}),React.createElement(m,{value:k,onChange:function(e){return r({balloonBgColor:e})}}))),React.createElement("div",{className:"".concat(o," vk_balloon vk_balloon-").concat(d," vk_balloon-").concat(v)},React.createElement("div",{className:"vk_balloon_icon"},React.createElement(f,{onSelect:function(e){return r({IconImage:e.sizes.full.url})},type:"image",className:"vk_balloon_icon_image",value:y,render:function(e){var t=e.open;return React.createElement(c,{onClick:t,className:y?"image-button":"button button-large"},y?React.createElement("img",{className:"vk_balloon_icon_image",src:y,alt:n("Upload image","vk-blocks")}):n("Select image","vk-blocks"))}}),React.createElement(u,{tagName:"figcaption",className:"vk_balloon_icon_name",onChange:function(e){return r({balloonName:e})},value:b,placeholder:n("Icon Name","vk-blocks")})),React.createElement(u,{style:{background:k,border:k},tagName:"p",className:"vk_balloon_content",onChange:function(e){return r({content:e})},value:s,placeholder:n("Input text","vk-blocks")})))},save:function(e){var t=e.attributes,n=(e.className,t.content),o=t.balloonName,r=t.balloonType,a=t.balloonBgColor,l=t.balloonAlign,c=t.IconImage;return React.createElement("div",{className:"vk_balloon vk_balloon-".concat(l," vk_balloon-").concat(r)},React.createElement("div",{className:"vk_balloon_icon"},c?React.createElement("figure",null,React.createElement("img",{className:"vk_balloon_icon_image",src:c,alt:""}),React.createElement(u.Content,{tagName:"figcaption",className:"vk_balloon_icon_name",value:o})):""),React.createElement(u.Content,{className:"vk_balloon_content",style:{background:a,border:a},tagName:"p",value:n}))}})},function(e,t,n){"use strict";n.r(t);var o=n(0),r=n.n(o),a=n(2),l=n.n(a);function c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var i=wp.i18n.__,s=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,o;return t=e,(n=[{key:"getDom",value:function(e){var t=document.getElementsByClassName(e);return void 0!==t[0]&&t[0].querySelectorAll("h1, h2, h3, h4, h5, h6")}},{key:"getHtagsInEditor",value:function(){var e=this.getDom("edit-post-visual-editor");if(void 0===e)return!1;var t=Array.from(e),n=[];return t.forEach(function(e,o){n[o]={tagName:t[o].tagName,innerText:t[o].innerText}}),n}},{key:"returnHtml",value:function(e,t,n){n?n+=" vk_tableOfContents":n="vk_tableOfContents",t&&(n=n+" vk_tableOfContents-style-"+t);var o=0,r=0,a=0,c=0,s=0,u=function(e){return 0===e?1:e},p=React.createElement("div",{className:n},React.createElement("div",{className:"vk_tableOfContents_title"},i("Table of Contents","vk-blocks")),React.createElement("ul",{className:"vk_tableOfContents_list"},e.map(function(e){var t="vk_tableOfContents_list_item",n=Number(e.tagName.replace(/H/g,"")),l="";return 2===n&&(l=++o,r=0,a=0,c=0,s=0),3===n&&(l=o+"."+ ++r,a=0,c=0,s=0),4===n&&(a++,l=o+"."+u(r)+"."+a,c=0,s=0),5===n&&(c++,l=o+"."+u(r)+"."+u(a)+"."+c,s=0),6===n&&(s++,l=o+"."+u(r)+"."+u(a)+"."+u(c)+"."+s),l+=". ",React.createElement("li",{className:"".concat(t," ").concat(t,"-h-").concat(n)},React.createElement("a",{href:"",className:"".concat(t,"_link")},React.createElement("span",{className:"".concat(t,"_link_preNumber")},l),e.innerText))})));return l.a.renderToString(p)}}])&&c(t.prototype,n),o&&c(t,o),e}(),u=wp.i18n.__,p=wp.blocks.registerBlockType,f=wp.components,m=f.ServerSideRender,b=f.PanelBody,v=f.SelectControl,k=f.BaseControl,d=wp.element.Fragment,y=wp.data,g=y.subscribe,h=y.select,_=(y.dispatch,wp.editor),E=(_.RichText,_.InspectorControls),C=(_.MediaUpload,_.ColorPalette,r.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"576",height:"512",viewBox:"0 0 576 512"},r.a.createElement("g",null,r.a.createElement("g",null,r.a.createElement("path",{d:"M199.4,402.1l266.4,0c7.1,0,12.8-5.9,12.8-12.8l0-25.6c0-7.1-5.9-12.8-12.8-12.8l-266.4,0c-7.1,0-12.8,5.9-12.8,12.8 l0,25.6C186.6,396.3,192.5,402.1,199.4,402.1z"}),r.a.createElement("path",{d:"M199.4,323l266.4,0c7.1,0,12.8-5.9,12.8-12.8v-25.6c0-7.1-5.9-12.8-12.8-12.8l-266.4,0c-7.1,0-12.8,5.9-12.8,12.8l0,25.6 C186.6,317.3,192.5,323,199.4,323z"}),r.a.createElement("path",{d:"M199.4,243.8l266.4,0c7.1,0,12.8-5.9,12.8-12.8v-25.6c0-7.1-5.9-12.8-12.8-12.8l-266.4,0c-7.1,0-12.8,5.9-12.8,12.8 l0,25.6C186.6,238.1,192.5,243.8,199.4,243.8z"}),r.a.createElement("path",{d:"M110.2,402.1l30.8,0c7.1,0,12.8-5.9,12.8-12.8l0-25.6c0-7.1-5.9-12.8-12.8-12.8h-30.8c-7.1,0-12.8,5.9-12.8,12.8l0,25.6 C97.4,396.3,103.3,402.1,110.2,402.1z"}),r.a.createElement("path",{d:"M110.2,323h30.8c7.1,0,12.8-5.9,12.8-12.8v-25.6c0-7.1-5.9-12.8-12.8-12.8h-30.8c-7.1,0-12.8,5.9-12.8,12.8l0,25.6 C97.4,317.3,103.3,323,110.2,323z"}),r.a.createElement("path",{d:"M110.2,243.8l30.8,0c7.1,0,12.8-5.9,12.8-12.8l0-25.6c0-7.1-5.9-12.8-12.8-12.8l-30.8,0c-7.1,0-12.8,5.9-12.8,12.8l0,25.6 C97.4,238.1,103.3,243.8,110.2,243.8z"})),r.a.createElement("path",{d:"M159.7,158.5l256.7,0c5.3,0,9.9-4.6,9.9-9.9l0-28.8c0-5.3-4.6-9.9-9.9-9.9l-256.7,0c-5.3,0-9.9,4.6-9.9,9.9l0,28.8 C149.8,154.2,154.3,158.5,159.7,158.5z"})),r.a.createElement("path",{d:"M528,32H48C21.5,32,0,53.5,0,80v352c0,26.5,21.5,48,48,48h480c26.5,0,48-21.5,48-48V80C576,53.5,554.5,32,528,32z M528,432 H48V80h480V432z"})));function w(e){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function x(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function N(e,t){return!t||"object"!==w(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function T(e,t){return(T=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}p("vk-blocks/table-of-contents",{title:u("Table of Contents","vk-blocks"),icon:C,category:"vk-blocks-cat",attributes:{style:{type:"string",default:"default"},renderHtml:{type:"string",default:""}},edit:function(e){var t=e.attributes,n=e.setAttributes,o=e.className,a=(e.clientId,t.style),l=new s,c=function(){var e=l.getHtagsInEditor(),t=l.returnHtml(e,a,o);n({renderHtml:t})};return g(function(){var e=h("core/block-editor").getSelectedBlock();if(e){e.name.match(/heading/g)&&c()}}),c(),r.a.createElement(d,null,r.a.createElement(E,null,r.a.createElement(b,null,r.a.createElement(k,{label:u("Style","vk-blocks"),help:""},r.a.createElement(v,{value:a,onChange:function(e){return n({style:e})},options:[{value:"default",label:u("Default","vk-blocks")},{value:"",label:u("No frame","vk-blocks")}]})))),vk_blocks_check.is_pro?r.a.createElement(m,{block:"vk-blocks/table-of-contents",attributes:t}):r.a.createElement("div",null,u("This block is only for users who bought Lightning Pro.","vk-blocks")))},save:function(){return null}});var B=wp.i18n.__,O=wp.editor,I=O.RichText,R=O.MediaUpload,A=wp.components.Button,P=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),N(this,S(t).apply(this,arguments))}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&T(e,t)}(t,r.a.Component),n=t,(o=[{key:"render",value:function(){var e=this.props.attributes,t=e.vk_staff_text_name,n=e.vk_staff_text_caption,o=e.vk_staff_text_role,a=e.vk_staff_text_profileTitle,l=e.vk_staff_text_profileText,c=e.vk_staff_photo_image,i=e.vk_staff_photo_image_alt,s=e.vk_staff_layout,u=e.vk_staff_nameColor,p=e.vk_staff_captionColor,f=e.vk_staff_positionColor,m=e.vk_staff_profileTitleColor,b=e.vk_staff_profileTextColor,v=e.vk_staff_photoBorder,k=this.props.setAttributes,d=this.props.className,y=this.props.for_,g="";return"edit"===y?g=r.a.createElement("div",{className:"".concat(d," vk_staff vk_staff-layout-").concat(s)},r.a.createElement("div",{className:"vk_staff_text"},r.a.createElement(I,{tagName:"h3",className:"vk_staff_text_name",style:{color:u},onChange:function(e){return k({vk_staff_text_name:e})},value:t,placeholder:B("Your Name","vk-blocks")}),r.a.createElement(I,{tagName:"p",className:"vk_staff_text_caption",style:{color:p},onChange:function(e){return k({vk_staff_text_caption:e})},value:n,placeholder:B("Caption","vk-blocks")}),r.a.createElement(I,{tagName:"p",className:"vk_staff_text_role",style:{color:f},onChange:function(e){return k({vk_staff_text_role:e})},value:o,placeholder:B("Role position","vk-blocks")}),r.a.createElement(I,{tagName:"h4",className:"vk_staff_text_profileTitle",style:{color:m},onChange:function(e){return k({vk_staff_text_profileTitle:e})},value:a,placeholder:B("Profile title","vk-blocks")}),r.a.createElement(I,{tagName:"p",className:"vk_staff_text_profileText",style:{color:b},onChange:function(e){return k({vk_staff_text_profileText:e})},value:l,placeholder:B("Profile text","vk-blocks")})),r.a.createElement("div",{className:"vk_staff_photo vk_staff_photo-border-".concat(v)},r.a.createElement(R,{onSelect:function(e){return k({vk_staff_photo_image:e.sizes.full.url})},type:"image",className:"vk_staff_photo_image",value:c,render:function(e){var t=e.open;return r.a.createElement(A,{onClick:t,className:c?"image-button":"button button-large"},c?r.a.createElement("img",{className:"vk_staff_photo_image",src:c,alt:B(i,"vk-blocks")}):B("Select image","vk-blocks"))}}))):"save"===y&&(g=r.a.createElement("div",{className:"".concat(d," vk_staff vk_staff-layout-").concat(s)},r.a.createElement("div",{className:"vk_staff_text"},r.a.createElement(I.Content,{tagName:"h3",className:"vk_staff_text_name",style:{color:u},value:t}),r.a.createElement(I.Content,{tagName:"p",className:"vk_staff_text_caption",style:{color:p},value:n}),r.a.createElement(I.Content,{tagName:"p",className:"vk_staff_text_role",style:{color:f},value:o}),r.a.createElement(I.Content,{tagName:"h4",className:"vk_staff_text_profileTitle",style:{color:m},value:a}),r.a.createElement(I.Content,{tagName:"p",className:"vk_staff_text_profileText",style:{color:b},value:l})),c?r.a.createElement("div",{className:"vk_staff_photo vk_staff_photo-border-".concat(v)},r.a.createElement("img",{className:"vk_staff_photo_image",src:c,alt:i?B(i,"vk-blocks"):""})):"")),g}}])&&x(n.prototype,o),a&&x(n,a),t}(),j=wp.i18n.__,z=wp.blocks.registerBlockType,M=wp.components,F=M.TextControl,L=M.PanelBody,D=M.BaseControl,U=M.SelectControl,V=wp.element.Fragment,W=wp.editor,H=W.InspectorControls,$=W.ColorPalette,q=r.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"576",height:"512",viewBox:"0 0 576 512"},r.a.createElement("path",{d:"M528,34H48C21.5,34,0,55.5,0,82v352c0,26.5,21.5,48,48,48h480c26.5,0,48-21.5,48-48V82C576,55.5,554.5,34,528,34z M528,434 H48V82h480V434z"}),r.a.createElement("path",{d:"M407.6,241.9c30.9,0,55.9-25.1,55.9-55.9S438.5,130,407.6,130s-55.9,25.1-55.9,55.9S376.8,241.9,407.6,241.9z"}),r.a.createElement("path",{d:"M329.3,353.8h156.6c10.8,0,19.6-7.5,19.6-16.8v-16.8c0-27.8-26.3-50.3-58.7-50.3c-9.4,0-16.3,7-39.2,7 c-23.5,0-29.2-7-39.2-7c-32.4,0-58.7,22.6-58.7,50.3V337C309.7,346.2,318.5,353.8,329.3,353.8z"}),r.a.createElement("path",{d:"M96.2,395h161.1c4,0,7.2-3.3,7.2-7.2v-14.4c0-4-3.3-7.2-7.2-7.2H96.2c-4,0-7.2,3.3-7.2,7.2v14.4C89,391.7,92.3,395,96.2,395 z"}),r.a.createElement("path",{d:"M96.2,339.2h161.1c4,0,7.2-3.3,7.2-7.2v-14.4c0-4-3.3-7.2-7.2-7.2H96.2c-4,0-7.2,3.3-7.2,7.2V332 C89,336,92.3,339.2,96.2,339.2z"}),r.a.createElement("path",{d:"M96.2,283.4h161.1c4,0,7.2-3.3,7.2-7.2v-14.4c0-4-3.3-7.2-7.2-7.2H96.2c-4,0-7.2,3.3-7.2,7.2v14.4 C89,280.2,92.3,283.4,96.2,283.4z"}),r.a.createElement("path",{d:"M92.9,219.1h166.3c2.1,0,3.9-1.8,3.9-3.9v-7.8c0-2.1-1.8-3.9-3.9-3.9H92.9c-2.1,0-3.9,1.8-3.9,3.9v7.8 C89,217.4,90.8,219.1,92.9,219.1z"}),r.a.createElement("path",{d:"M99.7,177.6h22.4c5.9,0,10.7-4.8,10.7-10.7v-21.4c0-5.9-4.8-10.7-10.7-10.7H99.7c-5.9,0-10.7,4.8-10.7,10.7v21.4 C89,172.8,93.8,177.6,99.7,177.6z"}),r.a.createElement("path",{d:"M157,177.6h22.4c5.9,0,10.7-4.8,10.7-10.7v-21.4c0-5.9-4.8-10.7-10.7-10.7H157c-5.9,0-10.7,4.8-10.7,10.7v21.4 C146.3,172.8,151.1,177.6,157,177.6z"}),r.a.createElement("path",{d:"M214.2,177.6h22.4c5.9,0,10.7-4.8,10.7-10.7v-21.4c0-5.9-4.8-10.7-10.7-10.7h-22.4c-5.9,0-10.7,4.8-10.7,10.7v21.4 C203.5,172.8,208.4,177.6,214.2,177.6z"}),r.a.createElement("path",{d:"M271.5,177.6h22.4c5.9,0,10.7-4.8,10.7-10.7v-21.4c0-5.9-4.8-10.7-10.7-10.7h-22.4c-5.9,0-10.7,4.8-10.7,10.7v21.4 C260.8,172.8,265.6,177.6,271.5,177.6z"}));z("vk-blocks/staff",{title:j("Staff","vk-blocks"),icon:q,category:"vk-blocks-cat",attributes:{vk_staff_text_name:{type:"string",source:"html",selector:"h3"},vk_staff_text_caption:{type:"string",source:"html",selector:"p.vk_staff_text_caption"},vk_staff_text_role:{type:"string",source:"html",selector:"p.vk_staff_text_role"},vk_staff_text_profileTitle:{type:"string",source:"html",selector:"h4"},vk_staff_text_profileText:{type:"string",source:"html",selector:"p.vk_staff_text_profileText"},vk_staff_photo_image:{type:"string",default:""},vk_staff_photo_image_alt:{type:"string",default:"Profile Picture"},vk_staff_layout:{type:"string",default:"default"},vk_staff_nameColor:{type:"string",default:"inherit"},vk_staff_captionColor:{type:"string",default:"inherit"},vk_staff_positionColor:{type:"string",default:"inherit"},vk_staff_profileTitleColor:{type:"string",default:"inherit"},vk_staff_profileTextColor:{type:"string",default:"inherit"},vk_staff_photoBorder:{type:"string",default:"default"}},edit:function(e){var t=e.attributes,n=e.setAttributes,o=e.className,a=t.vk_staff_photo_image_alt,l=t.vk_staff_layout,c=t.vk_staff_nameColor,i=t.vk_staff_captionColor,s=t.vk_staff_positionColor,u=t.vk_staff_profileTitleColor,p=t.vk_staff_profileTextColor,f=t.vk_staff_photoBorder;return r.a.createElement(V,null,r.a.createElement(H,null,r.a.createElement(L,{title:j("Layout","vk-blocks")},r.a.createElement(U,{value:l,onChange:function(e){return n({vk_staff_layout:e})},options:[{value:"default",label:j("Default","vk-blocks")},{value:"imageLeft",label:j("Image left","vk-blocks")}]})),r.a.createElement(L,{title:j("Image border","vk-blocks")},r.a.createElement(U,{value:f,onChange:function(e){return n({vk_staff_photoBorder:e})},options:[{value:"default",label:j("Default","vk-blocks")},{value:"none",label:j("None","vk-blocks")}]})),r.a.createElement(L,{title:j("Alt text","vk-blocks")},r.a.createElement(D,{help:j("Set the alt text for profile image","vk-blocks")},r.a.createElement(F,{value:a,onChange:function(e){return n({vk_staff_photo_image_alt:e})}}))),r.a.createElement(L,{title:j("Color","vk-blocks")},r.a.createElement(D,{label:j("Staff name","vk-blocks")},r.a.createElement($,{value:c,onChange:function(e){return n({vk_staff_nameColor:e})}})),r.a.createElement(D,{label:j("Name caption","vk-blocks")},r.a.createElement($,{value:i,onChange:function(e){return n({vk_staff_captionColor:e})}})),r.a.createElement(D,{label:j("Role position","vk-blocks")},r.a.createElement($,{value:s,onChange:function(e){return n({vk_staff_positionColor:e})}})),r.a.createElement(D,{label:j("Profile title","vk-blocks")},r.a.createElement($,{value:u,onChange:function(e){return n({vk_staff_profileTitleColor:e})}})),r.a.createElement(D,{label:j("Profile text","vk-blocks")},r.a.createElement($,{value:p,onChange:function(e){return n({vk_staff_profileTextColor:e})}})))),r.a.createElement(P,{attributes:t,setAttributes:n,className:o,for_:"edit"}))},save:function(e){var t=e.attributes;return r.a.createElement(P,{attributes:t,setAttributes:"",className:"",for_:"save"})}});function G(e){return(G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Y(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Z(e,t){return!t||"object"!==G(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Q(e){return(Q=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function X(e,t){return(X=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var J=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Z(this,Q(t).apply(this,arguments))}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&X(e,t)}(t,r.a.Component),n=t,(o=[{key:"render",value:function(){var e=this.props.attributes,t=e.unit,n=e.pc,o=e.tablet,a=e.mobile,l=this.props.className;return r.a.createElement("div",{className:"".concat(l," vk_spacer")},r.a.createElement("div",{className:"vk_spacer-display-pc",style:{height:n+t}}),r.a.createElement("div",{className:"vk_spacer-display-tablet",style:{height:o+t}}),r.a.createElement("div",{className:"vk_spacer-display-mobile",style:{height:a+t}}))}}])&&Y(n.prototype,o),a&&Y(n,a),t}();function K(e){return(K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ee(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function te(e,t){return!t||"object"!==K(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ne(e){return(ne=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function oe(e,t){return(oe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var re=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),te(this,ne(t).apply(this,arguments))}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&oe(e,t)}(t,r.a.Component),n=t,(o=[{key:"render",value:function(){var e=this.props.attributes,t=e.unit,n=e.pc,o=e.tablet,a=e.mobile;return r.a.createElement("div",{className:"vk_spacer"},r.a.createElement("div",{className:"vk_spacer-display-pc",style:{height:n+t}}),r.a.createElement("div",{className:"vk_spacer-display-tablet",style:{height:o+t}}),r.a.createElement("div",{className:"vk_spacer-display-mobile",style:{height:a+t}}))}}])&&ee(n.prototype,o),a&&ee(n,a),t}(),ae=(wp.editor.RichText,[{attributes:{unit:{type:"string",default:"px"},pc:{type:"number",default:50},tablet:{type:"number",default:10},mobile:{type:"number",default:10}},save:function(e){var t=e.attributes;return r.a.createElement(re,{attributes:t})}}]),le=wp.i18n.__,ce=wp.blocks.registerBlockType,ie=wp.components,se=ie.RangeControl,ue=ie.PanelBody,pe=ie.BaseControl,fe=ie.SelectControl,me=wp.element.Fragment,be=wp.editor.InspectorControls,ve=r.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"576",height:"512",viewBox:"0 0 576 512"},r.a.createElement("g",null,r.a.createElement("rect",{x:"108.8",y:"18.7",width:"358.5",height:"40"}),r.a.createElement("rect",{x:"108.8",y:"453.3",width:"358.5",height:"40"}),r.a.createElement("polygon",{points:"171.4,253.2 131.4,253.2 131.4,412.6 290.8,412.6 290.8,372.6 199.7,372.6 404.6,167.7 404.6,258.8 444.6,258.8 444.6,99.4 285.2,99.4 285.2,139.4 376.3,139.4 171.4,344.3 \t"})));ce("vk-blocks/spacer",{title:le("Responsive Spacer","vk-blocks"),icon:ve,category:"vk-blocks-cat-layout",attributes:{unit:{type:"string",default:"px"},pc:{type:"number",default:40},tablet:{type:"number",default:30},mobile:{type:"number",default:20}},edit:function(e){var t=e.attributes,n=e.setAttributes,o=e.className,a=t.unit,l=t.pc,c=t.tablet,i=t.mobile;return r.a.createElement(me,null,r.a.createElement(be,null,r.a.createElement(ue,null,r.a.createElement(fe,{label:le("Unit Type","vk-blocks"),value:a,onChange:function(e){return n({unit:e})},options:[{value:"px",label:le("px","vk-blocks")},{value:"em",label:le("em","vk-blocks")},{value:"rem",label:le("rem","vk-blocks")},{value:"vw",label:le("vw","vk-blocks")}]}),r.a.createElement(pe,{label:le("Height for each device.","vk-blocks")},r.a.createElement(se,{label:le("PC","vk-blocks"),value:l,onChange:function(e){return n({pc:e})},step:.1}),r.a.createElement(se,{label:le("Tablet","vk-blocks"),value:c,onChange:function(e){return n({tablet:e})},step:.1}),r.a.createElement(se,{label:le("Mobile","vk-blocks"),value:i,onChange:function(e){return n({mobile:e})},step:.1})))),r.a.createElement(J,{attributes:t,className:o}))},save:function(e){var t=e.attributes;return r.a.createElement(J,{attributes:t})},deprecated:ae});var ke=function(e,t,n,o){var r,a,l;return t||(t="#fff"),"tilt"===o?(r=Math.abs(e),l=function(e,t){if(e>0)return React.createElement("path",{d:"m0,".concat(100-e," L100,100 L0,100 z"),strokeWidth:"0",fill:t});if(e<0){var n=Math.abs(e);return React.createElement("path",{d:"m100,".concat(100-n," L0,100 L100,100 z"),strokeWidth:"0",fill:t})}}(e,t)):"curve"===o?(e>0?r=Math.abs(e):e<0&&(r=2*Math.abs(e)),l=function(e,t){return e>0?React.createElement("path",{d:"m0,".concat(100-e," q50,").concat(2*e,",100,0 V100 L0,100 z"),strokeWidth:"0",fill:t}):e<0?React.createElement("path",{d:"m0,100 q50,".concat(2*e,",100,0 V100 L0,100 z"),strokeWidth:"0",fill:t}):void 0}(e,t)):"wave"===o?(r=Math.abs(e),l=function(e,t){return e>0?React.createElement("path",{d:"m0,".concat(100-e/2," q20,").concat(e,",40,0 t40,0 t40,0 V100 L0,100 z"),strokeWidth:"0",fill:t}):e<0?React.createElement("path",{d:"m0,".concat(e/2+100," q20,").concat(e,",40,0 t40,0 t40,0 V100 L0,100 z"),strokeWidth:"0",fill:t}):void 0}(e,t)):"triangle"===o&&(r=Math.abs(e),l=function(e,t){var n=Math.abs(e),o=n/4;return e>0?React.createElement("path",{d:"m0,100 h".concat(50-o," l").concat(o,",-").concat(n," l").concat(o,",").concat(n," h").concat(o," v100 h-100 z"),strokeWidth:"0",fill:t}):e<0?React.createElement("path",{d:"m0,".concat(100-n," h").concat(50-o," l").concat(o,",").concat(n," l").concat(o,",-").concat(n," h").concat(50-o," v").concat(n+1," h-100 z"),strokeWidth:"0",fill:t}):void 0}(e,t)),a=o,"upper"===n?React.createElement("div",{className:"vk_outer_separator vk_outer_separator-position-upper vk_outer_separator-type-".concat(a),style:{paddingBottom:r+"px"}},React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",preserveAspectRatio:"none"},l)):"lower"===n?React.createElement("div",{className:"vk_outer_separator vk_outer_separator-position-lower vk_outer_separator-type-".concat(a),style:{paddingTop:r+"px"}},React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",preserveAspectRatio:"none"},l)):void 0};function de(e){return(de="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ye(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function ge(e,t){return!t||"object"!==de(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function he(e){return(he=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _e(e,t){return(_e=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Ee=wp.editor.InnerBlocks;function Ce(e,t){var n=e.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i),o=null;return n&&(o=n.slice(1,4).map(function(e){return parseInt(e,16)})),(n=e.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i))&&(o=n.slice(1,4).map(function(e){return 17*parseInt(e,16)})),o?"rgba(".concat(o[0],", ").concat(o[1],", ").concat(o[2],", ").concat(t,")"):null}var we=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),ge(this,he(t).apply(this,arguments))}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_e(e,t)}(t,r.a.Component),n=t,(o=[{key:"render",value:function(){var e,t,n,o,a,l,c,i,s,u,p,f=this.props.attributes,m=f.bgColor,b=f.bgImage,v=f.bgPosition,k=f.outerWidth,d=f.padding_left_and_right,y=f.padding_top_and_bottom,g=f.opacity,h=f.upper_level,_=f.lower_level,E=f.upperDividerBgColor,C=f.lowerDividerBgColor,w=f.dividerType,x=f.borderWidth,N=f.borderStyle,S=f.borderColor,T=f.borderRadius,B=f.anchor,O=this.props.className,I=this.props.for_;return o=" vk_outer-width-".concat(k),m=Ce(m||"#fff",g),n="parallax"===v?" vk_outer-bgPosition-parallax vk-prlx":"fixed"===v?" vk_outer-bgPosition-fixed":" vk_outer-bgPosition-normal",e="1"===d?" vk_outer-paddingLR-use":" vk_outer-paddingLR-none",t="1"===y?" vk_outer-paddingVertical-use":" vk_outer-paddingVertical-none",h&&(c="upper"),_&&(i="lower"),"edit"===I?a=r.a.createElement(Ee,null):(a=r.a.createElement(Ee.Content,null),l="vk_outer_container"),s=b?"linear-gradient(".concat(m,", ").concat(m,"), url(").concat(b,")"):"linear-gradient(".concat(m,", ").concat(m,")"),S||(S="#fff"),0===h&&0===_?(u="".concat(x,"px ").concat(N," ").concat(S),p="".concat(T,"px")):(u="none",p="0px"),r.a.createElement("div",{id:B,className:O+" vk_outer"+o+e+t+n,style:{background:s,border:u,borderRadius:p}},ke(h,E,c,w),r.a.createElement("div",{className:l},a),ke(_,C,i,w))}}])&&ye(n.prototype,o),a&&ye(n,a),t}(),xe=function(e,t,n,o){var r,a,l;return t||(t="#fff"),"tilt"===o?(r=Math.abs(e),l=function(e,t){if(e>0)return React.createElement("path",{d:"m0,".concat(100-e," L100,100 L0,100 z"),strokeWidth:"0",fill:t});if(e<0){var n=Math.abs(e);return React.createElement("path",{d:"m100,".concat(100-n," L0,100 L100,100 z"),strokeWidth:"0",fill:t})}}(e,t)):"curve"===o?(e>0?r=Math.abs(e):e<0&&(r=2*Math.abs(e)),l=function(e,t){return e>0?React.createElement("path",{d:"m0,".concat(100-e," q50,").concat(2*e,",100,0 V100 L0,100 z"),strokeWidth:"0",fill:t}):e<0?React.createElement("path",{d:"m0,100 q50,".concat(2*e,",100,0 V100 L0,100 z"),strokeWidth:"0",fill:t}):void 0}(e,t)):"wave"===o?(r=Math.abs(e),l=function(e,t){return e>0?React.createElement("path",{d:"m0,".concat(100-e/2," q20,").concat(e,",40,0 t40,0 t40,0 V100 L0,100 z"),strokeWidth:"0",fill:t}):e<0?React.createElement("path",{d:"m0,".concat(e/2+100," q20,").concat(e,",40,0 t40,0 t40,0 V100 L0,100 z"),strokeWidth:"0",fill:t}):void 0}(e,t)):"triangle"===o&&(r=Math.abs(e),l=function(e,t){var n=Math.abs(e),o=n/4;return e>0?React.createElement("path",{d:"m0,100 h".concat(50-o," l").concat(o,",-").concat(n," l").concat(o,",").concat(n," h").concat(o," v100 h-100 z"),strokeWidth:"0",fill:t}):e<0?React.createElement("path",{d:"m0,".concat(100-n," h").concat(50-o," l").concat(o,",").concat(n," l").concat(o,",-").concat(n," h").concat(50-o," v").concat(n+1," h-100 z"),strokeWidth:"0",fill:t}):void 0}(e,t)),a=o,"upper"===n?React.createElement("div",{className:"vk_outer_separator vk_outer_separator-position-upper vk_outer_separator-type-".concat(a),style:{paddingBottom:r+"px"}},React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",preserveAspectRatio:"none"},l)):"lower"===n?React.createElement("div",{className:"vk_outer_separator vk_outer_separator-position-lower vk_outer_separator-type-".concat(a),style:{paddingTop:r+"px"}},React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 100 100",preserveAspectRatio:"none"},l)):void 0};function Ne(e){return(Ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Se(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Te(e,t){return!t||"object"!==Ne(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Be(e){return(Be=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Oe(e,t){return(Oe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Ie=wp.editor.InnerBlocks;function Re(e,t){var n=e.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i),o=null;return n&&(o=n.slice(1,4).map(function(e){return parseInt(e,16)})),(n=e.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i))&&(o=n.slice(1,4).map(function(e){return 17*parseInt(e,16)})),o?"rgba(".concat(o[0],", ").concat(o[1],", ").concat(o[2],", ").concat(t,")"):null}var Ae=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Te(this,Be(t).apply(this,arguments))}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Oe(e,t)}(t,r.a.Component),n=t,(o=[{key:"render",value:function(){var e,t,n,o,a,l,c,i,s,u,p,f=this.props.attributes,m=f.bgColor,b=f.bgImage,v=f.bgPosition,k=f.outerWidth,d=f.padding_left_and_right,y=f.padding_top_and_bottom,g=f.opacity,h=f.upper_level,_=f.lower_level,E=f.upperDividerBgColor,C=f.lowerDividerBgColor,w=f.dividerType,x=f.borderWidth,N=f.borderStyle,S=f.borderColor,T=f.borderRadius,B=f.anchor,O=this.props.for_;return o=" vk_outer-width-".concat(k),m=Re(m||"#fff",g),n="parallax"===v?" vk_outer-bgPosition-parallax vk-prlx":"fixed"===v?" vk_outer-bgPosition-fixed":" vk_outer-bgPosition-normal",e="1"===d?" vk_outer-paddingLR-use":" vk_outer-paddingLR-none",t="1"===y?" vk_outer-paddingVertical-use":" vk_outer-paddingVertical-none",h&&(c="upper"),_&&(i="lower"),"edit"===O?a=r.a.createElement(Ie,null):(a=r.a.createElement(Ie.Content,null),l="vk_outer_container"),s=b?"linear-gradient(".concat(m,", ").concat(m,"), url(").concat(b,")"):"linear-gradient(".concat(m,", ").concat(m,")"),S||(S="#fff"),0===h&&0===_?(u="".concat(x,"px ").concat(N," ").concat(S),p="".concat(T,"px")):(u="none",p="0px"),r.a.createElement("div",{id:B,className:"vk_outer"+o+e+t+n,style:{background:s,border:u,borderRadius:p}},xe(h,E,c,w),r.a.createElement("div",{className:l},a),xe(_,C,i,w))}}])&&Se(n.prototype,o),a&&Se(n,a),t}(),Pe=[{attributes:{bgColor:{type:"string",default:"#f3f4f5"},bgImage:{type:"string",default:null},outerWidth:{type:"string",default:"normal"},bgPosition:{type:"string",default:"normal"},padding_left_and_right:{type:"string",default:"0"},padding_top_and_bottom:{type:"string",default:"1"},opacity:{type:"number",default:.5},upper_level:{type:"number",default:0},lower_level:{type:"number",default:0},dividerType:{type:"string",default:"tilt"},upperDividerBgColor:{type:"string",default:"#fff"},lowerDividerBgColor:{type:"string",default:"#fff"},borderWidth:{type:"number",default:0},borderStyle:{type:"string",default:"none"},borderColor:{type:"string",default:"#000"},borderRadius:{type:"number",default:0}},save:function(e){var t=e.attributes;if(vk_blocks_check.is_pro)return r.a.createElement(Ae,{attributes:t,for_:"save"})}}];function je(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-100,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return e=Number(e),(isNaN(e)||e<t)&&(e=t),null!==n&&e>n&&(e=n),e}var ze=wp.i18n.__,Me=wp.blocks.registerBlockType,Fe=wp.components,Le=Fe.RangeControl,De=Fe.RadioControl,Ue=Fe.PanelBody,Ve=Fe.Button,We=Fe.BaseControl,He=Fe.SelectControl,$e=wp.element.Fragment,qe=wp.editor,Ge=qe.InspectorControls,Ye=qe.MediaUpload,Ze=qe.ColorPalette,Qe=r.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"576",height:"512",viewBox:"0 0 576 512"},r.a.createElement("g",null,r.a.createElement("path",{d:"M288,390.2c74,0,134.2-60.3,134.2-134.2S362,121.8,288,121.8S153.8,182,153.8,256S214,390.2,288,390.2z M288,165.5 c49.9,0,90.5,40.6,90.5,90.5s-40.6,90.5-90.5,90.5s-90.5-40.6-90.5-90.5S238.1,165.5,288,165.5z"}),r.a.createElement("polygon",{points:"266.1,333.3 309.9,333.3 309.9,277.9 365.3,277.9 365.3,234.1 309.9,234.1 309.9,178.7 266.1,178.7 266.1,234.1 210.7,234.1 210.7,277.9 266.1,277.9 \t"})),r.a.createElement("path",{d:"M529,31H49C22.5,31,1,52.5,1,79v352c0,26.5,21.5,48,48,48h480c26.5,0,48-21.5,48-48V79C577,52.5,555.5,31,529,31z M529,431 H49V79h480V431z"}));Me("vk-blocks/outer",{title:ze("Outer","vk-blocks"),icon:Qe,category:"vk-blocks-cat-layout",attributes:{bgColor:{type:"string",default:"#f3f4f5"},bgImage:{type:"string",default:null},outerWidth:{type:"string",default:"normal"},bgPosition:{type:"string",default:"normal"},padding_left_and_right:{type:"string",default:"0"},padding_top_and_bottom:{type:"string",default:"1"},opacity:{type:"number",default:.5},upper_level:{type:"number",default:0},lower_level:{type:"number",default:0},dividerType:{type:"string",default:"tilt"},upperDividerBgColor:{type:"string",default:"#fff"},lowerDividerBgColor:{type:"string",default:"#fff"},borderWidth:{type:"number",default:0},borderStyle:{type:"string",default:"none"},borderColor:{type:"string",default:"#000"},borderRadius:{type:"number",default:0}},supports:{anchor:!0},edit:function(e){var t=e.attributes,n=e.setAttributes,o=e.className,a=t.bgColor,l=t.bgImage,c=t.bgPosition,i=t.outerWidth,s=t.padding_left_and_right,u=t.padding_top_and_bottom,p=t.opacity,f=t.upper_level,m=t.lower_level,b=t.upperDividerBgColor,v=t.lowerDividerBgColor,k=t.dividerType,d=t.borderWidth,y=t.borderStyle,g=t.borderColor,h=t.borderRadius;return r.a.createElement($e,null,r.a.createElement(Ge,null,r.a.createElement(Ue,{title:ze("Background Setting","vk-blocks")},r.a.createElement(We,{label:ze("Color Setting","vk-blocks"),help:ze("Color will overcome background image. If you want to display image, clear background color or set opacity 0.","vk-blocks")},r.a.createElement(Ze,{value:a,onChange:function(e){return n({bgColor:e})}})),r.a.createElement(We,{label:ze("Opacity Setting","vk-blocks")},r.a.createElement(Le,{value:p,onChange:function(e){n({opacity:e})},min:0,max:1,step:.1})),r.a.createElement(We,{label:ze("Background Image","vk-blocks"),help:""},r.a.createElement(Ye,{onSelect:function(e){return n({bgImage:e.url})},type:"image",value:l,render:function(e){var t=e.open;return r.a.createElement(Ve,{onClick:t,className:l?"image-button":"button button-large"},l?r.a.createElement("img",{className:"icon-image",src:l,alt:ze("Upload image","vk-blocks")}):ze("Select image","vk-blocks"))}})),r.a.createElement(We,{label:ze("Background image Position","vk-blocks"),help:""},r.a.createElement(De,{selected:c,options:[{label:ze("normal","vk-blocks"),value:"normal"},{label:ze("Fixed","vk-blocks"),value:"fixed"},{label:ze("Parallax (It will not work in preview)","vk-blocks"),value:"parallax"}],onChange:function(e){return n({bgPosition:e})}}))),r.a.createElement(Ue,{title:ze("Layout Setting","vk-blocks")},r.a.createElement(We,null,r.a.createElement(De,{label:ze("Outer width","vk-blocks"),selected:i,options:[{label:ze("Normal","vk-blocks"),value:"normal"},{label:ze("Full Wide","vk-blocks"),value:"full"}],onChange:function(e){return n({outerWidth:e})}}),r.a.createElement(De,{label:ze("Contents area padding (left and right)","vk-blocks"),selected:s,options:[{label:ze("Do not use contents area default padding (When case of full width etc.).","vk-blocks"),value:"0"},{label:ze("Use contents area default padding (When case of not full width and use background etc.).","vk-blocks"),value:"1"}],onChange:function(e){return n({padding_left_and_right:e})}}),r.a.createElement(De,{label:ze("Padding (top and bottom)","vk-blocks"),selected:u,options:[{label:ze("Use default padding","vk-blocks"),value:"1"},{label:ze("Do not use default padding (Set it yourself using a spacer block etc.).","vk-blocks"),value:"0"}],onChange:function(e){return n({padding_top_and_bottom:e})}}))),r.a.createElement(Ue,{title:ze("Divider Setting","vk-blocks")},r.a.createElement(We,null,r.a.createElement(He,{label:ze("Type","vk-blocks"),value:k,onChange:function(e){return n({dividerType:e})},options:[{value:"tilt",label:ze("Tilt","vk-blocks")},{value:"curve",label:ze("Curve","vk-blocks")},{value:"wave",label:ze("Wave","vk-blocks")},{value:"triangle",label:ze("Triangle","vk-blocks")}]})),r.a.createElement(We,{label:ze("Upper Divider Level","vk-blocks")},r.a.createElement(Le,{value:f,onChange:function(e){return n({upper_level:je(e,-100,100)})},min:"-100",max:"100"})),r.a.createElement(We,null,r.a.createElement(Ze,{value:b,onChange:function(e){return n({upperDividerBgColor:e})}})),r.a.createElement(We,{label:ze("Lower Divider Level","vk-blocks")},r.a.createElement(Le,{value:m,onChange:function(e){return n({lower_level:je(e,-100,100)})},min:"-100",max:"100"})),r.a.createElement(We,null,r.a.createElement(Ze,{value:v,onChange:function(e){return n({lowerDividerBgColor:e})}}))),r.a.createElement(Ue,{title:ze("Border Setting","vk-blocks")},r.a.createElement(We,null,r.a.createElement("p",null,ze("Border will disappear when divider effect is applied.","vk-blocks")),r.a.createElement(He,{label:ze("Border type","vk-blocks"),value:y,onChange:function(e){return n({borderStyle:e})},options:[{value:"none",label:ze("None","vk-blocks")},{value:"solid",label:ze("Solid","vk-blocks")},{value:"dotted",label:ze("Dotted","vk-blocks")},{value:"dashed",label:ze("Dashed","vk-blocks")},{value:"double",label:ze("Double","vk-blocks")},{value:"groove",label:ze("Groove","vk-blocks")},{value:"ridge",label:ze("Ridge","vk-blocks")},{value:"inset",label:ze("Inset","vk-blocks")},{value:"outset",label:ze("Outset","vk-blocks")}]})),r.a.createElement(We,null,r.a.createElement(Ze,{value:g,onChange:function(e){return n({borderColor:e})}})),r.a.createElement(We,{label:ze("Border width","vk-blocks")},r.a.createElement(Le,{value:d,onChange:function(e){return n({borderWidth:e})},min:"0"})),r.a.createElement(We,{label:ze("Border radius","vk-blocks")},r.a.createElement(Le,{value:h,onChange:function(e){return n({borderRadius:je(e,-100,100)})},min:"-100",max:"100"})))),vk_blocks_check.is_pro?r.a.createElement(we,{attributes:t,className:o,for_:"edit"}):r.a.createElement("div",null,ze("This block is only for users who bought Lightning Pro.","vk-blocks")))},save:function(e){var t=e.attributes,n=e.className;if(vk_blocks_check.is_pro)return r.a.createElement(we,{attributes:t,className:n,for_:"save"})},deprecated:Pe});var Xe=n(1),Je=n.n(Xe);function Ke(e){return(Ke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function et(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function tt(e,t){return!t||"object"!==Ke(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function nt(e){return(nt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ot(e,t){return(ot=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var rt=window.lodash.range,at=wp.i18n,lt=at.__,ct=at.sprintf,it=wp.element.Component,st=wp.components.Toolbar,ut=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),tt(this,nt(t).apply(this,arguments))}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ot(e,t)}(t,it),n=t,(o=[{key:"createLevelControl",value:function(e,t,n){return{icon:"heading",title:ct(lt("Heading %d"),e),isActive:e===t,onClick:function(){return n(e)},subscript:String(e)}}},{key:"render",value:function(){var e=this,t=this.props,n=t.minLevel,o=t.maxLevel,a=t.selectedLevel,l=t.onChange;return r.a.createElement(st,{controls:rt(n,o).map(function(t){return e.createLevelControl(t,a,l)})})}}])&&et(n.prototype,o),a&&et(n,a),t}();function pt(e){return(pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ft(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function mt(e,t){return!t||"object"!==pt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function bt(e){return(bt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function vt(e,t){return(vt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var kt=wp.editor.RichText,dt=wp.i18n.__,yt=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),mt(this,bt(t).apply(this,arguments))}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&vt(e,t)}(t,r.a.Component),n=t,(o=[{key:"render",value:function(){var e,t,n=this.props.attributes,o=n.level,a=n.align,l=n.title,c=n.titleColor,i=n.titleSize,s=n.subText,u=n.subTextFlag,p=n.subTextColor,f=n.subTextSize,m=n.titleStyle,b=n.titleMarginBottom,v=n.outerMarginBottom,k=this.props.setAttributes,d=this.props.className,y=this.props.for_,g=Je()(d,"vk_heading vk_heading-style-".concat(m)),h="h"+o;return null!=v&&(e={marginBottom:v+"rem"}),t=null!=b?{color:c,fontSize:i+"rem",marginBottom:b+"rem",textAlign:a}:{color:c,fontSize:i+"rem",textAlign:a},"edit"===y?r.a.createElement("div",{className:g,style:e},r.a.createElement(kt,{tagName:h,value:l,onChange:function(e){return k({title:e})},style:t,className:"vk_heading_title vk_heading_title-style-".concat(m),placeholder:dt("Input title…","vk-blocks")}),function(){if("on"===u)return r.a.createElement(kt,{tagName:"p",value:s,onChange:function(e){return k({subText:e})},style:{color:p,fontSize:f+"rem",textAlign:a},className:"vk_heading_subtext vk_heading_subtext-style-".concat(m),placeholder:dt("Input sub text…","vk-blocks")})}()):"save"===y?r.a.createElement("div",{className:g,style:e},r.a.createElement(kt.Content,{tagName:h,value:l,onChange:function(e){return k({title:e})},style:t,className:"vk_heading_title vk_heading_title-style-".concat(m),placeholder:dt("Input title…","vk-blocks")}),function(){if("on"===u)return r.a.createElement(kt.Content,{tagName:"p",value:s,onChange:function(e){return k({subText:e})},style:{color:p,fontSize:f+"rem",textAlign:a},className:"vk_heading_subtext vk_heading_subtext-style-".concat(m),placeholder:dt("Input sub text…","vk-blocks")})}()):void 0}}])&&ft(n.prototype,o),a&&ft(n,a),t}();function gt(e){throw new Error('"'+e+'" is read-only')}var ht=wp.element.Fragment,_t=wp.editor,Et=_t.RichText;_t.InspectorControls,_t.ColorPalette,_t.BlockControls,_t.AlignmentToolbar;var Ct=[{attributes:{level:{type:"number",default:2},align:{type:"string"},titleStyle:{type:"string",default:"default"},outerMarginBottom:{type:"number"},title:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:""},titleColor:{type:"string",default:"#000000"},titleSize:{type:"number",default:2.6},titleMarginBottom:{type:"number"},subText:{source:"html",selector:"p",default:""},subTextFlag:{type:"string",default:"on"},subTextColor:{type:"string",default:"#000000"},subTextSize:{type:"number",default:1.8}},supports:{className:!1,anchor:!0},save:function(e){var t=e.attributes,n=t.level,o=t.align,a=t.title,l=t.titleColor,c=t.titleSize,i=t.subText,s=t.subTextFlag,u=t.subTextColor,p=t.subTextSize,f=t.titleStyle,m=t.titleMarginBottom,b=t.outerMarginBottom,v="h"+n;return r.a.createElement("div",{className:"vk_heading vk_heading-style-".concat(f),style:{marginBottom:b+"rem"}},r.a.createElement(Et.Content,{tagName:v,value:a,style:{color:l,fontSize:c+"rem",textAlign:o,marginBottom:m+"rem"},className:"vk_heading_title vk_heading_title-style-".concat(f)}),function(){if("on"===s)return r.a.createElement(Et.Content,{tagName:"p",value:i,style:{color:u,fontSize:p+"rem",textAlign:o},className:"vk_heading_subtext vk_heading_subtext-style-".concat(f)})}())}},{attributes:function(e){for(var t={},n=1;n<=e;n++)t["heading"+n]={type:"string",source:"html",selector:"h1.vk_prBlocks_item_title-"+n},t["content"+n]={type:"string",source:"html",selector:"p.vk_prBlocks_item_summary-"+n},t["url"+n]={type:"string",default:null},t["urlOpenType"+n]={type:"Boolean",default:!1},t["icon"+n]={type:"string",default:"fas fa-file"},t["color"+n]={type:"string",default:"#0693e3"},t["bgType"+n]={type:"string",default:"0"},t["insertImage"+n]={type:"string",default:null};return t}(4),save:function(e){var t=e.attributes,n=t.heading1,o=t.heading2,a=t.heading3,l=t.content1,c=t.content2,i=t.content3,s=t.url1,u=t.url2,p=t.url3,f=t.urlOpenType1,m=t.urlOpenType2,b=t.urlOpenType3,v=t.icon1,k=t.icon2,d=t.icon3,y=t.color1,g=t.color2,h=t.color3,_=t.bgType1,E=t.bgType2,C=t.bgType3,w=t.insertImage1,x=t.insertImage2,N=t.insertImage3;return r.a.createElement("article",{className:"vk_prBlocks row"},r.a.createElement("div",{className:"vk_prBlocks_item col-sm-4"},r.a.createElement("a",{href:s,target:f?"_blank":"_self",className:"vk_prBlocks_item_link"},w?r.a.createElement("div",{className:"vk_prBlocks_item_image",style:{backgroundImage:"url("+w+")",backgroundRepeat:"no-repeat 50% center",backgroundSize:"cover"}},r.a.createElement("img",{src:w,alt:""})):(y||(gt("color1"),y="#0693e3"),"0"===_?r.a.createElement("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:y,border:"1px solid ".concat(y)}},r.a.createElement("i",{className:"".concat(v," vk_prBlocks_item_icon"),style:{color:"#fff"}})):r.a.createElement("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:"transparent",border:"1px solid "+y}},r.a.createElement("i",{className:"".concat(v," vk_prBlocks_item_icon"),style:{color:y}}))),r.a.createElement(Et.Content,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-1",tagName:"h1",value:n}),r.a.createElement(Et.Content,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-1",tagName:"p",value:l}))),r.a.createElement("div",{className:"vk_prBlocks_item col-sm-4"},r.a.createElement("a",{href:u,target:m?"_blank":"_self",className:"vk_prBlocks_item_link"},x?r.a.createElement("div",{className:"vk_prBlocks_item_image",style:{backgroundImage:"url("+x+")",backgroundRepeat:"no-repeat 50% center",backgroundSize:"cover"}},r.a.createElement("img",{src:x,alt:""})):(g||(gt("color2"),g="#0693e3"),"0"===E?r.a.createElement("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:g,border:"1px solid ".concat(g)}},r.a.createElement("i",{className:"".concat(k," vk_prBlocks_item_icon"),style:{color:"#fff"}})):r.a.createElement("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:"transparent",border:"1px solid "+g}},r.a.createElement("i",{className:"".concat(k," vk_prBlocks_item_icon"),style:{color:g}}))),r.a.createElement(Et.Content,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-2",tagName:"h1",value:o}),r.a.createElement(Et.Content,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-2",tagName:"p",value:c}))),r.a.createElement("div",{className:"vk_prBlocks_item col-sm-4"},r.a.createElement("a",{href:p,target:b?"_blank":"_self",className:"vk_prBlocks_item_link"},N?r.a.createElement("div",{className:"vk_prBlocks_item_image",style:{backgroundImage:"url("+N+")",backgroundRepeat:"no-repeat 50% center",backgroundSize:"cover"}},r.a.createElement("img",{src:N,alt:""})):(h||(gt("color3"),h="#0693e3"),"0"===C?r.a.createElement("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:h,border:"1px solid ".concat(h)}},r.a.createElement("i",{className:"".concat(d," vk_prBlocks_item_icon"),style:{color:"#fff"}})):r.a.createElement("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:"transparent",border:"1px solid "+h}},r.a.createElement("i",{className:"".concat(d," vk_prBlocks_item_icon"),style:{color:h}}))),r.a.createElement(Et.Content,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-3",tagName:"h1",value:a}),r.a.createElement(Et.Content,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-3",tagName:"p",value:i}))))}},{attributes:{level:{type:"number",default:2},align:{type:"string"},titleStyle:{type:"string",default:"default"},outerMarginBottom:{type:"number",default:null},title:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:""},titleColor:{type:"string",default:"#000000"},titleSize:{type:"number",default:2.6},titleMarginBottom:{type:"number",default:null},subText:{source:"html",selector:"p",default:""},subTextFlag:{type:"string",default:"on"},subTextColor:{type:"string",default:"#000000"},subTextSize:{type:"number",default:1.8}},supports:{className:!1,anchor:!0},save:function(e){var t=e.attributes,n=t.level,o=t.align,a=t.title,l=t.titleColor,c=t.titleSize,i=t.subText,s=t.subTextFlag,u=t.subTextColor,p=t.subTextSize,f=t.titleStyle,m=t.titleMarginBottom,b=t.outerMarginBottom,v="h"+n;return r.a.createElement(ht,null,null==b?r.a.createElement("div",{className:"vk_heading vk_heading-style-".concat(f)},r.a.createElement(Et.Content,{tagName:v,value:a,style:{color:l,fontSize:c+"rem",textAlign:o},className:"vk_heading_title vk_heading_title-style-".concat(f)}),function(){if("on"===s)return r.a.createElement(Et.Content,{tagName:"p",value:i,style:{color:u,fontSize:p+"rem",textAlign:o},className:"vk_heading_subtext vk_heading_subtext-style-".concat(f)})}()):r.a.createElement("div",{className:"vk_heading vk_heading-style-".concat(f),style:{marginBottom:b+"rem"}},r.a.createElement(Et.Content,{tagName:v,value:a,style:{color:l,fontSize:c+"rem",textAlign:o,marginBottom:m+"rem"},className:"vk_heading_title vk_heading_title-style-".concat(f)}),function(){if("on"===s)return r.a.createElement(Et.Content,{tagName:"p",value:i,style:{color:u,fontSize:p+"rem",textAlign:o},className:"vk_heading_subtext vk_heading_subtext-style-".concat(f)})}()))}}],wt=wp.i18n.__,xt=wp.blocks.registerBlockType,Nt=wp.components,St=Nt.RangeControl,Tt=Nt.PanelBody,Bt=Nt.RadioControl,Ot=Nt.SelectControl,It=wp.element.Fragment,Rt=wp.editor,At=(Rt.RichText,Rt.InspectorControls),Pt=Rt.ColorPalette,jt=Rt.BlockControls,zt=Rt.AlignmentToolbar,Mt=r.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"576",height:"512",viewBox:"0 0 576 512"},r.a.createElement("g",null,r.a.createElement("g",null,r.a.createElement("path",{d:"M242.1,366.7l0-281.4l-212.6,0l0-77.1l516.6,0v77.1l-213.2,0l0,281.4H242.1z"})),r.a.createElement("g",null,r.a.createElement("path",{d:"M33,467.3l30.8-1.9c0.7,5,2,8.8,4.1,11.4c3.3,4.2,8.1,6.4,14.3,6.4c4.6,0,8.2-1.1,10.7-3.3c2.5-2.2,3.8-4.7,3.8-7.5 c0-2.7-1.2-5.1-3.6-7.3c-2.4-2.1-7.9-4.2-16.6-6.1c-14.2-3.2-24.3-7.4-30.4-12.7c-6.1-5.3-9.1-12-9.1-20.2 c0-5.4,1.6-10.5,4.7-15.3c3.1-4.8,7.8-8.6,14.1-11.3c6.3-2.7,14.8-4.1,25.8-4.1c13.4,0,23.6,2.5,30.6,7.5c7,5,11.2,12.9,12.5,23.8 l-30.5,1.8c-0.8-4.7-2.5-8.1-5.1-10.3c-2.6-2.1-6.2-3.2-10.8-3.2c-3.8,0-6.6,0.8-8.5,2.4c-1.9,1.6-2.9,3.5-2.9,5.8 c0,1.7,0.8,3.2,2.4,4.5c1.5,1.4,5.1,2.7,10.9,3.9c14.1,3,24.3,6.1,30.4,9.3c6.1,3.1,10.6,7,13.4,11.6c2.8,4.6,4.2,9.8,4.2,15.5 c0,6.7-1.9,12.9-5.6,18.6c-3.7,5.7-8.9,10-15.6,12.9c-6.7,2.9-15.1,4.4-25.2,4.4c-17.8,0-30.2-3.4-37-10.3 C37.8,486.6,33.9,477.8,33,467.3z"}),r.a.createElement("path",{d:"M215,501.9h-27.2v-12.3c-4,5-8.1,8.6-12.3,10.8c-4.1,2.1-9.2,3.2-15.2,3.2c-8,0-14.3-2.4-18.8-7.2 c-4.5-4.8-6.8-12.2-6.8-22.1V426H164v41.7c0,4.8,0.9,8.1,2.6,10.1c1.8,2,4.2,3,7.4,3c3.5,0,6.3-1.3,8.5-4 c2.2-2.7,3.3-7.5,3.3-14.4V426H215V501.9z"}),r.a.createElement("path",{d:"M225.5,397.2h29.4v36.3c2.9-3,6.2-5.3,9.9-6.9c3.7-1.5,7.8-2.3,12.3-2.3c9.2,0,16.9,3.3,22.9,10 c6.1,6.6,9.1,16.2,9.1,28.6c0,8.3-1.4,15.6-4.1,21.9c-2.8,6.3-6.6,11-11.5,14.1c-4.9,3.1-10.3,4.7-16.3,4.7c-5.1,0-9.8-1.1-14-3.3 c-3.2-1.7-6.7-4.9-10.4-9.6v11.2h-27.2V397.2z M254.6,463.8c0,6.5,1.2,11.3,3.7,14.2c2.5,2.9,5.6,4.4,9.3,4.4 c3.5,0,6.4-1.4,8.8-4.3c2.4-2.9,3.5-7.7,3.5-14.5c0-6-1.2-10.4-3.5-13.2c-2.3-2.8-5.1-4.2-8.4-4.2c-4,0-7.2,1.5-9.7,4.4 C255.9,453.4,254.6,457.8,254.6,463.8z"}),r.a.createElement("path",{d:"M304.4,397.2h98.4V423h-33v78.9h-32.4V423h-33V397.2z"}),r.a.createElement("path",{d:"M395.8,426h34.5l12,21.2l14-21.2h32.1l-25.9,36.2l27.7,39.7h-33.9l-14-24.4l-16.5,24.4h-31.5l27.6-39.7L395.8,426z"}),r.a.createElement("path",{d:"M530.6,397.2V426h16v21.3h-16v26.9c0,3.2,0.3,5.4,0.9,6.4c1,1.6,2.6,2.4,5,2.4c2.1,0,5.1-0.6,9-1.9l2.1,20.1 c-7.2,1.6-13.9,2.4-20.1,2.4c-7.2,0-12.6-0.9-16-2.8c-3.4-1.9-6-4.7-7.6-8.5s-2.5-9.9-2.5-18.4v-26.7h-10.7V426h10.7v-13.9 L530.6,397.2z"}))));xt("vk-blocks/heading",{title:wt("Heading","vk-blocks"),icon:Mt,category:"vk-blocks-cat",attributes:{level:{type:"number",default:2},align:{type:"string"},titleStyle:{type:"string",default:"default"},outerMarginBottom:{type:"number",default:null},title:{type:"string",source:"html",selector:"h1,h2,h3,h4,h5,h6",default:""},titleColor:{type:"string",default:"#000000"},titleSize:{type:"number",default:2.6},titleMarginBottom:{type:"number",default:null},subText:{source:"html",selector:"p",default:""},subTextFlag:{type:"string",default:"on"},subTextColor:{type:"string",default:"#000000"},subTextSize:{type:"number",default:1.8}},supports:{className:!0,customClassName:!0,anchor:!0},edit:function(e){var t=e.attributes,n=e.setAttributes,o=e.className,a=t.level,l=t.align,c=(t.title,t.titleColor),i=t.titleSize,s=(t.subText,t.subTextFlag),u=t.subTextColor,p=t.subTextSize,f=t.titleStyle,m=t.titleMarginBottom,b=t.outerMarginBottom,v=function(e){switch(n({level:e}),e){case 1:n({titleSize:3.6});break;case 2:n({titleSize:2.8});break;case 3:n({titleSize:2.2});break;case 4:n({titleSize:2});break;case 5:n({titleSize:1.8});break;case 6:n({titleSize:1.6})}};return r.a.createElement(It,null,r.a.createElement(jt,null,r.a.createElement(ut,{minLevel:2,maxLevel:5,selectedLevel:a,onChange:v})),r.a.createElement(At,null,r.a.createElement(Tt,{title:wt("Style Settings","vk-blocks")},r.a.createElement(Ot,{label:wt("Heading style","vk-blocks"),value:f,onChange:function(e){return n({titleStyle:e})},options:[{label:wt("Default","vk-blocks"),value:"default"},{label:wt("Plain","vk-blocks"),value:"plain"}]}),r.a.createElement("label",null,wt("Margin bottom size (rem)","vk-blocks")),r.a.createElement(St,{value:b,onChange:function(e){n({outerMarginBottom:e})},min:-1,max:8,step:.1})),r.a.createElement(Tt,{title:wt("Heading Settings","vk-blocks")},r.a.createElement("label",null,wt("Level","vk-blocks")),r.a.createElement(ut,{minLevel:1,maxLevel:7,selectedLevel:a,onChange:v}),r.a.createElement("p",null,wt("Text Alignment")),r.a.createElement(zt,{value:l,onChange:function(e){n({align:e})}}),r.a.createElement("label",null,wt("Text size (rem)","vk-blocks")),r.a.createElement(St,{value:i,onChange:function(e){n({titleSize:e})},min:.5,max:4,step:.1}),r.a.createElement("label",null,wt("Heading margin bottom size (rem)","vk-blocks")),r.a.createElement(St,{value:m,onChange:function(e){n({titleMarginBottom:e})},min:-1,max:3,step:.1}),r.a.createElement(Pt,{value:c,onChange:function(e){return n({titleColor:e})}})),r.a.createElement(Tt,{title:wt("Sub Text Settings","vk-blocks")},r.a.createElement(Bt,{label:wt("Position","vk-blocks"),selected:s,options:[{label:wt("Display","vk-blocks"),value:"on"},{label:wt("Hide","vk-blocks"),value:"off"}],onChange:function(e){return n({subTextFlag:e})}}),r.a.createElement("label",null,wt("Text size (rem)","vk-blocks")),r.a.createElement(St,{value:p,onChange:function(e){n({subTextSize:e})},min:.5,max:3,step:.1}),r.a.createElement(Pt,{value:u,onChange:function(e){return n({subTextColor:e})}}))),r.a.createElement(yt,{attributes:t,setAttributes:n,className:o,for_:"edit"}))},save:function(e){var t=e.attributes,n=e.className;return r.a.createElement(yt,{attributes:t,className:n,for_:"save"})},deprecated:Ct});var Ft=wp.editor.RichText,Lt=[{attributes:{style:{type:"string",default:"info"},content:{type:"string",source:"html",selector:"p"}},save:function(e){var t=e.attributes,n=t.style,o=t.content;return r.a.createElement("div",{className:"alert alert-".concat(n)},r.a.createElement(Ft.Content,{tagName:"p",value:o}))}}],Dt=wp.i18n.__,Ut=wp.blocks.registerBlockType,Vt=wp.editor.RichText;Ut("vk-blocks/alert",{title:Dt("Alert","vk-blocks"),icon:"info",category:"vk-blocks-cat",attributes:{style:{type:"string",default:"info"},content:{type:"string",source:"html",selector:"p"}},edit:function(e){var t=e.attributes,n=e.setAttributes,o=e.className,r=t.style,a=t.content;return React.createElement("div",{className:"".concat(o," alert alert-").concat(r)},React.createElement("select",{onChange:function(e){n({style:e.target.value})}},React.createElement("option",{value:"success",selected:"success"===r},"Success"),React.createElement("option",{value:"info",selected:"info"===r},"Info"),React.createElement("option",{value:"warning",selected:"warning"===r},"Warning"),React.createElement("option",{value:"danger",selected:"danger"===r},"Danger")),React.createElement(Vt,{tagName:"p",onChange:function(e){n({content:e})},value:a}))},save:function(e){var t=e.attributes,n=e.className,o=t.style,r=t.content;return React.createElement("div",{className:"".concat(n," alert alert-").concat(o)},React.createElement(Vt.Content,{tagName:"p",value:r}))},deprecated:Lt});n(7);function Wt(e){return(Wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ht(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function $t(e,t){return!t||"object"!==Wt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function qt(e){return(qt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Gt(e,t){return(Gt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Yt=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),$t(this,qt(t).apply(this,arguments))}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Gt(e,t)}(t,r.a.Component),n=t,(o=[{key:"render",value:function(){var e=this.props.lbColorCustom,t=this.props.lbColor,n=this.props.lbType,o=this.props.lbAlign,a=this.props.lbSize,l=this.props.lbUrl,c=this.props.lbTarget,i=this.props.lbFontAwesomeIconBefore,s=this.props.lbFontAwesomeIconAfter,u=this.props.lbRichtext,p=this.props.lbsubCaption,f="",m={},b="",v="";return f="btn vk_button_link",e?(f="".concat(f," btn-primary btn-").concat(a),"0"===n?m={backgroundColor:e,border:"1px solid ".concat(e)}:"1"===n&&(m={backgroundColor:"transparent",border:"1px solid "+e,color:e})):e||("0"===n?(f="".concat(f," btn-").concat(a," btn-").concat(t),m=null):"1"===n&&(f="".concat(f," btn-").concat(a," btn-outline-").concat(t),m=null)),"block"===o&&(f="".concat(f," btn-block")),i&&(b=r.a.createElement("i",{className:"".concat(i," vk_button_link_before")})),s&&(v=r.a.createElement("i",{className:"".concat(s," vk_button_link_after")})),r.a.createElement("a",{href:l,id:"vk_button_link",style:m,className:f,role:"button","aria-pressed":!0,target:c?"_blank":null,rel:"noopener noreferrer"},b,u,v,p&&r.a.createElement("p",{className:"vk_button_link_subCaption"},p))}}])&&Ht(n.prototype,o),a&&Ht(n,a),t}();function Zt(e){return(Zt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Qt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Xt(e,t){return!t||"object"!==Zt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Jt(e){return(Jt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Kt(e,t){return(Kt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var en=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Xt(this,Jt(t).apply(this,arguments))}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Kt(e,t)}(t,r.a.Component),n=t,(o=[{key:"render",value:function(){var e=this.props.lbColorCustom,t=this.props.lbColor,n=this.props.lbType,o=this.props.lbAlign,a=this.props.lbSize,l=this.props.lbUrl,c=this.props.lbTarget,i=this.props.lbFontAwesomeIconBefore,s=this.props.lbFontAwesomeIconAfter,u=this.props.lbRichtext,p=(this.props.lbsubCaption,""),f={},m="",b="";return p="btn vk_button_link",e?(p="".concat(p," btn-primary btn-").concat(a),"0"===n?f={backgroundColor:e,border:"1px solid ".concat(e)}:"1"===n&&(f={backgroundColor:"transparent",border:"1px solid "+e,color:e})):e||("0"===n?(p="".concat(p," btn-").concat(a," btn-").concat(t),f=null):"1"===n&&(p="".concat(p," btn-").concat(a," btn-outline-").concat(t),f=null)),"block"===o&&(p="".concat(p," btn-block")),i&&(m=r.a.createElement("i",{className:"".concat(i," vk_button_link_before")})),s&&(b=r.a.createElement("i",{className:"".concat(s," vk_button_link_after")})),r.a.createElement("a",{href:l,className:p,role:"button","aria-pressed":!0,style:f,target:c?"_blank":null},m,u,b)}}])&&Qt(n.prototype,o),a&&Qt(n,a),t}();function tn(e){return(tn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nn(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function on(e,t){return!t||"object"!==tn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function rn(e){return(rn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function an(e,t){return(an=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ln=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),on(this,rn(t).apply(this,arguments))}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&an(e,t)}(t,r.a.Component),n=t,(o=[{key:"render",value:function(){var e=this.props.lbColorCustom,t=this.props.lbColor,n=this.props.lbType,o=this.props.lbAlign,a=this.props.lbSize,l=this.props.lbUrl,c=this.props.lbTarget,i=this.props.lbFontAwesomeIconBefore,s=this.props.lbFontAwesomeIconAfter,u=this.props.lbRichtext,p=(this.props.lbsubCaption,""),f={},m="",b="";return p="btn vk_button_link",e?(p="".concat(p," btn-primary btn-").concat(a),"0"===n?f={backgroundColor:e,border:"1px solid ".concat(e)}:"1"===n&&(f={backgroundColor:"transparent",border:"1px solid "+e,color:e})):e||("0"===n?(p="".concat(p," btn-").concat(a," btn-").concat(t),f=null):"1"===n&&(p="".concat(p," btn-").concat(a," btn-outline-").concat(t),f=null)),"block"===o&&(p="".concat(p," btn-block")),i&&(m=r.a.createElement("i",{className:"".concat(i," vk_button_link_before")})),s&&(b=r.a.createElement("i",{className:"".concat(s," vk_button_link_after")})),r.a.createElement("a",{href:l,id:"vk_button_link",className:p,role:"button","aria-pressed":!0,style:f,target:c?"_blank":null},m,u,b)}}])&&nn(n.prototype,o),a&&nn(n,a),t}();function cn(e){return(cn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function sn(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function un(e,t){return!t||"object"!==cn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function pn(e){return(pn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function fn(e,t){return(fn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var mn=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),un(this,pn(t).apply(this,arguments))}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&fn(e,t)}(t,r.a.Component),n=t,(o=[{key:"render",value:function(){var e=this.props.lbColorCustom,t=this.props.lbColor,n=this.props.lbType,o=this.props.lbAlign,a=this.props.lbSize,l=this.props.lbUrl,c=this.props.lbTarget,i=this.props.lbFontAwesomeIconBefore,s=this.props.lbFontAwesomeIconAfter,u=this.props.lbRichtext,p=this.props.lbsubCaption,f="",m={},b="",v="";return f="btn vk_button_link",e?(f="".concat(f," btn-primary btn-").concat(a),"0"===n?m={backgroundColor:e,border:"1px solid ".concat(e)}:"1"===n&&(m={backgroundColor:"transparent",border:"1px solid "+e,color:e})):e||("0"===n?(f="".concat(f," btn-").concat(a," btn-").concat(t),m=null):"1"===n&&(f="".concat(f," btn-").concat(a," btn-outline-").concat(t),m=null)),"block"===o&&(f="".concat(f," btn-block")),i&&(b=r.a.createElement("i",{className:"".concat(i," vk_button_link_before")})),s&&(v=r.a.createElement("i",{className:"".concat(s," vk_button_link_after")})),r.a.createElement("a",{href:l,id:"vk_button_link",className:f,role:"button","aria-pressed":!0,style:m,target:c?"_blank":null,rel:"noopener noreferrer"},b,u,v,p&&r.a.createElement("p",{className:"vk_button_link_subCaption"},p))}}])&&sn(n.prototype,o),a&&sn(n,a),t}();function bn(e){return(bn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function vn(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function kn(e,t){return!t||"object"!==bn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function dn(e){return(dn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function yn(e,t){return(yn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var gn=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),kn(this,dn(t).apply(this,arguments))}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&yn(e,t)}(t,r.a.Component),n=t,(o=[{key:"render",value:function(){var e=this.props.lbColorCustom,t=this.props.lbColor,n=this.props.lbType,o=this.props.lbAlign,a=this.props.lbSize,l=this.props.lbUrl,c=this.props.lbTarget,i=this.props.lbFontAwesomeIconBefore,s=this.props.lbFontAwesomeIconAfter,u=this.props.lbRichtext,p=this.props.lbsubCaption,f="",m={},b="",v="";return f="btn vk_button_link",e?(f="".concat(f," btn-primary btn-").concat(a),"0"===n?m={backgroundColor:e,border:"1px solid ".concat(e)}:"1"===n&&(m={backgroundColor:"transparent",border:"1px solid "+e,color:e})):e||("0"===n?(f="".concat(f," btn-").concat(a," btn-").concat(t),m=null):"1"===n&&(f="".concat(f," btn-").concat(a," btn-outline-").concat(t),m=null)),"block"===o&&(f="".concat(f," btn-block")),i&&(b=r.a.createElement("i",{className:"".concat(i," vk_button_link_before")})),s&&(v=r.a.createElement("i",{className:"".concat(s," vk_button_link_after")})),r.a.createElement("a",{href:l,id:"vk_button_link",className:f,role:"button","aria-pressed":!0,style:m,target:c?"_blank":null},b,u,v,p&&r.a.createElement("p",{className:"vk_button_link_subCaption"},p))}}])&&vn(n.prototype,o),a&&vn(n,a),t}(),hn=wp.editor.RichText,_n=[{attributes:{content:{source:"html",selector:"span"},buttonUrl:{type:"string",default:null},buttonTarget:{type:"Boolean",default:!1},buttonSize:{type:"string",default:"md"},buttonType:{type:"string",default:"0"},buttonColor:{type:"string",default:"primary"},buttonColorCustom:{type:"string",default:null},buttonAlign:{type:"string",default:"left"},fontAwesomeIconBefore:{type:"string",default:null},fontAwesomeIconAfter:{type:"string",default:null}},save:function(e){var t=e.attributes,n=t.content,o=t.buttonUrl,a=t.buttonTarget,l=t.buttonSize,c=t.buttonType,i=t.buttonColor,s=t.buttonColorCustom,u=t.buttonAlign,p=t.fontAwesomeIconBefore,f=t.fontAwesomeIconAfter,m="";return s?m="vk_button vk_button-color-custom vk_button-align-".concat(u):s||(m="vk_button vk_button-align-".concat(u)),r.a.createElement("div",{className:m},r.a.createElement(en,{lbColorCustom:s,lbColor:i,lbType:c,lbAlign:u,lbSize:l,lbUrl:o,lbTarget:a,lbFontAwesomeIconBefore:p,lbFontAwesomeIconAfter:f,lbRichtext:r.a.createElement(hn.Content,{tagName:"span",className:"vk_button_link_txt",value:n})}))}},{attributes:{content:{source:"html",selector:"span"},buttonUrl:{type:"string",default:null},buttonTarget:{type:"Boolean",default:!1},buttonSize:{type:"string",default:"md"},buttonType:{type:"string",default:"0"},buttonColor:{type:"string",default:"primary"},buttonColorCustom:{type:"string",default:null},buttonAlign:{type:"string",default:"left"},fontAwesomeIconBefore:{type:"string",default:null},fontAwesomeIconAfter:{type:"string",default:null}},save:function(e){var t=e.attributes,n=t.content,o=t.buttonUrl,a=t.buttonTarget,l=t.buttonSize,c=t.buttonType,i=t.buttonColor,s=t.buttonColorCustom,u=t.buttonAlign,p=t.fontAwesomeIconBefore,f=t.fontAwesomeIconAfter,m="";return s?m="vk_button vk_button-color-custom vk_button-align-".concat(u):s||(m="vk_button vk_button-align-".concat(u)),r.a.createElement("div",{className:m},r.a.createElement(ln,{lbColorCustom:s,lbColor:i,lbType:c,lbAlign:u,lbSize:l,lbUrl:o,lbTarget:a,lbFontAwesomeIconBefore:p,lbFontAwesomeIconAfter:f,lbRichtext:r.a.createElement(hn.Content,{tagName:"span",className:"vk_button_link_txt",value:n})}))}},{attributes:{content:{source:"html",selector:"span"},subCaption:{type:"string",default:null},buttonUrl:{type:"string",default:null},buttonTarget:{type:"Boolean",default:!1},buttonSize:{type:"string",default:"md"},buttonType:{type:"string",default:"0"},buttonColor:{type:"string",default:"primary"},buttonColorCustom:{type:"string",default:null},buttonAlign:{type:"string",default:"left"},fontAwesomeIconBefore:{type:"string",default:null},fontAwesomeIconAfter:{type:"string",default:null}},save:function(e){var t=e.attributes,n=(e.className,t.content),o=t.subCaption,a=t.buttonUrl,l=t.buttonTarget,c=t.buttonSize,i=t.buttonType,s=t.buttonColor,u=t.buttonColorCustom,p=t.buttonAlign,f=t.fontAwesomeIconBefore,m=t.fontAwesomeIconAfter,b="";return u?b="vk_button vk_button-color-custom vk_button-align-".concat(p):u||(b="vk_button vk_button-align-".concat(p)),r.a.createElement("div",{className:b},r.a.createElement(mn,{lbColorCustom:u,lbColor:s,lbType:i,lbAlign:p,lbSize:c,lbUrl:a,lbTarget:l,lbFontAwesomeIconBefore:f,lbFontAwesomeIconAfter:m,lbsubCaption:o,lbRichtext:r.a.createElement(hn.Content,{tagName:"span",className:"vk_button_link_txt",value:n})}))}},{attributes:{content:{source:"html",selector:"span"},subCaption:{type:"string",default:null},buttonUrl:{type:"string",default:null},buttonTarget:{type:"Boolean",default:!1},buttonSize:{type:"string",default:"md"},buttonType:{type:"string",default:"0"},buttonColor:{type:"string",default:"primary"},buttonColorCustom:{type:"string",default:null},buttonAlign:{type:"string",default:"left"},fontAwesomeIconBefore:{type:"string",default:null},fontAwesomeIconAfter:{type:"string",default:null}},save:function(e){var t=e.attributes,n=(e.className,t.content),o=t.subCaption,a=t.buttonUrl,l=t.buttonTarget,c=t.buttonSize,i=t.buttonType,s=t.buttonColor,u=t.buttonColorCustom,p=t.buttonAlign,f=t.fontAwesomeIconBefore,m=t.fontAwesomeIconAfter,b="";return u?b="vk_button vk_button-color-custom vk_button-align-".concat(p):u||(b="vk_button vk_button-align-".concat(p)),r.a.createElement("div",{className:b},r.a.createElement(gn,{lbColorCustom:u,lbColor:s,lbType:i,lbAlign:p,lbSize:c,lbUrl:a,lbTarget:l,lbFontAwesomeIconBefore:f,lbFontAwesomeIconAfter:m,lbsubCaption:o,lbRichtext:r.a.createElement(hn.Content,{tagName:"span",className:"vk_button_link_txt",value:n})}))}}],En=wp.i18n.__,Cn=wp.blocks.registerBlockType,wn=wp.components,xn=(wn.RangeControl,wn.RadioControl),Nn=wn.PanelBody,Sn=(wn.Button,wn.BaseControl),Tn=wn.CheckboxControl,Bn=wn.TextControl,On=wn.Dashicon,In=wn.IconButton,Rn=wp.element.Fragment,An=wp.editor,Pn=An.RichText,jn=An.InspectorControls,zn=(An.MediaUpload,An.ColorPalette),Mn=An.URLInput,Fn=r.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"576",height:"512",viewBox:"0 0 576 512"},r.a.createElement("g",null,r.a.createElement("path",{d:"M506,185v142H70V185H506 M526.4,137H49.6C34.4,137,22,149.4,22,164.6v182.8c0,15.2,12.4,27.6,27.6,27.6h476.8 c15.2,0,27.6-12.4,27.6-27.6V164.6C554,149.4,541.6,137,526.4,137L526.4,137z"})),r.a.createElement("g",null,r.a.createElement("path",{d:"M83.8,206.9h55.9c9.3,0,16.5,2.3,21.5,6.9c5,4.6,7.5,10.3,7.5,17.1c0,5.7-1.8,10.6-5.3,14.7c-2.4,2.7-5.8,4.9-10.4,6.5 c6.9,1.7,12.1,4.5,15.3,8.6c3.3,4.1,4.9,9.2,4.9,15.3c0,5-1.2,9.5-3.5,13.5c-2.3,4-5.5,7.2-9.6,9.5c-2.5,1.5-6.3,2.5-11.3,3.2 c-6.7,0.9-11.2,1.3-13.4,1.3H83.8V206.9z M113.9,244.8h13c4.7,0,7.9-0.8,9.7-2.4c1.8-1.6,2.7-3.9,2.7-7c0-2.8-0.9-5-2.7-6.6 c-1.8-1.6-5-2.4-9.5-2.4h-13.2V244.8z M113.9,282.8h15.2c5.1,0,8.8-0.9,10.9-2.7s3.2-4.3,3.2-7.4c0-2.9-1-5.2-3.1-6.9 c-2.1-1.7-5.7-2.6-11-2.6h-15.2V282.8z"}),r.a.createElement("path",{d:"M245.9,303.5h-25.1v-11.3c-3.7,4.7-7.5,8-11.3,10c-3.8,2-8.5,3-14,3c-7.4,0-13.2-2.2-17.4-6.6c-4.2-4.4-6.3-11.2-6.3-20.4 v-44.6h27V272c0,4.4,0.8,7.5,2.4,9.4c1.6,1.8,3.9,2.8,6.9,2.8c3.2,0,5.8-1.2,7.9-3.7s3.1-6.9,3.1-13.3v-33.7h26.8V303.5z"}),r.a.createElement("path",{d:"M282.4,206.9v26.6h14.8v19.7h-14.8V278c0,3,0.3,5,0.9,5.9c0.9,1.5,2.4,2.2,4.6,2.2c2,0,4.7-0.6,8.3-1.7l2,18.5 c-6.6,1.5-12.8,2.2-18.6,2.2c-6.7,0-11.6-0.9-14.8-2.6c-3.2-1.7-5.5-4.3-7-7.8c-1.5-3.5-2.3-9.1-2.3-17v-24.6h-9.9v-19.7h9.9v-12.9 L282.4,206.9z"}),r.a.createElement("path",{d:"M330.2,206.9v26.6H345v19.7h-14.8V278c0,3,0.3,5,0.9,5.9c0.9,1.5,2.4,2.2,4.6,2.2c2,0,4.7-0.6,8.3-1.7l2,18.5 c-6.6,1.5-12.8,2.2-18.6,2.2c-6.7,0-11.6-0.9-14.8-2.6c-3.2-1.7-5.5-4.3-7-7.8c-1.5-3.5-2.3-9.1-2.3-17v-24.6h-9.9v-19.7h9.9v-12.9 L330.2,206.9z"}),r.a.createElement("path",{d:"M339.6,268.7c0-10.7,3.6-19.5,10.8-26.4s16.9-10.4,29.2-10.4c14,0,24.6,4.1,31.8,12.2c5.8,6.6,8.6,14.6,8.6,24.2 c0,10.8-3.6,19.6-10.7,26.5c-7.1,6.9-17,10.3-29.6,10.3c-11.3,0-20.4-2.9-27.3-8.6C343.9,289.5,339.6,280.2,339.6,268.7z M366.5,268.7c0,6.2,1.3,10.9,3.8,13.8c2.5,3,5.7,4.5,9.5,4.5c3.9,0,7-1.5,9.5-4.4c2.5-2.9,3.7-7.7,3.7-14.2 c0-6.1-1.3-10.6-3.8-13.6s-5.6-4.5-9.3-4.5c-3.9,0-7.1,1.5-9.7,4.5C367.8,257.9,366.5,262.5,366.5,268.7z"}),r.a.createElement("path",{d:"M418.2,233.5h25v11.4c3.7-4.7,7.5-8,11.3-10c3.8-2,8.5-3,14-3c7.4,0,13.2,2.2,17.4,6.6c4.2,4.4,6.3,11.2,6.3,20.5v44.5h-27 V265c0-4.4-0.8-7.5-2.4-9.3c-1.6-1.8-3.9-2.7-6.9-2.7c-3.3,0-5.9,1.2-7.9,3.7c-2,2.5-3,6.9-3,13.3v33.6h-26.8V233.5z"})));Cn("vk-blocks/button",{title:En("Button","vk-blocks"),icon:Fn,category:"vk-blocks-cat",attributes:{content:{source:"html",selector:"span"},subCaption:{type:"string",default:null},buttonUrl:{type:"string",default:null},buttonTarget:{type:"Boolean",default:!1},buttonSize:{type:"string",default:"md"},buttonType:{type:"string",default:"0"},buttonColor:{type:"string",default:"primary"},buttonColorCustom:{type:"string",default:null},buttonAlign:{type:"string",default:"left"},fontAwesomeIconBefore:{type:"string",default:null},fontAwesomeIconAfter:{type:"string",default:null}},edit:function(e){var t,n=e.attributes,o=e.className,a=e.setAttributes,l=e.isSelected,c=n.content,i=n.subCaption,s=n.buttonUrl,u=n.buttonTarget,p=n.buttonSize,f=n.buttonType,m=n.buttonColor,b=n.buttonColorCustom,v=n.buttonAlign,k=n.fontAwesomeIconBefore,d=n.fontAwesomeIconAfter;return t=b?"vk_button vk_button-align-".concat(v," vk_button-color-custom"):"vk_button vk_button-align-".concat(v),t=o?"".concat(o," vk_button vk_button-align-").concat(v," vk_button-color-custom"):"".concat(o," vk_button vk_button-align-").concat(v),r.a.createElement(Rn,null,r.a.createElement(jn,null,r.a.createElement(Nn,{title:En("Button setting","vk-blocks")},r.a.createElement(Bn,{label:En("Sub Caption","vk-blocks"),value:i,onChange:function(e){return a({subCaption:e})},placeholder:"Sub Caption"}),r.a.createElement(Tn,{label:En("Open link new tab.","vk-blocks"),checked:u,onChange:function(e){return a({buttonTarget:e})}}),r.a.createElement(xn,{label:En("Button Size:","vk-blocks"),selected:p,options:[{label:En("Large","vk-blocks"),value:"lg"},{label:En("normal","vk-blocks"),value:"md"},{label:En("Small","vk-blocks"),value:"sm"}],onChange:function(e){return a({buttonSize:e})}}),r.a.createElement(xn,{label:En("Button Position:","vk-blocks"),selected:v,options:[{label:En("Left","vk-blocks"),value:"left"},{label:En("Center","vk-blocks"),value:"center"},{label:En("Right","vk-blocks"),value:"right"},{label:En("Block","vk-blocks"),value:"block"}],onChange:function(e){return a({buttonAlign:e})}}),r.a.createElement(xn,{label:En("Button Style:","vk-blocks"),selected:f,options:[{label:En("Solid color","vk-blocks"),value:"0"},{label:En("No background","vk-blocks"),value:"1"}],help:En('If you select "No background", that you need to select a Custom Color.',"vk-blocks"),onChange:function(e){return a({buttonType:e})}}),r.a.createElement(xn,{label:En("Default Color:","vk-blocks"),selected:m,options:[{label:En("Primary","vk-blocks"),value:"primary"},{label:En("Secondary","vk-blocks"),value:"secondary"},{label:En("Success","vk-blocks"),value:"success"},{label:En("Info","vk-blocks"),value:"info"},{label:En("Warning","vk-blocks"),value:"warning"},{label:En("Danger","vk-blocks"),value:"danger"},{label:En("Light","vk-blocks"),value:"light"},{label:En("Dark","vk-blocks"),value:"dark"}],onChange:function(e){return a({buttonColor:e})}}),r.a.createElement(Sn,{label:En("Custom Color","vk-blocks"),help:En("This custom color overrides the default color. If you want to use the default color, click the clear button.","vk-blocks")},r.a.createElement(zn,{value:b,onChange:function(e){return a({buttonColorCustom:e})}})),r.a.createElement(Sn,{label:En("Font Awesome:","vk-blocks"),help:r.a.createElement("a",{href:"https://fontawesome.com/icons?d=gallery&m=free",target:"_blank"},En("Font Awesome icon list","vk-blocks"))},r.a.createElement(Bn,{label:En("Before text","vk-blocks"),help:En("Enter Font Awesome Class.This icon will appear before text. Ex) fas fa-arrow-circle-right","vk-blocks"),value:k,onChange:function(e){return a({fontAwesomeIconBefore:e})},placeholder:"fas fa-arrow-circle-right"}),r.a.createElement(Bn,{label:En("After text","vk-blocks"),help:En("Enter Font Awesome Class.This icon will appear after text. Ex) fas fa-external-link-alt","vk-blocks"),value:d,onChange:function(e){return a({fontAwesomeIconAfter:e})},placeholder:"fas fa-external-link-alt"})))),r.a.createElement("div",{className:t},r.a.createElement(Yt,{lbColorCustom:b,lbColor:m,lbType:f,lbAlign:v,lbSize:p,lbFontAwesomeIconBefore:k,lbFontAwesomeIconAfter:d,lbsubCaption:i,lbRichtext:r.a.createElement(Pn,{tagName:"span",className:"vk_button_link_txt",onChange:function(e){return a({content:e})},value:c,placeholder:En("Input text","vk-blocks"),formattingControls:["bold","italic","strikethrough"],keepPlaceholderOnFocus:!0})}),l&&r.a.createElement("form",{className:"block-library-button__inline-link",onSubmit:function(e){return e.preventDefault()}},r.a.createElement(On,{icon:"admin-links"}),r.a.createElement(Mn,{value:s,onChange:function(e){return a({buttonUrl:e})}}),r.a.createElement(In,{icon:"editor-break",label:En("Apply","vk-blocks"),type:"submit"}))))},save:function(e){var t=e.attributes,n=e.className,o=t.content,a=t.subCaption,l=t.buttonUrl,c=t.buttonTarget,i=t.buttonSize,s=t.buttonType,u=t.buttonColor,p=t.buttonColorCustom,f=t.buttonAlign,m=t.fontAwesomeIconBefore,b=t.fontAwesomeIconAfter,v="";return p?v="vk_button vk_button-color-custom vk_button-align-".concat(f):p||(v="vk_button vk_button-align-".concat(f)),n&&(v=n+" "+v),r.a.createElement("div",{className:v},r.a.createElement(Yt,{lbColorCustom:p,lbColor:u,lbType:s,lbAlign:f,lbSize:i,lbUrl:l,lbTarget:c,lbFontAwesomeIconBefore:m,lbFontAwesomeIconAfter:b,lbsubCaption:a,lbRichtext:r.a.createElement(Pn.Content,{tagName:"span",className:"vk_button_link_txt",value:o})}))},deprecated:_n});var Ln=wp.editor.RichText,Dn=[{attributes:{heading:{type:"string",source:"html",selector:"dt"},content:{type:"string",source:"html",selector:"dd"}},save:function(e){var t=e.attributes,n=t.heading,o=t.content;return r.a.createElement("dl",{className:"vk_faq"},r.a.createElement(Ln.Content,{tagName:"dt",className:"vk_faq_title",value:n}),r.a.createElement(Ln.Content,{tagName:"dd",className:"vk_faq_content",value:o}))}}],Un=wp.i18n.__,Vn=wp.blocks.registerBlockType,Wn=wp.editor.RichText,Hn=React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"576",height:"512",viewBox:"0 0 576 512"},React.createElement("path",{d:"M178.9,191.6c7.2,5,12,8.2,14.2,9.4c3.3,1.9,7.8,4,13.4,6.5l-16.1,32.4c-8.1-3.9-16.1-8.6-24-14 c-7.9-5.4-13.4-9.5-16.6-12.2c-12.8,5.5-28.8,8.3-48,8.3c-28.4,0-50.9-7.4-67.3-22.2c-19.4-17.5-29.1-42.2-29.1-73.9 c0-30.8,8.5-54.7,25.5-71.8c17-17.1,40.7-25.6,71.2-25.6c31.1,0,55,8.3,71.9,25c16.9,16.7,25.3,40.6,25.3,71.6 C199.3,152.8,192.5,175,178.9,191.6z M134.6,161.9c4.6-8.3,6.9-20.6,6.9-37c0-18.9-3.5-32.4-10.5-40.5c-7-8.1-16.7-12.1-29-12.1 c-11.5,0-20.8,4.1-28,12.4c-7.1,8.3-10.7,21.2-10.7,38.7c0,20.4,3.5,34.8,10.5,43c7,8.3,16.6,12.4,28.7,12.4 c3.9,0,7.6-0.4,11.1-1.1c-4.9-4.7-12.5-9.1-23-13.3l9.1-20.8c5.1,0.9,9.1,2.1,11.9,3.4c2.9,1.4,8.4,4.9,16.7,10.7 C130.1,159.1,132.3,160.5,134.6,161.9z"}),React.createElement("path",{d:"M137.9,452.6H72.2l-9.1,30.9l-59,0l70.3-187.2h63.1l70.3,187.2h-60.6L137.9,452.6z M125.9,412.1l-20.7-67.3l-20.4,67.3 H125.9z"}),React.createElement("path",{d:"M553.9,239.9h-303c-10,0-18.1-8.1-18.1-18.1c0-10,8.1-18.1,18.1-18.1h303c10,0,18.1,8.1,18.1,18.1 C572,231.8,563.9,239.9,553.9,239.9z"}),React.createElement("path",{d:"M553.9,483.5h-303c-10,0-18.1-8.1-18.1-18.1c0-10,8.1-18.1,18.1-18.1h303c10,0,18.1,8.1,18.1,18.1 C572,475.4,563.9,483.5,553.9,483.5z"}));Vn("vk-blocks/faq",{title:Un("FAQ","vk-blocks"),icon:Hn,category:"vk-blocks-cat",attributes:{heading:{type:"string",source:"html",selector:"dt"},content:{type:"string",source:"html",selector:"dd"}},edit:function(e){var t=e.attributes,n=e.setAttributes,o=e.className,r=t.heading,a=t.content;return React.createElement("dl",{className:"".concat(o," vk_faq")},React.createElement(Wn,{tagName:"dt",className:"vk_faq_title",onChange:function(e){return n({heading:e})},value:r,placeholder:Un("Please enter a question.","vk-blocks")}),React.createElement(Wn,{tagName:"dd",className:"vk_faq_content",onChange:function(e){return n({content:e})},value:a,placeholder:Un("Please enter a answer.","vk-blocks")}))},save:function(e){var t=e.attributes,n=e.className,o=t.heading,r=t.content;return React.createElement("dl",{className:"".concat(n," vk_faq")},React.createElement(Wn.Content,{tagName:"dt",className:"vk_faq_title",value:o}),React.createElement(Wn.Content,{tagName:"dd",className:"vk_faq_content",value:r}))},deprecated:Dn});var $n=wp.editor.RichText,qn=[{attributes:{heading:{type:"string",source:"html",selector:"dt"},content:{type:"string",source:"html",selector:"dd"},arrowFlag:{type:"string",default:"vk_flow-arrow-on"},insertImage:{type:"string",default:null}},save:function(e){var t=e.attributes,n=t.heading,o=t.content,a=t.insertImage,l=t.arrowFlag;return r.a.createElement("div",{className:"".concat(l," vk_flow")},r.a.createElement("div",{className:"vk_flow_frame"},r.a.createElement("dl",{className:"vk_flow_frame_text"},r.a.createElement($n.Content,{tagName:"dt",className:"vk_flow_frame_text_title",value:n}),r.a.createElement($n.Content,{tagName:"dd",className:"vk_flow_frame_text_content",value:o})),a?r.a.createElement("div",{className:"vk_flow_frame_image"},r.a.createElement("img",{src:a,alt:""})):""))}}],Gn=wp.i18n.__,Yn=wp.blocks.registerBlockType,Zn=wp.components,Qn=(Zn.RangeControl,Zn.RadioControl),Xn=Zn.PanelBody,Jn=Zn.Button,Kn=(Zn.PanelColor,wp.element.Fragment),eo=wp.editor,to=eo.RichText,no=eo.InspectorControls,oo=eo.MediaUpload;eo.ColorPalette;function ro(e){return(ro="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ao(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function lo(e,t){return!t||"object"!==ro(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function co(e){return(co=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function io(e,t){return(io=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}Yn("vk-blocks/flow",{title:Gn("Flow","vk-blocks"),icon:"arrow-down",category:"vk-blocks-cat",attributes:{heading:{type:"string",source:"html",selector:"dt"},content:{type:"string",source:"html",selector:"dd"},arrowFlag:{type:"string",default:"vk_flow-arrow-on"},insertImage:{type:"string",default:null}},edit:function(e){var t=e.attributes,n=e.setAttributes,o=e.className,r=t.heading,a=t.content,l=t.insertImage,c=t.arrowFlag;return[React.createElement(Kn,null,React.createElement(no,null,React.createElement(Xn,{title:Gn("Display of arrow","vk-blocks")},React.createElement(Qn,{selected:c,options:[{label:Gn("Arrow display","vk-blocks"),value:"vk_flow-arrow-on"},{label:Gn("Arrow hidden","vk-blocks"),value:"vk_flow-arrow-off"}],onChange:function(e){return n({arrowFlag:e})}}))),React.createElement("div",{className:"".concat(o," ").concat(c," vk_flow")},React.createElement("div",{className:"vk_flow_frame"},React.createElement("dl",{className:"vk_flow_frame_text"},React.createElement(to,{tagName:"dt",className:"vk_flow_frame_text_title",onChange:function(e){return n({heading:e})},value:r,placeholder:Gn("Input title","vk-blocks")}),React.createElement(to,{tagName:"dd",className:"vk_flow_frame_text_content",onChange:function(e){return n({content:e})},value:a,placeholder:Gn("Input content","vk-blocks")})),React.createElement("div",{className:"vk_flow_frame_image"},React.createElement(oo,{onSelect:function(e){return n({insertImage:e.url})},type:"image",className:"vk_flow_frame_image",value:l,render:function(e){var t=e.open;return React.createElement(Jn,{onClick:t,className:l?"image-button":"button button-large"},l?React.createElement("img",{className:"icon-image",src:l,alt:Gn("Upload image","vk-blocks")}):Gn("Select image","vk-blocks"))}})))))]},save:function(e){var t=e.attributes,n=e.className,o=t.heading,r=t.content,a=t.insertImage,l=t.arrowFlag;return React.createElement("div",{className:"".concat(n," ").concat(l," vk_flow")},React.createElement("div",{className:"vk_flow_frame"},React.createElement("dl",{className:"vk_flow_frame_text"},React.createElement(to.Content,{tagName:"dt",className:"vk_flow_frame_text_title",value:o}),React.createElement(to.Content,{tagName:"dd",className:"vk_flow_frame_text_content",value:r})),a?React.createElement("div",{className:"vk_flow_frame_image"},React.createElement("img",{src:a,alt:""})):""))},deprecated:qn});var so=wp.i18n.__,uo=wp.editor.RichText,po=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),lo(this,co(t).apply(this,arguments))}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&io(e,t)}(t,r.a.Component),n=t,(o=[{key:"render",value:function(){var e=this.props.setAttributes,t=this.props.attributes,n=t.heading1,o=t.heading2,a=t.heading3,l=t.content1,c=t.content2,i=t.content3,s=t.url1,u=t.url2,p=t.url3,f=t.urlOpenType1,m=t.urlOpenType2,b=t.urlOpenType3,v=t.icon1,k=t.icon2,d=t.icon3,y=t.color1,g=t.color2,h=t.color3,_=t.bgType1,E=t.bgType2,C=t.bgType3,w=t.insertImage1,x=t.insertImage2,N=t.insertImage3,S=this.props.for_,T=this.props.blockNum,B=this.props.blockNum-1,O=[n,o,a],I=[l,c,i],R=[s,u,p],A=[f,m,b],P=[v,k,d],j=[y,g,h],z=[_,E,C],M=[w,x,N],F="",L="",D=M[B]?r.a.createElement("div",{className:"vk_prBlocks_item_image",style:{backgroundImage:"url(".concat(M[B],")"),backgroundRepeat:"no-repeat 50% center",backgroundSize:"cover"}},r.a.createElement("img",{src:M[B],alt:""})):(j[B]||(j[B]="#0693e3"),"0"===z[B]?r.a.createElement("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:j[B],border:"1px solid ".concat(j[B])}},r.a.createElement("i",{className:"".concat(P[B]," vk_prBlocks_item_icon"),style:{color:"#fff"}})):r.a.createElement("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:"transparent",border:"1px solid "+j[B]}},r.a.createElement("i",{className:"".concat(P[B]," vk_prBlocks_item_icon"),style:{color:j[B]}})));return"edit"===S?1===T?(F=r.a.createElement(uo,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-1",tagName:"h1",onChange:function(t){return e({heading1:t})},value:n,placeholder:so("Input Title","vk-blocks")}),L=r.a.createElement(uo,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-1",tagName:"p",onChange:function(t){return e({content1:t})},value:l,placeholder:so("Input Content","vk-blocks")})):2===T?(F=r.a.createElement(uo,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-2",tagName:"h1",onChange:function(t){return e({heading2:t})},value:o,placeholder:so("Input Title","vk-blocks")}),L=r.a.createElement(uo,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-2",tagName:"p",onChange:function(t){return e({content2:t})},value:c,placeholder:so("Input Content","vk-blocks")})):3===T&&(F=r.a.createElement(uo,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-3",tagName:"h1",onChange:function(t){return e({heading3:t})},value:a,placeholder:so("Input Title","vk-blocks")}),L=r.a.createElement(uo,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-3",tagName:"p",onChange:function(t){return e({content3:t})},value:i,placeholder:so("Input Content","vk-blocks")})):"save"===S&&(F=r.a.createElement(uo.Content,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-".concat(T),tagName:"h1",value:O[B]}),L=r.a.createElement(uo.Content,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-".concat(T),tagName:"p",value:I[B]})),r.a.createElement("div",{className:"vk_prBlocks_item col-sm-4"},r.a.createElement("a",{href:R[B],target:A[B]?"_blank":"_self",className:"vk_prBlocks_item_link",rel:"noopener noreferrer"},D,F,L))}}])&&ao(n.prototype,o),a&&ao(n,a),t}();function fo(e){throw new Error('"'+e+'" is read-only')}wp.i18n.__;var mo=wp.components,bo=(mo.RadioControl,mo.PanelBody,mo.Button,mo.BaseControl,mo.CheckboxControl,mo.TextControl,wp.element.Fragment,wp.editor),vo=bo.RichText;bo.InspectorControls,bo.MediaUpload,bo.ColorPalette;var ko=[{attributes:function(e){for(var t={},n=1;n<=e;n++)t["heading"+n]={type:"string",source:"html",selector:"h3.vk_prBlocks_item_title-"+n},t["content"+n]={type:"string",source:"html",selector:"p.vk_prBlocks_item_summary-"+n},t["url"+n]={type:"string",default:null},t["urlOpenType"+n]={type:"Boolean",default:!1},t["icon"+n]={type:"string",default:"fas fa-file"},t["color"+n]={type:"string",default:"#0693e3"},t["bgType"+n]={type:"string",default:"0"},t["insertImage"+n]={type:"string",default:null};return t}(4),save:function(e){var t=e.attributes,n=t.heading1,o=t.heading2,a=t.heading3,l=t.content1,c=t.content2,i=t.content3,s=t.url1,u=t.url2,p=t.url3,f=t.urlOpenType1,m=t.urlOpenType2,b=t.urlOpenType3,v=t.icon1,k=t.icon2,d=t.icon3,y=t.color1,g=t.color2,h=t.color3,_=t.bgType1,E=t.bgType2,C=t.bgType3,w=t.insertImage1,x=t.insertImage2,N=t.insertImage3;return r.a.createElement("div",{className:"vk_prBlocks row"},r.a.createElement("div",{className:"vk_prBlocks_item col-sm-4"},r.a.createElement("a",{href:s,target:f?"_blank":"_self",className:"vk_prBlocks_item_link"},w?r.a.createElement("div",{className:"vk_prBlocks_item_image",style:{backgroundImage:"url("+w+")",backgroundRepeat:"no-repeat 50% center",backgroundSize:"cover"}},r.a.createElement("img",{src:w,alt:""})):(y||(fo("color1"),y="#0693e3"),"0"===_?r.a.createElement("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:y,border:"1px solid ".concat(y)}},r.a.createElement("i",{className:"".concat(v," vk_prBlocks_item_icon"),style:{color:"#fff"}})):r.a.createElement("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:"transparent",border:"1px solid "+y}},r.a.createElement("i",{className:"".concat(v," vk_prBlocks_item_icon"),style:{color:y}}))),r.a.createElement(vo.Content,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-1",tagName:"h1",value:n}),r.a.createElement(vo.Content,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-1",tagName:"p",value:l}))),r.a.createElement("div",{className:"vk_prBlocks_item col-sm-4"},r.a.createElement("a",{href:u,target:m?"_blank":"_self",className:"vk_prBlocks_item_link"},x?r.a.createElement("div",{className:"vk_prBlocks_item_image",style:{backgroundImage:"url("+x+")",backgroundRepeat:"no-repeat 50% center",backgroundSize:"cover"}},r.a.createElement("img",{src:x,alt:""})):(g||(fo("color2"),g="#0693e3"),"0"===E?r.a.createElement("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:g,border:"1px solid ".concat(g)}},r.a.createElement("i",{className:"".concat(k," vk_prBlocks_item_icon"),style:{color:"#fff"}})):r.a.createElement("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:"transparent",border:"1px solid "+g}},r.a.createElement("i",{className:"".concat(k," vk_prBlocks_item_icon"),style:{color:g}}))),r.a.createElement(vo.Content,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-2",tagName:"h1",value:o}),r.a.createElement(vo.Content,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-2",tagName:"p",value:c}))),r.a.createElement("div",{className:"vk_prBlocks_item col-sm-4"},r.a.createElement("a",{href:p,target:b?"_blank":"_self",className:"vk_prBlocks_item_link"},N?r.a.createElement("div",{className:"vk_prBlocks_item_image",style:{backgroundImage:"url("+N+")",backgroundRepeat:"no-repeat 50% center",backgroundSize:"cover"}},r.a.createElement("img",{src:N,alt:""})):(h||(fo("color3"),h="#0693e3"),"0"===C?r.a.createElement("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:h,border:"1px solid ".concat(h)}},r.a.createElement("i",{className:"".concat(d," vk_prBlocks_item_icon"),style:{color:"#fff"}})):r.a.createElement("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:"transparent",border:"1px solid "+h}},r.a.createElement("i",{className:"".concat(d," vk_prBlocks_item_icon"),style:{color:h}}))),r.a.createElement(vo.Content,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-3",tagName:"h1",value:a}),r.a.createElement(vo.Content,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-3",tagName:"p",value:i}))))}},{attributes:function(e){for(var t={},n=1;n<=e;n++)t["heading"+n]={type:"string",source:"html",selector:"h1.vk_prBlocks_item_title-"+n},t["content"+n]={type:"string",source:"html",selector:"p.vk_prBlocks_item_summary-"+n},t["url"+n]={type:"string",default:null},t["urlOpenType"+n]={type:"Boolean",default:!1},t["icon"+n]={type:"string",default:"fas fa-file"},t["color"+n]={type:"string",default:"#0693e3"},t["bgType"+n]={type:"string",default:"0"},t["insertImage"+n]={type:"string",default:null};return t}(4),save:function(e){var t=e.attributes;return r.a.createElement("div",{className:"vk_prBlocks row"},r.a.createElement(po,{attributes:t,blockNum:1,for_:"save"}),r.a.createElement(po,{attributes:t,blockNum:2,for_:"save"}),r.a.createElement(po,{attributes:t,blockNum:3,for_:"save"}))}}];function yo(e){return(yo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function go(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function ho(e,t){return!t||"object"!==yo(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function _o(e){return(_o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Eo(e,t){return(Eo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Co=wp.i18n.__,wo=wp.editor.RichText,xo=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),ho(this,_o(t).apply(this,arguments))}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Eo(e,t)}(t,r.a.Component),n=t,(o=[{key:"render",value:function(){var e=this.props.setAttributes,t=this.props.attributes,n=t.heading1,o=t.heading2,a=t.heading3,l=t.content1,c=t.content2,i=t.content3,s=t.url1,u=t.url2,p=t.url3,f=t.urlOpenType1,m=t.urlOpenType2,b=t.urlOpenType3,v=t.icon1,k=t.icon2,d=t.icon3,y=t.color1,g=t.color2,h=t.color3,_=t.bgType1,E=t.bgType2,C=t.bgType3,w=t.insertImage1,x=t.insertImage2,N=t.insertImage3,S=this.props.for_,T=this.props.blockNum,B=this.props.blockNum-1,O=[n,o,a],I=[l,c,i],R=[s,u,p],A=[f,m,b],P=[v,k,d],j=[y,g,h],z=[_,E,C],M=[w,x,N],F="",L="",D=M[B]?r.a.createElement("div",{className:"vk_prBlocks_item_image",style:{backgroundImage:"url(".concat(M[B],")"),backgroundRepeat:"no-repeat 50% center",backgroundSize:"cover"}},r.a.createElement("img",{src:M[B],alt:""})):(j[B]||(j[B]="#0693e3"),"0"===z[B]?r.a.createElement("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:j[B],border:"1px solid ".concat(j[B])}},r.a.createElement("i",{className:"".concat(P[B]," vk_prBlocks_item_icon"),style:{color:"#fff"}})):r.a.createElement("div",{className:"vk_prBlocks_item_icon_outer",style:{backgroundColor:"transparent",border:"1px solid "+j[B]}},r.a.createElement("i",{className:"".concat(P[B]," vk_prBlocks_item_icon"),style:{color:j[B]}})));return"edit"===S?1===T?(F=r.a.createElement(wo,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-1",tagName:"h3",onChange:function(t){return e({heading1:t})},value:n,placeholder:Co("Input Title","vk-blocks")}),L=r.a.createElement(wo,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-1",tagName:"p",onChange:function(t){return e({content1:t})},value:l,placeholder:Co("Input Content","vk-blocks")})):2===T?(F=r.a.createElement(wo,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-2",tagName:"h3",onChange:function(t){return e({heading2:t})},value:o,placeholder:Co("Input Title","vk-blocks")}),L=r.a.createElement(wo,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-2",tagName:"p",onChange:function(t){return e({content2:t})},value:c,placeholder:Co("Input Content","vk-blocks")})):3===T&&(F=r.a.createElement(wo,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-3",tagName:"h3",onChange:function(t){return e({heading3:t})},value:a,placeholder:Co("Input Title","vk-blocks")}),L=r.a.createElement(wo,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-3",tagName:"p",onChange:function(t){return e({content3:t})},value:i,placeholder:Co("Input Content","vk-blocks")})):"save"===S&&(F=r.a.createElement(wo.Content,{className:"vk_prBlocks_item_title vk_prBlocks_item_title-".concat(T),tagName:"h3",value:O[B]}),L=r.a.createElement(wo.Content,{className:"vk_prBlocks_item_summary vk_prBlocks_item_summary-".concat(T),tagName:"p",value:I[B]})),R[B]&&"save"===S?r.a.createElement("div",{className:"vk_prBlocks_item col-sm-4"},r.a.createElement("a",{href:R[B],className:"vk_prBlocks_item_link",target:A[B]?"_blank":"_self",rel:"noopener noreferrer"},D,F,L)):r.a.createElement("div",{className:"vk_prBlocks_item col-sm-4"},D,F,L)}}])&&go(n.prototype,o),a&&go(n,a),t}(),No=wp.i18n.__,So=wp.blocks.registerBlockType,To=wp.components,Bo=To.RadioControl,Oo=To.PanelBody,Io=To.Button,Ro=To.BaseControl,Ao=To.CheckboxControl,Po=To.TextControl,jo=wp.element.Fragment,zo=wp.editor,Mo=(zo.RichText,zo.InspectorControls),Fo=zo.MediaUpload,Lo=zo.ColorPalette,Do=r.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"576",height:"512",viewBox:"0 0 576 512"},r.a.createElement("g",null,r.a.createElement("g",null,r.a.createElement("circle",{cx:"288",cy:"186.2",r:"60"}),r.a.createElement("rect",{x:"213.5",y:"278.8",width:"149",height:"107"})),r.a.createElement("g",null,r.a.createElement("circle",{cx:"74.5",cy:"186.2",r:"60"}),r.a.createElement("rect",{y:"278.8",width:"149",height:"107"})),r.a.createElement("g",null,r.a.createElement("circle",{cx:"501.5",cy:"186.2",r:"60"}),r.a.createElement("rect",{x:"427",y:"278.8",width:"149",height:"107"}))));So("vk-blocks/pr-blocks",{title:No("PR Blocks (Beta)","vk-blocks"),icon:Do,category:"vk-blocks-cat",attributes:function(e){for(var t={},n=1;n<=e;n++)t["heading"+n]={type:"string",source:"html",selector:".vk_prBlocks_item_title-"+n},t["content"+n]={type:"string",source:"html",selector:"p.vk_prBlocks_item_summary-"+n},t["url"+n]={type:"string",default:null},t["urlOpenType"+n]={type:"Boolean",default:!1},t["icon"+n]={type:"string",default:"fas fa-file"},t["color"+n]={type:"string",default:"#0693e3"},t["bgType"+n]={type:"string",default:"0"},t["insertImage"+n]={type:"string",default:null};return t}(4),edit:function(e){var t,n=e.attributes,o=e.setAttributes,a=e.className,l=(n.heading1,n.heading2,n.heading3,n.content1,n.content2,n.content3,n.url1),c=n.url2,i=n.url3,s=n.urlOpenType1,u=n.urlOpenType2,p=n.urlOpenType3,f=n.icon1,m=n.icon2,b=n.icon3,v=n.color1,k=n.color2,d=n.color3,y=n.bgType1,g=n.bgType2,h=n.bgType3,_=n.insertImage1,E=n.insertImage2,C=n.insertImage3;return t=a?"".concat(a," vk_prBlocks row"):"vk_prBlocks row",[r.a.createElement(jo,null,r.a.createElement(Mo,null,r.a.createElement(Oo,{title:No("PR Block1 Setting","vk-blocks")},r.a.createElement(Ro,{label:No("Link URL:","vk-blocks")},r.a.createElement(Po,{value:l,onChange:function(e){return o({url1:e})}}),r.a.createElement(Ao,{label:No("Open link new tab.","vk-blocks"),checked:s,onChange:function(e){return o({urlOpenType1:e})}})),r.a.createElement(Ro,{label:No("Icon 1","vk-blocks")},r.a.createElement(Po,{label:No("Class name of the Font Awesome icon font you want to use:","vk-blocks"),value:f,onChange:function(e){return o({icon1:e})},placeholder:"fas fa-file",help:r.a.createElement("a",{href:"https://fontawesome.com/icons?d=gallery&m=free",target:"_blank"},No("Font Awesome icon list","vk-blocks"))}),r.a.createElement(Lo,{value:v,onChange:function(e){e?o({color1:e}):(o({color1:"#0693e3"}),o({bgType1:"0"}))}}),r.a.createElement(Bo,{label:No("Icon Background:","vk-blocks"),selected:y,options:[{label:No("Solid color","vk-blocks"),value:"0"},{label:No("No background","vk-blocks"),value:"1"}],onChange:function(e){return o({bgType1:e})}})),r.a.createElement(Ro,{label:No("PR Image 1","vk-blocks"),help:No("When you have an image. Image is displayed with priority","vk-blocks")},r.a.createElement(Fo,{onSelect:function(e){return o({insertImage1:e.url})},type:"image",value:_,render:function(e){var t=e.open;return r.a.createElement(Io,{onClick:t,className:_?"image-button":"button button-large"},_?r.a.createElement("img",{className:"icon-image",src:_,alt:No("Upload image","vk-blocks")}):No("Select image","vk-blocks"))}}))),r.a.createElement(Oo,{title:No("PR Block2 Setting","vk-blocks")},r.a.createElement(Ro,{label:No("Link URL:","vk-blocks")},r.a.createElement(Po,{value:c,onChange:function(e){return o({url2:e})}}),r.a.createElement(Ao,{label:No("Open link new tab.","vk-blocks"),checked:u,onChange:function(e){return o({urlOpenType2:e})}})),r.a.createElement(Ro,{label:No("Icon 2","vk-blocks")},r.a.createElement(Po,{label:No("Class name of the Font Awesome icon font you want to use:","vk-blocks"),value:m,onChange:function(e){return o({icon2:e})},placeholder:"fas fa-file",help:r.a.createElement("a",{href:"https://fontawesome.com/icons?d=gallery&m=free",target:"_blank"},No("Font Awesome icon list","vk-blocks"))}),r.a.createElement(Lo,{value:k,onChange:function(e){e?o({color2:e}):(o({color2:"#0693e3"}),o({bgType2:"0"}))}}),r.a.createElement(Bo,{label:No("Icon Background:","vk-blocks"),selected:g,options:[{label:No("Solid color","vk-blocks"),value:"0"},{label:No("No background","vk-blocks"),value:"1"}],onChange:function(e){return o({bgType2:e})}})),r.a.createElement(Ro,{label:No("PR Image 2","vk-blocks"),help:No("When you have an image. Image is displayed with priority.","vk-blocks")},r.a.createElement(Fo,{onSelect:function(e){return o({insertImage2:e.url})},type:"image",value:E,render:function(e){var t=e.open;return r.a.createElement(Io,{onClick:t,className:E?"image-button":"button button-large"},E?r.a.createElement("img",{className:"icon-image",src:E,alt:No("Upload image","vk-blocks")}):No("Select image","vk-blocks"))}}))),r.a.createElement(Oo,{title:No("PR Block3 Setting","vk-blocks")},r.a.createElement(Ro,{label:No("Link URL:","vk-blocks")},r.a.createElement(Po,{value:i,onChange:function(e){return o({url3:e})}}),r.a.createElement(Ao,{label:No("Open link new tab.","vk-blocks"),checked:p,onChange:function(e){return o({urlOpenType3:e})}})),r.a.createElement(Ro,{label:No("Icon 3","vk-blocks")},r.a.createElement(Po,{label:No("Class name of the Font Awesome icon font you want to use:","vk-blocks"),value:b,onChange:function(e){return o({icon3:e})},placeholder:"fas fa-file",help:r.a.createElement("a",{href:"https://fontawesome.com/icons?d=gallery&m=free",target:"_blank"},No("Font Awesome icon list","vk-blocks"))}),r.a.createElement(Lo,{value:d,onChange:function(e){e?o({color3:e}):(o({color3:"#0693e3"}),o({bgType3:"0"}))}}),r.a.createElement(Bo,{label:No("Icon Background:","vk-blocks"),selected:h,options:[{label:No("Solid color","vk-blocks"),value:"0"},{label:No("No background","vk-blocks"),value:"1"}],onChange:function(e){return o({bgType3:e})}})),r.a.createElement(Ro,{label:No("PR Image 3","vk-blocks"),help:No("When you have an image. Image is displayed with priority.","vk-blocks")},r.a.createElement(Fo,{onSelect:function(e){return o({insertImage3:e.url})},type:"image",value:C,render:function(e){var t=e.open;return r.a.createElement(Io,{onClick:t,className:C?"image-button":"button button-large"},C?r.a.createElement("img",{className:"icon-image",src:C,alt:No("Upload image","vk-blocks")}):No("Select image","vk-blocks"))}})))),r.a.createElement("div",{className:t},r.a.createElement(xo,{attributes:n,setAttributes:o,blockNum:1,for_:"edit"}),r.a.createElement(xo,{attributes:n,setAttributes:o,blockNum:2,for_:"edit"}),r.a.createElement(xo,{attributes:n,setAttributes:o,blockNum:3,for_:"edit"})))]},save:function(e){var t,n=e.attributes,o=e.className;return t=o?"".concat(o," vk_prBlocks row"):"vk_prBlocks row",r.a.createElement("div",{className:t},r.a.createElement(xo,{attributes:n,blockNum:1,for_:"save"}),r.a.createElement(xo,{attributes:n,blockNum:2,for_:"save"}),r.a.createElement(xo,{attributes:n,blockNum:3,for_:"save"}))},deprecated:ko});function Uo(e){return(Uo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Vo(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Wo(e,t){return!t||"object"!==Uo(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ho(e){return(Ho=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function $o(e,t){return($o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var qo=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Wo(this,Ho(t).apply(this,arguments))}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&$o(e,t)}(t,r.a.Component),n=t,(o=[{key:"render",value:function(){var e=this.props.attributes,t=e.buttonText,n=e.fontAwesomeIconBefore,o=e.fontAwesomeIconAfter,a="",l="";return n&&(a=r.a.createElement("i",{className:"".concat(n," vk_button_link_before")})),o&&(l=r.a.createElement("i",{className:"".concat(o," vk_button_link_after")})),r.a.createElement(r.a.Fragment,null,a,r.a.createElement("span",{className:"vk_button_link_txt"},t),l)}}])&&Vo(n.prototype,o),a&&Vo(n,a),t}();function Go(e){return(Go="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Yo(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Zo(e,t){return!t||"object"!==Go(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Qo(e){return(Qo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Xo(e,t){return(Xo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Jo=wp.i18n.__,Ko=wp.components.Button,er=wp.editor.MediaUpload,tr=wp.editor.RichText,nr=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Zo(this,Qo(t).apply(this,arguments))}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Xo(e,t)}(t,r.a.Component),n=t,(o=[{key:"render",value:function(){var e=this.props.attributes,t=e.title,n=e.titleColor,o=e.content,a=e.contentColor,l=e.url,c=e.buttonType,i=e.buttonColor,s=e.buttonColorCustom,u=e.buttonText,p=e.buttonTarget,f=e.Image,m=e.ImageBorderColor,b=e.layout,v=(e.fontAwesomeIconBefore,e.fontAwesomeIconAfter,this.props.setAttributes),k=this.props.className,d=this.props.for_,y="vk_prContent",g="vk_button",h="btn btn-block vk_button_link vk_prContent_colTxt_btn",_={},E="";return y="right"===b?Je()(k,y,"vk_prContent-layout-imageRight"):Je()(k,y,"vk_prContent-layout-imageLeft"),s?(g="".concat(g," vk_button-color-custom"),h="".concat(h," btn-primary"),"0"===c?_={backgroundColor:s,border:"1px solid ".concat(s)}:"1"===c&&(_={backgroundColor:"transparent",border:"1px solid "+s,color:s})):s||("0"===c?(h="".concat(h," btn-").concat(i),_=null):"1"===c&&(h="".concat(h," btn-outline-").concat(i),_=null)),E=null==m?"none":"1px solid ".concat(m),r.a.createElement("div",{className:y},r.a.createElement("div",{className:"col-sm-6 vk_prContent_colImg"},"edit"===d?r.a.createElement(er,{onSelect:function(e){return v({Image:e.sizes.full.url})},type:" image",value:f,render:function(e){var t=e.open;return r.a.createElement(Ko,{onClick:t,className:f?"image-button":"button button-large"},f?r.a.createElement("img",{className:"vk_prContent_colImg_image",src:f,alt:Jo("Upload image","vk-blocks"),style:{border:E}}):Jo("Select image","vk-blocks"))}}):f?r.a.createElement("img",{className:"vk_prContent_colImg_image",src:f,alt:Jo("Upload image","vk-blocks"),style:{border:E}}):Jo("Select image","vk-blocks")),r.a.createElement("div",{className:"col-sm-6 vk_prContent_colTxt"},"edit"===d?r.a.createElement(r.a.Fragment,null,r.a.createElement(tr,{tagName:"h3",className:"vk_prContent_colTxt_title",onChange:function(e){return v({title:e})},value:t,placeholder:Jo("Input title.","vk-blocks"),style:{color:n}}),r.a.createElement(tr,{tagName:"p",className:"vk_prContent_colTxt_text",onChange:function(e){return v({content:e})},value:o,placeholder:Jo("Input content.","vk-blocks"),style:{color:a}})):r.a.createElement(r.a.Fragment,null,r.a.createElement(tr.Content,{tagName:"h3",value:t,className:"vk_prContent_colTxt_title",style:{color:n}}),r.a.createElement(tr.Content,{tagName:"p",className:"vk_prContent_colTxt_text",value:o,style:{color:a}})),function(){if(""!==u&&void 0!==u)return r.a.createElement("div",{className:g},r.a.createElement("a",{href:l,className:h,target:p?"_blank":null,style:_,rel:"noopener noreferrer"},r.a.createElement(qo,{attributes:e})))}()))}}])&&Yo(n.prototype,o),a&&Yo(n,a),t}();function or(e){return(or="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function rr(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function ar(e,t){return!t||"object"!==or(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function lr(e){return(lr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function cr(e,t){return(cr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ir=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),ar(this,lr(t).apply(this,arguments))}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&cr(e,t)}(t,r.a.Component),n=t,(o=[{key:"render",value:function(){var e=this.props.attributes,t=e.buttonText,n=e.fontAwesomeIconBefore,o=e.fontAwesomeIconAfter,a="",l="";return n&&(a=r.a.createElement("i",{className:"".concat(n," vk_button_link_before")})),o&&(l=r.a.createElement("i",{className:"".concat(o," vk_button_link_after")})),r.a.createElement(r.a.Fragment,null,a,r.a.createElement("span",{className:"vk_button_link_txt"},t),l)}}])&&rr(n.prototype,o),a&&rr(n,a),t}();function sr(e){return(sr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ur(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function pr(e,t){return!t||"object"!==sr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function fr(e){return(fr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function mr(e,t){return(mr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var br=wp.i18n.__,vr=wp.components.Button,kr=wp.editor.MediaUpload,dr=wp.editor.RichText,yr=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),pr(this,fr(t).apply(this,arguments))}var n,o,a;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&mr(e,t)}(t,r.a.Component),n=t,(o=[{key:"render",value:function(){var e=this.props.attributes,t=e.title,n=e.titleColor,o=e.content,a=e.contentColor,l=e.url,c=e.buttonType,i=e.buttonColor,s=e.buttonColorCustom,u=e.buttonText,p=e.buttonTarget,f=e.Image,m=e.ImageBorderColor,b=e.layout,v=(e.fontAwesomeIconBefore,e.fontAwesomeIconAfter,this.props.setAttributes),k=this.props.for_,d="vk_prContent",y="vk_button",g="btn btn-block vk_button_link vk_prContent_colTxt_btn",h={};return d="".concat(d,"right"===b?" vk_prContent-layout-imageRight":" vk_prContent-layout-imageLeft"),s?(y="".concat(y," vk_button-color-custom"),g="".concat(g," btn-primary"),"0"===c?h={backgroundColor:s,border:"1px solid ".concat(s)}:"1"===c&&(h={backgroundColor:"transparent",border:"1px solid "+s,color:s})):s||("0"===c?(g="".concat(g," btn-").concat(i),h=null):"1"===c&&(g="".concat(g," btn-outline-").concat(i),h=null)),r.a.createElement("div",{className:d},r.a.createElement("div",{className:"col-sm-6 vk_prContent_colImg"},"edit"===k?r.a.createElement(kr,{onSelect:function(e){return v({Image:e.sizes.full.url})},type:" image",value:f,render:function(e){var t=e.open;return r.a.createElement(vr,{onClick:t,className:f?"image-button":"button button-large"},f?r.a.createElement("img",{className:"vk_prContent_colImg_image",src:f,alt:br("Upload image","vk-blocks"),style:{border:"1px solid ".concat(m)}}):br("Select image","vk-blocks"))}}):f?r.a.createElement("img",{className:"vk_prContent_colImg_image",src:f,alt:br("Upload image","vk-blocks"),style:{border:"1px solid ".concat(m)}}):br("Select image","vk-blocks")),r.a.createElement("div",{className:"col-sm-6 vk_prContent_colTxt"},"edit"===k?r.a.createElement(r.a.Fragment,null,r.a.createElement(dr,{tagName:"h3",className:"vk_prContent_colTxt_title",onChange:function(e){return v({title:e})},value:t,placeholder:br("Input title.","vk-blocks"),style:{color:n}}),r.a.createElement(dr,{tagName:"p",className:"vk_prContent_colTxt_text",onChange:function(e){return v({content:e})},value:o,placeholder:br("Input content.","vk-blocks"),style:{color:a}})):r.a.createElement(r.a.Fragment,null,r.a.createElement(dr.Content,{tagName:"h3",value:t,className:"vk_prContent_colTxt_title",style:{color:n}}),r.a.createElement(dr.Content,{tagName:"p",className:"vk_prContent_colTxt_text",value:o,style:{color:a}})),function(){if(""!==u&&void 0!==u)return r.a.createElement("div",{className:y},r.a.createElement("a",{href:l,className:g,target:p?"_blank":null,style:h},r.a.createElement(ir,{attributes:e})))}()))}}])&&ur(n.prototype,o),a&&ur(n,a),t}(),gr=[{attributes:{title:{source:"html",selector:".vk_prContent_colTxt_title"},titleColor:{type:"string"},content:{source:"html",selector:".vk_prContent_colTxt_text"},contentColor:{type:"string"},url:{type:"string",default:null},buttonType:{type:"string",default:"0"},buttonColor:{type:"string",default:"primary"},buttonColorCustom:{type:"string",default:null},buttonText:{source:"html",selector:".vk_button_link_txt",default:""},buttonTarget:{type:"Boolean",default:!1},Image:{type:"string",default:null},ImageBorderColor:{type:"string",default:null},layout:{type:"string",default:"left"},fontAwesomeIconBefore:{type:"string"},fontAwesomeIconAfter:{type:"string"}},save:function(e){var t=e.attributes;e.className;return r.a.createElement(yr,{attributes:t,for_:"save"})}}],hr=wp.i18n.__,_r=wp.blocks.registerBlockType,Er=wp.components,Cr=(Er.RangeControl,Er.RadioControl),wr=Er.PanelBody,xr=(Er.Button,Er.BaseControl),Nr=Er.CheckboxControl,Sr=Er.TextControl,Tr=wp.element.Fragment,Br=wp.editor,Or=(Br.RichText,Br.InspectorControls),Ir=(Br.MediaUpload,Br.ColorPalette),Rr=r.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"576",height:"512",viewBox:"0 0 576 512"},r.a.createElement("g",null,r.a.createElement("path",{d:"M291.7,133.3l0,245.3l-273.1,0l0-245.3L291.7,133.3 M307.2,117.8l-304.2,0l0,276.4l304.2,0L307.2,117.8L307.2,117.8z"}),r.a.createElement("path",{d:"M560.7,218.8l-213.1,0c-6.1,0-11.1-5-11.1-11.1s5-11.1,11.1-11.1l213.1,0c6.1,0,11.1,5,11.1,11.1 C571.8,213.8,566.8,218.8,560.7,218.8z"}),r.a.createElement("path",{d:"M560.7,265.4l-213.1,0c-6.1,0-11.1-5-11.1-11.1c0-6.1,5-11.1,11.1-11.1l213.1,0c6.1,0,11.1,5,11.1,11.1 C571.8,260.5,566.8,265.4,560.7,265.4z"}),r.a.createElement("path",{d:"M560.7,312.1l-213.1,0c-6.1,0-11.1-5-11.1-11.1c0-6.1,5-11.1,11.1-11.1l213.1,0c6.1,0,11.1,5,11.1,11.1 C571.8,307.1,566.8,312.1,560.7,312.1z"}),r.a.createElement("polygon",{points:"278.4,365.4 31.9,365.4 31.9,287.4 113,182.2 184.4,264.4 229.9,226.5 278.4,290.6 \t"}),r.a.createElement("path",{d:"M360.6,133.3c4.8,0,8.7,3.9,8.7,8.7c0,4.8-3.9,8.7-8.7,8.7c-4.8,0-8.7-3.9-8.7-8.7C351.9,137.2,355.8,133.3,360.6,133.3 M360.6,117.8c-13.4,0-24.2,10.9-24.2,24.2c0,13.4,10.9,24.2,24.2,24.2c13.4,0,24.2-10.9,24.2-24.2 C384.9,128.7,374,117.8,360.6,117.8L360.6,117.8z"}),r.a.createElement("path",{d:"M423.3,133.3c4.8,0,8.7,3.9,8.7,8.7c0,4.8-3.9,8.7-8.7,8.7c-4.8,0-8.7-3.9-8.7-8.7C414.6,137.2,418.5,133.3,423.3,133.3 M423.3,117.8c-13.4,0-24.2,10.9-24.2,24.2c0,13.4,10.9,24.2,24.2,24.2s24.2-10.9,24.2-24.2C447.6,128.7,436.7,117.8,423.3,117.8 L423.3,117.8z"}),r.a.createElement("path",{d:"M486,133.3c4.8,0,8.7,3.9,8.7,8.7c0,4.8-3.9,8.7-8.7,8.7c-4.8,0-8.7-3.9-8.7-8.7C477.3,137.2,481.2,133.3,486,133.3 M486,117.8c-13.4,0-24.2,10.9-24.2,24.2c0,13.4,10.9,24.2,24.2,24.2c13.4,0,24.2-10.9,24.2-24.2 C510.2,128.7,499.4,117.8,486,117.8L486,117.8z"}),r.a.createElement("path",{d:"M548.7,133.3c4.8,0,8.7,3.9,8.7,8.7c0,4.8-3.9,8.7-8.7,8.7s-8.7-3.9-8.7-8.7C540,137.2,543.9,133.3,548.7,133.3 M548.7,117.8c-13.4,0-24.2,10.9-24.2,24.2c0,13.4,10.9,24.2,24.2,24.2c13.4,0,24.2-10.9,24.2-24.2 C572.9,128.7,562.1,117.8,548.7,117.8L548.7,117.8z"}),r.a.createElement("path",{d:"M566.3,347.6l-224.3,0c-3.1,0-5.6,2.5-5.6,5.6l0,35.5c0,3.1,2.5,5.6,5.6,5.6l224.3,0c3.1,0,5.6-2.5,5.6-5.6v-35.5 C571.8,350.1,569.3,347.6,566.3,347.6z M547.1,379.2v-16.6l9.8,8.3L547.1,379.2z"})));_r("vk-blocks/pr-content",{title:hr("PR Content","vk-blocks"),icon:Rr,category:"vk-blocks-cat",attributes:{title:{source:"html",selector:".vk_prContent_colTxt_title"},titleColor:{type:"string"},content:{source:"html",selector:".vk_prContent_colTxt_text"},contentColor:{type:"string"},url:{type:"string",default:null},buttonType:{type:"string",default:"0"},buttonColor:{type:"string",default:"primary"},buttonColorCustom:{type:"string",default:null},buttonText:{source:"html",selector:".vk_button_link_txt",default:""},buttonTarget:{type:"Boolean",default:!1},Image:{type:"string",default:null},ImageBorderColor:{type:"string",default:null},layout:{type:"string",default:"left"},fontAwesomeIconBefore:{type:"string"},fontAwesomeIconAfter:{type:"string"}},edit:function(e){var t=e.attributes,n=e.className,o=e.setAttributes,a=t.titleColor,l=t.contentColor,c=t.url,i=t.buttonType,s=t.buttonColor,u=t.buttonColorCustom,p=t.buttonText,f=t.buttonTarget,m=t.ImageBorderColor,b=t.layout,v=t.fontAwesomeIconBefore,k=t.fontAwesomeIconAfter;return r.a.createElement(Tr,null,r.a.createElement(Or,null,r.a.createElement(wr,{title:hr("Color Setting","vk-blocks")},r.a.createElement(xr,{label:hr("Title Color","vk-blocks")},r.a.createElement(Ir,{value:a,onChange:function(e){return o({titleColor:e})}})),r.a.createElement(xr,{label:hr("Content Color","vk-blocks")},r.a.createElement(Ir,{value:l,onChange:function(e){return o({contentColor:e})}})),r.a.createElement(xr,{label:hr("Image Border Color","vk-blocks")},r.a.createElement(Ir,{value:m,onChange:function(e){return o({ImageBorderColor:e})}}))),r.a.createElement(wr,{title:hr("Button Setting","vk-blocks")},r.a.createElement(xr,{label:hr("Button Text","vk-blocks")},r.a.createElement(Sr,{value:p,onChange:function(e){return o({buttonText:e})},placeholder:"Input button text."})),r.a.createElement(xr,{label:hr("Link URL","vk-blocks")},r.a.createElement(Sr,{value:c,onChange:function(e){return o({url:e})},placeholder:"https://vektor-inc.co.jp/"})),r.a.createElement(Nr,{label:hr("Open link new tab.","vk-blocks"),checked:f,onChange:function(e){return o({buttonTarget:e})}}),r.a.createElement(xr,{label:hr("Button Type","vk-blocks")},r.a.createElement(Cr,{selected:i,options:[{label:hr("Solid","vk-blocks"),value:"0"},{label:hr("Ghost","vk-blocks"),value:"1"}],onChange:function(e){return o({buttonType:e})}})),r.a.createElement(Cr,{label:hr("Default Color:","vk-blocks"),selected:s,options:[{label:hr("Primary","vk-blocks"),value:"primary"},{label:hr("Secondary","vk-blocks"),value:"secondary"},{label:hr("Success","vk-blocks"),value:"success"},{label:hr("Info","vk-blocks"),value:"info"},{label:hr("Warning","vk-blocks"),value:"warning"},{label:hr("Danger","vk-blocks"),value:"danger"},{label:hr("Light","vk-blocks"),value:"light"},{label:hr("Dark","vk-blocks"),value:"dark"}],onChange:function(e){return o({buttonColor:e})}}),r.a.createElement(xr,{label:hr("Button Color","vk-blocks")},r.a.createElement(Ir,{value:u,onChange:function(e){return o({buttonColorCustom:e})}})),r.a.createElement(xr,{label:hr("Font Awesome:","vk-blocks"),help:r.a.createElement("a",{href:"https://fontawesome.com/icons?d=gallery&m=free",target:"_blank"},hr("Font Awesome icon list","vk-blocks"))},r.a.createElement(Sr,{label:hr("Before text","vk-blocks"),help:hr("Enter Font Awesome Class.This icon will appear before text. Ex) fas fa-arrow-circle-right","vk-blocks"),value:v,onChange:function(e){return o({fontAwesomeIconBefore:e})},placeholder:"fas fa-arrow-circle-right"}),r.a.createElement(Sr,{label:hr("After text","vk-blocks"),help:hr("Enter Font Awesome Class.This icon will appear after text. Ex) fas fa-external-link-alt","vk-blocks"),value:k,onChange:function(e){return o({fontAwesomeIconAfter:e})},placeholder:"fas fa-external-link-alt"}))),r.a.createElement(wr,{title:hr("Layout Setting","vk-blocks")},r.a.createElement(Cr,{label:hr("Layout Type","vk-blocks"),selected:b,options:[{label:hr("Right","vk-blocks"),value:"right"},{label:hr("Left","vk-blocks"),value:"left"}],onChange:function(e){return o({layout:e})}}))),r.a.createElement(nr,{attributes:t,setAttributes:o,className:n,for_:"edit"}))},save:function(e){var t=e.attributes,n=e.className;return r.a.createElement(nr,{attributes:t,className:n,for_:"save"})},deprecated:gr})}]);
39
+ //# sourceMappingURL=block-build.js.map
inc/vk-blocks/package/build/block-build.js.map ADDED
@@ -0,0 +1 @@
 
1
+ {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./node_modules/react/index.js","webpack:///./node_modules/classnames/index.js","webpack:///./node_modules/react-dom/server.browser.js","webpack:///./node_modules/react/cjs/react.production.min.js","webpack:///./node_modules/react/node_modules/object-assign/index.js","webpack:///./node_modules/react-dom/cjs/react-dom-server.browser.production.min.js","webpack:///./node_modules/react-dom/node_modules/object-assign/index.js","webpack:///./src/balloon/block.js","webpack:///./src/table-of-contents/TableOfContents.js","webpack:///./src/table-of-contents/block.js","webpack:///./src/table-of-contents/schema.js","webpack:///./src/staff/component.js","webpack:///./src/staff/block.js","webpack:///./src/staff/schema.js","webpack:///./src/spacer/component.js","webpack:///./src/spacer/deprecated/component.js","webpack:///./src/spacer/deprecated/deprecated.js","webpack:///./src/spacer/deprecated/schema.js","webpack:///./src/spacer/block.js","webpack:///./src/spacer/schema.js","webpack:///./src/outer/component-divider.js","webpack:///./src/outer/component.js","webpack:///./src/outer/deprecated/component-divider.js","webpack:///./src/outer/deprecated/component.js","webpack:///./src/outer/deprecated/block.js","webpack:///./src/outer/deprecated/schema.js","webpack:///./src/_helper/to-number.js","webpack:///./src/outer/block.js","webpack:///./src/outer/schema.js","webpack:///./src/heading/heading-toolbar.js","webpack:///./src/heading/component.js","webpack:///./src/heading/deprecated/block.js","webpack:///./src/heading/deprecated/schema.js","webpack:///./src/heading/block.js","webpack:///./src/heading/schema.js","webpack:///./src/alert/deprecated.js","webpack:///./src/alert/block.js","webpack:///./src/button/component.js","webpack:///./src/button/deprecated/component-deprecated.js","webpack:///./src/button/deprecated/component-deprecated-id.js","webpack:///./src/button/deprecated/component-deprecated-noopenernoreferer-id.js","webpack:///./src/button/deprecated/component-deprecated-subcaption-noNoopnnernoreferer-id.js","webpack:///./src/button/deprecated/deprecated.js","webpack:///./src/button/block.js","webpack:///./src/faq/deprecated.js","webpack:///./src/faq/block.js","webpack:///./src/flow/deprecated.js","webpack:///./src/flow/block.js","webpack:///./src/pr-blocks/deprecated/component-block.js","webpack:///./src/pr-blocks/deprecated/block.js","webpack:///./src/pr-blocks/component-block.js","webpack:///./src/pr-blocks/block.js","webpack:///./src/pr-content/component-fontawesome.js","webpack:///./src/pr-content/component.js","webpack:///./src/pr-content/deprecated/component-fontawesome-deprecated.js","webpack:///./src/pr-content/deprecated/component-deprecated.js","webpack:///./src/pr-content/deprecated/deprecated.js","webpack:///./src/pr-content/block.js","webpack:///./src/pr-content/schema.js"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","__WEBPACK_AMD_DEFINE_RESULT__","hasOwn","classNames","classes","arguments","length","arg","argType","push","Array","isArray","inner","apply","join","default","undefined","k","for","q","u","v","w","x","y","z","A","B","C","iterator","D","a","b","e","encodeURIComponent","g","h","f","Error","replace","framesToPop","aa","E","isMounted","enqueueForceUpdate","enqueueReplaceState","enqueueSetState","F","G","this","props","context","refs","updater","H","I","isReactComponent","setState","forceUpdate","J","constructor","isPureReactComponent","K","current","currentDispatcher","L","M","ref","__self","__source","N","children","defaultProps","$$typeof","type","_owner","O","P","Q","R","pop","result","keyPrefix","func","count","S","V","T","U","next","done","keys","=",":","escape","toString","ca","da","W","ba","X","Children","map","forEach","toArray","only","createRef","Component","PureComponent","createContext","_calculateChangedBits","_currentValue","_currentValue2","_threadCount","Provider","Consumer","_context","forwardRef","render","lazy","_ctor","_status","_result","memo","compare","Fragment","StrictMode","Suspense","createElement","cloneElement","createFactory","isValidElement","version","unstable_ConcurrentMode","unstable_Profiler","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","ReactCurrentOwner","assign","Y","Z","getOwnPropertySymbols","propIsEnumerable","propertyIsEnumerable","test1","String","getOwnPropertyNames","test2","fromCharCode","test3","split","letter","err","shouldUseNative","target","source","from","symbols","to","val","TypeError","toObject","displayName","Uint16Array","ea","fa","ha","ia","ja","test","la","acceptsBooleans","toLowerCase","slice","ka","isNaN","attributeName","attributeNamespace","mustUseProperty","propertyName","toUpperCase","tabIndex","ma","exec","index","charCodeAt","substring","na","oa","pa","readContext","qa","html","mathml","svg","ra","sa","area","base","br","col","embed","hr","img","input","keygen","link","meta","param","track","wbr","ta","menuitem","animationIterationCount","borderImageOutset","borderImageSlice","borderImageWidth","boxFlex","boxFlexGroup","boxOrdinalGroup","columnCount","columns","flex","flexGrow","flexPositive","flexShrink","flexNegative","flexOrder","gridArea","gridRow","gridRowEnd","gridRowSpan","gridRowStart","gridColumn","gridColumnEnd","gridColumnSpan","gridColumnStart","fontWeight","lineClamp","lineHeight","opacity","order","orphans","tabSize","widows","zIndex","zoom","fillOpacity","floodOpacity","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth","ua","charAt","va","wa","xa","listing","pre","textarea","ya","za","Ba","Ca","dangerouslySetInnerHTML","suppressContentEditableWarning","suppressHydrationWarning","Da","Ea","contextType","contextTypes","getDerivedStateFromProps","state","UNSAFE_componentWillMount","componentWillMount","getChildContext","childContextTypes","child","Fa","domNamespace","childIndex","footer","set","threadID","stack","exhausted","currentSelectValue","previousWasTextNode","makeStaticMarkup","suspenseDepth","contextIndex","contextStack","contextValueStack","destroy","pushProvider","popProvider","read","fallbackFrame","renderDOM","defaultChecked","defaultValue","checked","Aa","selected","style","indexOf","trim","is","__html","Ga","renderToString","Infinity","renderToStaticMarkup","renderToNodeStream","renderToStaticNodeStream","Ha","Ia","__","wp","i18n","registerBlockType","blocks","components","RadioControl","RangeControl","PanelBody","Button","element","editor","RichText","InspectorControls","MediaUpload","ColorPalette","BlockIcon","React","xmlns","width","height","viewBox","title","icon","category","attributes","content","selector","balloonName","balloonType","balloonBgColor","balloonAlign","IconImage","edit","_ref","className","setAttributes","label","help","options","onChange","concat","onSelect","sizes","full","url","_ref2","open","onClick","src","alt","tagName","placeholder","background","border","save","_ref3","Content","TableOfContents","targetClass","document","getElementsByClassName","querySelectorAll","nodeList_raw","getDom","nodeList","sourceOfTocHtml","item","innerText","h2Count","h3Count","h4Count","h5Count","h6Count","fixZero","returnHtml","data","baseClass","level","Number","preNumber","href","ReactDOMServer","ServerSideRender","SelectControl","BaseControl","subscribe","select","dispatch","react_default","renderHtml","clientId","toc","getHtagsInEditor","selectedBlock","getSelectedBlock","match","vk_blocks_check","is_pro","block","NewComponent","_React$Component","component_classCallCheck","_possibleConstructorReturn","_getPrototypeOf","_inherits","_this$props$attribute","vk_staff_text_name","vk_staff_text_caption","vk_staff_text_role","vk_staff_text_profileTitle","vk_staff_text_profileText","vk_staff_photo_image","vk_staff_photo_image_alt","vk_staff_layout","vk_staff_nameColor","vk_staff_captionColor","vk_staff_positionColor","vk_staff_profileTitleColor","vk_staff_profileTextColor","vk_staff_photoBorder","for_","returnELm","component_RichText","color","component_MediaUpload","TextControl","block_Fragment","block_InspectorControls","block_PanelBody","block_SelectControl","block_BaseControl","block_ColorPalette","component_NewComponent","SpacerComponent","spacer_component_classCallCheck","component_possibleConstructorReturn","component_getPrototypeOf","component_inherits","unit","pc","tablet","mobile","deprecated_component_classCallCheck","deprecated_component_possibleConstructorReturn","deprecated_component_getPrototypeOf","deprecated_component_inherits","deprecated","deprecated_component_SpacerComponent","points","spacer_block_Fragment","spacer_block_InspectorControls","spacer_block_PanelBody","spacer_block_SelectControl","spacer_block_BaseControl","step","component_SpacerComponent","componentDivider","whichSide","dividerType","sectionPadding","sectionClass","lenderDivider","Math","abs","fill","absLevel","tiltSectionStyle","curveSectionStyle","waveSectionStyle","DivideAbs4","triangleSectionStyle","paddingBottom","preserveAspectRatio","paddingTop","InnerBlocks","hex2rgba","hex","alpha","parseInt","outer_component_classCallCheck","outer_component_possibleConstructorReturn","outer_component_getPrototypeOf","outer_component_inherits","classPaddingLR","classPaddingVertical","classBgPosition","classWidth","elm","containerClass","whichSideUpper","whichSideLower","bgStyle","borderProperty","borderRadiusProperty","bgColor","bgImage","bgPosition","outerWidth","padding_left_and_right","padding_top_and_bottom","upper_level","lower_level","upperDividerBgColor","lowerDividerBgColor","borderWidth","borderStyle","borderColor","borderRadius","anchor","id","outer_deprecated_component_classCallCheck","outer_deprecated_component_possibleConstructorReturn","outer_deprecated_component_getPrototypeOf","outer_deprecated_component_inherits","component_InnerBlocks","deprecated_component_Component","toNumber","min","max","supports","outer_block_Fragment","outer_block_InspectorControls","outer_block_PanelBody","outer_block_BaseControl","outer_block_ColorPalette","block_RangeControl","block_MediaUpload","block_Button","outer_block_SelectControl","component_Component","range","window","lodash","sprintf","Toolbar","HeadingToolbar","targetLevel","selectedLevel","isActive","subscript","_this","_this$props","minLevel","maxLevel","controls","createLevelControl","heading_component_classCallCheck","heading_component_possibleConstructorReturn","heading_component_getPrototypeOf","heading_component_inherits","cStyle","tStyle","align","titleColor","titleSize","subText","subTextFlag","subTextColor","subTextSize","titleStyle","titleMarginBottom","outerMarginBottom","marginBottom","fontSize","textAlign","heading_component_RichText","BlockControls","AlignmentToolbar","Version0_6_0","block_RichText","number","set_attirbuite","heading1","heading2","heading3","content1","content2","content3","url1","url2","url3","urlOpenType1","urlOpenType2","urlOpenType3","icon1","icon2","icon3","color1","color2","color3","bgType1","bgType2","bgType3","insertImage1","insertImage2","insertImage3","backgroundImage","backgroundRepeat","backgroundSize","_readOnlyError","backgroundColor","deprecated_block_Fragment","customClassName","setTitleFontSize","newLevel","heading_block_Fragment","block_BlockControls","heading_toolbar","heading_block_InspectorControls","heading_block_PanelBody","heading_block_SelectControl","heading_block_RangeControl","block_AlignmentToolbar","heading_block_ColorPalette","block_RadioControl","heading_component_Component","alert_deprecated_RichText","event","alert_block_RichText","newContent","button_component_classCallCheck","button_component_possibleConstructorReturn","button_component_getPrototypeOf","button_component_inherits","buttonColorCustom","lbColorCustom","buttonColor","lbColor","buttonType","lbType","buttonAlign","lbAlign","buttonSize","lbSize","buttonUrl","lbUrl","buttonTarget","lbTarget","fontAwesomeIconBefore","lbFontAwesomeIconBefore","fontAwesomeIconAfter","lbFontAwesomeIconAfter","richText","lbRichtext","subCaption","lbsubCaption","aClass","aStyle","iconBefore","iconAfter","role","aria-pressed","rel","ComponentDeprecated","component_deprecated_classCallCheck","component_deprecated_possibleConstructorReturn","component_deprecated_getPrototypeOf","component_deprecated_inherits","ComponentDeprecatedId","component_deprecated_id_classCallCheck","component_deprecated_id_possibleConstructorReturn","component_deprecated_id_getPrototypeOf","component_deprecated_id_inherits","ComponentDeprecatedNoOpnnerNoRefererID","component_deprecated_noopenernoreferer_id_classCallCheck","component_deprecated_noopenernoreferer_id_possibleConstructorReturn","component_deprecated_noopenernoreferer_id_getPrototypeOf","component_deprecated_noopenernoreferer_id_inherits","ComponentDeprecatedSubcaptionNoopennerId","component_deprecated_subcaption_noNoopnnernoreferer_id_classCallCheck","component_deprecated_subcaption_noNoopnnernoreferer_id_possibleConstructorReturn","component_deprecated_subcaption_noNoopnnernoreferer_id_getPrototypeOf","component_deprecated_subcaption_noNoopnnernoreferer_id_inherits","component_deprecated_ComponentDeprecated","deprecated_deprecated_RichText","component_deprecated_id_ComponentDeprecatedId","component_deprecated_noopenernoreferer_id_ComponentDeprecatedNoOpnnerNoRefererID","_ref4","component_deprecated_subcaption_noNoopnnernoreferer_id_ComponentDeprecatedSubcaptionNoopennerId","CheckboxControl","Dashicon","IconButton","URLInput","isSelected","button_block_Fragment","button_block_InspectorControls","button_block_PanelBody","block_TextControl","button_block_RadioControl","button_block_BaseControl","button_block_ColorPalette","button_component_Component","button_block_RichText","formattingControls","keepPlaceholderOnFocus","onSubmit","preventDefault","heading","faq_deprecated_RichText","faq_block_RichText","arrowFlag","insertImage","flow_deprecated_RichText","PanelColor","flow_block_Fragment","flow_block_InspectorControls","flow_block_PanelBody","flow_block_RadioControl","flow_block_RichText","flow_block_MediaUpload","flow_block_Button","ComponentBlock","component_block_classCallCheck","component_block_possibleConstructorReturn","component_block_getPrototypeOf","component_block_inherits","blockNum","blockNumArrIndex","urlOpenType","bgType","richTextH1Save","richTextPSave","drawElement","component_block_RichText","set_attributes","block_readOnlyError","deprecated_block_RichText","set_attributes2","component_block_ComponentBlock","pr_blocks_component_block_classCallCheck","pr_blocks_component_block_possibleConstructorReturn","pr_blocks_component_block_getPrototypeOf","pr_blocks_component_block_inherits","pr_blocks_component_block_RichText","cx","cy","pr_blocks_block_Fragment","pr_blocks_block_InspectorControls","pr_blocks_block_PanelBody","pr_blocks_block_BaseControl","pr_blocks_block_TextControl","pr_blocks_block_CheckboxControl","pr_blocks_block_ColorPalette","pr_blocks_block_RadioControl","pr_blocks_block_MediaUpload","pr_blocks_block_Button","pr_blocks_component_block_ComponentBlock","_ref5","Fontawesome","component_fontawesome_classCallCheck","component_fontawesome_possibleConstructorReturn","component_fontawesome_getPrototypeOf","component_fontawesome_inherits","buttonText","pr_content_component_classCallCheck","pr_content_component_possibleConstructorReturn","pr_content_component_getPrototypeOf","pr_content_component_inherits","contentColor","Image","ImageBorderColor","layout","btnClass","imageBorderProperty","pr_content_component_MediaUpload","component_Button","pr_content_component_RichText","component_fontawesome_Fontawesome","component_fontawesome_deprecated_classCallCheck","component_fontawesome_deprecated_possibleConstructorReturn","component_fontawesome_deprecated_getPrototypeOf","component_fontawesome_deprecated_inherits","deprecated_component_deprecated_classCallCheck","deprecated_component_deprecated_possibleConstructorReturn","deprecated_component_deprecated_getPrototypeOf","deprecated_component_deprecated_inherits","component_deprecated_MediaUpload","component_deprecated_Button","component_deprecated_RichText","component_fontawesome_deprecated_Fontawesome","deprecated_component_deprecated_ComponentDeprecated","pr_content_block_Fragment","pr_content_block_InspectorControls","pr_content_block_PanelBody","pr_content_block_BaseControl","pr_content_block_ColorPalette","pr_content_block_TextControl","pr_content_block_CheckboxControl","pr_content_block_RadioControl","pr_content_component_Component"],"mappings":"aACA,IAAAA,EAAA,GAGA,SAAAC,EAAAC,GAGA,GAAAF,EAAAE,GACA,OAAAF,EAAAE,GAAAC,QAGA,IAAAC,EAAAJ,EAAAE,GAAA,CACAG,EAAAH,EACAI,GAAA,EACAH,QAAA,IAUA,OANAI,EAAAL,GAAAM,KAAAJ,EAAAD,QAAAC,IAAAD,QAAAF,GAGAG,EAAAE,GAAA,EAGAF,EAAAD,QAKAF,EAAAQ,EAAAF,EAGAN,EAAAS,EAAAV,EAGAC,EAAAU,EAAA,SAAAR,EAAAS,EAAAC,GACAZ,EAAAa,EAAAX,EAAAS,IACAG,OAAAC,eAAAb,EAAAS,EAAA,CAA0CK,YAAA,EAAAC,IAAAL,KAK1CZ,EAAAkB,EAAA,SAAAhB,GACA,oBAAAiB,eAAAC,aACAN,OAAAC,eAAAb,EAAAiB,OAAAC,YAAA,CAAwDC,MAAA,WAExDP,OAAAC,eAAAb,EAAA,cAAiDmB,OAAA,KAQjDr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xBrB,WAAYU,EAAYW,EAAZX,UAEd,OACIsD,EAAAzX,EAAAiG,cAACyqB,GAAD,CACIjd,WAAYA,EACZU,UAAWA,EACXsF,KAAM,UAKlB0B,WAAYA","file":"./inc/vk-blocks/build/block-build.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 8);\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react.production.min.js');\n} else {\n module.exports = require('./cjs/react.development.js');\n}\n","/*!\n Copyright (c) 2017 Jed Watson.\n Licensed under the MIT License (MIT), see\n http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg) && arg.length) {\n\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\tif (inner) {\n\t\t\t\t\tclasses.push(inner);\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-dom-server.browser.production.min.js');\n} else {\n module.exports = require('./cjs/react-dom-server.browser.development.js');\n}\n","/** @license React v16.7.0\n * react.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';var k=require(\"object-assign\"),n=\"function\"===typeof Symbol&&Symbol.for,p=n?Symbol.for(\"react.element\"):60103,q=n?Symbol.for(\"react.portal\"):60106,r=n?Symbol.for(\"react.fragment\"):60107,t=n?Symbol.for(\"react.strict_mode\"):60108,u=n?Symbol.for(\"react.profiler\"):60114,v=n?Symbol.for(\"react.provider\"):60109,w=n?Symbol.for(\"react.context\"):60110,x=n?Symbol.for(\"react.concurrent_mode\"):60111,y=n?Symbol.for(\"react.forward_ref\"):60112,z=n?Symbol.for(\"react.suspense\"):60113,A=n?Symbol.for(\"react.memo\"):\n60115,B=n?Symbol.for(\"react.lazy\"):60116,C=\"function\"===typeof Symbol&&Symbol.iterator;function aa(a,b,e,c,d,g,h,f){if(!a){a=void 0;if(void 0===b)a=Error(\"Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.\");else{var l=[e,c,d,g,h,f],m=0;a=Error(b.replace(/%s/g,function(){return l[m++]}));a.name=\"Invariant Violation\"}a.framesToPop=1;throw a;}}\nfunction D(a){for(var b=arguments.length-1,e=\"https://reactjs.org/docs/error-decoder.html?invariant=\"+a,c=0;c<b;c++)e+=\"&args[]=\"+encodeURIComponent(arguments[c+1]);aa(!1,\"Minified React error #\"+a+\"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. \",e)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},F={};\nfunction G(a,b,e){this.props=a;this.context=b;this.refs=F;this.updater=e||E}G.prototype.isReactComponent={};G.prototype.setState=function(a,b){\"object\"!==typeof a&&\"function\"!==typeof a&&null!=a?D(\"85\"):void 0;this.updater.enqueueSetState(this,a,b,\"setState\")};G.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,\"forceUpdate\")};function H(){}H.prototype=G.prototype;function I(a,b,e){this.props=a;this.context=b;this.refs=F;this.updater=e||E}var J=I.prototype=new H;\nJ.constructor=I;k(J,G.prototype);J.isPureReactComponent=!0;var K={current:null,currentDispatcher:null},L=Object.prototype.hasOwnProperty,M={key:!0,ref:!0,__self:!0,__source:!0};\nfunction N(a,b,e){var c=void 0,d={},g=null,h=null;if(null!=b)for(c in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(g=\"\"+b.key),b)L.call(b,c)&&!M.hasOwnProperty(c)&&(d[c]=b[c]);var f=arguments.length-2;if(1===f)d.children=e;else if(1<f){for(var l=Array(f),m=0;m<f;m++)l[m]=arguments[m+2];d.children=l}if(a&&a.defaultProps)for(c in f=a.defaultProps,f)void 0===d[c]&&(d[c]=f[c]);return{$$typeof:p,type:a,key:g,ref:h,props:d,_owner:K.current}}\nfunction ba(a,b){return{$$typeof:p,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function O(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===p}function escape(a){var b={\"=\":\"=0\",\":\":\"=2\"};return\"$\"+(\"\"+a).replace(/[=:]/g,function(a){return b[a]})}var P=/\\/+/g,Q=[];function R(a,b,e,c){if(Q.length){var d=Q.pop();d.result=a;d.keyPrefix=b;d.func=e;d.context=c;d.count=0;return d}return{result:a,keyPrefix:b,func:e,context:c,count:0}}\nfunction S(a){a.result=null;a.keyPrefix=null;a.func=null;a.context=null;a.count=0;10>Q.length&&Q.push(a)}\nfunction T(a,b,e,c){var d=typeof a;if(\"undefined\"===d||\"boolean\"===d)a=null;var g=!1;if(null===a)g=!0;else switch(d){case \"string\":case \"number\":g=!0;break;case \"object\":switch(a.$$typeof){case p:case q:g=!0}}if(g)return e(c,a,\"\"===b?\".\"+U(a,0):b),1;g=0;b=\"\"===b?\".\":b+\":\";if(Array.isArray(a))for(var h=0;h<a.length;h++){d=a[h];var f=b+U(d,h);g+=T(d,f,e,c)}else if(null===a||\"object\"!==typeof a?f=null:(f=C&&a[C]||a[\"@@iterator\"],f=\"function\"===typeof f?f:null),\"function\"===typeof f)for(a=f.call(a),h=\n0;!(d=a.next()).done;)d=d.value,f=b+U(d,h++),g+=T(d,f,e,c);else\"object\"===d&&(e=\"\"+a,D(\"31\",\"[object Object]\"===e?\"object with keys {\"+Object.keys(a).join(\", \")+\"}\":e,\"\"));return g}function V(a,b,e){return null==a?0:T(a,\"\",b,e)}function U(a,b){return\"object\"===typeof a&&null!==a&&null!=a.key?escape(a.key):b.toString(36)}function ca(a,b){a.func.call(a.context,b,a.count++)}\nfunction da(a,b,e){var c=a.result,d=a.keyPrefix;a=a.func.call(a.context,b,a.count++);Array.isArray(a)?W(a,c,e,function(a){return a}):null!=a&&(O(a)&&(a=ba(a,d+(!a.key||b&&b.key===a.key?\"\":(\"\"+a.key).replace(P,\"$&/\")+\"/\")+e)),c.push(a))}function W(a,b,e,c,d){var g=\"\";null!=e&&(g=(\"\"+e).replace(P,\"$&/\")+\"/\");b=R(b,g,c,d);V(a,da,b);S(b)}\nvar X={Children:{map:function(a,b,e){if(null==a)return a;var c=[];W(a,c,null,b,e);return c},forEach:function(a,b,e){if(null==a)return a;b=R(null,null,b,e);V(a,ca,b);S(b)},count:function(a){return V(a,function(){return null},null)},toArray:function(a){var b=[];W(a,b,null,function(a){return a});return b},only:function(a){O(a)?void 0:D(\"143\");return a}},createRef:function(){return{current:null}},Component:G,PureComponent:I,createContext:function(a,b){void 0===b&&(b=null);a={$$typeof:w,_calculateChangedBits:b,\n_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider={$$typeof:v,_context:a};return a.Consumer=a},forwardRef:function(a){return{$$typeof:y,render:a}},lazy:function(a){return{$$typeof:B,_ctor:a,_status:-1,_result:null}},memo:function(a,b){return{$$typeof:A,type:a,compare:void 0===b?null:b}},Fragment:r,StrictMode:t,Suspense:z,createElement:N,cloneElement:function(a,b,e){null===a||void 0===a?D(\"267\",a):void 0;var c=void 0,d=k({},a.props),g=a.key,h=a.ref,f=a._owner;\nif(null!=b){void 0!==b.ref&&(h=b.ref,f=K.current);void 0!==b.key&&(g=\"\"+b.key);var l=void 0;a.type&&a.type.defaultProps&&(l=a.type.defaultProps);for(c in b)L.call(b,c)&&!M.hasOwnProperty(c)&&(d[c]=void 0===b[c]&&void 0!==l?l[c]:b[c])}c=arguments.length-2;if(1===c)d.children=e;else if(1<c){l=Array(c);for(var m=0;m<c;m++)l[m]=arguments[m+2];d.children=l}return{$$typeof:p,type:a.type,key:g,ref:h,props:d,_owner:f}},createFactory:function(a){var b=N.bind(null,a);b.type=a;return b},isValidElement:O,version:\"16.7.0\",\nunstable_ConcurrentMode:x,unstable_Profiler:u,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:K,assign:k}},Y={default:X},Z=Y&&X||Y;module.exports=Z.default||Z;\n","/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n","/** @license React v16.7.0\n * react-dom-server.browser.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';var p=require(\"object-assign\"),q=require(\"react\");function aa(a,b,e,c,g,d,h,f){if(!a){a=void 0;if(void 0===b)a=Error(\"Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.\");else{var B=[e,c,g,d,h,f],A=0;a=Error(b.replace(/%s/g,function(){return B[A++]}));a.name=\"Invariant Violation\"}a.framesToPop=1;throw a;}}\nfunction u(a){for(var b=arguments.length-1,e=\"https://reactjs.org/docs/error-decoder.html?invariant=\"+a,c=0;c<b;c++)e+=\"&args[]=\"+encodeURIComponent(arguments[c+1]);aa(!1,\"Minified React error #\"+a+\"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. \",e)}\nvar w=\"function\"===typeof Symbol&&Symbol.for,y=w?Symbol.for(\"react.portal\"):60106,z=w?Symbol.for(\"react.fragment\"):60107,C=w?Symbol.for(\"react.strict_mode\"):60108,D=w?Symbol.for(\"react.profiler\"):60114,E=w?Symbol.for(\"react.provider\"):60109,F=w?Symbol.for(\"react.context\"):60110,G=w?Symbol.for(\"react.concurrent_mode\"):60111,H=w?Symbol.for(\"react.forward_ref\"):60112,I=w?Symbol.for(\"react.suspense\"):60113,J=w?Symbol.for(\"react.memo\"):60115,L=w?Symbol.for(\"react.lazy\"):60116;\nfunction M(a){if(null==a)return null;if(\"function\"===typeof a)return a.displayName||a.name||null;if(\"string\"===typeof a)return a;switch(a){case G:return\"ConcurrentMode\";case z:return\"Fragment\";case y:return\"Portal\";case D:return\"Profiler\";case C:return\"StrictMode\";case I:return\"Suspense\"}if(\"object\"===typeof a)switch(a.$$typeof){case F:return\"Context.Consumer\";case E:return\"Context.Provider\";case H:var b=a.render;b=b.displayName||b.name||\"\";return a.displayName||(\"\"!==b?\"ForwardRef(\"+b+\")\":\"ForwardRef\");\ncase J:return M(a.type);case L:if(a=1===a._status?a._result:null)return M(a)}return null}var ba=q.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ca={};function N(a,b){for(var e=a._threadCount|0;e<=b;e++)a[e]=a._currentValue2,a._threadCount=e+1}function da(a,b,e){var c=a.contextType;if(\"object\"===typeof c&&null!==c)return N(c,e),c[e];if(a=a.contextTypes){e={};for(var g in a)e[g]=b[g];b=e}else b=ca;return b}for(var O=new Uint16Array(16),P=0;15>P;P++)O[P]=P+1;O[15]=0;\nvar ea=/^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$/,fa=Object.prototype.hasOwnProperty,ha={},ia={};\nfunction ja(a){if(fa.call(ia,a))return!0;if(fa.call(ha,a))return!1;if(ea.test(a))return ia[a]=!0;ha[a]=!0;return!1}function ka(a,b,e,c){if(null!==e&&0===e.type)return!1;switch(typeof b){case \"function\":case \"symbol\":return!0;case \"boolean\":if(c)return!1;if(null!==e)return!e.acceptsBooleans;a=a.toLowerCase().slice(0,5);return\"data-\"!==a&&\"aria-\"!==a;default:return!1}}\nfunction la(a,b,e,c){if(null===b||\"undefined\"===typeof b||ka(a,b,e,c))return!0;if(c)return!1;if(null!==e)switch(e.type){case 3:return!b;case 4:return!1===b;case 5:return isNaN(b);case 6:return isNaN(b)||1>b}return!1}function Q(a,b,e,c,g){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=c;this.attributeNamespace=g;this.mustUseProperty=e;this.propertyName=a;this.type=b}var R={};\n\"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style\".split(\" \").forEach(function(a){R[a]=new Q(a,0,!1,a,null)});[[\"acceptCharset\",\"accept-charset\"],[\"className\",\"class\"],[\"htmlFor\",\"for\"],[\"httpEquiv\",\"http-equiv\"]].forEach(function(a){var b=a[0];R[b]=new Q(b,1,!1,a[1],null)});[\"contentEditable\",\"draggable\",\"spellCheck\",\"value\"].forEach(function(a){R[a]=new Q(a,2,!1,a.toLowerCase(),null)});\n[\"autoReverse\",\"externalResourcesRequired\",\"focusable\",\"preserveAlpha\"].forEach(function(a){R[a]=new Q(a,2,!1,a,null)});\"allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope\".split(\" \").forEach(function(a){R[a]=new Q(a,3,!1,a.toLowerCase(),null)});[\"checked\",\"multiple\",\"muted\",\"selected\"].forEach(function(a){R[a]=new Q(a,3,!0,a,null)});\n[\"capture\",\"download\"].forEach(function(a){R[a]=new Q(a,4,!1,a,null)});[\"cols\",\"rows\",\"size\",\"span\"].forEach(function(a){R[a]=new Q(a,6,!1,a,null)});[\"rowSpan\",\"start\"].forEach(function(a){R[a]=new Q(a,5,!1,a.toLowerCase(),null)});var S=/[\\-:]([a-z])/g;function T(a){return a[1].toUpperCase()}\n\"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height\".split(\" \").forEach(function(a){var b=a.replace(S,\nT);R[b]=new Q(b,1,!1,a,null)});\"xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type\".split(\" \").forEach(function(a){var b=a.replace(S,T);R[b]=new Q(b,1,!1,a,\"http://www.w3.org/1999/xlink\")});[\"xml:base\",\"xml:lang\",\"xml:space\"].forEach(function(a){var b=a.replace(S,T);R[b]=new Q(b,1,!1,a,\"http://www.w3.org/XML/1998/namespace\")});R.tabIndex=new Q(\"tabIndex\",1,!1,\"tabindex\",null);var ma=/[\"'&<>]/;\nfunction U(a){if(\"boolean\"===typeof a||\"number\"===typeof a)return\"\"+a;a=\"\"+a;var b=ma.exec(a);if(b){var e=\"\",c,g=0;for(c=b.index;c<a.length;c++){switch(a.charCodeAt(c)){case 34:b=\"&quot;\";break;case 38:b=\"&amp;\";break;case 39:b=\"&#x27;\";break;case 60:b=\"&lt;\";break;case 62:b=\"&gt;\";break;default:continue}g!==c&&(e+=a.substring(g,c));g=c+1;e+=b}a=g!==c?e+a.substring(g,c):e}return a}var na=!1;function oa(a,b,e,c){for(;na;)na=!1,e=a(b,c);return e}\nvar V=0,pa={readContext:function(a){var b=V;N(a,b);return a[b]}},qa={html:\"http://www.w3.org/1999/xhtml\",mathml:\"http://www.w3.org/1998/Math/MathML\",svg:\"http://www.w3.org/2000/svg\"};function ra(a){switch(a){case \"svg\":return\"http://www.w3.org/2000/svg\";case \"math\":return\"http://www.w3.org/1998/Math/MathML\";default:return\"http://www.w3.org/1999/xhtml\"}}\nvar sa={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},ta=p({menuitem:!0},sa),W={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,\ngridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ua=[\"Webkit\",\"ms\",\"Moz\",\"O\"];Object.keys(W).forEach(function(a){ua.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);W[b]=W[a]})});\nvar va=/([A-Z])/g,wa=/^ms-/,X=q.Children.toArray,Y=ba.ReactCurrentOwner,xa={listing:!0,pre:!0,textarea:!0},ya=/^[a-zA-Z][a-zA-Z:_\\.\\-\\d]*$/,za={},Z={};function Aa(a){if(void 0===a||null===a)return a;var b=\"\";q.Children.forEach(a,function(a){null!=a&&(b+=a)});return b}var Ba=Object.prototype.hasOwnProperty,Ca={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null};function Da(a,b){void 0===a&&u(\"152\",M(b)||\"Component\")}\nfunction Ea(a,b,e){function c(g,c){var d=da(c,b,e),f=[],h=!1,l={isMounted:function(){return!1},enqueueForceUpdate:function(){if(null===f)return null},enqueueReplaceState:function(a,b){h=!0;f=[b]},enqueueSetState:function(a,b){if(null===f)return null;f.push(b)}},k=void 0;if(c.prototype&&c.prototype.isReactComponent){if(k=new c(g.props,d,l),\"function\"===typeof c.getDerivedStateFromProps){var r=c.getDerivedStateFromProps.call(null,g.props,k.state);null!=r&&(k.state=p({},k.state,r))}}else if(k=c(g.props,\nd,l),k=oa(c,g.props,k,d),null==k||null==k.render){a=k;Da(a,c);return}k.props=g.props;k.context=d;k.updater=l;l=k.state;void 0===l&&(k.state=l=null);if(\"function\"===typeof k.UNSAFE_componentWillMount||\"function\"===typeof k.componentWillMount)if(\"function\"===typeof k.componentWillMount&&\"function\"!==typeof c.getDerivedStateFromProps&&k.componentWillMount(),\"function\"===typeof k.UNSAFE_componentWillMount&&\"function\"!==typeof c.getDerivedStateFromProps&&k.UNSAFE_componentWillMount(),f.length){l=f;var m=\nh;f=null;h=!1;if(m&&1===l.length)k.state=l[0];else{r=m?l[0]:k.state;var t=!0;for(m=m?1:0;m<l.length;m++){var v=l[m];v=\"function\"===typeof v?v.call(k,r,g.props,d):v;null!=v&&(t?(t=!1,r=p({},r,v)):p(r,v))}k.state=r}}else f=null;a=k.render();Da(a,c);g=void 0;if(\"function\"===typeof k.getChildContext&&(d=c.childContextTypes,\"object\"===typeof d)){g=k.getChildContext();for(var K in g)K in d?void 0:u(\"108\",M(c)||\"Unknown\",K)}g&&(b=p({},b,g))}for(;q.isValidElement(a);){var g=a,d=g.type;if(\"function\"!==typeof d)break;\nc(g,d)}return{child:a,context:b}}\nvar Fa=function(){function a(b,e){if(!(this instanceof a))throw new TypeError(\"Cannot call a class as a function\");q.isValidElement(b)?b.type!==z?b=[b]:(b=b.props.children,b=q.isValidElement(b)?[b]:X(b)):b=X(b);b={type:null,domNamespace:qa.html,children:b,childIndex:0,context:ca,footer:\"\"};var c=O[0];if(0===c){var g=O;c=g.length;var d=2*c;65536>=d?void 0:u(\"304\");var h=new Uint16Array(d);h.set(g);O=h;O[0]=c+1;for(g=c;g<d-1;g++)O[g]=g+1;O[d-1]=0}else O[0]=O[c];this.threadID=c;this.stack=[b];this.exhausted=\n!1;this.currentSelectValue=null;this.previousWasTextNode=!1;this.makeStaticMarkup=e;this.suspenseDepth=0;this.contextIndex=-1;this.contextStack=[];this.contextValueStack=[]}a.prototype.destroy=function(){if(!this.exhausted){this.exhausted=!0;var a=this.threadID;O[a]=O[0];O[0]=a}};a.prototype.pushProvider=function(a){var b=++this.contextIndex,c=a.type._context,g=this.threadID;N(c,g);var d=c[g];this.contextStack[b]=c;this.contextValueStack[b]=d;c[g]=a.props.value};a.prototype.popProvider=function(){var a=\nthis.contextIndex,e=this.contextStack[a],c=this.contextValueStack[a];this.contextStack[a]=null;this.contextValueStack[a]=null;this.contextIndex--;e[this.threadID]=c};a.prototype.read=function(a){if(this.exhausted)return null;var b=V;V=this.threadID;var c=Y.currentDispatcher;Y.currentDispatcher=pa;try{for(var g=[\"\"],d=!1;g[0].length<a;){if(0===this.stack.length){this.exhausted=!0;var h=this.threadID;O[h]=O[0];O[0]=h;break}var f=this.stack[this.stack.length-1];if(d||f.childIndex>=f.children.length){var B=\nf.footer;\"\"!==B&&(this.previousWasTextNode=!1);this.stack.pop();if(\"select\"===f.type)this.currentSelectValue=null;else if(null!=f.type&&null!=f.type.type&&f.type.type.$$typeof===E)this.popProvider(f.type);else if(f.type===I){this.suspenseDepth--;var A=g.pop();if(d){d=!1;var n=f.fallbackFrame;n?void 0:u(\"303\");this.stack.push(n);continue}else g[this.suspenseDepth]+=A}g[this.suspenseDepth]+=B}else{var l=f.children[f.childIndex++],k=\"\";try{k+=this.render(l,f.context,f.domNamespace)}catch(r){throw r;\n}finally{}g.length<=this.suspenseDepth&&g.push(\"\");g[this.suspenseDepth]+=k}}return g[0]}finally{Y.currentDispatcher=c,V=b}};a.prototype.render=function(a,e,c){if(\"string\"===typeof a||\"number\"===typeof a){c=\"\"+a;if(\"\"===c)return\"\";if(this.makeStaticMarkup)return U(c);if(this.previousWasTextNode)return\"\\x3c!-- --\\x3e\"+U(c);this.previousWasTextNode=!0;return U(c)}e=Ea(a,e,this.threadID);a=e.child;e=e.context;if(null===a||!1===a)return\"\";if(!q.isValidElement(a)){if(null!=a&&null!=a.$$typeof){var b=a.$$typeof;\nb===y?u(\"257\"):void 0;u(\"258\",b.toString())}a=X(a);this.stack.push({type:null,domNamespace:c,children:a,childIndex:0,context:e,footer:\"\"});return\"\"}b=a.type;if(\"string\"===typeof b)return this.renderDOM(a,e,c);switch(b){case C:case G:case D:case z:return a=X(a.props.children),this.stack.push({type:null,domNamespace:c,children:a,childIndex:0,context:e,footer:\"\"}),\"\";case I:u(\"294\")}if(\"object\"===typeof b&&null!==b)switch(b.$$typeof){case H:var d=b.render(a.props,a.ref);d=oa(b.render,a.props,d,a.ref);\nd=X(d);this.stack.push({type:null,domNamespace:c,children:d,childIndex:0,context:e,footer:\"\"});return\"\";case J:return a=[q.createElement(b.type,p({ref:a.ref},a.props))],this.stack.push({type:null,domNamespace:c,children:a,childIndex:0,context:e,footer:\"\"}),\"\";case E:return b=X(a.props.children),c={type:a,domNamespace:c,children:b,childIndex:0,context:e,footer:\"\"},this.pushProvider(a),this.stack.push(c),\"\";case F:b=a.type;d=a.props;var h=this.threadID;N(b,h);b=X(d.children(b[h]));this.stack.push({type:a,\ndomNamespace:c,children:b,childIndex:0,context:e,footer:\"\"});return\"\";case L:u(\"295\")}u(\"130\",null==b?b:typeof b,\"\")};a.prototype.renderDOM=function(a,e,c){var b=a.type.toLowerCase();c===qa.html&&ra(b);za.hasOwnProperty(b)||(ya.test(b)?void 0:u(\"65\",b),za[b]=!0);var d=a.props;if(\"input\"===b)d=p({type:void 0},d,{defaultChecked:void 0,defaultValue:void 0,value:null!=d.value?d.value:d.defaultValue,checked:null!=d.checked?d.checked:d.defaultChecked});else if(\"textarea\"===b){var h=d.value;if(null==h){h=\nd.defaultValue;var f=d.children;null!=f&&(null!=h?u(\"92\"):void 0,Array.isArray(f)&&(1>=f.length?void 0:u(\"93\"),f=f[0]),h=\"\"+f);null==h&&(h=\"\")}d=p({},d,{value:void 0,children:\"\"+h})}else if(\"select\"===b)this.currentSelectValue=null!=d.value?d.value:d.defaultValue,d=p({},d,{value:void 0});else if(\"option\"===b){f=this.currentSelectValue;var B=Aa(d.children);if(null!=f){var A=null!=d.value?d.value+\"\":B;h=!1;if(Array.isArray(f))for(var n=0;n<f.length;n++){if(\"\"+f[n]===A){h=!0;break}}else h=\"\"+f===A;d=\np({selected:void 0,children:void 0},d,{selected:h,children:B})}}if(h=d)ta[b]&&(null!=h.children||null!=h.dangerouslySetInnerHTML?u(\"137\",b,\"\"):void 0),null!=h.dangerouslySetInnerHTML&&(null!=h.children?u(\"60\"):void 0,\"object\"===typeof h.dangerouslySetInnerHTML&&\"__html\"in h.dangerouslySetInnerHTML?void 0:u(\"61\")),null!=h.style&&\"object\"!==typeof h.style?u(\"62\",\"\"):void 0;h=d;f=this.makeStaticMarkup;B=1===this.stack.length;A=\"<\"+a.type;for(x in h)if(Ba.call(h,x)){var l=h[x];if(null!=l){if(\"style\"===\nx){n=void 0;var k=\"\",r=\"\";for(n in l)if(l.hasOwnProperty(n)){var m=0===n.indexOf(\"--\"),t=l[n];if(null!=t){var v=n;if(Z.hasOwnProperty(v))v=Z[v];else{var K=v.replace(va,\"-$1\").toLowerCase().replace(wa,\"-ms-\");v=Z[v]=K}k+=r+v+\":\";r=n;m=null==t||\"boolean\"===typeof t||\"\"===t?\"\":m||\"number\"!==typeof t||0===t||W.hasOwnProperty(r)&&W[r]?(\"\"+t).trim():t+\"px\";k+=m;r=\";\"}}l=k||null}n=null;b:if(m=b,t=h,-1===m.indexOf(\"-\"))m=\"string\"===typeof t.is;else switch(m){case \"annotation-xml\":case \"color-profile\":case \"font-face\":case \"font-face-src\":case \"font-face-uri\":case \"font-face-format\":case \"font-face-name\":case \"missing-glyph\":m=\n!1;break b;default:m=!0}if(m)Ca.hasOwnProperty(x)||(n=x,n=ja(n)&&null!=l?n+\"=\"+('\"'+U(l)+'\"'):\"\");else{m=x;n=l;l=R.hasOwnProperty(m)?R[m]:null;if(t=\"style\"!==m)t=null!==l?0===l.type:!(2<m.length)||\"o\"!==m[0]&&\"O\"!==m[0]||\"n\"!==m[1]&&\"N\"!==m[1]?!1:!0;t||la(m,n,l,!1)?n=\"\":null!==l?(m=l.attributeName,l=l.type,n=3===l||4===l&&!0===n?m+'=\"\"':m+\"=\"+('\"'+U(n)+'\"')):n=ja(m)?m+\"=\"+('\"'+U(n)+'\"'):\"\"}n&&(A+=\" \"+n)}}f||B&&(A+=' data-reactroot=\"\"');var x=A;h=\"\";sa.hasOwnProperty(b)?x+=\"/>\":(x+=\">\",h=\"</\"+a.type+\n\">\");a:{f=d.dangerouslySetInnerHTML;if(null!=f){if(null!=f.__html){f=f.__html;break a}}else if(f=d.children,\"string\"===typeof f||\"number\"===typeof f){f=U(f);break a}f=null}null!=f?(d=[],xa[b]&&\"\\n\"===f.charAt(0)&&(x+=\"\\n\"),x+=f):d=X(d.children);a=a.type;c=null==c||\"http://www.w3.org/1999/xhtml\"===c?ra(a):\"http://www.w3.org/2000/svg\"===c&&\"foreignObject\"===a?\"http://www.w3.org/1999/xhtml\":c;this.stack.push({domNamespace:c,type:b,children:d,childIndex:0,context:e,footer:h});this.previousWasTextNode=\n!1;return x};return a}(),Ga={renderToString:function(a){a=new Fa(a,!1);try{return a.read(Infinity)}finally{a.destroy()}},renderToStaticMarkup:function(a){a=new Fa(a,!0);try{return a.read(Infinity)}finally{a.destroy()}},renderToNodeStream:function(){u(\"207\")},renderToStaticNodeStream:function(){u(\"208\")},version:\"16.7.0\"},Ha={default:Ga},Ia=Ha&&Ga||Ha;module.exports=Ia.default||Ia;\n","/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n","/**\n * Baloon block type\n *\n */\n\nconst {__} = wp.i18n; // Import __() from wp.i18n\nconst { registerBlockType } = wp.blocks; // Import registerBlockType() from wp.blocks\nconst {RangeControl, RadioControl, PanelBody, Button} = wp.components;\nconst { Fragment } = wp.element;\nconst {RichText, InspectorControls, MediaUpload, ColorPalette} = wp.editor;\nconst BlockIcon = (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"576\" height=\"512\" viewBox=\"0 0 576 512\">\n\t\t<path d=\"M544 450.583c0 22.75 13.014 42.454 32 52.092v7.969c-5.313 0.727-10.736 1.112-16.25 1.112-34.004 0-64.674-14.264-86.361-37.132-13.111 3.491-27.001 5.376-41.389 5.376-79.529 0-144-57.308-144-128s64.471-128 144-128c79.529 0 144 57.308 144 128 0 27.674-9.882 53.296-26.678 74.233-3.412 7.412-5.322 15.656-5.322 24.35zM115.339 110.593c-33.107 26.899-51.339 61.492-51.339 97.407 0 20.149 5.594 39.689 16.626 58.075 11.376 18.96 28.491 36.293 49.494 50.126 15.178 9.996 25.39 25.974 28.088 43.947 0.9 5.992 1.464 12.044 1.685 18.062 3.735-3.097 7.375-6.423 10.94-9.988 12.077-12.076 28.39-18.745 45.251-18.745 2.684 0 5.381 0.168 8.078 0.512 10.474 1.331 21.172 2.008 31.797 2.010v64c-13.564-0.001-26.877-0.869-39.871-2.521-54.989 54.989-120.625 64.85-184.088 66.298v-13.458c34.268-16.789 64-47.37 64-82.318 0-4.877-0.379-9.665-1.082-14.348-57.898-38.132-94.918-96.377-94.918-161.652 0-114.875 114.615-208 256-208 139.229 0 252.496 90.307 255.918 202.76-20.548-9.158-42.92-14.711-66.131-16.289-5.765-28.034-22.701-54.408-49.126-75.878-17.661-14.349-38.458-25.695-61.814-33.722-24.853-8.54-51.38-12.871-78.847-12.871s-53.994 4.331-78.847 12.871c-23.356 8.027-44.153 19.372-61.814 33.722z\"/>\n\t</svg>\n);\n\n/**\n * Register: aa Gutenberg Block.\n *\n * Registers a new block provided a unique name and an object defining its\n * behavior. Once registered, the block is made editor as an option to any\n * editor interface where blocks are implemented.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/\n * @param {string} name Block name.\n * @param {Object} settings Block settings.\n * @return {?WPBlock} The block, if it has been successfully\n * registered; otherwise `undefined`.\n */\nregisterBlockType('vk-blocks/balloon', {\n\t// Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.\n title: __('Ballon', 'vk-blocks'), // Block title.\n\ticon: BlockIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.\n\tcategory: 'vk-blocks-cat', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.\n\tattributes: {\n\t\tcontent: {\n\t\t\tsource: 'html',\n selector: 'p',\n\t\t},\n balloonName: {\n source: 'html',\n selector: 'figcaption',\n },\n balloonType: {\n type: 'string',\n default: 'type-serif',\n },\n\t\tballoonBgColor: {\n\t\t\ttype: 'string',\n\t\t},\n\t\tballoonAlign: {\n\t\t\ttype: 'string',\n\t\t\tdefault: 'position-left',\n\t\t},\n\t\tIconImage: {\n\t\t\ttype: 'string',\n\t\t\tdefault: null, // no image by default!\n\t\t}\n\t},\n\n\t/**\n\t * The edit function describes the structure of your block in the context of the editor.\n\t * This represents what the editor will render when the block is used.\n\t *\n\t * The \"edit\" property must be a valid function.\n\t *\n\t * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/\n\t */\n\tedit( { attributes, className, setAttributes } ) {\n\t\tconst {\n\t\t\tcontent,\n balloonName,\n balloonType,\n balloonBgColor,\n\t\t\tballoonAlign,\n\t\t\tIconImage,\n\t\t} = attributes;\n\n return (\n\t\t\t<Fragment>\n\t\t\t\t<InspectorControls>\n\t\t\t\t\t<PanelBody title={__('Balloon setting', 'vk-blocks')}>\n\t\t\t\t\t\t<RadioControl\n\t\t\t\t\t\t\tlabel={__('Position', 'vk-blocks')}\n\t\t\t\t\t\t\thelp={__('Please specify the layout of the balloon.', 'vk-blocks')}\n\t\t\t\t\t\t\tselected={ balloonAlign }\n\t\t\t\t\t\t\toptions={ [\n\t\t\t\t\t\t\t\t{ label: __('Left', 'vk-blocks'), value: 'position-left' },\n\t\t\t\t\t\t\t\t{ label: __('Right', 'vk-blocks'), value: 'position-right' },\n\t\t\t\t\t\t\t] }\n\t\t\t\t\t\t\tonChange={ ( value ) => setAttributes( { balloonAlign: value } ) }\n\t\t\t\t\t\t/>\n\t\t <RadioControl\n\t\t label={__('Type', 'vk-blocks')}\n\t\t help={__('Please select the type of balloon.', 'vk-blocks')}\n\t\t selected={ balloonType }\n\t\t options={ [\n\t\t { label: __('Serif', 'vk-blocks'), value: 'type-serif' },\n\t\t { label: __('Thinking', 'vk-blocks'), value: 'type-think' }\n\t\t ] }\n\t\t onChange={ ( value ) => setAttributes( { balloonType: value } ) }\n\t\t />\n\t\t <ColorPalette\n\t\t value={balloonBgColor}\n\t\t onChange={(value) => setAttributes({balloonBgColor: value})}\n\t\t />\n\t\t\t\t\t</PanelBody>\n\t\t\t\t</InspectorControls>\n\n\t\t\t\t<div className={ `${ className } vk_balloon vk_balloon-${ balloonAlign } vk_balloon-${ balloonType }` }>\n\t\t\t\t\t<div className={ 'vk_balloon_icon' }>\n\t\t\t\t\t\t<MediaUpload\n\t\t\t\t\t\t\tonSelect={ (value) => setAttributes( { IconImage: value.sizes.full.url } ) }\n\t\t\t\t\t\t\ttype=\"image\"\n\t\t\t\t\t\t\tclassName={ 'vk_balloon_icon_image' }\n\t\t\t\t\t\t\tvalue={ IconImage }\n\t\t\t\t\t\t\trender={ ( { open } ) => (\n\t\t\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\t\t\tonClick={ open }\n\t\t\t\t\t\t\t\t\tclassName={ IconImage ? 'image-button' : 'button button-large' }\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{ ! IconImage ? __('Select image', 'vk-blocks') : <img className={ 'vk_balloon_icon_image' } src={ IconImage } alt={__('Upload image', 'vk-blocks') } /> }\n\t\t\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t/>\n <RichText\n tagName=\"figcaption\"\n\t\t\t\t\t\t\tclassName={ 'vk_balloon_icon_name' }\n onChange={ ( value ) => setAttributes( { balloonName: value } ) }\n value={ balloonName }\n placeholder={__('Icon Name', 'vk-blocks') }\n />\n\t\t\t\t\t</div>\n\t\t\t\t\t<RichText\n\t\t\t\t\t\tstyle={ { background: balloonBgColor, border: balloonBgColor } }\n\t\t\t\t\t\ttagName=\"p\"\n\t\t\t\t\t\tclassName={ 'vk_balloon_content' }\n\t\t\t\t\t\tonChange={ ( value ) => setAttributes( { content: value } ) }\n\t\t\t\t\t\tvalue={ content }\n\t\t\t\t\t\tplaceholder={__('Input text', 'vk-blocks') }\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t</Fragment>\n );\n\t},\n\n\n\t/**\n\t * The save function defin className }> which the different attributes should be combined\n\t * into the final markup, which is then serialized by Gutenberg into post_content.\n\t *\n\t * The \"save\" property must be specified and must be a valid function.\n\t *\n\t * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/\n\t */\n\tsave( { attributes, className } ) {\n\t\tconst {\n\t\t\tcontent,\n balloonName,\n balloonType,\n balloonBgColor,\n\t\t\tballoonAlign,\n\t\t\tIconImage,\n\t\t} = attributes;\n\n\t\treturn (\n\t\t\t<div className={ `vk_balloon vk_balloon-${ balloonAlign } vk_balloon-${ balloonType }` }>\n\t\t\t\t<div className={ 'vk_balloon_icon' }>\n\t\t\t\t\t{ IconImage ?\n\t\t\t\t\t\t<figure>\n\t\t\t\t\t\t\t<img\n\t\t\t\t\t\t\t\tclassName={ 'vk_balloon_icon_image' }\n\t\t\t\t\t\t\t\tsrc={ IconImage }\n\t\t\t\t\t\t\t\talt=''\n\t\t\t\t\t\t\t/>\n <RichText.Content\n tagName=\"figcaption\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tclassName={ 'vk_balloon_icon_name' }\n value={ balloonName }\n />\n\t\t\t\t\t\t</figure> : '' }\n\t\t\t\t</div>\n\t\t\t\t<RichText.Content\n\t\t\t\t\tclassName={ 'vk_balloon_content' }\n\t\t\t\t\tstyle={ { background: balloonBgColor, border: balloonBgColor } }\n\t\t\t\t\ttagName=\"p\"\n\t\t\t\t\tvalue={ content }\n\t\t\t\t/>\n\t\t\t</div>\n\t\t);\n\t},\n});\n","import ReactDOMServer from 'react-dom/server';\n\nconst {__} = wp.i18n; // Import __() from wp.i18n\n\nclass TableOfContents {\n\n /**\n * Get hTag's NodeList included in target class's element.\n * @param targetClass\n * @returns {*} NodeListOf<Element> or false\n */\n getDom(targetClass) {\n let editor = document.getElementsByClassName(targetClass);\n if (editor[0] === undefined) {\n return false;\n } else {\n return editor[0].querySelectorAll(\"h1, h2, h3, h4, h5, h6\");\n }\n }\n\n /**\n * Get array of hTag's innerText and tagName.\n * @returns {Array}\n */\n getHtagsInEditor() {\n\n let nodeList_raw = this.getDom('edit-post-visual-editor');\n\n if(nodeList_raw === undefined){\n return false;\n }\n\n let nodeList = Array.from(nodeList_raw);\n\n let sourceOfTocHtml = [];\n\n nodeList.forEach(function (item, index) {\n\n sourceOfTocHtml[index] = {\n 'tagName': nodeList[index]['tagName'],\n 'innerText': nodeList[index]['innerText']\n }\n });\n\n return sourceOfTocHtml;\n };\n\n /**\n * Return Html of Toc block.\n * @param source\n * @param style\n * @param className\n * @returns {*}\n */\n returnHtml(source, style, className) {\n\n if (!className) {\n className = 'vk_tableOfContents';\n } else {\n className = className + ' vk_tableOfContents';\n }\n\n\t\t\t\tif ( style ){\n\t\t\t\t\tclassName = className + ' vk_tableOfContents-style-' + style;\n\t\t\t\t}\n\n let listClassName = 'vk_tableOfContents_list_item';\n let countSeparater = '.';\n let h2Count = 0;\n let h3Count = 0;\n let h4Count = 0;\n let h5Count = 0;\n let h6Count = 0;\n const fixZero = (count) => {\n if ( count === 0 ){\n return 1;\n } else {\n return count;\n }\n };\n\n\n let returnHtml = <div className={className}>\n <div className={'vk_tableOfContents_title'}>{__('Table of Contents', 'vk-blocks')}</div>\n <ul className={'vk_tableOfContents_list'}>\n {source.map((data) => {\n\n let baseClass = 'vk_tableOfContents_list_item';\n\n let level = Number(data.tagName.replace( /H/g , '' ));\n\n let preNumber = '';\n\n if ( level === 2 ){\n h2Count++;\n preNumber = h2Count;\n\n // Reset\n h3Count = 0;\n h4Count = 0;\n h5Count = 0;\n h6Count = 0;\n }\n\n if ( level === 3 ){\n h3Count++;\n preNumber = h2Count + countSeparater + h3Count;\n\n // Reset\n h4Count = 0;\n h5Count = 0;\n h6Count = 0;\n }\n\n if ( level === 4 ){\n h4Count++;\n preNumber = h2Count + countSeparater + fixZero(h3Count) + countSeparater + h4Count;\n\n // Reset\n h5Count = 0;\n h6Count = 0;\n }\n\n if ( level === 5 ){\n h5Count++;\n preNumber = h2Count + countSeparater + fixZero(h3Count) + countSeparater + fixZero(h4Count) + countSeparater + h5Count;\n\n // Reset\n h6Count = 0;\n }\n\n if ( level === 6 ){\n h6Count++;\n preNumber = h2Count + countSeparater + fixZero(h3Count) + countSeparater + fixZero(h4Count) + countSeparater + fixZero(h5Count) + countSeparater + h6Count;\n\n }\n\n preNumber = preNumber + '. ';\n\n return <li className={`${baseClass} ${baseClass}-h-${level}`}>\n <a href=\"\" className={`${baseClass}_link`}>\n <span className={`${baseClass}_link_preNumber`}>{preNumber}</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{data.innerText}\n </a>\n </li>;\n })}\n </ul>\n </div>;\n\n return ReactDOMServer.renderToString(returnHtml);\n }\n}\n\nexport default TableOfContents;\n","/**\n * table-of-contents block type\n *\n */\nimport React from \"react\";\nimport {schema} from './schema';\nimport TableOfContents from './TableOfContents';\n\nconst {__} = wp.i18n; // Import __() from wp.i18n\nconst {registerBlockType} = wp.blocks; // Import registerBlockType() from wp.blocks\nconst {ServerSideRender, PanelBody, SelectControl,BaseControl} = wp.components;\nconst {Fragment} = wp.element;\nconst {subscribe, select, dispatch} = wp.data;\nconst {RichText, InspectorControls, MediaUpload, ColorPalette} = wp.editor;\nconst BlockIcon = (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"576\" height=\"512\" viewBox=\"0 0 576 512\">\n\t<g>\n\t\t<g>\n\t\t\t<path d=\"M199.4,402.1l266.4,0c7.1,0,12.8-5.9,12.8-12.8l0-25.6c0-7.1-5.9-12.8-12.8-12.8l-266.4,0c-7.1,0-12.8,5.9-12.8,12.8\n\t\t\t\tl0,25.6C186.6,396.3,192.5,402.1,199.4,402.1z\"/>\n\t\t\t<path d=\"M199.4,323l266.4,0c7.1,0,12.8-5.9,12.8-12.8v-25.6c0-7.1-5.9-12.8-12.8-12.8l-266.4,0c-7.1,0-12.8,5.9-12.8,12.8l0,25.6\n\t\t\t\tC186.6,317.3,192.5,323,199.4,323z\"/>\n\t\t\t<path d=\"M199.4,243.8l266.4,0c7.1,0,12.8-5.9,12.8-12.8v-25.6c0-7.1-5.9-12.8-12.8-12.8l-266.4,0c-7.1,0-12.8,5.9-12.8,12.8\n\t\t\t\tl0,25.6C186.6,238.1,192.5,243.8,199.4,243.8z\"/>\n\t\t\t<path d=\"M110.2,402.1l30.8,0c7.1,0,12.8-5.9,12.8-12.8l0-25.6c0-7.1-5.9-12.8-12.8-12.8h-30.8c-7.1,0-12.8,5.9-12.8,12.8l0,25.6\n\t\t\t\tC97.4,396.3,103.3,402.1,110.2,402.1z\"/>\n\t\t\t<path d=\"M110.2,323h30.8c7.1,0,12.8-5.9,12.8-12.8v-25.6c0-7.1-5.9-12.8-12.8-12.8h-30.8c-7.1,0-12.8,5.9-12.8,12.8l0,25.6\n\t\t\t\tC97.4,317.3,103.3,323,110.2,323z\"/>\n\t\t\t<path d=\"M110.2,243.8l30.8,0c7.1,0,12.8-5.9,12.8-12.8l0-25.6c0-7.1-5.9-12.8-12.8-12.8l-30.8,0c-7.1,0-12.8,5.9-12.8,12.8l0,25.6\n\t\t\t\tC97.4,238.1,103.3,243.8,110.2,243.8z\"/>\n\t\t</g>\n\t\t<path d=\"M159.7,158.5l256.7,0c5.3,0,9.9-4.6,9.9-9.9l0-28.8c0-5.3-4.6-9.9-9.9-9.9l-256.7,0c-5.3,0-9.9,4.6-9.9,9.9l0,28.8\n\t\t\tC149.8,154.2,154.3,158.5,159.7,158.5z\"/>\n\t</g>\n\t<path d=\"M528,32H48C21.5,32,0,53.5,0,80v352c0,26.5,21.5,48,48,48h480c26.5,0,48-21.5,48-48V80C576,53.5,554.5,32,528,32z M528,432\n\t\tH48V80h480V432z\"/>\n\t</svg>\n);\n\n/**\n * Register: a Gutenberg Block.\n *\n * Registers a new block provided a unique name and an object defining its\n * behavior. Once registered, the block is made editor as an option to any\n * editor interface where blocks are implemented.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/\n * @param {string} name Block name.\n * @param {Object} settings Block settings.\n * @return {?WPBlock} The block, if it has been successfully\n * registered; otherwise `undefined`.\n */\nregisterBlockType('vk-blocks/table-of-contents', {\n // Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.\n title: __('Table of Contents', 'vk-blocks'), // Block title.\n icon: BlockIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.\n category: 'vk-blocks-cat', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.\n attributes: schema,\n\n /**\n * The edit function describes the structure of your block in the context of the editor.\n * This represents what the editor will render when the block is used.\n *\n * The \"edit\" property must be a valid function.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/\n */\n edit({attributes, setAttributes, className, clientId}) {\n const {\n style,\n } = attributes;\n\n const toc = new TableOfContents();\n const render = () =>{\n let source = toc.getHtagsInEditor();\n let html = toc.returnHtml(source, style, className);\n setAttributes({renderHtml: html});\n };\n subscribe(() => {\n const selectedBlock = select(\"core/block-editor\").getSelectedBlock();\n if (selectedBlock) {\n let regex = /heading/g;\n let found = selectedBlock.name.match(regex);\n if (found) {\n render();\n }\n }\n });\n\n render();\n\n return (\n <Fragment>\n <InspectorControls>\n <PanelBody>\n <BaseControl\n label={__('Style', 'vk-blocks')}\n help={``}\n >\n <SelectControl\n value={style}\n onChange={(value) => setAttributes({style: value})}\n options={[\n {\n value: 'default',\n label: __('Default', 'vk-blocks'),\n },\n {\n value: '',\n label: __('No frame', 'vk-blocks'),\n }\n ]}\n />\n </BaseControl>\n </PanelBody>\n </InspectorControls>\n {\n vk_blocks_check.is_pro\n ?\n <ServerSideRender\n block='vk-blocks/table-of-contents'\n attributes={attributes}\n />\n :\n <div>{__('This block is only for users who bought Lightning Pro.', 'vk-blocks')}</div>\n }\n </Fragment>\n );\n },\n\n /**\n * The save function defin className }> which the different attributes should be combined\n * into the final markup, which is then serialized by Gutenberg into post_content.\n *\n * The \"save\" property must be specified and must be a valid function.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/\n */\n save() {\n return null;\n },\n\n});\n","export const schema = {\n style:{\n type: 'string',\n default: 'default',\n },\n renderHtml:{\n type: 'string',\n default: '',\n }\n};\n","import React from 'react';\n\nconst {__} = wp.i18n; // Import __() from wp.i18n\nconst {RichText, MediaUpload} = wp.editor;\nconst {Button} = wp.components;\n\nexport class NewComponent extends React.Component {\n\n render() {\n\n let {\n vk_staff_text_name,\n vk_staff_text_caption,\n vk_staff_text_role,\n vk_staff_text_profileTitle,\n vk_staff_text_profileText,\n vk_staff_photo_image,\n vk_staff_photo_image_alt,\n vk_staff_layout,\n vk_staff_nameColor,\n vk_staff_captionColor,\n vk_staff_positionColor,\n vk_staff_profileTitleColor,\n vk_staff_profileTextColor,\n vk_staff_photoBorder\n } = this.props.attributes;\n let setAttributes = this.props.setAttributes;\n let className = this.props.className;\n let for_ = this.props.for_;\n let returnELm = '';\n\n if (for_ === 'edit') {\n\n returnELm = <div className={`${className} vk_staff vk_staff-layout-${vk_staff_layout}`}>\n <div className={`vk_staff_text`}>\n <RichText\n tagName=\"h3\"\n className={'vk_staff_text_name'}\n style={{color: vk_staff_nameColor}}\n onChange={(value) => setAttributes({vk_staff_text_name: value})}\n value={vk_staff_text_name}\n placeholder={__('Your Name', 'vk-blocks')}\n />\n <RichText\n tagName=\"p\"\n className={'vk_staff_text_caption'}\n style={{color: vk_staff_captionColor}}\n onChange={(value) => setAttributes({vk_staff_text_caption: value})}\n value={vk_staff_text_caption}\n placeholder={__('Caption', 'vk-blocks')}\n />\n <RichText\n tagName=\"p\"\n className={'vk_staff_text_role'}\n style={{color: vk_staff_positionColor}}\n onChange={(value) => setAttributes({vk_staff_text_role: value})}\n value={vk_staff_text_role}\n placeholder={__('Role position', 'vk-blocks')}\n />\n <RichText\n tagName=\"h4\"\n className={'vk_staff_text_profileTitle'}\n style={{color: vk_staff_profileTitleColor}}\n onChange={(value) => setAttributes({vk_staff_text_profileTitle: value})}\n value={vk_staff_text_profileTitle}\n placeholder={__('Profile title', 'vk-blocks')}\n />\n <RichText\n tagName=\"p\"\n className={'vk_staff_text_profileText'}\n style={{color: vk_staff_profileTextColor}}\n onChange={(value) => setAttributes({vk_staff_text_profileText: value})}\n value={vk_staff_text_profileText}\n placeholder={__('Profile text', 'vk-blocks')}\n />\n </div>\n <div className={`vk_staff_photo vk_staff_photo-border-${vk_staff_photoBorder}`}>\n <MediaUpload\n onSelect={(value) => setAttributes({vk_staff_photo_image: value.sizes.full.url})}\n type=\"image\"\n className={'vk_staff_photo_image'}\n value={vk_staff_photo_image}\n render={({open}) => (\n <Button\n onClick={open}\n className={vk_staff_photo_image ? 'image-button' : 'button button-large'}\n >\n {!vk_staff_photo_image ? __('Select image', 'vk-blocks') :\n <img className={`vk_staff_photo_image`} src={vk_staff_photo_image}\n alt={__(vk_staff_photo_image_alt, 'vk-blocks')}/>}\n </Button>\n )}\n />\n </div>\n </div>;\n\n } else if (for_ === 'save') {\n\n returnELm = <div className={`${className} vk_staff vk_staff-layout-${vk_staff_layout}`}>\n <div className={`vk_staff_text`}>\n <RichText.Content\n tagName=\"h3\"\n className={'vk_staff_text_name'}\n style={{color: vk_staff_nameColor}}\n value={vk_staff_text_name}/>\n <RichText.Content\n tagName=\"p\"\n className={'vk_staff_text_caption'}\n style={{color: vk_staff_captionColor}}\n value={vk_staff_text_caption}\n />\n <RichText.Content\n tagName=\"p\"\n className={'vk_staff_text_role'}\n style={{color: vk_staff_positionColor}}\n value={vk_staff_text_role}\n />\n <RichText.Content\n tagName=\"h4\"\n className={'vk_staff_text_profileTitle'}\n style={{color: vk_staff_profileTitleColor}}\n value={vk_staff_text_profileTitle}\n />\n <RichText.Content\n tagName=\"p\"\n className={'vk_staff_text_profileText'}\n style={{color: vk_staff_profileTextColor}}\n value={vk_staff_text_profileText}\n />\n </div>\n {vk_staff_photo_image ?\n <div className={`vk_staff_photo vk_staff_photo-border-${vk_staff_photoBorder}`}>\n <img className={`vk_staff_photo_image`} src={vk_staff_photo_image} alt={\n vk_staff_photo_image_alt ? __(vk_staff_photo_image_alt, 'vk-blocks')\n :\n \"\"\n }/>\n </div>\n : ''\n }\n </div>;\n }\n return (returnELm);\n }\n}\n","/**\n * staff block type\n *\n */\nimport React from \"react\";\nimport {NewComponent} from \"./component\";\nimport {schema} from './schema';\n\nconst {__} = wp.i18n; // Import __() from wp.i18n\nconst {registerBlockType} = wp.blocks; // Import registerBlockType() from wp.blocks\nconst {TextControl, PanelBody, BaseControl, SelectControl} = wp.components;\nconst {Fragment} = wp.element;\nconst {InspectorControls, ColorPalette} = wp.editor;\nconst BlockIcon = (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"576\" height=\"512\" viewBox=\"0 0 576 512\">\n\t<path d=\"M528,34H48C21.5,34,0,55.5,0,82v352c0,26.5,21.5,48,48,48h480c26.5,0,48-21.5,48-48V82C576,55.5,554.5,34,528,34z M528,434\n\t\tH48V82h480V434z\"/>\n\t<path d=\"M407.6,241.9c30.9,0,55.9-25.1,55.9-55.9S438.5,130,407.6,130s-55.9,25.1-55.9,55.9S376.8,241.9,407.6,241.9z\"/>\n\t<path d=\"M329.3,353.8h156.6c10.8,0,19.6-7.5,19.6-16.8v-16.8c0-27.8-26.3-50.3-58.7-50.3c-9.4,0-16.3,7-39.2,7\n\t\tc-23.5,0-29.2-7-39.2-7c-32.4,0-58.7,22.6-58.7,50.3V337C309.7,346.2,318.5,353.8,329.3,353.8z\"/>\n\t<path d=\"M96.2,395h161.1c4,0,7.2-3.3,7.2-7.2v-14.4c0-4-3.3-7.2-7.2-7.2H96.2c-4,0-7.2,3.3-7.2,7.2v14.4C89,391.7,92.3,395,96.2,395\n\t\tz\"/>\n\t<path d=\"M96.2,339.2h161.1c4,0,7.2-3.3,7.2-7.2v-14.4c0-4-3.3-7.2-7.2-7.2H96.2c-4,0-7.2,3.3-7.2,7.2V332\n\t\tC89,336,92.3,339.2,96.2,339.2z\"/>\n\t<path d=\"M96.2,283.4h161.1c4,0,7.2-3.3,7.2-7.2v-14.4c0-4-3.3-7.2-7.2-7.2H96.2c-4,0-7.2,3.3-7.2,7.2v14.4\n\t\tC89,280.2,92.3,283.4,96.2,283.4z\"/>\n\t<path d=\"M92.9,219.1h166.3c2.1,0,3.9-1.8,3.9-3.9v-7.8c0-2.1-1.8-3.9-3.9-3.9H92.9c-2.1,0-3.9,1.8-3.9,3.9v7.8\n\t\tC89,217.4,90.8,219.1,92.9,219.1z\"/>\n\t<path d=\"M99.7,177.6h22.4c5.9,0,10.7-4.8,10.7-10.7v-21.4c0-5.9-4.8-10.7-10.7-10.7H99.7c-5.9,0-10.7,4.8-10.7,10.7v21.4\n\t\tC89,172.8,93.8,177.6,99.7,177.6z\"/>\n\t<path d=\"M157,177.6h22.4c5.9,0,10.7-4.8,10.7-10.7v-21.4c0-5.9-4.8-10.7-10.7-10.7H157c-5.9,0-10.7,4.8-10.7,10.7v21.4\n\t\tC146.3,172.8,151.1,177.6,157,177.6z\"/>\n\t<path d=\"M214.2,177.6h22.4c5.9,0,10.7-4.8,10.7-10.7v-21.4c0-5.9-4.8-10.7-10.7-10.7h-22.4c-5.9,0-10.7,4.8-10.7,10.7v21.4\n\t\tC203.5,172.8,208.4,177.6,214.2,177.6z\"/>\n\t<path d=\"M271.5,177.6h22.4c5.9,0,10.7-4.8,10.7-10.7v-21.4c0-5.9-4.8-10.7-10.7-10.7h-22.4c-5.9,0-10.7,4.8-10.7,10.7v21.4\n\t\tC260.8,172.8,265.6,177.6,271.5,177.6z\"/>\n\t</svg>\n);\n/**\n * Register: a Gutenberg Block.\n *\n * Registers a new block provided a unique name and an object defining its\n * behavior. Once registered, the block is made editor as an option to any\n * editor interface where blocks are implemented.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/\n * @param {string} name Block name.\n * @param {Object} settings Block settings.\n * @return {?WPBlock} The block, if it has been successfully\n * registered; otherwise `undefined`.\n */\nregisterBlockType('vk-blocks/staff', {\n // Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.\n title: __('Staff', 'vk-blocks'), // Block title.\n icon: BlockIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.\n category: 'vk-blocks-cat', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.\n attributes: schema,\n\n /**\n * The edit function describes the structure of your block in the context of the editor.\n * This represents what the editor will render when the block is used.\n *\n * The \"edit\" property must be a valid function.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/\n */\n edit({attributes, setAttributes, className}) {\n const {\n vk_staff_photo_image_alt,\n vk_staff_layout,\n vk_staff_nameColor,\n vk_staff_captionColor,\n vk_staff_positionColor,\n vk_staff_profileTitleColor,\n vk_staff_profileTextColor,\n vk_staff_photoBorder\n } = attributes;\n\n return (\n <Fragment>\n <InspectorControls>\n <PanelBody title={__('Layout', 'vk-blocks')}>\n <SelectControl\n value={vk_staff_layout}\n onChange={(value) => setAttributes({vk_staff_layout: value})}\n options={[\n {\n value: 'default',\n label: __('Default', 'vk-blocks'),\n },\n {\n value: 'imageLeft',\n label: __('Image left', 'vk-blocks'),\n },\n ]}\n />\n </PanelBody>\n\t\t\t\t\t\t\t\t\t\t<PanelBody title={__('Image border', 'vk-blocks')}>\n <SelectControl\n value={vk_staff_photoBorder}\n onChange={(value) => setAttributes({vk_staff_photoBorder: value})}\n options={[\n {\n value: 'default',\n label: __('Default', 'vk-blocks'),\n },\n {\n value: 'none',\n label: __('None', 'vk-blocks'),\n },\n ]}\n />\n </PanelBody>\n <PanelBody title={__('Alt text', 'vk-blocks')}>\n <BaseControl\n help={__('Set the alt text for profile image', 'vk-blocks')}\n >\n <TextControl\n value={vk_staff_photo_image_alt}\n onChange={(value) => setAttributes({vk_staff_photo_image_alt: value})}\n />\n </BaseControl>\n </PanelBody>\n <PanelBody title={__('Color', 'vk-blocks')}>\n <BaseControl\n label={__('Staff name', 'vk-blocks')}\n >\n <ColorPalette\n value={vk_staff_nameColor}\n onChange={(value) => setAttributes({vk_staff_nameColor: value})}\n />\n </BaseControl>\n <BaseControl\n label={__('Name caption', 'vk-blocks')}\n >\n <ColorPalette\n value={vk_staff_captionColor}\n onChange={(value) => setAttributes({vk_staff_captionColor: value})}\n />\n </BaseControl>\n <BaseControl\n label={__('Role position', 'vk-blocks')}\n >\n <ColorPalette\n value={vk_staff_positionColor}\n onChange={(value) => setAttributes({vk_staff_positionColor: value})}\n />\n </BaseControl>\n <BaseControl\n label={__('Profile title', 'vk-blocks')}\n >\n <ColorPalette\n value={vk_staff_profileTitleColor}\n onChange={(value) => setAttributes({vk_staff_profileTitleColor: value})}\n />\n </BaseControl>\n <BaseControl\n label={__('Profile text', 'vk-blocks')}\n >\n <ColorPalette\n value={vk_staff_profileTextColor}\n onChange={(value) => setAttributes({vk_staff_profileTextColor: value})}\n />\n </BaseControl>\n </PanelBody>\n </InspectorControls>\n <NewComponent\n attributes={attributes}\n setAttributes={setAttributes}\n className={className}\n for_={'edit'}\n />\n </Fragment>\n );\n },\n\n /**\n * The save function defin className }> which the different attributes should be combined\n * into the final markup, which is then serialized by Gutenberg into post_content.\n *\n * The \"save\" property must be specified and must be a valid function.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/\n */\n save({attributes}) {\n return (\n <NewComponent\n attributes={attributes}\n setAttributes={''}\n className={''}\n for_={'save'}\n />\n );\n }\n});\n","export const schema = {\n vk_staff_text_name: {\n type: 'string',\n source: 'html',\n selector: 'h3',\n },\n vk_staff_text_caption: {\n type: 'string',\n source: 'html',\n selector: 'p.vk_staff_text_caption',\n },\n vk_staff_text_role: {\n type: 'string',\n source: 'html',\n selector: 'p.vk_staff_text_role',\n },\n vk_staff_text_profileTitle: {\n type: 'string',\n source: 'html',\n selector: 'h4',\n },\n vk_staff_text_profileText: {\n type: 'string',\n source: 'html',\n selector: 'p.vk_staff_text_profileText',\n },\n vk_staff_photo_image: {\n type: 'string',\n default: '',\n },\n vk_staff_photo_image_alt: {\n type: 'string',\n default: 'Profile Picture',\n },\n vk_staff_layout: {\n type: 'string',\n default: 'default',\n },\n vk_staff_nameColor: {\n type: 'string',\n default: 'inherit',\n },\n vk_staff_captionColor: {\n type: 'string',\n default: 'inherit',\n },\n vk_staff_positionColor: {\n type: 'string',\n default: 'inherit',\n },\n vk_staff_profileTitleColor: {\n type: 'string',\n default: 'inherit',\n },\n vk_staff_profileTextColor: {\n type: 'string',\n default: 'inherit',\n },\n vk_staff_photoBorder: {\n type: 'string',\n default: 'default',\n }\n};\n","import React from 'react';\n\nexport class SpacerComponent extends React.Component {\n\n render() {\n let {\n unit,\n pc,\n tablet,\n mobile,\n } = this.props.attributes;\n let className = this.props.className;\n\n return (\n <div className={`${className} vk_spacer`}>\n <div className={'vk_spacer-display-pc'} style={{height: pc + unit}}></div>\n <div className={'vk_spacer-display-tablet'} style={{height: tablet + unit}}></div>\n <div className={'vk_spacer-display-mobile'} style={{height: mobile + unit}}></div>\n </div>\n );\n }\n}\n","import React from 'react';\n\nexport class SpacerComponent extends React.Component {\n\n render() {\n let {\n unit,\n pc,\n tablet,\n mobile,\n } = this.props.attributes;\n\n return (\n <div className=\"vk_spacer\">\n <div className={'vk_spacer-display-pc'} style={{height: pc + unit}}></div>\n <div className={'vk_spacer-display-tablet'} style={{height: tablet + unit}}></div>\n <div className={'vk_spacer-display-mobile'} style={{height: mobile + unit}}></div>\n </div>\n );\n }\n}","import React from \"react\";\nimport {SpacerComponent} from \"./component\";\nimport {schema} from './schema';\nconst {RichText} = wp.editor;\n\nexport const deprecated = [\n {\n attributes: schema,\n save({attributes}) {\n return (\n <SpacerComponent attributes={attributes}/>\n );\n },\n }\n];\n","export const schema = {\n unit: {\n type: 'string',\n default: 'px',\n },\n pc: {\n type: 'number',\n default: 50,\n },\n tablet: {\n type: 'number',\n default: 10,\n },\n mobile: {\n type: 'number',\n default: 10,\n },\n};\n","/**\n * spacer block type\n *\n */\nimport React from \"react\";\nimport {schema} from './schema';\nimport {SpacerComponent} from \"./component\";\nimport {deprecated} from \"./deprecated/deprecated\";\n\nconst {__} = wp.i18n; // Import __() from wp.i18n\nconst {registerBlockType} = wp.blocks; // Import registerBlockType() from wp.blocks\nconst {RangeControl, PanelBody, BaseControl,SelectControl} = wp.components;\nconst {Fragment} = wp.element;\nconst {InspectorControls} = wp.editor;\nconst BlockIcon = (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"576\" height=\"512\" viewBox=\"0 0 576 512\">\n\t<g>\n\t\t<rect x=\"108.8\" y=\"18.7\" width=\"358.5\" height=\"40\"/>\n\t\t<rect x=\"108.8\" y=\"453.3\" width=\"358.5\" height=\"40\"/>\n\t\t<polygon points=\"171.4,253.2 131.4,253.2 131.4,412.6 290.8,412.6 290.8,372.6 199.7,372.6 404.6,167.7 404.6,258.8 444.6,258.8\n\t\t\t444.6,99.4 285.2,99.4 285.2,139.4 376.3,139.4 171.4,344.3 \t\"/>\n\t</g>\n\t</svg>\n);\n\n/**\n * Register: a Gutenberg Block.\n *\n * Registers a new block provided a unique name and an object defining its\n * behavior. Once registered, the block is made editor as an option to any\n * editor interface where blocks are implemented.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/\n * @param {string} name Block name.\n * @param {Object} settings Block settings.\n * @return {?WPBlock} The block, if it has been successfully\n * registered; otherwise `undefined`.\n */\nregisterBlockType('vk-blocks/spacer', {\n // Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.\n title: __('Responsive Spacer', 'vk-blocks'), // Block title.\n icon: BlockIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.\n category: 'vk-blocks-cat-layout', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.\n attributes: schema,\n\n /**\n * The edit function describes the structure of your block in the context of the editor.\n * This represents what the editor will render when the block is used.\n *\n * The \"edit\" property must be a valid function.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/\n */\n edit({attributes, setAttributes, className}) {\n const {\n unit,\n pc,\n tablet,\n mobile,\n } = attributes;\n\n return (\n <Fragment>\n <InspectorControls>\n <PanelBody>\n <SelectControl\n label={__('Unit Type', 'vk-blocks')}\n value={unit}\n onChange={(value) => setAttributes({unit: value})}\n options={[\n {\n value: 'px',\n label: __('px', 'vk-blocks'),\n },\n {\n value: 'em',\n label: __('em', 'vk-blocks'),\n },\n {\n value: 'rem',\n label: __('rem', 'vk-blocks'),\n },\n {\n value: 'vw',\n label: __('vw', 'vk-blocks'),\n }\n ]}\n />\n <BaseControl label={__('Height for each device.', 'vk-blocks')}>\n <RangeControl\n label={__('PC', 'vk-blocks')}\n value={pc}\n onChange={(value) => setAttributes({pc: value})}\n step={0.1}\n />\n <RangeControl\n label={__('Tablet', 'vk-blocks')}\n value={tablet}\n onChange={(value) => setAttributes({tablet: value})}\n step={0.1}\n />\n <RangeControl\n label={__('Mobile', 'vk-blocks')}\n value={mobile}\n onChange={(value) => setAttributes({mobile: value})}\n step={0.1}\n />\n </BaseControl>\n </PanelBody>\n </InspectorControls>\n <SpacerComponent\n attributes={attributes}\n className={className}\n />\n </Fragment>\n );\n },\n\n /**\n * The save function defin className }> which the different attributes should be combined\n * into the final markup, which is then serialized by Gutenberg into post_content.\n *\n * The \"save\" property must be specified and must be a valid function.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/\n */\n save({attributes}) {\n return (\n <SpacerComponent attributes={attributes}/>\n );\n },\n\n //Please comment out, when you need to use deprecated.\n deprecated: deprecated\n});\n","export const schema = {\n unit: {\n type: 'string',\n default: 'px',\n },\n pc: {\n type: 'number',\n default: 40,\n },\n tablet: {\n type: 'number',\n default: 30,\n },\n mobile: {\n type: 'number',\n default: 20,\n },\n};\n","const componentDivider = (level, color, whichSide, dividerType) => {\n\n let sectionPadding;\n let sectionClass;\n let lenderDivider;\n\n const tiltSectionStyle = (level, color) => {\n\n if (level > 0) {\n return <path\n d={`m0,${100 - level} L100,100 L0,100 z`}\n strokeWidth=\"0\"\n fill={color}\n />\n\n } else if (level < 0) {\n\n //絶対値に変換\n const absLevel = Math.abs(level);\n\n return <path\n d={`m100,${100 - absLevel} L0,100 L100,100 z`}\n strokeWidth=\"0\"\n fill={color}\n />\n }\n };\n\n const curveSectionStyle = (level, color) => {\n if (level > 0) {\n\n return <path\n d={ `m0,${ 100 - level } q50,${ level * 2 },100,0 V100 L0,100 z` }\n strokeWidth=\"0\"\n fill={color}\n />\n } else if (level < 0) {\n\n return <path\n d={ `m0,100 q50,${ level * 2},100,0 V100 L0,100 z` }\n strokeWidth=\"0\"\n fill={color}\n />\n }\n };\n\n const waveSectionStyle = (level, color) => {\n\n if (level > 0) {\n\n return (\n <path\n d={ `m0,${ 100 - ( level / 2 ) } q20,${ level },40,0 t40,0 t40,0 V100 L0,100 z` }\n strokeWidth=\"0\"\n fill={color}\n />\n );\n } else if (level < 0) {\n\n return (\n <path\n d={ `m0,${ ( level / 2 ) + 100 } q20,${ level },40,0 t40,0 t40,0 V100 L0,100 z` }\n strokeWidth=\"0\"\n fill={color}\n />\n );\n }\n\n };\n\n const triangleSectionStyle = (level, color) => {\n\n const absLevel = Math.abs(level);\n const DivideAbs4 = absLevel / 4;\n\n if (level > 0) {\n\n return (\n <path\n d={`m0,100 h${50 - DivideAbs4} l${DivideAbs4},-${absLevel} l${DivideAbs4},${absLevel} h${DivideAbs4} v100 h-100 z`}\n strokeWidth=\"0\"\n fill={color}\n />\n );\n } else if (level < 0) {\n\n return (\n <path\n d={`m0,${100 - absLevel} h${50 - DivideAbs4} l${DivideAbs4},${absLevel} l${DivideAbs4},-${absLevel} h${50 - DivideAbs4} v${absLevel + 1} h-100 z`}\n strokeWidth=\"0\"\n fill={color}\n />);\n }\n };\n\n //背景色をクリアした時は、白に変更\n if(!color){\n color = '#fff';\n }\n\n //Paddingの条件分岐を追加\n if (dividerType === 'tilt') {\n\n sectionPadding = Math.abs(level);\n lenderDivider = tiltSectionStyle(level, color);\n\n }else if(dividerType === 'curve') {\n\n if (level > 0) {\n sectionPadding = Math.abs(level);\n } else if (level < 0) {\n sectionPadding = Math.abs(level) * 2;\n }\n lenderDivider = curveSectionStyle(level, color);\n\n }else if(dividerType === 'wave'){\n\n sectionPadding = Math.abs(level);\n lenderDivider = waveSectionStyle(level, color);\n\n }else if(dividerType === 'triangle'){\n\n sectionPadding = Math.abs(level);\n lenderDivider = triangleSectionStyle(level, color);\n\n }\n\n //classにdividerTypeを追加\n sectionClass = dividerType;\n\n //upper-paddingを追加\n if (whichSide === 'upper') {\n return (\n <div\n className={`vk_outer_separator vk_outer_separator-position-upper vk_outer_separator-type-${sectionClass}`}\n style={{paddingBottom: sectionPadding + `px`}}\n >\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 100 100\" preserveAspectRatio=\"none\">\n {lenderDivider}\n </svg>\n </div>\n\n );\n //lower-paddingを追加\n } else if (whichSide === 'lower') {\n return (\n\n <div\n className={`vk_outer_separator vk_outer_separator-position-lower vk_outer_separator-type-${sectionClass}`}\n style={{paddingTop: sectionPadding + `px`}}\n >\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 100 100\" preserveAspectRatio=\"none\">\n {lenderDivider}\n </svg>\n </div>\n )\n }\n};\n\nexport {componentDivider};\n","import React from 'react';\nimport {componentDivider} from './component-divider';\nconst {InnerBlocks} = wp.editor;\n\n//hexカラーコード定義をrgbaに変換\nfunction hex2rgba (hex, alpha) {\n\n // ロングバージョンの場合(例:#FF0000)\n let r = hex.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i);\n let c = null;\n if (r) {\n c = r.slice(1,4).map(function(x) { return parseInt(x, 16) })\n }\n // ショートバージョンの場合(例:#F00)\n r = hex.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i);\n if (r) {\n c = r.slice(1,4).map(function(x) { return 0x11 * parseInt(x, 16) })\n }\n // 該当しない場合は、nullを返す.\n if (!c) {\n return null\n }\n return `rgba(${c[0]}, ${c[1]}, ${c[2]}, ${alpha})`\n}\n\nexport class Component extends React.Component {\n\n render() {\n\n let {\n bgColor,\n bgImage,\n bgPosition,\n outerWidth,\n padding_left_and_right,\n padding_top_and_bottom,\n opacity,\n upper_level,\n lower_level,\n upperDividerBgColor,\n lowerDividerBgColor,\n dividerType,\n borderWidth,\n borderStyle,\n borderColor,\n borderRadius,\n anchor\n } = this.props.attributes;\n\n let className = this.props.className;\n let for_ = this.props.for_;\n let classPaddingLR;\n let classPaddingVertical;\n let classBgPosition;\n let classWidth;\n let elm;\n let containerClass;\n let whichSideUpper;\n let whichSideLower;\n let bgStyle;\n let borderProperty;\n let borderRadiusProperty;\n\n //幅のクラス切り替え\n classWidth = ` vk_outer-width-${outerWidth}`;\n\n //hexからrgbaに変換\n if(bgColor){\n bgColor = hex2rgba(bgColor,opacity);\n }else {\n //背景色をクリアした時は、白に変更\n bgColor = hex2rgba('#fff',opacity);\n }\n\n //classBgPositionのクラス切り替え\n if (bgPosition === 'parallax') {\n classBgPosition = ' vk_outer-bgPosition-parallax vk-prlx';\n\t\t\t\t} else if (bgPosition === 'fixed') {\n\t\t classBgPosition = ' vk_outer-bgPosition-fixed';\n } else {\n classBgPosition = ' vk_outer-bgPosition-normal';\n }\n\n\t\t\t\t//classPaddingLRのクラス切り替え\n if(padding_left_and_right === '1'){\n classPaddingLR = ' vk_outer-paddingLR-use';\n } else {\n classPaddingLR = ' vk_outer-paddingLR-none';\n }\n\n //classPaddingVerticalのクラス切り替え\n if(padding_top_and_bottom === '1'){\n classPaddingVertical = ' vk_outer-paddingVertical-use';\n } else {\n classPaddingVertical = ' vk_outer-paddingVertical-none';\n }\n\n //上側セクションの傾き切り替え\n if (upper_level) {\n whichSideUpper = 'upper';\n }\n\n //下側セクションの傾き切り替え\n if (lower_level) {\n whichSideLower = 'lower';\n }\n\n //編集画面とサイト上の切り替え\n if(for_ === 'edit'){\n elm = <InnerBlocks/>;\n }else if('save'){\n elm = <InnerBlocks.Content/>;\n containerClass = 'vk_outer_container';\n }\n\n //背景画像の有り無しでstyleを切り替え\n if(bgImage){\n bgStyle = `linear-gradient(${bgColor}, ${bgColor}), url(${bgImage})`;\n }else {\n bgStyle = `linear-gradient(${bgColor}, ${bgColor})`;\n }\n\n //borderColorクリア時に白をセットする\n if (!borderColor) {\n borderColor = '#fff';\n }\n\n //Dividerエフェクトがない時のみ枠線を追加\n if(upper_level === 0 && lower_level === 0){\n borderProperty = `${borderWidth}px ${borderStyle} ${borderColor}`;\n borderRadiusProperty = `${borderRadius}px`;\n }else {\n borderProperty = 'none';\n borderRadiusProperty = `0px`;\n }\n\n return (\n <div\n id={anchor}\n className={ className + ' vk_outer' + classWidth + classPaddingLR + classPaddingVertical + classBgPosition }\n style={{\n background: bgStyle,\n border: borderProperty,\n borderRadius: borderRadiusProperty\n }}\n >\n {\n componentDivider(upper_level, upperDividerBgColor, whichSideUpper, dividerType)\n }\n <div className={containerClass}>\n {elm}\n </div>\n {\n componentDivider(lower_level, lowerDividerBgColor, whichSideLower, dividerType)\n }\n </div>\n );\n }\n}\n","const componentDivider = (level, color, whichSide, dividerType) => {\n\n let sectionPadding;\n let sectionClass;\n let lenderDivider;\n\n const tiltSectionStyle = (level, color) => {\n\n if (level > 0) {\n return <path\n d={`m0,${100 - level} L100,100 L0,100 z`}\n strokeWidth=\"0\"\n fill={color}\n />\n\n } else if (level < 0) {\n\n //絶対値に変換\n const absLevel = Math.abs(level);\n\n return <path\n d={`m100,${100 - absLevel} L0,100 L100,100 z`}\n strokeWidth=\"0\"\n fill={color}\n />\n }\n };\n\n const curveSectionStyle = (level, color) => {\n if (level > 0) {\n\n return <path\n d={ `m0,${ 100 - level } q50,${ level * 2 },100,0 V100 L0,100 z` }\n strokeWidth=\"0\"\n fill={color}\n />\n } else if (level < 0) {\n\n return <path\n d={ `m0,100 q50,${ level * 2},100,0 V100 L0,100 z` }\n strokeWidth=\"0\"\n fill={color}\n />\n }\n };\n\n const waveSectionStyle = (level, color) => {\n\n if (level > 0) {\n\n return (\n <path\n d={ `m0,${ 100 - ( level / 2 ) } q20,${ level },40,0 t40,0 t40,0 V100 L0,100 z` }\n strokeWidth=\"0\"\n fill={color}\n />\n );\n } else if (level < 0) {\n\n return (\n <path\n d={ `m0,${ ( level / 2 ) + 100 } q20,${ level },40,0 t40,0 t40,0 V100 L0,100 z` }\n strokeWidth=\"0\"\n fill={color}\n />\n );\n }\n\n };\n\n const triangleSectionStyle = (level, color) => {\n\n const absLevel = Math.abs(level);\n const DivideAbs4 = absLevel / 4;\n\n if (level > 0) {\n\n return (\n <path\n d={`m0,100 h${50 - DivideAbs4} l${DivideAbs4},-${absLevel} l${DivideAbs4},${absLevel} h${DivideAbs4} v100 h-100 z`}\n strokeWidth=\"0\"\n fill={color}\n />\n );\n } else if (level < 0) {\n\n return (\n <path\n d={`m0,${100 - absLevel} h${50 - DivideAbs4} l${DivideAbs4},${absLevel} l${DivideAbs4},-${absLevel} h${50 - DivideAbs4} v${absLevel + 1} h-100 z`}\n strokeWidth=\"0\"\n fill={color}\n />);\n }\n };\n\n //背景色をクリアした時は、白に変更\n if(!color){\n color = '#fff';\n }\n\n //Paddingの条件分岐を追加\n if (dividerType === 'tilt') {\n\n sectionPadding = Math.abs(level);\n lenderDivider = tiltSectionStyle(level, color);\n\n }else if(dividerType === 'curve') {\n\n if (level > 0) {\n sectionPadding = Math.abs(level);\n } else if (level < 0) {\n sectionPadding = Math.abs(level) * 2;\n }\n lenderDivider = curveSectionStyle(level, color);\n\n }else if(dividerType === 'wave'){\n\n sectionPadding = Math.abs(level);\n lenderDivider = waveSectionStyle(level, color);\n\n }else if(dividerType === 'triangle'){\n\n sectionPadding = Math.abs(level);\n lenderDivider = triangleSectionStyle(level, color);\n\n }\n\n //classにdividerTypeを追加\n sectionClass = dividerType;\n\n //upper-paddingを追加\n if (whichSide === 'upper') {\n return (\n <div\n className={`vk_outer_separator vk_outer_separator-position-upper vk_outer_separator-type-${sectionClass}`}\n style={{paddingBottom: sectionPadding + `px`}}\n >\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 100 100\" preserveAspectRatio=\"none\">\n {lenderDivider}\n </svg>\n </div>\n\n );\n //lower-paddingを追加\n } else if (whichSide === 'lower') {\n return (\n\n <div\n className={`vk_outer_separator vk_outer_separator-position-lower vk_outer_separator-type-${sectionClass}`}\n style={{paddingTop: sectionPadding + `px`}}\n >\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 100 100\" preserveAspectRatio=\"none\">\n {lenderDivider}\n </svg>\n </div>\n )\n }\n};\n\nexport {componentDivider};\n","import React from 'react';\nimport {componentDivider} from './component-divider';\n\nconst {InnerBlocks} = wp.editor;\n\n//hexカラーコード定義をrgbaに変換\nfunction hex2rgba (hex, alpha) {\n\n // ロングバージョンの場合(例:#FF0000)\n let r = hex.match(/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})$/i);\n let c = null;\n if (r) {\n c = r.slice(1,4).map(function(x) { return parseInt(x, 16) })\n }\n // ショートバージョンの場合(例:#F00)\n r = hex.match(/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i);\n if (r) {\n c = r.slice(1,4).map(function(x) { return 0x11 * parseInt(x, 16) })\n }\n // 該当しない場合は、nullを返す.\n if (!c) {\n return null\n }\n return `rgba(${c[0]}, ${c[1]}, ${c[2]}, ${alpha})`\n}\n\nexport class Component extends React.Component {\n\n render() {\n\n let {\n bgColor,\n bgImage,\n bgPosition,\n outerWidth,\n padding_left_and_right,\n padding_top_and_bottom,\n opacity,\n upper_level,\n lower_level,\n upperDividerBgColor,\n lowerDividerBgColor,\n dividerType,\n borderWidth,\n borderStyle,\n borderColor,\n borderRadius,\n anchor\n } = this.props.attributes;\n\n let for_ = this.props.for_;\n let classPaddingLR;\n let classPaddingVertical;\n let classBgPosition;\n let classWidth;\n let elm;\n let containerClass;\n let whichSideUpper;\n let whichSideLower;\n let bgStyle;\n let borderProperty;\n let borderRadiusProperty;\n\n //幅のクラス切り替え\n classWidth = ` vk_outer-width-${outerWidth}`;\n\n //hexからrgbaに変換\n if(bgColor){\n bgColor = hex2rgba(bgColor,opacity);\n }else {\n //背景色をクリアした時は、白に変更\n bgColor = hex2rgba('#fff',opacity);\n }\n\n //classBgPositionのクラス切り替え\n if (bgPosition === 'parallax') {\n classBgPosition = ' vk_outer-bgPosition-parallax vk-prlx';\n\t\t\t\t} else if (bgPosition === 'fixed') {\n\t\t classBgPosition = ' vk_outer-bgPosition-fixed';\n } else {\n classBgPosition = ' vk_outer-bgPosition-normal';\n }\n\n\t\t\t\t//classPaddingLRのクラス切り替え\n if(padding_left_and_right === '1'){\n classPaddingLR = ' vk_outer-paddingLR-use';\n } else {\n classPaddingLR = ' vk_outer-paddingLR-none';\n }\n\n //classPaddingVerticalのクラス切り替え\n if(padding_top_and_bottom === '1'){\n classPaddingVertical = ' vk_outer-paddingVertical-use';\n } else {\n classPaddingVertical = ' vk_outer-paddingVertical-none';\n }\n\n //上側セクションの傾き切り替え\n if (upper_level) {\n whichSideUpper = 'upper';\n }\n\n //下側セクションの傾き切り替え\n if (lower_level) {\n whichSideLower = 'lower';\n }\n\n //編集画面とサイト上の切り替え\n if(for_ === 'edit'){\n elm = <InnerBlocks/>;\n }else if('save'){\n elm = <InnerBlocks.Content/>;\n containerClass = 'vk_outer_container';\n }\n\n //背景画像の有り無しでstyleを切り替え\n if(bgImage){\n bgStyle = `linear-gradient(${bgColor}, ${bgColor}), url(${bgImage})`;\n }else {\n bgStyle = `linear-gradient(${bgColor}, ${bgColor})`;\n }\n\n //borderColorクリア時に白をセットする\n if (!borderColor) {\n borderColor = '#fff';\n }\n\n //Dividerエフェクトがない時のみ枠線を追加\n if(upper_level === 0 && lower_level === 0){\n borderProperty = `${borderWidth}px ${borderStyle} ${borderColor}`;\n borderRadiusProperty = `${borderRadius}px`;\n }else {\n borderProperty = 'none';\n borderRadiusProperty = `0px`;\n }\n\n return (\n <div\n id={anchor}\n className={ 'vk_outer' + classWidth + classPaddingLR + classPaddingVertical + classBgPosition }\n style={{\n background: bgStyle,\n border: borderProperty,\n borderRadius: borderRadiusProperty\n }}\n >\n {\n componentDivider(upper_level, upperDividerBgColor, whichSideUpper, dividerType)\n }\n <div className={containerClass}>\n {elm}\n </div>\n {\n componentDivider(lower_level, lowerDividerBgColor, whichSideLower, dividerType)\n }\n </div>\n );\n }\n}\n","import React from \"react\";\nimport {schema} from \"./schema\";\nimport {Component} from \"./component\";\n\nexport const deprecated = [\n {\n attributes: schema,\n\n save({attributes}) {\n {\n if (vk_blocks_check.is_pro) {\n\n return (\n <Component\n attributes={attributes}\n for_={'save'}/>\n );\n\n }\n }\n\n },\n }\n];\n","export const schema = {\n\tbgColor: {\n\t\ttype: 'string',\n\tdefault: '#f3f4f5',\n\t},\n\tbgImage: {\n\t\ttype: 'string',\n\tdefault: null,\n\t},\n\touterWidth:{\n\t\ttype: 'string',\n\tdefault: 'normal',\n\t},\n\tbgPosition:{\n\t\ttype: 'string',\n\tdefault: 'normal',\n\t},\n\tpadding_left_and_right: {\n\t\ttype: 'string',\n\tdefault: '0',\n\t},\n\tpadding_top_and_bottom: {\n\t\ttype: 'string',\n\tdefault: '1',\n\t},\n\topacity: {\n\t\ttype: 'number',\n\tdefault: 0.5,\n\t},\n\tupper_level: {\n\t\ttype: 'number',\n\tdefault: 0,\n\t},\n\tlower_level: {\n\t\ttype: 'number',\n\tdefault: 0,\n\t},\n\tdividerType: {\n\t\ttype: 'string',\n\t\tdefault: 'tilt',\n\t},\n\tupperDividerBgColor: {\n\t\ttype: 'string',\n\tdefault: '#fff',\n\t},\n\tlowerDividerBgColor: {\n\t\ttype: 'string',\n\tdefault: '#fff',\n\t},\n\tborderWidth: {\n\t\ttype: 'number',\n\t\tdefault: 0,\n\t},\n\tborderStyle: {\n\t\ttype: 'string',\n\t\tdefault: 'none',\n\t},\n\tborderColor: {\n\t\ttype: 'string',\n\t\tdefault: '#000',\n\t},\n\tborderRadius: {\n\t\ttype: 'number',\n\t\tdefault: 0,\n\t},\n};\n","'use strict';\n\nexport default function toNumber( value, min = -100, max = null ) {\n\tvalue = Number( value );\n\n\tif ( isNaN( value ) || value < min ) {\n\t\tvalue = min;\n\t}\n\n\tif ( null !== max && value > max ) {\n\t\tvalue = max;\n\t}\n\n\treturn value;\n}\n","/**\n * outer block type\n *\n */\nimport React from \"react\";\nimport {Component} from \"./component\";\nimport {schema} from './schema';\nimport {deprecated} from './deprecated/block';\nimport toNumber from \"../_helper/to-number\";\n\nconst {__} = wp.i18n; // Import __() from wp.i18n\nconst {registerBlockType} = wp.blocks; // Import registerBlockType() from wp.blocks\nconst {RangeControl, RadioControl, PanelBody, Button, BaseControl,SelectControl} = wp.components;\nconst {Fragment} = wp.element;\nconst {InspectorControls, MediaUpload, ColorPalette} = wp.editor;\nconst BlockIcon = (\n\t<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"576\" height=\"512\" viewBox=\"0 0 576 512\">\n\t<g>\n\t\t<path d=\"M288,390.2c74,0,134.2-60.3,134.2-134.2S362,121.8,288,121.8S153.8,182,153.8,256S214,390.2,288,390.2z M288,165.5\n\t\t\tc49.9,0,90.5,40.6,90.5,90.5s-40.6,90.5-90.5,90.5s-90.5-40.6-90.5-90.5S238.1,165.5,288,165.5z\"/>\n\t\t<polygon points=\"266.1,333.3 309.9,333.3 309.9,277.9 365.3,277.9 365.3,234.1 309.9,234.1 309.9,178.7 266.1,178.7 266.1,234.1\n\t\t\t210.7,234.1 210.7,277.9 266.1,277.9 \t\"/>\n\t</g>\n\t<path d=\"M529,31H49C22.5,31,1,52.5,1,79v352c0,26.5,21.5,48,48,48h480c26.5,0,48-21.5,48-48V79C577,52.5,555.5,31,529,31z M529,431\n\t\tH49V79h480V431z\"/>\n\t</svg>\n);\n\n/**\n * Register: a Gutenberg Block.\n *\n * Registers a new block provided a unique name and an object defining its\n * behavior. Once registered, the block is made editor as an option to any\n * editor interface where blocks are implemented.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/\n * @param {string} name Block name.\n * @param {Object} settings Block settings.\n * @return {?WPBlock} The block, if it has been successfully\n * registered; otherwise `undefined`.\n */\nregisterBlockType('vk-blocks/outer', {\n // Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.\n title: __('Outer', 'vk-blocks'), // Block title.\n icon: BlockIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.\n category: 'vk-blocks-cat-layout', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.\n attributes: schema,\n\tsupports:{\n \tanchor:true,\n\t},\n\n /**\n * The edit function describes the structure of your block in the context of the editor.\n * This represents what the editor will render when the block is used.\n *\n * The \"edit\" property must be a valid function.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/\n */\n edit({attributes, setAttributes,className}) {\n const {\n bgColor,\n bgImage,\n bgPosition,\n outerWidth,\n padding_left_and_right,\n padding_top_and_bottom,\n opacity,\n upper_level,\n lower_level,\n\t\t\tupperDividerBgColor,\n\t\t\tlowerDividerBgColor,\n\t\t\tdividerType,\n\t\t\tborderWidth,\n\t\t\tborderStyle,\n\t\t\tborderColor,\n\t\t\tborderRadius\n } = attributes;\n\n return (\n <Fragment>\n <InspectorControls>\n <PanelBody title={__('Background Setting', 'vk-blocks')}>\n <BaseControl\n label={__('Color Setting', 'vk-blocks')}\n help={__('Color will overcome background image. If you want to display image, clear background color or set opacity 0.', 'vk-blocks')}\n >\n <ColorPalette\n value={bgColor}\n onChange={(value) => setAttributes({bgColor: value})}\n />\n </BaseControl>\n <BaseControl\n label={__('Opacity Setting', 'vk-blocks')}\n >\n <RangeControl\n value={opacity}\n onChange={(value) => {setAttributes({opacity: value});\n }}\n min={0}\n max={1}\n step={0.1}\n />\n </BaseControl>\n\n <BaseControl\n label={__('Background Image', 'vk-blocks')}\n help=\"\"\n >\n <MediaUpload\n onSelect={(value) => setAttributes({bgImage: value.url})}\n type=\"image\"\n value={bgImage}\n render={({open}) => (\n <Button\n onClick={open}\n className={bgImage ? 'image-button' : 'button button-large'}\n >\n {!bgImage ? __('Select image', 'vk-blocks') :\n <img className={'icon-image'} src={bgImage}\n alt={__('Upload image', 'vk-blocks')}/>}\n </Button>\n )}\n />\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t</BaseControl>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<BaseControl\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel={__('Background image Position', 'vk-blocks')}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\thelp=\"\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t>\n <RadioControl\n // label={__('Background Position', 'vk-blocks')}\n selected={bgPosition}\n options={[\n {label: __('normal', 'vk-blocks'), value: 'normal'},\n {label: __('Fixed', 'vk-blocks'), value: 'fixed'},\n {label: __('Parallax (It will not work in preview)', 'vk-blocks'), value: 'parallax'}\n ]}\n onChange={(value) => setAttributes({bgPosition: value})}\n />\n </BaseControl>\n </PanelBody>\n\t\t\t\t\t<PanelBody title={__('Layout Setting', 'vk-blocks')}>\n\t\t\t\t\t\t<BaseControl>\n\t\t\t\t\t\t\t<RadioControl\n\t\t\t\t\t\t\t\tlabel={__('Outer width', 'vk-blocks')}\n\t\t\t\t\t\t\t\tselected={outerWidth}\n\t\t\t\t\t\t\t\toptions={[\n\t\t\t\t\t\t\t\t\t{label: __('Normal', 'vk-blocks'), value: 'normal'},\n\t\t\t\t\t\t\t\t\t{label: __('Full Wide', 'vk-blocks'), value: 'full'}\n\t\t\t\t\t\t\t\t]}\n\t\t\t\t\t\t\t\tonChange={(value) => setAttributes({outerWidth: value})}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<RadioControl\n\t\t\t\t\t\t\t\tlabel={__('Contents area padding (left and right)', 'vk-blocks')}\n\t\t\t\t\t\t\t\tselected={padding_left_and_right}\n\t\t\t\t\t\t\t\toptions={[\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tlabel: __('Do not use contents area default padding (When case of full width etc.).', 'vk-blocks'),\n\t\t\t\t\t\t\t\t\t\tvalue: '0'\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tlabel: __('Use contents area default padding (When case of not full width and use background etc.).', 'vk-blocks'),\n\t\t\t\t\t\t\t\t\t\tvalue: '1'\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t]}\n\t\t\t\t\t\t\t\tonChange={(value) => setAttributes({padding_left_and_right: value})}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t<RadioControl\n\t\t\t\t\t\t\t\tlabel={__('Padding (top and bottom)', 'vk-blocks')}\n\t\t\t\t\t\t\t\tselected={padding_top_and_bottom}\n\t\t\t\t\t\t\t\toptions={[\n\t\t\t\t\t\t\t\t\t{label: __('Use default padding', 'vk-blocks'), value: '1'},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tlabel: __('Do not use default padding (Set it yourself using a spacer block etc.).', 'vk-blocks'),\n\t\t\t\t\t\t\t\t\t\tvalue: '0'\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t]}\n\t\t\t\t\t\t\t\tonChange={(value) => setAttributes({padding_top_and_bottom: value})}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</BaseControl>\n\t\t\t\t\t</PanelBody>\n\t\t\t\t\t<PanelBody title={__('Divider Setting', 'vk-blocks')}>\n\t\t\t\t\t\t<BaseControl>\n\t\t\t\t\t\t\t<SelectControl\n\t\t\t\t\t\t\t\tlabel={__('Type', 'vk-blocks')}\n\t\t\t\t\t\t\t\tvalue={dividerType}\n\t\t\t\t\t\t\t\tonChange={(value) => setAttributes({dividerType: value})}\n\t\t\t\t\t\t\t\toptions={[\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tvalue: 'tilt',\n\t\t\t\t\t\t\t\t\t\tlabel: __('Tilt', 'vk-blocks'),\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tvalue: 'curve',\n\t\t\t\t\t\t\t\t\t\tlabel: __('Curve', 'vk-blocks'),\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tvalue: 'wave',\n\t\t\t\t\t\t\t\t\t\tlabel: __('Wave', 'vk-blocks'),\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tvalue: 'triangle',\n\t\t\t\t\t\t\t\t\t\tlabel: __('Triangle', 'vk-blocks'),\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t]}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</BaseControl>\n\t\t\t\t\t\t<BaseControl\n\t\t\t\t\t\t\tlabel={__('Upper Divider Level', 'vk-blocks')}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<RangeControl\n\t\t\t\t\t\t\t\tvalue={upper_level}\n\t\t\t\t\t\t\t\tonChange={(value) => setAttributes({upper_level: toNumber(value, -100, 100)})}\n\t\t\t\t\t\t\t\tmin=\"-100\"\n\t\t\t\t\t\t\t\tmax=\"100\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</BaseControl>\n\t\t\t\t\t\t<BaseControl>\n\t\t\t\t\t\t\t<ColorPalette\n\t\t\t\t\t\t\t\tvalue={upperDividerBgColor}\n\t\t\t\t\t\t\t\tonChange={(value) => setAttributes({upperDividerBgColor: value})}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</BaseControl>\n\t\t\t\t\t\t<BaseControl\n\t\t\t\t\t\t\tlabel={__('Lower Divider Level', 'vk-blocks')}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<RangeControl\n\t\t\t\t\t\t\t\tvalue={lower_level}\n\t\t\t\t\t\t\t\tonChange={(value) => setAttributes({lower_level: toNumber(value, -100, 100)})}\n\t\t\t\t\t\t\t\tmin=\"-100\"\n\t\t\t\t\t\t\t\tmax=\"100\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</BaseControl>\n\t\t\t\t\t\t<BaseControl>\n\t\t\t\t\t\t\t<ColorPalette\n\t\t\t\t\t\t\t\tvalue={lowerDividerBgColor}\n\t\t\t\t\t\t\t\tonChange={(value) => setAttributes({lowerDividerBgColor: value})}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</BaseControl>\n\t\t\t\t\t</PanelBody>\n\t\t\t\t\t<PanelBody title={__('Border Setting', 'vk-blocks')}>\n\t\t\t\t\t\t<BaseControl\n\t\t\t\t\t\t\t// label={__('Border will disappear when divider effect is applied.', 'vk-blocks')}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t<p>{__('Border will disappear when divider effect is applied.', 'vk-blocks')}</p>\n\t\t\t\t\t\t\t<SelectControl\n\t\t\t\t\t\t\t\tlabel={__('Border type', 'vk-blocks')}\n\t\t\t\t\t\t\t\tvalue={borderStyle}\n\t\t\t\t\t\t\t\tonChange={(value) => setAttributes({borderStyle: value})}\n\t\t\t\t\t\t\t\toptions={[\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tvalue: 'none',\n\t\t\t\t\t\t\t\t\t\tlabel: __('None', 'vk-blocks'),\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tvalue: 'solid',\n\t\t\t\t\t\t\t\t\t\tlabel: __('Solid', 'vk-blocks'),\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tvalue: 'dotted',\n\t\t\t\t\t\t\t\t\t\tlabel: __('Dotted', 'vk-blocks'),\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tvalue: 'dashed',\n\t\t\t\t\t\t\t\t\t\tlabel: __('Dashed', 'vk-blocks'),\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tvalue: 'double',\n\t\t\t\t\t\t\t\t\t\tlabel: __('Double', 'vk-blocks'),\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tvalue: 'groove',\n\t\t\t\t\t\t\t\t\t\tlabel: __('Groove', 'vk-blocks'),\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tvalue: 'ridge',\n\t\t\t\t\t\t\t\t\t\tlabel: __('Ridge', 'vk-blocks'),\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tvalue: 'inset',\n\t\t\t\t\t\t\t\t\t\tlabel: __('Inset', 'vk-blocks'),\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tvalue: 'outset',\n\t\t\t\t\t\t\t\t\t\tlabel: __('Outset', 'vk-blocks'),\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t]}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</BaseControl>\n\t\t\t\t\t\t<BaseControl>\n\t\t\t\t\t\t\t<ColorPalette\n\t\t\t\t\t\t\t\tvalue={borderColor}\n\t\t\t\t\t\t\t\tonChange={(value) => setAttributes({borderColor: value})}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</BaseControl>\n\t\t\t\t\t\t<BaseControl\n\t\t\t\t\t\t\tlabel={__('Border width', 'vk-blocks')}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<RangeControl\n\t\t\t\t\t\t\t\tvalue={borderWidth}\n\t\t\t\t\t\t\t\tonChange={(value) => setAttributes({borderWidth:value})}\n\t\t\t\t\t\t\t\tmin=\"0\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</BaseControl>\n\t\t\t\t\t\t<BaseControl\n\t\t\t\t\t\t\tlabel={__('Border radius', 'vk-blocks')}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<RangeControl\n\t\t\t\t\t\t\t\tvalue={borderRadius}\n\t\t\t\t\t\t\t\tonChange={(value) => setAttributes({borderRadius: toNumber(value, -100, 100)})}\n\t\t\t\t\t\t\t\tmin=\"-100\"\n\t\t\t\t\t\t\t\tmax=\"100\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</BaseControl>\n\t\t\t\t\t</PanelBody>\n </InspectorControls>\n {\n vk_blocks_check.is_pro\n ?\n\t\t\t\t\t\t\t<Component\n\t\t\t\t\t\t\t\tattributes={attributes}\n\t\t\t\t\t\t\t\tclassName={className}\n\t\t\t\t\t\t\t\tfor_={'edit'}/>\n :\n <div>{__('This block is only for users who bought Lightning Pro.', 'vk-blocks')}</div>\n }\n </Fragment>\n );\n },\n\n /**\n * The save function defin className }> which the different attributes should be combined\n * into the final markup, which is then serialized by Gutenberg into post_content.\n *\n * The \"save\" property must be specified and must be a valid function.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/\n */\n save({attributes,className}) {\n {\n if (vk_blocks_check.is_pro) {\n\n return (\n\t\t\t\t\t\t<Component\n\t\t\t\t\t\t\tattributes={attributes}\n\t\t\t\t\t\t\tclassName={className}\n\t\t\t\t\t\t\tfor_={'save'}/>\n );\n }\n }\n\n },\n\n\tdeprecated:deprecated\n});\n","export const schema = {\n\tbgColor: {\n\t\ttype: 'string',\n\tdefault: '#f3f4f5',\n\t},\n\tbgImage: {\n\t\ttype: 'string',\n\tdefault: null,\n\t},\n\touterWidth:{\n\t\ttype: 'string',\n\tdefault: 'normal',\n\t},\n\tbgPosition:{\n\t\ttype: 'string',\n\tdefault: 'normal',\n\t},\n\tpadding_left_and_right: {\n\t\ttype: 'string',\n\tdefault: '0',\n\t},\n\tpadding_top_and_bottom: {\n\t\ttype: 'string',\n\tdefault: '1',\n\t},\n\topacity: {\n\t\ttype: 'number',\n\tdefault: 0.5,\n\t},\n\tupper_level: {\n\t\ttype: 'number',\n\tdefault: 0,\n\t},\n\tlower_level: {\n\t\ttype: 'number',\n\tdefault: 0,\n\t},\n\tdividerType: {\n\t\ttype: 'string',\n\t\tdefault: 'tilt',\n\t},\n\tupperDividerBgColor: {\n\t\ttype: 'string',\n\tdefault: '#fff',\n\t},\n\tlowerDividerBgColor: {\n\t\ttype: 'string',\n\tdefault: '#fff',\n\t},\n\tborderWidth: {\n\t\ttype: 'number',\n\t\tdefault: 0,\n\t},\n\tborderStyle: {\n\t\ttype: 'string',\n\t\tdefault: 'none',\n\t},\n\tborderColor: {\n\t\ttype: 'string',\n\t\tdefault: '#000',\n\t},\n\tborderRadius: {\n\t\ttype: 'number',\n\t\tdefault: 0,\n\t},\n};\n","import React from \"react\";\n\n/**\n * WordPress dependenciess\n */\nconst { lodash } = window;\nconst { range } = lodash;\nconst { __, sprintf } = wp.i18n;\nconst { Component } = wp.element;\nconst { Toolbar } = wp.components;\n\nclass HeadingToolbar extends Component {\n\tcreateLevelControl(targetLevel, selectedLevel, onChange) {\n\t\treturn {\n\t\t\ticon: 'heading',\n\t\t\t// translators: %s: heading level e.g: \"1\", \"2\", \"3\"\n\t\t\ttitle: sprintf( __( 'Heading %d' ), targetLevel ),\n\t\t\tisActive: targetLevel === selectedLevel,\n\t\t\tonClick: () => onChange( targetLevel ),\n\t\t\tsubscript: String( targetLevel ),\n\t\t};\n\t}\n\n\n\trender() {\n\t\tconst {minLevel, maxLevel, selectedLevel, onChange} = this.props;\n\n\t\treturn (\n\t\t\t<Toolbar controls={range(minLevel, maxLevel).map((index) => this.createLevelControl(index, selectedLevel, onChange))}/>\n\t\t);\n\t}\n}\n\nexport default HeadingToolbar;\n","import React from 'react';\nimport classNames from \"classnames\";\n\nconst {RichText} = wp.editor;\nconst {__} = wp.i18n; // Import __() from wp.i18n\n\nexport class Component extends React.Component {\n\n render() {\n const {level, align, title, titleColor, titleSize, subText, subTextFlag, subTextColor, subTextSize, titleStyle, titleMarginBottom, outerMarginBottom} = this.props.attributes;\n const setAttributes = this.props.setAttributes;\n let className = this.props.className;\n let for_ = this.props.for_;\n let containerClass = classNames(className, `vk_heading vk_heading-style-${titleStyle}`);\n const tagName = 'h' + level;\n let cStyle;\n let tStyle;\n\n //containerのマージンを切り替え\n if (outerMarginBottom != null) {\n cStyle = {marginBottom: outerMarginBottom + `rem`};\n }\n\n //titleのマージンを切り替え\n if(titleMarginBottom != null){\n tStyle = {\n color: titleColor,\n fontSize: titleSize + 'rem',\n marginBottom: titleMarginBottom + 'rem',\n\t\t\t\t\t\t\t\ttextAlign: align,\n };\n }else {\n tStyle = {\n color: titleColor,\n fontSize: titleSize + 'rem',\n textAlign: align,\n };\n }\n\n if(for_ === 'edit'){\n return (\n <div\n className={containerClass}\n style={cStyle}\n >\n <RichText\n tagName={tagName}\n value={title}\n onChange={(value) => setAttributes({title: value})}\n style={tStyle}\n className={`vk_heading_title vk_heading_title-style-${titleStyle}`}\n placeholder={__('Input title…', 'vk-blocks')}\n />\n {\n // サブテキスト\n (() => {\n if (subTextFlag === 'on') {\n return (\n <RichText\n tagName={'p'}\n value={subText}\n onChange={(value) => setAttributes({subText: value})}\n style={{\n color: subTextColor,\n fontSize: subTextSize + 'rem',\n textAlign: align\n }}\n className={`vk_heading_subtext vk_heading_subtext-style-${titleStyle}`}\n placeholder={__('Input sub text…', 'vk-blocks')}\n />\n );\n }\n })()\n }\n </div>\n );\n }else if(for_ === 'save'){\n return (\n <div\n className={containerClass}\n style={cStyle}\n >\n <RichText.Content\n tagName={tagName}\n value={title}\n onChange={(value) => setAttributes({title: value})}\n style={tStyle}\n className={`vk_heading_title vk_heading_title-style-${titleStyle}`}\n placeholder={__('Input title…', 'vk-blocks')}\n />\n {\n // サブテキスト\n (() => {\n if (subTextFlag === 'on') {\n return (\n <RichText.Content\n tagName={'p'}\n value={subText}\n onChange={(value) => setAttributes({subText: value})}\n style={{\n color: subTextColor,\n fontSize: subTextSize + 'rem',\n textAlign: align\n }}\n className={`vk_heading_subtext vk_heading_subtext-style-${titleStyle}`}\n placeholder={__('Input sub text…', 'vk-blocks')}\n />\n );\n }\n })()\n }\n </div>\n );\n }\n }\n}\n","/**\n * heading block type\n *\n */\nimport React from \"react\";\nimport {schema} from './schema';\nconst {Fragment} = wp.element;\n\nconst {RichText, InspectorControls, ColorPalette, BlockControls, AlignmentToolbar} = wp.editor;\n\nfunction set_attirbuite(number) {\n\n var attributes = {};\n\n for (var i = 1; i <= number; i++) {\n\n attributes['heading' + i] = {\n type: 'string',\n source: 'html',\n selector: 'h1.vk_prBlocks_item_title-' + i,\n };\n attributes['content' + i] = {\n type: 'string',\n source: 'html',\n selector: 'p.vk_prBlocks_item_summary-' + i,\n };\n attributes['url' + i] = {\n type: 'string',\n default: null,\n };\n attributes['urlOpenType' + i] = {\n type: 'Boolean',\n default: false,\n };\n attributes['icon' + i] = {\n type: 'string',\n default: 'fas fa-file',\n };\n attributes['color' + i] = {\n type: 'string',\n default: '#0693e3',\n };\n attributes['bgType' + i] = {\n type: 'string',\n default: '0',\n };\n attributes['insertImage' + i] = {\n type: 'string',\n default: null,\n };\n }\n\n return attributes;\n}\n\nexport const Version0_6_0 = [\n {\n\n attributes: schema,\n supports : {\n className: false,\n anchor: true,\n },\n\n save({attributes}) {\n const {level, align, title, titleColor, titleSize, subText, subTextFlag, subTextColor, subTextSize, titleStyle, titleMarginBottom, outerMarginBottom} = attributes;\n const tagName = 'h' + level;\n\n return (\n <div\n className={`vk_heading vk_heading-style-${titleStyle}`}\n style={{marginBottom: outerMarginBottom + `rem`}}\n >\n <RichText.Content\n tagName={tagName}\n value={title}\n style={{\n color: titleColor,\n fontSize: titleSize + 'rem',\n textAlign: align,\n marginBottom: titleMarginBottom + 'rem'\n }}\n className={`vk_heading_title vk_heading_title-style-${titleStyle}`}\n />\n {\n // サブテキスト\n (() => {\n if (subTextFlag === 'on') {\n return (\n <RichText.Content\n tagName={'p'}\n value={subText}\n style={{color: subTextColor, fontSize: subTextSize + 'rem', textAlign: align}}\n className={`vk_heading_subtext vk_heading_subtext-style-${titleStyle}`}\n />\n );\n }\n })()\n }\n </div>\n );\n }\n },\n {\n attributes: set_attirbuite(4),\n save({attributes}) {\n const {\n heading1,\n heading2,\n heading3,\n content1,\n content2,\n content3,\n url1,\n url2,\n url3,\n urlOpenType1,\n urlOpenType2,\n urlOpenType3,\n icon1,\n icon2,\n icon3,\n color1,\n color2,\n color3,\n bgType1,\n bgType2,\n bgType3,\n insertImage1,\n insertImage2,\n insertImage3\n } = attributes;\n\n return (\n <article className=\"vk_prBlocks row\">\n\n <div className=\"vk_prBlocks_item col-sm-4\">\n <a\n href={url1}\n target={urlOpenType1? '_blank':'_self'}\n className=\"vk_prBlocks_item_link\"\n >\n {(() => {\n\n if (insertImage1) {\n\n return <div className=\"vk_prBlocks_item_image\"\n style={{\n backgroundImage: 'url(' + insertImage1 + ')',\n backgroundRepeat: 'no-repeat 50% center',\n backgroundSize: 'cover'\n }}\n >\n <img\n src={insertImage1}\n alt=''\n />\n </div>\n\n } else {\n\n if ( ! color1 ){\n color1 = '#0693e3';\n bgType1 === '0';\n }\n if (bgType1 === '0') {\n\n return <div\n className=\"vk_prBlocks_item_icon_outer\"\n style={{\n backgroundColor: color1,\n border: `1px solid ${color1}`\n }}\n ><i className={`${icon1} vk_prBlocks_item_icon`}\n style={{color: '#fff'}}>\n </i>\n </div>\n } else {\n return <div\n className=\"vk_prBlocks_item_icon_outer\"\n style={{backgroundColor: 'transparent', border: '1px solid ' + color1}}\n ><i className={`${icon1} vk_prBlocks_item_icon`}\n style={{color: color1}}>\n </i>\n </div>\n }\n }\n })()}\n <RichText.Content\n className=\"vk_prBlocks_item_title vk_prBlocks_item_title-1\"\n tagName={'h1'}\n value={heading1}/>\n <RichText.Content\n className=\"vk_prBlocks_item_summary vk_prBlocks_item_summary-1\"\n tagName={'p'}\n value={content1}/>\n </a>\n </div>\n <div className=\"vk_prBlocks_item col-sm-4\">\n <a\n href={url2}\n target={urlOpenType2? '_blank':'_self'}\n className=\"vk_prBlocks_item_link\"\n >\n {(() => {\n\n if (insertImage2) {\n\n return <div className=\"vk_prBlocks_item_image\"\n style={{\n backgroundImage: 'url(' + insertImage2 + ')',\n backgroundRepeat: 'no-repeat 50% center',\n backgroundSize: 'cover'\n }}\n >\n <img\n src={insertImage2}\n alt=''\n />\n </div>\n\n } else {\n if ( ! color2 ){\n color2 = '#0693e3';\n bgType2 === '0';\n }\n if (bgType2 === '0') {\n return <div\n className=\"vk_prBlocks_item_icon_outer\"\n style={{\n backgroundColor: color2,\n border: `1px solid ${color2}`\n }}\n ><i className={`${icon2} vk_prBlocks_item_icon`}\n style={{color: '#fff'}}>\n </i>\n </div>\n } else {\n return <div\n className=\"vk_prBlocks_item_icon_outer\"\n style={{backgroundColor: 'transparent', border: '1px solid ' + color2}}\n ><i className={`${icon2} vk_prBlocks_item_icon`}\n style={{color: color2}}>\n </i>\n </div>\n }\n }\n })()}\n <RichText.Content\n className=\"vk_prBlocks_item_title vk_prBlocks_item_title-2\"\n tagName={'h1'}\n value={heading2}/>\n <RichText.Content\n className=\"vk_prBlocks_item_summary vk_prBlocks_item_summary-2\"\n tagName={'p'}\n value={content2}/>\n </a>\n </div>\n\n <div className=\"vk_prBlocks_item col-sm-4\">\n <a\n href={url3}\n target={urlOpenType3? '_blank':'_self'}\n className=\"vk_prBlocks_item_link\"\n >\n {(() => {\n\n if (insertImage3) {\n\n return <div className=\"vk_prBlocks_item_image\"\n style={{\n backgroundImage: 'url(' + insertImage3 + ')',\n backgroundRepeat: 'no-repeat 50% center',\n backgroundSize: 'cover'\n }}\n >\n <img\n src={insertImage3}\n alt=''\n />\n </div>\n\n } else {\n if ( ! color3 ){\n color3 = '#0693e3';\n bgType3 === '0';\n }\n if (bgType3 === '0') {\n return <div\n className=\"vk_prBlocks_item_icon_outer\"\n style={{\n backgroundColor: color3,\n border: `1px solid ${color3}`\n }}\n ><i className={`${icon3} vk_prBlocks_item_icon`}\n style={{color: '#fff'}}>\n </i>\n </div>\n } else {\n return <div\n className=\"vk_prBlocks_item_icon_outer\"\n style={{backgroundColor: 'transparent', border: '1px solid ' + color3}}\n ><i className={`${icon3} vk_prBlocks_item_icon`}\n style={{color: color3}}>\n </i>\n </div>\n }\n }\n })()}\n <RichText.Content\n className=\"vk_prBlocks_item_title vk_prBlocks_item_title-3\"\n tagName={'h1'}\n value={heading3}/>\n <RichText.Content\n className=\"vk_prBlocks_item_summary vk_prBlocks_item_summary-3\"\n tagName={'p'}\n value={content3}/>\n </a>\n </div>\n </article>\n );\n },\n },\n {\n attributes: {\n level: {\n type: 'number',\n default: 2,\n },\n align: {\n type: 'string',\n },\n titleStyle: {\n type: 'string',\n default: 'default',\n },\n outerMarginBottom: {\n type: 'number',\n default: null,\n },\n title: {\n type: 'string',\n source: 'html',\n selector: 'h1,h2,h3,h4,h5,h6',\n default: '',\n },\n titleColor: {\n type: 'string',\n default: '#000000',\n },\n titleSize: {\n type: 'number',\n default: 2.6,\n },\n titleMarginBottom: {\n type: 'number',\n default: null,\n },\n subText: {\n source: 'html',\n selector: 'p',\n default: '',\n },\n subTextFlag: {\n type: 'string',\n default: 'on',\n },\n subTextColor: {\n type: 'string',\n default: '#000000',\n },\n subTextSize: {\n type: 'number',\n default: 1.8,\n },\n },\n supports: {\n className: false,\n anchor: true,\n },\n save({attributes}) {\n const {level, align, title, titleColor, titleSize, subText, subTextFlag, subTextColor, subTextSize, titleStyle, titleMarginBottom, outerMarginBottom} = attributes;\n const tagName = 'h' + level;\n\n return (\n <Fragment>\n {\n outerMarginBottom == null ?\n <div className={`vk_heading vk_heading-style-${titleStyle}`}>\n <RichText.Content\n tagName={tagName}\n value={title}\n style={{\n color: titleColor,\n fontSize: titleSize + 'rem',\n textAlign: align,\n }}\n className={`vk_heading_title vk_heading_title-style-${titleStyle}`}\n />\n {\n // サブテキスト\n (() => {\n if (subTextFlag === 'on') {\n return (\n <RichText.Content\n tagName={'p'}\n value={subText}\n style={{\n color: subTextColor,\n fontSize: subTextSize + 'rem',\n textAlign: align\n }}\n className={`vk_heading_subtext vk_heading_subtext-style-${titleStyle}`}\n />\n );\n }\n })()\n }\n </div>\n :\n <div\n className={`vk_heading vk_heading-style-${titleStyle}`}\n style={{marginBottom: outerMarginBottom + `rem`}}\n >\n <RichText.Content\n tagName={tagName}\n value={title}\n style={{\n color: titleColor,\n fontSize: titleSize + 'rem',\n textAlign: align,\n marginBottom: titleMarginBottom + 'rem'\n }}\n className={`vk_heading_title vk_heading_title-style-${titleStyle}`}\n />\n {\n // サブテキスト\n (() => {\n if (subTextFlag === 'on') {\n return (\n <RichText.Content\n tagName={'p'}\n value={subText}\n style={{\n color: subTextColor,\n fontSize: subTextSize + 'rem',\n textAlign: align\n }}\n className={`vk_heading_subtext vk_heading_subtext-style-${titleStyle}`}\n />\n );\n }\n })()\n }\n </div>\n }\n </Fragment>\n );\n },\n }\n];\n","export const schema = {\n level: {\n type: 'number',\n default: 2,\n },\n align: {\n type: 'string',\n },\n titleStyle: {\n type: 'string',\n default: 'default',\n },\n outerMarginBottom: {\n type: 'number',\n },\n title: {\n type: 'string',\n source: 'html',\n selector: 'h1,h2,h3,h4,h5,h6',\n default: '',\n },\n titleColor: {\n type: 'string',\n default: '#000000',\n },\n titleSize: {\n type: 'number',\n default: 2.6,\n },\n titleMarginBottom: {\n type: 'number',\n },\n subText: {\n source: 'html',\n selector: 'p',\n default: '',\n },\n subTextFlag: {\n type: 'string',\n default: 'on',\n },\n subTextColor: {\n type: 'string',\n default: '#000000',\n },\n subTextSize: {\n type: 'number',\n default: 1.8,\n },\n};\n","/**\n * heading block type\n *\n */\nimport React from \"react\";\nimport classNames from 'classnames';\nimport {schema} from './schema';\nimport HeadingToolbar from './heading-toolbar';\nimport {Component} from \"./component\";\nimport {Version0_6_0} from './deprecated/block';\n\n// import YourComponent from \"./component.js\";\nconst {__} = wp.i18n; // Import __() from wp.i18n\nconst {registerBlockType} = wp.blocks; // Import registerBlockType() from wp.blocks\nconst {RangeControl, PanelBody, RadioControl, SelectControl} = wp.components;\nconst {Fragment} = wp.element;\nconst {RichText, InspectorControls, ColorPalette, BlockControls, AlignmentToolbar} = wp.editor;\nconst BlockIcon = (\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"576\" height=\"512\" viewBox=\"0 0 576 512\">\n <g>\n <g>\n <path d=\"M242.1,366.7l0-281.4l-212.6,0l0-77.1l516.6,0v77.1l-213.2,0l0,281.4H242.1z\"/>\n </g>\n <g>\n <path d=\"M33,467.3l30.8-1.9c0.7,5,2,8.8,4.1,11.4c3.3,4.2,8.1,6.4,14.3,6.4c4.6,0,8.2-1.1,10.7-3.3c2.5-2.2,3.8-4.7,3.8-7.5\n\t\t\t\t\tc0-2.7-1.2-5.1-3.6-7.3c-2.4-2.1-7.9-4.2-16.6-6.1c-14.2-3.2-24.3-7.4-30.4-12.7c-6.1-5.3-9.1-12-9.1-20.2\n\t\t\t\t\tc0-5.4,1.6-10.5,4.7-15.3c3.1-4.8,7.8-8.6,14.1-11.3c6.3-2.7,14.8-4.1,25.8-4.1c13.4,0,23.6,2.5,30.6,7.5c7,5,11.2,12.9,12.5,23.8\n\t\t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.2c-2.3-2.8-5.1-4.2-8.4-4.2c-4,0-7.2,1.5-9.7,4.4\n\t\t\t\t\tC255.9,453.4,254.6,457.8,254.6,463.8z\"/>\n <path d=\"M304.4,397.2h98.4V423h-33v78.9h-32.4V423h-33V397.2z\"/>\n <path\n d=\"M395.8,426h34.5l12,21.2l14-21.2h32.1l-25.9,36.2l27.7,39.7h-33.9l-14-24.4l-16.5,24.4h-31.5l27.6-39.7L395.8,426z\"/>\n <path d=\"M530.6,397.2V426h16v21.3h-16v26.9c0,3.2,0.3,5.4,0.9,6.4c1,1.6,2.6,2.4,5,2.4c2.1,0,5.1-0.6,9-1.9l2.1,20.1\n\t\t\t\t\tc-7.2,1.6-13.9,2.4-20.1,2.4c-7.2,0-12.6-0.9-16-2.8c-3.4-1.9-6-4.7-7.6-8.5s-2.5-9.9-2.5-18.4v-26.7h-10.7V426h10.7v-13.9\n\t\t\t\t\tL530.6,397.2z\"/>\n </g>\n </g>\n </svg>\n);\n\n/**\n * Register: a Gutenberg Block.\n *\n * Registers a new block provided a unique name and an object defining its\n * behavior. Once registered, the block is made editor as an option to any\n * editor interface where blocks are implemented.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/\n * @param {string} name Block name.\n * @param {Object} settings Block settings.\n * @return {?WPBlock} The block, if it has been successfully\n * registered; otherwise `undefined`.\n */\nregisterBlockType('vk-blocks/heading', {\n // Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.\n title: __('Heading', 'vk-blocks'), // Block title.\n icon: BlockIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.\n category: 'vk-blocks-cat', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.\n attributes: schema,\n supports: {\n className:true,\n customClassName:true,\n anchor: true,\n },\n\n\n /**\n * The edit function describes the structure of your block in the context of the editor.\n * This represents what the editor will render when the block is used.\n *\n * The \"edit\" property must be a valid function.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/\n */\n edit({attributes, setAttributes, className}) {\n const {level, align, title, titleColor, titleSize, subText, subTextFlag, subTextColor, subTextSize, titleStyle, titleMarginBottom, outerMarginBottom} = attributes;\n\n let setTitleFontSize = (newLevel) => {\n\n setAttributes({level: newLevel});\n\n switch (newLevel) {\n case 1:\n setAttributes({titleSize: 3.6});\n break;\n case 2:\n setAttributes({titleSize: 2.8});\n break;\n case 3:\n setAttributes({titleSize: 2.2});\n break;\n case 4:\n setAttributes({titleSize: 2.0});\n break;\n case 5:\n setAttributes({titleSize: 1.8});\n break;\n case 6:\n setAttributes({titleSize: 1.6});\n break;\n }\n };\n return (\n <Fragment>\n <BlockControls>\n <HeadingToolbar minLevel={2} maxLevel={5} selectedLevel={level} onChange={setTitleFontSize}/>\n </BlockControls>\n <InspectorControls>\n <PanelBody title={__('Style Settings', 'vk-blocks')}>\n <SelectControl\n label={__('Heading style', 'vk-blocks')}\n value={titleStyle}\n onChange={(value) => setAttributes({titleStyle: value})}\n options={[\n {label: __('Default', 'vk-blocks'), value: 'default'},\n {label: __('Plain', 'vk-blocks'), value: 'plain'}\n ]}\n />\n <label>{__('Margin bottom size (rem)', 'vk-blocks')}</label>\n <RangeControl\n value={outerMarginBottom}\n onChange={(value) => {\n setAttributes({outerMarginBottom: value});\n }}\n min={-1}\n max={8}\n step={0.1}\n />\n </PanelBody>\n <PanelBody title={__('Heading Settings', 'vk-blocks')}>\n <label>{__('Level', 'vk-blocks')}</label>\n <HeadingToolbar minLevel={1} maxLevel={7} selectedLevel={level} onChange={setTitleFontSize}/>\n <p>{__('Text Alignment')}</p>\n <AlignmentToolbar\n value={align}\n onChange={(value) => {\n setAttributes({align: value});\n }}\n />\n <label>{__('Text size (rem)', 'vk-blocks')}</label>\n <RangeControl\n value={titleSize}\n onChange={(value) => {\n setAttributes({titleSize: value});\n }}\n min={0.5}\n max={4}\n step={0.1}\n />\n <label>{__('Heading margin bottom size (rem)', 'vk-blocks')}</label>\n <RangeControl\n value={titleMarginBottom}\n onChange={(value) => {\n setAttributes({titleMarginBottom: value});\n }}\n min={-1}\n max={3}\n step={0.1}\n />\n <ColorPalette\n value={titleColor}\n onChange={(value) => setAttributes({titleColor: value})}\n />\n </PanelBody>\n <PanelBody title={__('Sub Text Settings', 'vk-blocks')}>\n <RadioControl\n label={__('Position', 'vk-blocks')}\n selected={subTextFlag}\n options={[\n {label: __('Display', 'vk-blocks'), value: 'on'},\n {label: __('Hide', 'vk-blocks'), value: 'off'},\n ]}\n onChange={(value) => setAttributes({subTextFlag: value})}\n />\n <label>{__('Text size (rem)', 'vk-blocks')}</label>\n <RangeControl\n value={subTextSize}\n onChange={(value) => {\n setAttributes({subTextSize: value});\n }}\n min={0.5}\n max={3}\n step={0.1}\n />\n <ColorPalette\n value={subTextColor}\n onChange={(value) => setAttributes({subTextColor: value})}\n />\n </PanelBody>\n </InspectorControls>\n <Component\n attributes={attributes}\n setAttributes={setAttributes}\n className={className}\n for_={'edit'}/>\n </Fragment>\n );\n },\n\n /**\n * The save function defin className }> which the different attributes should be combined\n * into the final markup, which is then serialized by Gutenberg into post_content.\n *\n * The \"save\" property must be specified and must be a valid function.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/\n */\n save({attributes, className}) {\n return(\n <Component\n attributes={attributes}\n className={className}\n for_={'save'}/>\n );\n },\n\n deprecated: Version0_6_0\n});\n","export const schema = {\n level: {\n type: 'number',\n default: 2,\n },\n align: {\n type: 'string',\n },\n titleStyle: {\n type: 'string',\n default: 'default',\n },\n outerMarginBottom: {\n type: 'number',\n default: null,\n },\n title: {\n type: 'string',\n source: 'html',\n selector: 'h1,h2,h3,h4,h5,h6',\n default: '',\n },\n titleColor: {\n type: 'string',\n default: '#000000',\n },\n titleSize: {\n type: 'number',\n default: 2.6,\n },\n titleMarginBottom: {\n type: 'number',\n default: null,\n },\n subText: {\n source: 'html',\n selector: 'p',\n default: '',\n },\n subTextFlag: {\n type: 'string',\n default: 'on',\n },\n subTextColor: {\n type: 'string',\n default: '#000000',\n },\n subTextSize: {\n type: 'number',\n default: 1.8,\n },\n};\n","import React from \"react\";\nconst {RichText} = wp.editor;\n\nexport const deprecated = [\n {\n attributes: {\n style: {\n type: 'string',\n default: 'info',\n },\n content: {\n type: 'string',\n source: 'html',\n selector: 'p',\n }\n },\n save({attributes}) {\n const {\n style,\n content\n } = attributes;\n return (\n <div className={`alert alert-${style}`}>\n <RichText.Content\n tagName={'p'}\n value={content}/>\n </div>\n );\n },\n }\n];\n","/**\n * Alert block type\n *\n */\nimport {deprecated} from './deprecated';\n\nconst {__} = wp.i18n; // Import __() from wp.i18n\nconst { registerBlockType } = wp.blocks;\nconst { RichText } = wp.editor;\n\nregisterBlockType( 'vk-blocks/alert', {\n\n title: __('Alert', 'vk-blocks'),\n\n icon: 'info',\n\n category: 'vk-blocks-cat',\n\n attributes: {\n style: {\n type: 'string',\n default: 'info',\n },\n content: {\n type: 'string',\n source: 'html',\n selector: 'p',\n }\n },\n\n edit({attributes, setAttributes, className}) {\n const {\n style,\n content\n } = attributes;\n\n function onStyleChange(event){\n setAttributes({style: event.target.value});\n }\n\n function onChangeContent(newContent) {\n setAttributes({content: newContent});\n }\n\n return (\n <div className={`${className} alert alert-${style}`}>\n <select onChange={onStyleChange}>\n <option value={'success'} selected={style === 'success'}>Success</option>\n <option value={'info'} selected={style === 'info'}>Info</option>\n <option value={'warning'} selected={style === 'warning'}>Warning</option>\n <option value={'danger'} selected={style === 'danger'}>Danger</option>\n </select>\n <RichText\n tagName=\"p\"\n onChange={onChangeContent}\n value={content}\n />\n </div>\n );\n },\n\n save({attributes,className}) {\n const {\n style,\n content\n } = attributes;\n return (\n <div className={`${className} alert alert-${style}`}>\n <RichText.Content\n tagName={'p'}\n value={content}/>\n </div>\n );\n },\n deprecated: deprecated,\n} );\n","import React from 'react';\n\nexport class Component extends React.Component {\n\n render() {\n\n let buttonColorCustom = this.props.lbColorCustom;\n let buttonColor = this.props.lbColor;\n let buttonType = this.props.lbType;\n let buttonAlign = this.props.lbAlign;\n let buttonSize = this.props.lbSize;\n let buttonUrl = this.props.lbUrl;\n let buttonTarget = this.props.lbTarget;\n let fontAwesomeIconBefore = this.props.lbFontAwesomeIconBefore;\n let fontAwesomeIconAfter = this.props.lbFontAwesomeIconAfter;\n let richText = this.props.lbRichtext;\n let subCaption = this.props.lbsubCaption;\n let containerClass = '';\n let aClass = '';\n let aStyle = {};\n let iconBefore = '';\n let iconAfter = '';\n\n aClass = `btn vk_button_link`;\n\n if (buttonColorCustom) {\n\n aClass = `${aClass} btn-primary btn-${buttonSize}`;\n\n // 塗り\n if (buttonType === '0') {\n aStyle = {\n backgroundColor: buttonColorCustom,\n border: `1px solid ${buttonColorCustom}`\n };\n // 塗りなし\n } else if (buttonType === '1') {\n aStyle = {\n backgroundColor: 'transparent',\n border: '1px solid ' + buttonColorCustom,\n color: buttonColorCustom\n };\n }\n\n\t\t\t\t// カスタムカラーじゃない場合\n } else if (!buttonColorCustom) {\n\n // 塗り\n if (buttonType === '0') {\n aClass = `${aClass} btn-${buttonSize} btn-${buttonColor}`;\n aStyle = null;\n // 塗りなし\n } else if (buttonType === '1') {\n aClass = `${aClass} btn-${buttonSize} btn-outline-${buttonColor}`;\n aStyle = null;\n }\n\n }\n\n if ( buttonAlign === 'block' ){\n \taClass = `${aClass} btn-block`;\n }\n\n\n\n if (fontAwesomeIconBefore) {\n iconBefore = <i className={`${fontAwesomeIconBefore} vk_button_link_before`}></i> ;\n }\n if (fontAwesomeIconAfter) {\n iconAfter = <i className={`${fontAwesomeIconAfter} vk_button_link_after`}></i>;\n }\n\n return (\n <a\n href={buttonUrl}\n id={'vk_button_link'}\n style={aStyle}\n className={aClass}\n role={'button'}\n aria-pressed={true}\n target={buttonTarget? '_blank':null}\n rel={'noopener noreferrer'}\n >\n {iconBefore}\n {richText}\n {iconAfter}\n {/*サブキャプションが入力された時のみ表示*/}\n {subCaption && <p className={'vk_button_link_subCaption'}>{subCaption}</p>}\n </a>\n );\n }\n}\n","import React from 'react';\n\nexport class ComponentDeprecated extends React.Component {\n\n render() {\n\n let buttonColorCustom = this.props.lbColorCustom;\n let buttonColor = this.props.lbColor;\n let buttonType = this.props.lbType;\n let buttonAlign = this.props.lbAlign;\n let buttonSize = this.props.lbSize;\n let buttonUrl = this.props.lbUrl;\n let buttonTarget = this.props.lbTarget;\n let fontAwesomeIconBefore = this.props.lbFontAwesomeIconBefore;\n let fontAwesomeIconAfter = this.props.lbFontAwesomeIconAfter;\n let richText = this.props.lbRichtext;\n let subCaption = this.props.lbsubCaption;\n let containerClass = '';\n let aClass = '';\n let aStyle = {};\n let iconBefore = '';\n let iconAfter = '';\n\n aClass = `btn vk_button_link`;\n\n if (buttonColorCustom) {\n\n aClass = `${aClass} btn-primary btn-${buttonSize}`;\n\n // 塗り\n if (buttonType === '0') {\n aStyle = {\n backgroundColor: buttonColorCustom,\n border: `1px solid ${buttonColorCustom}`\n };\n // 塗りなし\n } else if (buttonType === '1') {\n aStyle = {\n backgroundColor: 'transparent',\n border: '1px solid ' + buttonColorCustom,\n color: buttonColorCustom\n };\n }\n\n\t\t\t\t// カスタムカラーじゃない場合\n } else if (!buttonColorCustom) {\n\n // 塗り\n if (buttonType === '0') {\n aClass = `${aClass} btn-${buttonSize} btn-${buttonColor}`;\n aStyle = null;\n // 塗りなし\n } else if (buttonType === '1') {\n aClass = `${aClass} btn-${buttonSize} btn-outline-${buttonColor}`;\n aStyle = null;\n }\n\n }\n\n if ( buttonAlign === 'block' ){\n \taClass = `${aClass} btn-block`;\n }\n\n\n\n if (fontAwesomeIconBefore) {\n iconBefore = <i className={`${fontAwesomeIconBefore} vk_button_link_before`}></i> ;\n }\n if (fontAwesomeIconAfter) {\n iconAfter = <i className={`${fontAwesomeIconAfter} vk_button_link_after`}></i>;\n }\n\n return (\n <a\n href={buttonUrl}\n className={aClass}\n role={'button'}\n aria-pressed={true}\n style={aStyle}\n target={buttonTarget? '_blank':null}\n >\n {iconBefore}\n {richText}\n {iconAfter}\n\n </a>\n );\n }\n}\n","import React from 'react';\n\nexport class ComponentDeprecatedId extends React.Component {\n\n render() {\n\n let buttonColorCustom = this.props.lbColorCustom;\n let buttonColor = this.props.lbColor;\n let buttonType = this.props.lbType;\n let buttonAlign = this.props.lbAlign;\n let buttonSize = this.props.lbSize;\n let buttonUrl = this.props.lbUrl;\n let buttonTarget = this.props.lbTarget;\n let fontAwesomeIconBefore = this.props.lbFontAwesomeIconBefore;\n let fontAwesomeIconAfter = this.props.lbFontAwesomeIconAfter;\n let richText = this.props.lbRichtext;\n let subCaption = this.props.lbsubCaption;\n let containerClass = '';\n let aClass = '';\n let aStyle = {};\n let iconBefore = '';\n let iconAfter = '';\n\n aClass = `btn vk_button_link`;\n\n if (buttonColorCustom) {\n\n aClass = `${aClass} btn-primary btn-${buttonSize}`;\n\n // 塗り\n if (buttonType === '0') {\n aStyle = {\n backgroundColor: buttonColorCustom,\n border: `1px solid ${buttonColorCustom}`\n };\n // 塗りなし\n } else if (buttonType === '1') {\n aStyle = {\n backgroundColor: 'transparent',\n border: '1px solid ' + buttonColorCustom,\n color: buttonColorCustom\n };\n }\n\n\t\t\t\t// カスタムカラーじゃない場合\n } else if (!buttonColorCustom) {\n\n // 塗り\n if (buttonType === '0') {\n aClass = `${aClass} btn-${buttonSize} btn-${buttonColor}`;\n aStyle = null;\n // 塗りなし\n } else if (buttonType === '1') {\n aClass = `${aClass} btn-${buttonSize} btn-outline-${buttonColor}`;\n aStyle = null;\n }\n\n }\n\n if ( buttonAlign === 'block' ){\n \taClass = `${aClass} btn-block`;\n }\n\n\n\n if (fontAwesomeIconBefore) {\n iconBefore = <i className={`${fontAwesomeIconBefore} vk_button_link_before`}></i> ;\n }\n if (fontAwesomeIconAfter) {\n iconAfter = <i className={`${fontAwesomeIconAfter} vk_button_link_after`}></i>;\n }\n\n return (\n <a\n href={buttonUrl}\n id={'vk_button_link'}\n className={aClass}\n role={'button'}\n aria-pressed={true}\n style={aStyle}\n target={buttonTarget? '_blank':null}\n >\n {iconBefore}\n {richText}\n {iconAfter}\n\n </a>\n );\n }\n}\n","import React from 'react';\n\nexport class ComponentDeprecatedNoOpnnerNoRefererID extends React.Component {\n\n render() {\n\n let buttonColorCustom = this.props.lbColorCustom;\n let buttonColor = this.props.lbColor;\n let buttonType = this.props.lbType;\n let buttonAlign = this.props.lbAlign;\n let buttonSize = this.props.lbSize;\n let buttonUrl = this.props.lbUrl;\n let buttonTarget = this.props.lbTarget;\n let fontAwesomeIconBefore = this.props.lbFontAwesomeIconBefore;\n let fontAwesomeIconAfter = this.props.lbFontAwesomeIconAfter;\n let richText = this.props.lbRichtext;\n let subCaption = this.props.lbsubCaption;\n let containerClass = '';\n let aClass = '';\n let aStyle = {};\n let iconBefore = '';\n let iconAfter = '';\n\n aClass = `btn vk_button_link`;\n\n if (buttonColorCustom) {\n\n aClass = `${aClass} btn-primary btn-${buttonSize}`;\n\n // 塗り\n if (buttonType === '0') {\n aStyle = {\n backgroundColor: buttonColorCustom,\n border: `1px solid ${buttonColorCustom}`\n };\n // 塗りなし\n } else if (buttonType === '1') {\n aStyle = {\n backgroundColor: 'transparent',\n border: '1px solid ' + buttonColorCustom,\n color: buttonColorCustom\n };\n }\n\n\t\t\t\t// カスタムカラーじゃない場合\n } else if (!buttonColorCustom) {\n\n // 塗り\n if (buttonType === '0') {\n aClass = `${aClass} btn-${buttonSize} btn-${buttonColor}`;\n aStyle = null;\n // 塗りなし\n } else if (buttonType === '1') {\n aClass = `${aClass} btn-${buttonSize} btn-outline-${buttonColor}`;\n aStyle = null;\n }\n\n }\n\n if ( buttonAlign === 'block' ){\n \taClass = `${aClass} btn-block`;\n }\n\n\n\n if (fontAwesomeIconBefore) {\n iconBefore = <i className={`${fontAwesomeIconBefore} vk_button_link_before`}></i> ;\n }\n if (fontAwesomeIconAfter) {\n iconAfter = <i className={`${fontAwesomeIconAfter} vk_button_link_after`}></i>;\n }\n\n return (\n <a\n href={buttonUrl}\n id={'vk_button_link'}\n className={aClass}\n role={'button'}\n aria-pressed={true}\n style={aStyle}\n target={buttonTarget? '_blank':null}\n rel={'noopener noreferrer'}\n >\n\t\t\t\t\t\t\t\t\t\t\t\t{iconBefore}\n {richText}\n\t\t\t\t\t\t\t\t\t\t\t\t{iconAfter}\n {/*サブキャプションが入力された時のみ表示*/}\n {subCaption && <p className={'vk_button_link_subCaption'}>{subCaption}</p>}\n </a>\n );\n }\n}\n","import React from 'react';\n\nexport class ComponentDeprecatedSubcaptionNoopennerId extends React.Component {\n\n render() {\n\n let buttonColorCustom = this.props.lbColorCustom;\n let buttonColor = this.props.lbColor;\n let buttonType = this.props.lbType;\n let buttonAlign = this.props.lbAlign;\n let buttonSize = this.props.lbSize;\n let buttonUrl = this.props.lbUrl;\n let buttonTarget = this.props.lbTarget;\n let fontAwesomeIconBefore = this.props.lbFontAwesomeIconBefore;\n let fontAwesomeIconAfter = this.props.lbFontAwesomeIconAfter;\n let richText = this.props.lbRichtext;\n let subCaption = this.props.lbsubCaption;\n let containerClass = '';\n let aClass = '';\n let aStyle = {};\n let iconBefore = '';\n let iconAfter = '';\n\n aClass = `btn vk_button_link`;\n\n if (buttonColorCustom) {\n\n aClass = `${aClass} btn-primary btn-${buttonSize}`;\n\n // 塗り\n if (buttonType === '0') {\n aStyle = {\n backgroundColor: buttonColorCustom,\n border: `1px solid ${buttonColorCustom}`\n };\n // 塗りなし\n } else if (buttonType === '1') {\n aStyle = {\n backgroundColor: 'transparent',\n border: '1px solid ' + buttonColorCustom,\n color: buttonColorCustom\n };\n }\n\n\t\t\t\t// カスタムカラーじゃない場合\n } else if (!buttonColorCustom) {\n\n // 塗り\n if (buttonType === '0') {\n aClass = `${aClass} btn-${buttonSize} btn-${buttonColor}`;\n aStyle = null;\n // 塗りなし\n } else if (buttonType === '1') {\n aClass = `${aClass} btn-${buttonSize} btn-outline-${buttonColor}`;\n aStyle = null;\n }\n\n }\n\n if ( buttonAlign === 'block' ){\n \taClass = `${aClass} btn-block`;\n }\n\n\n\n if (fontAwesomeIconBefore) {\n iconBefore = <i className={`${fontAwesomeIconBefore} vk_button_link_before`}></i> ;\n }\n if (fontAwesomeIconAfter) {\n iconAfter = <i className={`${fontAwesomeIconAfter} vk_button_link_after`}></i>;\n }\n\n return (\n <a\n href={buttonUrl}\n id={'vk_button_link'}\n className={aClass}\n role={'button'}\n aria-pressed={true}\n style={aStyle}\n target={buttonTarget? '_blank':null}\n >\n\t\t\t\t\t\t\t\t\t\t\t\t{iconBefore}\n {richText}\n\t\t\t\t\t\t\t\t\t\t\t\t{iconAfter}\n {/*サブキャプションが入力された時のみ表示*/}\n {subCaption && <p className={'vk_button_link_subCaption'}>{subCaption}</p>}\n </a>\n );\n }\n}\n","import React from \"react\";\nimport {ComponentDeprecated} from \"./component-deprecated\";\nimport {ComponentDeprecatedId} from \"./component-deprecated-id\";\nimport {ComponentDeprecatedNoOpnnerNoRefererID} from \"./component-deprecated-noopenernoreferer-id\";\nimport {ComponentDeprecatedSubcaptionNoopennerId} from \"./component-deprecated-subcaption-noNoopnnernoreferer-id\";\n\nconst { RichText } = wp.editor;\n\nexport const deprecated = [\n\t{\n\t\tattributes: {\n\t\t\tcontent: {\n\t\t\t\tsource: 'html',\n\t\t\t\tselector: 'span',\n\t\t\t},\n\t\t\tbuttonUrl: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: null,\n\t\t\t},\n\t\t\tbuttonTarget: {\n\t\t\t\ttype: 'Boolean',\n\t\t\t\tdefault: false,\n\t\t\t},\n\t\t\tbuttonSize: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: 'md',\n\t\t\t},\n\t\t\tbuttonType: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: '0',\n\t\t\t},\n\t\t\tbuttonColor: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: 'primary',\n\t\t\t},\n\t\t\tbuttonColorCustom: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: null,\n\t\t\t},\n\t\t\tbuttonAlign: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: 'left',\n\t\t\t},\n\t\t\tfontAwesomeIconBefore: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: null,\n\t\t\t},\n\t\t\tfontAwesomeIconAfter: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: null,\n\t\t\t}\n\t\t},\n\n\t\tsave({attributes}) {\n\t\t\tconst {\n\t\t\t\tcontent,\n\t\t\t\tbuttonUrl,\n\t\t\t\tbuttonTarget,\n\t\t\t\tbuttonSize,\n\t\t\t\tbuttonType,\n\t\t\t\tbuttonColor,\n\t\t\t\tbuttonColorCustom,\n\t\t\t\tbuttonAlign,\n\t\t\t\tfontAwesomeIconBefore,\n\t\t\t\tfontAwesomeIconAfter,\n\t\t\t} = attributes;\n\n\t\t\tlet containerClass = '';\n\n\t\t\tif (buttonColorCustom) {\n\n\t\t\t\tcontainerClass = `vk_button vk_button-color-custom vk_button-align-${buttonAlign}`;\n\n\t\t\t} else if (!buttonColorCustom) {\n\n\t\t\t\tcontainerClass = `vk_button vk_button-align-${buttonAlign}`;\n\n\t\t\t}\n\n\t\t\treturn (\n\t\t\t\t<div className={containerClass}>\n\n\t\t\t\t\t<ComponentDeprecated lbColorCustom={buttonColorCustom} lbColor={buttonColor} lbType={buttonType}\n\t\t\t\t\t\t\t\t\t\t lbAlign={buttonAlign}\n\t\t\t\t\t\t\t\t\t\t lbSize={buttonSize}\n\t\t\t\t\t\t\t\t\t\t lbUrl={buttonUrl}\n\t\t\t\t\t\t\t\t\t\t lbTarget={buttonTarget}\n\t\t\t\t\t\t\t\t\t\t lbFontAwesomeIconBefore={fontAwesomeIconBefore}\n\t\t\t\t\t\t\t\t\t\t lbFontAwesomeIconAfter={fontAwesomeIconAfter}\n\t\t\t\t\t\t\t\t\t\t lbRichtext={\n\t\t\t\t\t\t\t\t\t\t\t <RichText.Content\n\t\t\t\t\t\t\t\t\t\t\t\t tagName=\"span\"\n\t\t\t\t\t\t\t\t\t\t\t\t className={'vk_button_link_txt'}\n\t\t\t\t\t\t\t\t\t\t\t\t value={content}\n\t\t\t\t\t\t\t\t\t\t\t />\n\t\t\t\t\t\t\t\t\t\t }/>\n\t\t\t\t</div>\n\t\t\t);\n\t\t},\n\t},\n\t{\n\t\tattributes: {\n\t\t\tcontent: {\n\t\t\t\tsource: 'html',\n\t\t\t\tselector: 'span',\n\t\t\t},\n\t\t\tbuttonUrl: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: null,\n\t\t\t},\n\t\t\tbuttonTarget: {\n\t\t\t\ttype: 'Boolean',\n\t\t\t\tdefault: false,\n\t\t\t},\n\t\t\tbuttonSize: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: 'md',\n\t\t\t},\n\t\t\tbuttonType: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: '0',\n\t\t\t},\n\t\t\tbuttonColor: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: 'primary',\n\t\t\t},\n\t\t\tbuttonColorCustom: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: null,\n\t\t\t},\n\t\t\tbuttonAlign: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: 'left',\n\t\t\t},\n\t\t\tfontAwesomeIconBefore: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: null,\n\t\t\t},\n\t\t\tfontAwesomeIconAfter: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: null,\n\t\t\t}\n\t\t},\n\n\t\tsave({attributes}) {\n\t\t\tconst {\n\t\t\t\tcontent,\n\t\t\t\tbuttonUrl,\n\t\t\t\tbuttonTarget,\n\t\t\t\tbuttonSize,\n\t\t\t\tbuttonType,\n\t\t\t\tbuttonColor,\n\t\t\t\tbuttonColorCustom,\n\t\t\t\tbuttonAlign,\n\t\t\t\tfontAwesomeIconBefore,\n\t\t\t\tfontAwesomeIconAfter,\n\t\t\t} = attributes;\n\n\t\t\tlet containerClass = '';\n\n\t\t\tif (buttonColorCustom) {\n\n\t\t\t\tcontainerClass = `vk_button vk_button-color-custom vk_button-align-${buttonAlign}`;\n\n\t\t\t} else if (!buttonColorCustom) {\n\n\t\t\t\tcontainerClass = `vk_button vk_button-align-${buttonAlign}`;\n\n\t\t\t}\n\n\t\t\treturn (\n\t\t\t\t<div className={containerClass}>\n\n\t\t\t\t\t<ComponentDeprecatedId lbColorCustom={buttonColorCustom} lbColor={buttonColor} lbType={buttonType}\n\t\t\t\t\t\t\t\t\t\t lbAlign={buttonAlign}\n\t\t\t\t\t\t\t\t\t\t lbSize={buttonSize}\n\t\t\t\t\t\t\t\t\t\t lbUrl={buttonUrl}\n\t\t\t\t\t\t\t\t\t\t lbTarget={buttonTarget}\n\t\t\t\t\t\t\t\t\t\t lbFontAwesomeIconBefore={fontAwesomeIconBefore}\n\t\t\t\t\t\t\t\t\t\t lbFontAwesomeIconAfter={fontAwesomeIconAfter}\n\t\t\t\t\t\t\t\t\t\t lbRichtext={\n\t\t\t\t\t\t\t\t\t\t\t <RichText.Content\n\t\t\t\t\t\t\t\t\t\t\t\t tagName=\"span\"\n\t\t\t\t\t\t\t\t\t\t\t\t className={'vk_button_link_txt'}\n\t\t\t\t\t\t\t\t\t\t\t\t value={content}\n\t\t\t\t\t\t\t\t\t\t\t />\n\t\t\t\t\t\t\t\t\t\t }/>\n\t\t\t\t</div>\n\t\t\t);\n\t\t},\n\t},\n\t{\n\t\tattributes: {\n\t\t\tcontent: {\n\t\t\t\tsource: 'html',\n\t\t\t\tselector: 'span',\n\t\t\t},\n\t\t\tsubCaption: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: null,\n\t\t\t},\n\t\t\tbuttonUrl: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: null,\n\t\t\t},\n\t\t\tbuttonTarget: {\n\t\t\t\ttype: 'Boolean',\n\t\t\t\tdefault: false,\n\t\t\t},\n\t\t\tbuttonSize: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: 'md',\n\t\t\t},\n\t\t\tbuttonType: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: '0',\n\t\t\t},\n\t\t\tbuttonColor: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: 'primary',\n\t\t\t},\n\t\t\tbuttonColorCustom: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: null,\n\t\t\t},\n\t\t\tbuttonAlign: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: 'left',\n\t\t\t},\n\t\t\tfontAwesomeIconBefore: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: null,\n\t\t\t},\n\t\t\tfontAwesomeIconAfter: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: null,\n\t\t\t}\n\t\t},\n\t\tsave({attributes, className}) {\n\t\t\tconst {\n\t\t\t\tcontent,\n\t\t\t\tsubCaption,\n\t\t\t\tbuttonUrl,\n\t\t\t\tbuttonTarget,\n\t\t\t\tbuttonSize,\n\t\t\t\tbuttonType,\n\t\t\t\tbuttonColor,\n\t\t\t\tbuttonColorCustom,\n\t\t\t\tbuttonAlign,\n\t\t\t\tfontAwesomeIconBefore,\n\t\t\t\tfontAwesomeIconAfter,\n\t\t\t} = attributes;\n\n\t\t\tlet containerClass = '';\n\n\t\t\tif (buttonColorCustom) {\n\n\t\t\t\tcontainerClass = `vk_button vk_button-color-custom vk_button-align-${buttonAlign}`;\n\n\t\t\t} else if (!buttonColorCustom) {\n\n\t\t\t\tcontainerClass = `vk_button vk_button-align-${buttonAlign}`;\n\n\t\t\t}\n\n\t\t\treturn (\n\t\t\t\t<div className={containerClass}>\n\n\t\t\t\t\t<ComponentDeprecatedNoOpnnerNoRefererID lbColorCustom={buttonColorCustom} lbColor={buttonColor}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlbType={buttonType}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlbAlign={buttonAlign}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlbSize={buttonSize}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlbUrl={buttonUrl}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlbTarget={buttonTarget}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlbFontAwesomeIconBefore={fontAwesomeIconBefore}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlbFontAwesomeIconAfter={fontAwesomeIconAfter}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlbsubCaption={subCaption}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlbRichtext={\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<RichText.Content\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttagName=\"span\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tclassName={'vk_button_link_txt'}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvalue={content}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}/>\n\t\t\t\t</div>\n\t\t\t);\n\t\t},\n\t},\n\t{\n\t\tattributes: {\n\t\t\tcontent: {\n\t\t\t\tsource: 'html',\n\t\t\t\tselector: 'span',\n\t\t\t},\n\t\t\tsubCaption: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: null,\n\t\t\t},\n\t\t\tbuttonUrl: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: null,\n\t\t\t},\n\t\t\tbuttonTarget: {\n\t\t\t\ttype: 'Boolean',\n\t\t\t\tdefault: false,\n\t\t\t},\n\t\t\tbuttonSize: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: 'md',\n\t\t\t},\n\t\t\tbuttonType: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: '0',\n\t\t\t},\n\t\t\tbuttonColor: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: 'primary',\n\t\t\t},\n\t\t\tbuttonColorCustom: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: null,\n\t\t\t},\n\t\t\tbuttonAlign: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: 'left',\n\t\t\t},\n\t\t\tfontAwesomeIconBefore: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: null,\n\t\t\t},\n\t\t\tfontAwesomeIconAfter: {\n\t\t\t\ttype: 'string',\n\t\t\t\tdefault: null,\n\t\t\t}\n\t\t},\n\t\tsave({attributes, className}) {\n\t\t\tconst {\n\t\t\t\tcontent,\n\t\t\t\tsubCaption,\n\t\t\t\tbuttonUrl,\n\t\t\t\tbuttonTarget,\n\t\t\t\tbuttonSize,\n\t\t\t\tbuttonType,\n\t\t\t\tbuttonColor,\n\t\t\t\tbuttonColorCustom,\n\t\t\t\tbuttonAlign,\n\t\t\t\tfontAwesomeIconBefore,\n\t\t\t\tfontAwesomeIconAfter,\n\t\t\t} = attributes;\n\n\t\t\tlet containerClass = '';\n\n\t\t\tif (buttonColorCustom) {\n\n\t\t\t\tcontainerClass = `vk_button vk_button-color-custom vk_button-align-${buttonAlign}`;\n\n\t\t\t} else if (!buttonColorCustom) {\n\n\t\t\t\tcontainerClass = `vk_button vk_button-align-${buttonAlign}`;\n\n\t\t\t}\n\n\t\t\treturn (\n\t\t\t\t<div className={containerClass}>\n\n\t\t\t\t\t<ComponentDeprecatedSubcaptionNoopennerId lbColorCustom={buttonColorCustom}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t lbColor={buttonColor}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t lbType={buttonType}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t lbAlign={buttonAlign}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t lbSize={buttonSize}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t lbUrl={buttonUrl}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t lbTarget={buttonTarget}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t lbFontAwesomeIconBefore={fontAwesomeIconBefore}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t lbFontAwesomeIconAfter={fontAwesomeIconAfter}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t lbsubCaption={subCaption}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t lbRichtext={\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t <RichText.Content\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t tagName=\"span\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t className={'vk_button_link_txt'}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t value={content}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t />\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t }/>\n\t\t\t\t</div>\n\t\t\t);\n\t\t}\n\n\t}\n];\n","/**\n * Button block type\n *\n */\nimport React from \"react\";\nimport {Component} from \"./component\";\nimport {deprecated} from \"./deprecated/deprecated\";\n\nconst {__} = wp.i18n; // Import __() from wp.i18n\nconst {registerBlockType} = wp.blocks; // Import registerBlockType() from wp.blocks\nconst {RangeControl, RadioControl, PanelBody, Button, BaseControl, CheckboxControl, TextControl, Dashicon, IconButton,} = wp.components;\nconst {Fragment} = wp.element;\nconst {RichText, InspectorControls, MediaUpload, ColorPalette, URLInput,} = wp.editor;\nconst BlockIcon = (\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"576\" height=\"512\" viewBox=\"0 0 576 512\">\n\t\t<g>\n\t\t\t<path d=\"M506,185v142H70V185H506 M526.4,137H49.6C34.4,137,22,149.4,22,164.6v182.8c0,15.2,12.4,27.6,27.6,27.6h476.8\n\t\t\t\tc15.2,0,27.6-12.4,27.6-27.6V164.6C554,149.4,541.6,137,526.4,137L526.4,137z\"/>\n\t\t</g>\n\t\t<g>\n\t\t\t<path d=\"M83.8,206.9h55.9c9.3,0,16.5,2.3,21.5,6.9c5,4.6,7.5,10.3,7.5,17.1c0,5.7-1.8,10.6-5.3,14.7c-2.4,2.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18.5\n\t\t\t\tc-6.6,1.5-12.8,2.2-18.6,2.2c-6.7,0-11.6-0.9-14.8-2.6c-3.2-1.7-5.5-4.3-7-7.8c-1.5-3.5-2.3-9.1-2.3-17v-24.6h-9.9v-19.7h9.9v-12.9\n\t\t\t\tL330.2,206.9z\"/>\n\t\t\t<path d=\"M339.6,268.7c0-10.7,3.6-19.5,10.8-26.4s16.9-10.4,29.2-10.4c14,0,24.6,4.1,31.8,12.2c5.8,6.6,8.6,14.6,8.6,24.2\n\t\t\t\tc0,10.8-3.6,19.6-10.7,26.5c-7.1,6.9-17,10.3-29.6,10.3c-11.3,0-20.4-2.9-27.3-8.6C343.9,289.5,339.6,280.2,339.6,268.7z\n\t\t\t\t M366.5,268.7c0,6.2,1.3,10.9,3.8,13.8c2.5,3,5.7,4.5,9.5,4.5c3.9,0,7-1.5,9.5-4.4c2.5-2.9,3.7-7.7,3.7-14.2\n\t\t\t\tc0-6.1-1.3-10.6-3.8-13.6s-5.6-4.5-9.3-4.5c-3.9,0-7.1,1.5-9.7,4.5C367.8,257.9,366.5,262.5,366.5,268.7z\"/>\n\t\t\t<path d=\"M418.2,233.5h25v11.4c3.7-4.7,7.5-8,11.3-10c3.8-2,8.5-3,14-3c7.4,0,13.2,2.2,17.4,6.6c4.2,4.4,6.3,11.2,6.3,20.5v44.5h-27\n\t\t\t\tV265c0-4.4-0.8-7.5-2.4-9.3c-1.6-1.8-3.9-2.7-6.9-2.7c-3.3,0-5.9,1.2-7.9,3.7c-2,2.5-3,6.9-3,13.3v33.6h-26.8V233.5z\"/>\n\t\t</g>\n </svg>\n);\n\n/**\n * Register: a Gutenberg Block.\n *\n * Registers a new block provided a unique name and an object defining its\n * behavior. Once registered, the block is made editor as an option to any\n * editor interface where blocks are implemented.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/\n * @param {string} name Block name.\n * @param {Object} settings Block settings.\n * @return {?WPBlock} The block, if it has been successfully\n * registered; otherwise `undefined`.\n */\nregisterBlockType('vk-blocks/button', {\n // Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.\n title: __('Button', 'vk-blocks'), // Block title.\n icon: BlockIcon, // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.\n category: 'vk-blocks-cat', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.\n attributes: {\n content: {\n source: 'html',\n selector: 'span',\n },\n subCaption: {\n type: 'string',\n default: null,\n },\n buttonUrl: {\n type: 'string',\n default: null,\n },\n buttonTarget: {\n type: 'Boolean',\n default: false,\n },\n buttonSize: {\n type: 'string',\n default: 'md',\n },\n buttonType: {\n type: 'string',\n default: '0',\n },\n buttonColor: {\n type: 'string',\n default: 'primary',\n },\n buttonColorCustom: {\n type: 'string',\n default: null,\n },\n buttonAlign: {\n type: 'string',\n default: 'left',\n },\n fontAwesomeIconBefore: {\n type: 'string',\n default: null,\n },\n fontAwesomeIconAfter: {\n type: 'string',\n default: null,\n }\n },\n\n /**\n * The edit function describes the structure of your block in the context of the editor.\n * This represents what the editor will render when the block is used.\n *\n * The \"edit\" property must be a valid function.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/\n */\n edit({attributes, className, setAttributes, isSelected}) {\n const {\n content,\n subCaption,\n buttonUrl,\n buttonTarget,\n buttonSize,\n buttonType,\n