Version Description
[ Specification Change ] Admin dashboard banner include [ Specification Change ] Stop exclude CSS Var by Tree shaking
Download this release
Release Info
Developer | kurudrive |
Plugin | VK All in One Expansion Unit |
Version | 9.61.2.0 |
Comparing to | |
See all releases |
Code changes from version 9.61.1.1 to 9.61.2.0
- admin/vk-admin/package/class-vk-admin.php +61 -90
- inc/sns/icons/Read Me.txt +7 -7
- inc/sns/icons/demo-files/demo.js:Zone.Identifier +3 -0
- inc/sns/icons/demo.html +24 -36
- inc/sns/icons/fonts/vk_sns.eot +0 -0
- inc/sns/icons/fonts/vk_sns.svg +6 -6
- inc/sns/icons/fonts/vk_sns.ttf +0 -0
- inc/sns/icons/fonts/vk_sns.woff +0 -0
- inc/sns/icons/selection.json +1 -183
- inc/sns/icons/style.css +14 -16
- inc/vk-css-optimize/package/class-css-tree-shaking.php +195 -167
- readme.txt +6 -2
- vkExUnit.php +1 -1
admin/vk-admin/package/class-vk-admin.php
CHANGED
@@ -46,7 +46,7 @@ if ( ! class_exists( 'Vk_Admin' ) ) {
|
|
46 |
|
47 |
/**
|
48 |
* Plugin Exists
|
49 |
-
*
|
50 |
* @param string $plugin '${plugin_dir}/${plugin_file}.php'.
|
51 |
*/
|
52 |
public static function plugin_exists( $plugin ) {
|
@@ -55,7 +55,7 @@ if ( ! class_exists( 'Vk_Admin' ) ) {
|
|
55 |
|
56 |
/**
|
57 |
* Theme Exists
|
58 |
-
*
|
59 |
* @param string $theme '${theme_dir}/style.css'.
|
60 |
*/
|
61 |
public static function theme_exists( $theme ) {
|
@@ -75,114 +75,85 @@ if ( ! class_exists( 'Vk_Admin' ) ) {
|
|
75 |
get_admin_banner
|
76 |
/*--------------------------------------------------*/
|
77 |
public static function get_admin_banner() {
|
78 |
-
$banner = '';
|
79 |
-
$dir_url = plugin_dir_url( __FILE__ );
|
80 |
-
$lang = ( get_locale() == 'ja' ) ? 'ja' : 'en';
|
81 |
|
82 |
-
$
|
83 |
-
|
84 |
-
|
85 |
-
// $banner .= '<img src="' . $dir_url . 'images/admin_banner_recruit.jpg" alt="[ Vektor,Inc. 採用情報 ]" />';
|
86 |
-
// $banner .= '</a>';
|
87 |
-
} else {
|
88 |
-
$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>';
|
89 |
-
}
|
90 |
|
91 |
-
|
|
|
92 |
|
93 |
-
//
|
94 |
-
|
95 |
-
if ( $lang == 'ja' ) {
|
96 |
-
$banner .= '<a href="https://www.vektor-inc.co.jp/service/wordpress-theme/katawara/?rel=vkadmin" target="_blank" class="admin_banner"><img src="' . $dir_url . 'images/katawara_bnr.jpg" alt="katawara_bnr_ja" /></a>';
|
97 |
-
}
|
98 |
-
}
|
99 |
|
100 |
-
//
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
} else {
|
105 |
-
$bnr_file_name = 'vk-block-patterns_bnr_en.jpg';
|
106 |
-
}
|
107 |
-
$banner .= '<a href="'.admin_url('plugin-install.php?s=vk+block+patterns&tab=search&type=term').'" target="_blank" class="admin_banner"><img src="' . $dir_url . 'images/' . $bnr_file_name . '" alt="VK Block Patterns" /></a>';
|
108 |
-
}
|
109 |
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
$bnr_file_name = 'vk-link-target-controller_notxt_bnr.jpg';
|
116 |
-
}
|
117 |
-
$banner .= '<a href="' . admin_url( 'plugin-install.php?s=vk+link+target+controller&tab=search&type=term' ) . '" target="_blank" class="admin_banner"><img src="' . $dir_url . 'images/' . $bnr_file_name . '" alt="Link Target Controller" /></a>';
|
118 |
-
}
|
119 |
|
120 |
-
// プラグイン VK Aost Author Display を有効化していない人にバナーを表示
|
121 |
-
if ( ! self::plugin_exists( 'vk-post-author-display/post-author-display.php' ) ) {
|
122 |
-
if ( $lang == 'ja' ) {
|
123 |
-
$bnr_file_name = 'post_author_display_bnr_ja.jpg';
|
124 |
-
} else {
|
125 |
-
$bnr_file_name = 'post_author_display_bnr_en.jpg';
|
126 |
-
}
|
127 |
-
$banner .= '<a href="' . admin_url( 'plugin-install.php?s=VK+Post+Author+Display&tab=search&type=term' ) . '" target="_blank" class="admin_banner"><img src="' . $dir_url . 'images/' . $bnr_file_name . '" alt="VK Post Author
|
128 |
-
Display" /></a>';
|
129 |
}
|
130 |
|
131 |
-
|
132 |
-
if ( ! self::plugin_exists( 'vk-google-job-posting-manager/vk-google-job-posting-manager.php' ) ) {
|
133 |
-
if ( $lang == 'ja' ) {
|
134 |
-
$bnr_file_name = 'job_banner-336_280-ja.jpg';
|
135 |
-
} else {
|
136 |
-
$bnr_file_name = 'job_banner-336_280-en.jpg';
|
137 |
-
}
|
138 |
-
$banner .= '<a href="//wordpress.org/plugins/vk-google-job-posting-manager/" target="_blank" class="admin_banner"><img src="' . $dir_url . 'images/' . $bnr_file_name . '" alt="VK Post Author
|
139 |
-
Display" /></a>';
|
140 |
-
}
|
141 |
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
} // if ( $lang == 'ja' ) {
|
149 |
-
} // if ( $theme != 'lightning' ) {
|
150 |
-
|
151 |
-
if ( ! self::theme_exists( 'bill-vektor/style.css' ) && ! self::theme_exists( 'bill-vektor-master/style.css' ) && 'ja' === $lang ) {
|
152 |
-
$banner .= '<a href="//billvektor.com" target="_blank" class="admin_banner"><img src="' . $dir_url . 'images/billvektor_banner.png" alt="見積書・請求書管理用WordPressテーマ" /></a>';
|
153 |
}
|
154 |
|
155 |
-
|
156 |
-
$banner .= '<a href="https://lightning.nagoya/ja/expansion/lightning-pro" target="_blank" class="admin_banner"><img src="' . $dir_url . 'images/lightning-pro-bnr.jpg" alt="" /></a>';
|
157 |
-
}
|
158 |
|
159 |
-
|
160 |
-
|
161 |
-
}
|
162 |
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
|
167 |
-
|
168 |
-
|
169 |
-
}
|
170 |
|
171 |
-
|
172 |
-
|
173 |
-
|
|
|
174 |
|
175 |
-
|
176 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
177 |
}
|
178 |
|
179 |
-
$
|
180 |
|
181 |
-
$
|
182 |
|
183 |
-
$
|
184 |
|
185 |
-
return apply_filters( 'vk_admin_banner_html', $
|
186 |
}
|
187 |
|
188 |
/*
|
@@ -204,7 +175,7 @@ if ( ! class_exists( 'Vk_Admin' ) ) {
|
|
204 |
|
205 |
public static function get_news_from_rest_api() {
|
206 |
|
207 |
-
$html
|
208 |
$html .= 'Vektor製品更新情報';
|
209 |
$html .= '<a href="https://www.vektor-inc.co.jp/product-update/?rel=vkadmin" target="_blank" class="vk-metabox-more-link">記事一覧<span aria-hidden="true" class="dashicons dashicons-external"></span></a>';
|
210 |
$html .= '</h4>';
|
46 |
|
47 |
/**
|
48 |
* Plugin Exists
|
49 |
+
*
|
50 |
* @param string $plugin '${plugin_dir}/${plugin_file}.php'.
|
51 |
*/
|
52 |
public static function plugin_exists( $plugin ) {
|
55 |
|
56 |
/**
|
57 |
* Theme Exists
|
58 |
+
*
|
59 |
* @param string $theme '${theme_dir}/style.css'.
|
60 |
*/
|
61 |
public static function theme_exists( $theme ) {
|
75 |
get_admin_banner
|
76 |
/*--------------------------------------------------*/
|
77 |
public static function get_admin_banner() {
|
|
|
|
|
|
|
78 |
|
79 |
+
$banner_html = '';
|
80 |
+
$dir_url = plugin_dir_url( __FILE__ );
|
81 |
+
$lang = ( get_locale() == 'ja' ) ? 'ja' : 'en';
|
|
|
|
|
|
|
|
|
|
|
82 |
|
83 |
+
// 画像を配置したディレクトリの URL
|
84 |
+
$img_base_url = 'https://raw.githubusercontent.com/vektor-inc/vk-banners/main/images/';
|
85 |
|
86 |
+
// 変数の初期化
|
87 |
+
$product_array = array();
|
|
|
|
|
|
|
|
|
88 |
|
89 |
+
// WP File System で JSON ファイルを読み込み
|
90 |
+
require_once ABSPATH . 'wp-admin/includes/file.php';
|
91 |
+
if ( WP_Filesystem() ) {
|
92 |
+
global $wp_filesystem;
|
|
|
|
|
|
|
|
|
|
|
93 |
|
94 |
+
// プロダクトの配列を取得・生成
|
95 |
+
$product_json_url = 'https://raw.githubusercontent.com/vektor-inc/vk-banners/main/vk-admin-banners.json';
|
96 |
+
$product_json = $wp_filesystem->get_contents( $product_json_url );
|
97 |
+
$product_json = mb_convert_encoding( $product_json, 'UTF8', 'ASCII,JIS,UTF-8,EUC-JP,SJIS-WIN' );
|
98 |
+
$product_array = json_decode( $product_json, true );
|
|
|
|
|
|
|
|
|
99 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
}
|
101 |
|
102 |
+
$banner_html .= '<div class="vk-admin-banner">';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
103 |
|
104 |
+
if ( $lang == 'ja' ) {
|
105 |
+
// $banner_html .= '<a class="admin_banner" href="https://recruit.vektor-inc.co.jp/?rel=vkadmin" target="_blank">';
|
106 |
+
// $banner_html .= '<img src="' . $dir_url . 'images/admin_banner_recruit.jpg" alt="[ Vektor,Inc. 採用情報 ]" />';
|
107 |
+
// $banner_html .= '</a>';
|
108 |
+
} else {
|
109 |
+
$banner_html .= '<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>';
|
|
|
|
|
|
|
|
|
|
|
110 |
}
|
111 |
|
112 |
+
$banner_html .= '<div class="vk-admin-banner-grid">';
|
|
|
|
|
113 |
|
114 |
+
// テーマのバナーを設置
|
115 |
+
foreach ( $product_array as $product ) {
|
|
|
116 |
|
117 |
+
if ( 'theme' === $product['type'] ) {
|
118 |
+
if ( ! self::theme_exists( $product['slug'] ) ) {
|
119 |
+
if ( $lang === $product['language'] ) {
|
120 |
|
121 |
+
// プラグインの検索結果に飛ばす場合 URL を変換する必要がある
|
122 |
+
$product_url = true === $product['admin_url'] ? admin_url( $product['link_url'] ) : $product['link_url'];
|
|
|
123 |
|
124 |
+
// バナーを追加
|
125 |
+
$banner_html .= '<a href="' . $product_url . '" target="_blank" class="admin_banner">';
|
126 |
+
$banner_html .= '<img src="' . $img_base_url . $product['image_file'] . '" alt="' . $product['alt'] . '" />';
|
127 |
+
$banner_html .= '</a>';
|
128 |
|
129 |
+
}
|
130 |
+
}
|
131 |
+
}
|
132 |
+
|
133 |
+
if ( 'plugin' === $product['type'] ) {
|
134 |
+
if ( ! self::plugin_exists( $product['slug'] ) ) {
|
135 |
+
if ( $lang === $product['language'] ) {
|
136 |
+
|
137 |
+
// プラグインの検索結果に飛ばす場合 URL を変換する必要がある
|
138 |
+
$product_url = true === $product['admin_url'] ? admin_url( $product['link_url'] ) : $product['link_url'];
|
139 |
+
|
140 |
+
// バナーを追加
|
141 |
+
$banner_html .= '<a href="' . $product_url . '" target="_blank" class="admin_banner">';
|
142 |
+
$banner_html .= '<img src="' . $img_base_url . $product['image_file'] . '" alt="' . $product['alt'] . '" />';
|
143 |
+
$banner_html .= '</a>';
|
144 |
+
|
145 |
+
}
|
146 |
+
}
|
147 |
+
}
|
148 |
}
|
149 |
|
150 |
+
$banner_html .= '</div>';
|
151 |
|
152 |
+
$banner_html .= '<a href="//www.vektor-inc.co.jp" class="vektor_logo" target="_blank" class="admin_banner"><img src="' . $dir_url . 'images/vektor_logo-2020.png" alt="Vektor,Inc." /></a>';
|
153 |
|
154 |
+
$banner_html .= '</div>';
|
155 |
|
156 |
+
return apply_filters( 'vk_admin_banner_html', $banner_html );
|
157 |
}
|
158 |
|
159 |
/*
|
175 |
|
176 |
public static function get_news_from_rest_api() {
|
177 |
|
178 |
+
$html = '<h4 class="vk-metabox-sub-title">';
|
179 |
$html .= 'Vektor製品更新情報';
|
180 |
$html .= '<a href="https://www.vektor-inc.co.jp/product-update/?rel=vkadmin" target="_blank" class="vk-metabox-more-link">記事一覧<span aria-hidden="true" class="dashicons dashicons-external"></span></a>';
|
181 |
$html .= '</h4>';
|
inc/sns/icons/Read Me.txt
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
-
Open *demo.html* to see a list of all the glyphs in your font along with their codes/ligatures.
|
2 |
-
|
3 |
-
To use the generated font in desktop programs, you can install the TTF font. In order to copy the character associated with each icon, refer to the text box at the bottom right corner of each glyph in demo.html. The character inside this text box may be invisible; but it can still be copied. See this guide for more info: https://icomoon.io/#docs/local-fonts
|
4 |
-
|
5 |
-
You won't need any of the files located under the *demo-files* directory when including the generated font in your own projects.
|
6 |
-
|
7 |
-
You can import *selection.json* back to the IcoMoon app using the *Import Icons* button (or via Main Menu → Manage Projects) to retrieve your icon selection.
|
1 |
+
Open *demo.html* to see a list of all the glyphs in your font along with their codes/ligatures.
|
2 |
+
|
3 |
+
To use the generated font in desktop programs, you can install the TTF font. In order to copy the character associated with each icon, refer to the text box at the bottom right corner of each glyph in demo.html. The character inside this text box may be invisible; but it can still be copied. See this guide for more info: https://icomoon.io/#docs/local-fonts
|
4 |
+
|
5 |
+
You won't need any of the files located under the *demo-files* directory when including the generated font in your own projects.
|
6 |
+
|
7 |
+
You can import *selection.json* back to the IcoMoon app using the *Import Icons* button (or via Main Menu → Manage Projects) to retrieve your icon selection.
|
inc/sns/icons/demo-files/demo.js:Zone.Identifier
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
1 |
+
[ZoneTransfer]
|
2 |
+
ZoneId=3
|
3 |
+
HostUrl=https://icomoon.io/
|
inc/sns/icons/demo.html
CHANGED
@@ -15,26 +15,8 @@
|
|
15 |
<h1 class="mvm mtn fgc1">Grid Size: Unknown</h1>
|
16 |
<div class="glyph fs1">
|
17 |
<div class="clearfix bshadow0 pbs">
|
18 |
-
<span class="icon-
|
19 |
-
|
20 |
-
</span>
|
21 |
-
<span class="mls"> icon-vk_w_r_sns_pocket</span>
|
22 |
-
</div>
|
23 |
-
<fieldset class="fs0 size1of1 clearfix hidden-false">
|
24 |
-
<input type="text" readonly value="e605" class="unit size1of2" />
|
25 |
-
<input type="text" maxlength="1" readonly value="" class="unitRight size1of2 talign-right" />
|
26 |
-
</fieldset>
|
27 |
-
<div class="fs0 bshadow0 clearfix hidden-true">
|
28 |
-
<span class="unit pvs fgc1">liga: </span>
|
29 |
-
<input type="text" readonly value="" class="liga unitRight" />
|
30 |
-
</div>
|
31 |
-
</div>
|
32 |
-
<div class="glyph fs1">
|
33 |
-
<div class="clearfix bshadow0 pbs">
|
34 |
-
<span class="icon-vk_w_r_sns_twitter">
|
35 |
-
|
36 |
-
</span>
|
37 |
-
<span class="mls"> icon-vk_w_r_sns_twitter</span>
|
38 |
</div>
|
39 |
<fieldset class="fs0 size1of1 clearfix hidden-false">
|
40 |
<input type="text" readonly value="e600" class="unit size1of2" />
|
@@ -47,10 +29,8 @@
|
|
47 |
</div>
|
48 |
<div class="glyph fs1">
|
49 |
<div class="clearfix bshadow0 pbs">
|
50 |
-
<span class="icon-
|
51 |
-
|
52 |
-
</span>
|
53 |
-
<span class="mls"> icon-vk_w_r_sns_line</span>
|
54 |
</div>
|
55 |
<fieldset class="fs0 size1of1 clearfix hidden-false">
|
56 |
<input type="text" readonly value="e601" class="unit size1of2" />
|
@@ -63,9 +43,7 @@
|
|
63 |
</div>
|
64 |
<div class="glyph fs1">
|
65 |
<div class="clearfix bshadow0 pbs">
|
66 |
-
<span class="icon-vk_w_r_sns_hatena">
|
67 |
-
|
68 |
-
</span>
|
69 |
<span class="mls"> icon-vk_w_r_sns_hatena</span>
|
70 |
</div>
|
71 |
<fieldset class="fs0 size1of1 clearfix hidden-false">
|
@@ -79,10 +57,8 @@
|
|
79 |
</div>
|
80 |
<div class="glyph fs1">
|
81 |
<div class="clearfix bshadow0 pbs">
|
82 |
-
<span class="icon-
|
83 |
-
|
84 |
-
</span>
|
85 |
-
<span class="mls"> icon-vk_w_r_sns_google</span>
|
86 |
</div>
|
87 |
<fieldset class="fs0 size1of1 clearfix hidden-false">
|
88 |
<input type="text" readonly value="e603" class="unit size1of2" />
|
@@ -95,10 +71,8 @@
|
|
95 |
</div>
|
96 |
<div class="glyph fs1">
|
97 |
<div class="clearfix bshadow0 pbs">
|
98 |
-
<span class="icon-
|
99 |
-
|
100 |
-
</span>
|
101 |
-
<span class="mls"> icon-vk_w_r_sns_fb</span>
|
102 |
</div>
|
103 |
<fieldset class="fs0 size1of1 clearfix hidden-false">
|
104 |
<input type="text" readonly value="e604" class="unit size1of2" />
|
@@ -109,6 +83,20 @@
|
|
109 |
<input type="text" readonly value="" class="liga unitRight" />
|
110 |
</div>
|
111 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
112 |
</div>
|
113 |
|
114 |
<!--[if gt IE 8]><!-->
|
@@ -121,7 +109,7 @@
|
|
121 |
</label>
|
122 |
<input id="testText" type="text" class="phl size1of1 mvl"
|
123 |
placeholder="Type some text to test..." value=""/>
|
124 |
-
<div id="testDrive" class="icon-">
|
125 |
</div>
|
126 |
</div>
|
127 |
<!--<![endif]-->
|
15 |
<h1 class="mvm mtn fgc1">Grid Size: Unknown</h1>
|
16 |
<div class="glyph fs1">
|
17 |
<div class="clearfix bshadow0 pbs">
|
18 |
+
<span class="icon-vk_w_r_sns_fb"></span>
|
19 |
+
<span class="mls"> icon-vk_w_r_sns_fb</span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
</div>
|
21 |
<fieldset class="fs0 size1of1 clearfix hidden-false">
|
22 |
<input type="text" readonly value="e600" class="unit size1of2" />
|
29 |
</div>
|
30 |
<div class="glyph fs1">
|
31 |
<div class="clearfix bshadow0 pbs">
|
32 |
+
<span class="icon-vk_w_r_sns_google"></span>
|
33 |
+
<span class="mls"> icon-vk_w_r_sns_google</span>
|
|
|
|
|
34 |
</div>
|
35 |
<fieldset class="fs0 size1of1 clearfix hidden-false">
|
36 |
<input type="text" readonly value="e601" class="unit size1of2" />
|
43 |
</div>
|
44 |
<div class="glyph fs1">
|
45 |
<div class="clearfix bshadow0 pbs">
|
46 |
+
<span class="icon-vk_w_r_sns_hatena"></span>
|
|
|
|
|
47 |
<span class="mls"> icon-vk_w_r_sns_hatena</span>
|
48 |
</div>
|
49 |
<fieldset class="fs0 size1of1 clearfix hidden-false">
|
57 |
</div>
|
58 |
<div class="glyph fs1">
|
59 |
<div class="clearfix bshadow0 pbs">
|
60 |
+
<span class="icon-vk_w_r_sns_line"></span>
|
61 |
+
<span class="mls"> icon-vk_w_r_sns_line</span>
|
|
|
|
|
62 |
</div>
|
63 |
<fieldset class="fs0 size1of1 clearfix hidden-false">
|
64 |
<input type="text" readonly value="e603" class="unit size1of2" />
|
71 |
</div>
|
72 |
<div class="glyph fs1">
|
73 |
<div class="clearfix bshadow0 pbs">
|
74 |
+
<span class="icon-vk_w_r_sns_pocket"></span>
|
75 |
+
<span class="mls"> icon-vk_w_r_sns_pocket</span>
|
|
|
|
|
76 |
</div>
|
77 |
<fieldset class="fs0 size1of1 clearfix hidden-false">
|
78 |
<input type="text" readonly value="e604" class="unit size1of2" />
|
83 |
<input type="text" readonly value="" class="liga unitRight" />
|
84 |
</div>
|
85 |
</div>
|
86 |
+
<div class="glyph fs1">
|
87 |
+
<div class="clearfix bshadow0 pbs">
|
88 |
+
<span class="icon-vk_w_r_sns_twitter"></span>
|
89 |
+
<span class="mls"> icon-vk_w_r_sns_twitter</span>
|
90 |
+
</div>
|
91 |
+
<fieldset class="fs0 size1of1 clearfix hidden-false">
|
92 |
+
<input type="text" readonly value="e605" class="unit size1of2" />
|
93 |
+
<input type="text" maxlength="1" readonly value="" class="unitRight size1of2 talign-right" />
|
94 |
+
</fieldset>
|
95 |
+
<div class="fs0 bshadow0 clearfix hidden-true">
|
96 |
+
<span class="unit pvs fgc1">liga: </span>
|
97 |
+
<input type="text" readonly value="" class="liga unitRight" />
|
98 |
+
</div>
|
99 |
+
</div>
|
100 |
</div>
|
101 |
|
102 |
<!--[if gt IE 8]><!-->
|
109 |
</label>
|
110 |
<input id="testText" type="text" class="phl size1of1 mvl"
|
111 |
placeholder="Type some text to test..." value=""/>
|
112 |
+
<div id="testDrive" class="icon-" style="font-family: icomoon">
|
113 |
</div>
|
114 |
</div>
|
115 |
<!--<![endif]-->
|
inc/sns/icons/fonts/vk_sns.eot
CHANGED
Binary file
|
inc/sns/icons/fonts/vk_sns.svg
CHANGED
@@ -7,10 +7,10 @@
|
|
7 |
<font-face units-per-em="1024" ascent="960" descent="-64" />
|
8 |
<missing-glyph horiz-adv-x="1024" />
|
9 |
<glyph unicode=" " horiz-adv-x="512" d="" />
|
10 |
-
<glyph unicode="" glyph-name="
|
11 |
-
<glyph unicode="" glyph-name="
|
12 |
-
<glyph unicode="" glyph-name="vk_w_r_sns_hatena" d="M378.
|
13 |
-
<glyph unicode="" glyph-name="
|
14 |
-
<glyph unicode="" glyph-name="
|
15 |
-
<glyph unicode="" glyph-name="
|
16 |
</font></defs></svg>
|
7 |
<font-face units-per-em="1024" ascent="960" descent="-64" />
|
8 |
<missing-glyph horiz-adv-x="1024" />
|
9 |
<glyph unicode=" " horiz-adv-x="512" d="" />
|
10 |
+
<glyph unicode="" glyph-name="vk_w_r_sns_fb" d="M0 445.12c0.425-253.488 182.833-464.247 423.533-508.632l3.187-0.488v369.76h-128v142.24h128v113.76c0 128 82.4 199.040 199.040 199.040 36.96 0 76.8-5.6 113.76-11.2v-130.88h-65.44c-62.4 0-76.8-31.36-76.8-71.2v-99.52h136.64l-22.72-142.24h-113.92v-369.76c243.887 44.873 426.295 255.632 426.72 509.074v0.046c0 283.2-230.4 514.88-512 514.88s-512-231.68-512-514.88z" />
|
11 |
+
<glyph unicode="" glyph-name="vk_w_r_sns_google" d="M238.688 421.088c-127.936 0-180.448 147.904-180.448 247.872 0 38.88 3.904 79.136 29.184 110.496 23.84 29.856 65.44 49.248 104.16 49.248 123.424 0 185.728-167.2 185.728-274.688 0-21.536-10.944-63.616-38.848-95.584-24.512-27.904-62.624-37.376-99.776-37.376zM291.584 161.376c-11.872 1.504-19.296 1.504-34.080 1.504-13.44 0-93.792-3.008-156.256-23.936-21.344-7.776-69.728-26.24-100.48-67.328 7.52-76.128 71.712-135.616 149.856-135.616h329.76c2.208 7.584 6.4 12.16 6.24 26.976-0.832 76.256-81.888 117.728-194.976 198.4zM835.424 421.088h-80.864v190.304h-188.64v79.2h188.64v188.64h80.864v-188.64h188.576v118.848c0 83.168-67.424 150.592-150.592 150.592h-722.816c-83.168 0-150.592-67.424-150.592-150.592v-24.512c3.744 3.584 8.032 7.552 12 10.976 84.8 70.176 177.824 81.888 255.84 83.36h314.4l-83.52-67.36c0 0-78.88 0-91.136 0 36.512-31.648 90.976-88.288 90.976-189.12 0-110.432-58.208-162.784-120.672-212-19.328-19.328-41.632-40.32-41.632-73.216 0-32.8 22.304-50.72 38.624-64.16l53.6-41.76c65.408-55.264 150.912-119.2 150.912-222.24 0-27.616-3.040-52.416-12-73.344h306.016c83.168-0.032 150.592 67.392 150.592 150.56v524.768h-188.576v-190.304zM196.448 306.208c0 25.376 7.456 40.352 14.88 58.24-16.416-1.44-32.704-3.008-47.584-3.008-67.52 0-122.912 25.696-163.68 59.616v-264.448c67.36 53.888 184.192 44.224 241.056 48.064-20.864 26.912-44.64 55.264-44.64 101.536zM1024.736 690.56h-0.736v-79.2h0.736v79.2zM0 70.752c0.224 0.32 0.512 0.544 0.736 0.864-0.48 4.96-0.736 9.92-0.736 14.976v-15.84z" />
|
12 |
+
<glyph unicode="" glyph-name="vk_w_r_sns_hatena" d="M378.656 482.752h-24.352v89.824h26.208c30.272 0 50.624-3.424 61.12-10.208 10.368-6.848 15.648-18.656 15.648-35.456 0-16.192-5.6-27.584-16.736-34.272-11.264-6.56-31.776-9.888-61.856-9.888zM459.712 391.584c-10.912 7.456-31.36 11.136-60.96 11.136h-44.48v-97.792h42.656c28.832 0 49.376 3.616 61.28 10.944 12.032 7.264 17.984 19.392 17.984 36.256 0 18.912-5.44 32.032-16.48 39.456zM1024 809.408v-722.816c0-83.168-67.424-150.592-150.592-150.592h-722.816c-83.168 0-150.592 67.424-150.592 150.592v722.816c0 83.168 67.424 150.592 150.592 150.592h722.816c83.168 0 150.592-67.424 150.592-150.592zM662.624 372.704h105.376v301.152h-105.376v-301.152zM591.84 352.288c0 33.216-8.928 59.872-26.848 79.744-17.888 19.936-42.656 31.136-74.464 33.568 28.32 7.712 48.864 19.008 61.824 34.080 12.96 14.88 19.36 35.104 19.36 60.512 0 20.128-4.384 37.92-12.896 53.312-8.736 15.264-21.344 27.52-37.792 36.672-14.432 7.968-31.584 13.536-51.584 16.864-20.096 3.2-55.264 4.832-105.76 4.832h-122.72v-447.648h126.464c50.816 0 87.456 1.76 109.856 5.184 22.368 3.488 41.184 9.44 56.384 17.536 18.784 9.92 33.12 24.032 43.104 42.208 10.080 18.144 15.072 39.168 15.072 63.168zM775.552 282.336c0 33.312-26.976 60.256-60.192 60.256-33.312 0-60.224-26.976-60.224-60.256s26.976-60.192 60.224-60.192c33.216 0 60.192 26.976 60.192 60.192z" />
|
13 |
+
<glyph unicode="" glyph-name="vk_w_r_sns_line" d="M385.76 413.344c0-10.816-8.736-19.584-19.552-19.584h-74.080c-10.784 0-19.552 8.768-19.552 19.584v148.128c0 10.784 8.768 19.552 19.552 19.552s19.552-8.768 19.552-19.552v-128.608h54.528c10.816 0 19.552-8.736 19.552-19.52zM601.6 581.024c-10.784 0-19.552-8.768-19.552-19.552v-91.68l-75.936 103.424c-3.648 4.896-9.504 7.84-15.616 7.84-2.080 0-4.192-0.352-6.176-0.992-8-2.656-13.376-10.144-13.376-18.56v-148.128c0-10.816 8.8-19.584 19.552-19.584s19.552 8.768 19.552 19.584v91.616l75.936-103.392c3.68-4.896 9.504-7.84 15.616-7.84 2.080 0 4.128 0.352 6.176 1.024 8.032 2.656 13.408 10.112 13.408 18.56v148.128c-0.032 10.784-8.8 19.552-19.584 19.552zM423.264 581.024c-10.784 0-19.552-8.768-19.552-19.552v-148.128c0-10.816 8.768-19.584 19.552-19.584s19.552 8.768 19.552 19.584v148.128c0 10.784-8.768 19.552-19.552 19.552zM1024 809.408v-722.816c0-83.168-67.424-150.592-150.592-150.592h-722.816c-83.168 0-150.592 67.424-150.592 150.592v722.816c0 83.168 67.424 150.592 150.592 150.592h722.816c83.168 0 150.592-67.424 150.592-150.592zM884.96 493.024c0 166.816-167.264 302.56-372.832 302.56s-372.832-135.712-372.832-302.56c0-149.536 132.64-274.848 311.808-298.528 12.128-2.592 28.64-8.032 32.864-18.368 3.744-9.376 2.464-24.16 1.184-33.696 0 0-4.352-26.272-5.28-31.936-1.664-9.408-7.52-36.832 32.288-20.064 39.776 16.8 214.688 126.496 292.896 216.48 54.048 59.232 79.904 119.392 79.904 186.144zM741.024 541.888c10.784 0 19.488 8.8 19.488 19.584s-8.736 19.552-19.488 19.552h-74.144c-10.784 0-19.552-8.768-19.552-19.552 0-0.032 0-0.032 0-0.096v-73.952c0-0.032 0-0.032 0-0.032s0-0.032 0-0.032v-74.016c0-10.816 8.8-19.584 19.552-19.584h74.144c10.72 0 19.488 8.768 19.488 19.584s-8.8 19.52-19.488 19.52h-54.528v35.008h54.56c10.784 0 19.552 8.768 19.552 19.552s-8.736 19.552-19.552 19.552h-54.56v34.976l54.56-0.032z" />
|
14 |
+
<glyph unicode="" glyph-name="vk_w_r_sns_pocket" d="M89.6 906.912c-55.808-3.616-89.6-35.488-89.6-92.096v-339.296c0-275.488 274.112-492.096 511.2-490.4 266.592 1.888 512.8 227.008 512.8 490.4v339.296c0 56.896-35.904 88.896-92.096 92.096h-842.304zM305.504 630.912l205.6-195.392 205.888 195.392c92.096 38.688 132.288-66.496 94.496-97.312l-268.096-255.808c-8.8-8.288-55.616-8.288-64.288 0l-268.096 255.904c-36.096 33.888 10.912 140.8 94.496 97.184v0z" />
|
15 |
+
<glyph unicode="" glyph-name="vk_w_r_sns_twitter" d="M873.408 960h-722.816c-83.168 0-150.592-67.424-150.592-150.592v-722.816c0-83.168 67.424-150.592 150.592-150.592h722.816c83.168 0 150.592 67.424 150.592 150.592v722.816c0 83.168-67.424 150.592-150.592 150.592zM824.416 583.808c0.288-6.688 0.448-13.472 0.448-20.256 0-206.944-157.568-445.568-445.568-445.568-88.448 0-170.752 25.952-240.032 70.368 12.256-1.44 24.736-2.208 37.344-2.208 73.376 0 140.896 25.056 194.496 67.040-68.512 1.312-126.368 46.56-146.272 108.768 9.568-1.856 19.36-2.816 29.472-2.816 14.272 0 28.096 1.888 41.248 5.504-71.648 14.4-125.632 77.664-125.632 153.536 0 0.672 0 1.312 0 1.984 21.088-11.744 45.28-18.784 70.944-19.584-42.016 28.064-69.664 76-69.664 130.336 0 28.704 7.712 55.584 21.216 78.752 77.248-94.752 192.608-157.088 322.784-163.616-2.656 11.456-4.032 23.392-4.032 35.68 0 86.496 70.112 156.608 156.576 156.608 45.024 0 85.792-19.040 114.304-49.44 35.68 7.008 69.152 20.064 99.424 37.984-11.68-36.576-36.512-67.264-68.864-86.656 31.68 3.776 61.856 12.192 89.984 24.672-21.056-31.392-47.584-58.976-78.112-81.056z" />
|
16 |
</font></defs></svg>
|
inc/sns/icons/fonts/vk_sns.ttf
CHANGED
Binary file
|
inc/sns/icons/fonts/vk_sns.woff
CHANGED
Binary file
|
inc/sns/icons/selection.json
CHANGED
@@ -1,183 +1 @@
|
|
1 |
-
{
|
2 |
-
"IcoMoonType": "selection",
|
3 |
-
"icons": [
|
4 |
-
{
|
5 |
-
"icon": {
|
6 |
-
"paths": [
|
7 |
-
"M89.6 53.1c-55.8 3.6-89.6 35.5-89.6 92.1v339.3c0 275.5 274.1 492.1 511.2 490.4 266.6-1.9 512.8-227 512.8-490.4v-339.3c0-56.9-35.9-88.9-92.1-92.1l-842.3 0zM305.5 329.1l205.6 195.4 205.9-195.4c92.1-38.7 132.3 66.5 94.5 97.3l-268.1 255.8c-8.8 8.3-55.6 8.3-64.3 0l-268.1-255.9c-36.1-33.9 10.9-140.8 94.5-97.2v0z"
|
8 |
-
],
|
9 |
-
"attrs": [
|
10 |
-
{}
|
11 |
-
],
|
12 |
-
"isMulticolor": false,
|
13 |
-
"isMulticolor2": false,
|
14 |
-
"grid": 0,
|
15 |
-
"tags": [
|
16 |
-
"icomoon"
|
17 |
-
]
|
18 |
-
},
|
19 |
-
"attrs": [
|
20 |
-
{}
|
21 |
-
],
|
22 |
-
"properties": {
|
23 |
-
"order": 20,
|
24 |
-
"id": 0,
|
25 |
-
"name": "vk_w_r_sns_pocket",
|
26 |
-
"prevSize": 32,
|
27 |
-
"code": 58885
|
28 |
-
},
|
29 |
-
"setIdx": 0,
|
30 |
-
"setId": 3,
|
31 |
-
"iconIdx": 0
|
32 |
-
},
|
33 |
-
{
|
34 |
-
"icon": {
|
35 |
-
"paths": [
|
36 |
-
"M873.408 0h-722.816c-83.156 0-150.592 67.434-150.592 150.592v722.816c0 83.178 67.436 150.592 150.592 150.592h722.816c83.178 0 150.592-67.414 150.592-150.592v-722.816c0-83.158-67.414-150.592-150.592-150.592zM824.428 376.192c0.298 6.7 0.448 13.462 0.448 20.268 0 206.954-157.568 445.568-445.568 445.568-88.448 0-170.752-25.942-240.044-70.38 12.246 1.452 24.724 2.198 37.354 2.198 73.364 0 140.886-25.044 194.496-67.028-68.524-1.322-126.356-46.572-146.282-108.778 9.556 1.856 19.372 2.816 29.46 2.816 14.272 0 28.096-1.9 41.26-5.504-71.638-14.4-125.632-77.674-125.632-153.536 0-0.662 0-1.324 0-1.984 21.098 11.734 45.27 18.774 70.932 19.584-42.026-28.074-69.676-76.012-69.676-130.348 0-28.692 7.724-55.596 21.204-78.74 77.248 94.764 192.618 157.098 322.772 163.626-2.668-11.456-4.032-23.404-4.032-35.668 0-86.486 70.1-156.608 156.588-156.608 45.034 0 85.78 19.028 114.304 49.452 35.668-7.020 69.164-20.052 99.414-37.996-11.668 36.566-36.5 67.264-68.864 86.656 31.68-3.776 61.846-12.18 89.984-24.66-21.056 31.404-47.572 58.986-78.124 81.068z"
|
37 |
-
],
|
38 |
-
"isMulticolor": false,
|
39 |
-
"isMulticolor2": false,
|
40 |
-
"defaultCode": 58880,
|
41 |
-
"grid": 0,
|
42 |
-
"tags": [
|
43 |
-
""
|
44 |
-
]
|
45 |
-
},
|
46 |
-
"properties": {
|
47 |
-
"id": 1,
|
48 |
-
"order": 15,
|
49 |
-
"ligatures": "",
|
50 |
-
"prevSize": 32,
|
51 |
-
"code": 58880,
|
52 |
-
"name": "vk_w_r_sns_twitter"
|
53 |
-
},
|
54 |
-
"setIdx": 1,
|
55 |
-
"setId": 2,
|
56 |
-
"iconIdx": 0
|
57 |
-
},
|
58 |
-
{
|
59 |
-
"icon": {
|
60 |
-
"paths": [
|
61 |
-
"M385.75 546.668c0 10.816-8.748 19.584-19.562 19.584h-74.070c-10.774 0-19.54-8.768-19.54-19.584v-148.14c0-10.774 8.768-19.54 19.54-19.54s19.54 8.768 19.54 19.54v128.62h54.528c10.816 0 19.562 8.746 19.562 19.52zM601.6 378.988c-10.774 0-19.562 8.768-19.562 19.54v91.692l-75.926-103.424c-3.648-4.906-9.514-7.828-15.616-7.828-2.092 0-4.18 0.362-6.188 0.98-8 2.666-13.376 10.132-13.376 18.56v148.14c0 10.816 8.788 19.584 19.562 19.584 10.796 0 19.562-8.768 19.562-19.584v-91.606l75.926 103.38c3.692 4.884 9.494 7.828 15.616 7.828 2.092 0 4.14-0.342 6.188-1.024 8.020-2.644 13.398-10.112 13.398-18.56v-148.14c-0.020-10.774-8.788-19.54-19.584-19.54zM423.274 378.988c-10.774 0-19.54 8.768-19.54 19.54v148.14c0 10.816 8.768 19.584 19.54 19.584s19.54-8.768 19.54-19.584v-148.14c0-10.774-8.768-19.54-19.54-19.54zM1024 150.592v722.816c0 83.178-67.414 150.592-150.592 150.592h-722.816c-83.156 0-150.592-67.414-150.592-150.592v-722.816c0-83.158 67.436-150.592 150.592-150.592h722.816c83.178 0 150.592 67.434 150.592 150.592zM884.948 466.988c0-166.806-167.254-302.548-372.822-302.548-205.524 0-372.822 135.722-372.822 302.548 0 149.546 132.652 274.838 311.808 298.54 12.14 2.582 28.652 8.020 32.854 18.368 3.754 9.388 2.452 24.172 1.194 33.706 0 0-4.352 26.26-5.29 31.936-1.664 9.408-7.51 36.822 32.3 20.076 39.764-16.788 214.678-126.486 292.884-216.468 54.038-59.222 79.894-119.38 79.894-186.154zM741.034 418.112c10.774 0 19.5-8.788 19.5-19.584 0-10.774-8.726-19.54-19.5-19.54h-74.134c-10.774 0-19.542 8.768-19.542 19.54 0 0.020 0 0.044 0 0.086v73.962c0 0.022 0 0.044 0 0.044 0 0.022 0 0.022 0 0.044v74.004c0 10.816 8.788 19.584 19.542 19.584h74.134c10.708 0 19.5-8.768 19.5-19.584 0-10.774-8.788-19.52-19.5-19.52h-54.528v-35.008h54.548c10.794 0 19.542-8.768 19.542-19.54 0-10.796-8.746-19.562-19.542-19.562h-54.548v-34.966l54.548 0.044z"
|
62 |
-
],
|
63 |
-
"isMulticolor": false,
|
64 |
-
"isMulticolor2": false,
|
65 |
-
"defaultCode": 58881,
|
66 |
-
"grid": 0
|
67 |
-
},
|
68 |
-
"properties": {
|
69 |
-
"id": 2,
|
70 |
-
"order": 16,
|
71 |
-
"ligatures": "",
|
72 |
-
"prevSize": 32,
|
73 |
-
"code": 58881,
|
74 |
-
"name": "vk_w_r_sns_line"
|
75 |
-
},
|
76 |
-
"setIdx": 1,
|
77 |
-
"setId": 2,
|
78 |
-
"iconIdx": 1
|
79 |
-
},
|
80 |
-
{
|
81 |
-
"icon": {
|
82 |
-
"paths": [
|
83 |
-
"M378.644 477.248h-24.362v-89.814h26.198c30.272 0 50.624 3.414 61.12 10.22 10.368 6.848 15.638 18.644 15.638 35.456 0 16.192-5.61 27.584-16.748 34.262-11.264 6.548-31.786 9.878-61.844 9.878zM459.712 568.428c-10.902-7.466-31.36-11.136-60.95-11.136h-44.48v97.792h42.644c28.822 0 49.366-3.606 61.29-10.944 12.032-7.254 17.984-19.392 17.984-36.268 0-18.924-5.44-32.044-16.49-39.446zM1024 150.592v722.816c0 83.178-67.414 150.592-150.592 150.592h-722.816c-83.156 0-150.592-67.414-150.592-150.592v-722.816c0-83.158 67.436-150.592 150.592-150.592h722.816c83.178 0 150.592 67.434 150.592 150.592zM662.634 587.284h105.386v-301.164h-105.386v301.164zM591.828 607.702c0-33.216-8.938-59.884-26.836-79.744-17.876-19.948-42.668-31.146-74.452-33.558 28.308-7.724 48.852-19.008 61.824-34.092 12.948-14.892 19.35-35.094 19.35-60.5 0-20.116-4.394-37.932-12.884-53.312-8.726-15.274-21.332-27.52-37.802-36.672-14.42-7.956-31.596-13.548-51.584-16.852-20.096-3.2-55.274-4.822-105.772-4.822h-122.73v447.638h126.464c50.816 0 87.444-1.77 109.844-5.184 22.38-3.5 41.174-9.428 56.384-17.536 18.794-9.92 33.13-24.044 43.116-42.198 10.092-18.154 15.082-39.168 15.082-63.168zM775.552 677.674c0-33.302-26.986-60.246-60.202-60.246-33.302 0-60.224 26.986-60.224 60.246s26.986 60.202 60.224 60.202c33.216 0 60.202-26.966 60.202-60.202z"
|
84 |
-
],
|
85 |
-
"isMulticolor": false,
|
86 |
-
"isMulticolor2": false,
|
87 |
-
"defaultCode": 58882,
|
88 |
-
"grid": 0
|
89 |
-
},
|
90 |
-
"properties": {
|
91 |
-
"id": 3,
|
92 |
-
"order": 17,
|
93 |
-
"ligatures": "",
|
94 |
-
"prevSize": 32,
|
95 |
-
"code": 58882,
|
96 |
-
"name": "vk_w_r_sns_hatena"
|
97 |
-
},
|
98 |
-
"setIdx": 1,
|
99 |
-
"setId": 2,
|
100 |
-
"iconIdx": 2
|
101 |
-
},
|
102 |
-
{
|
103 |
-
"icon": {
|
104 |
-
"paths": [
|
105 |
-
"M238.676 538.924c-127.936 0-180.46-147.904-180.46-247.872 0-38.89 3.904-79.126 29.184-110.506 23.85-29.846 65.45-49.26 104.17-49.26 123.414 0 185.728 167.188 185.728 274.688 0 21.524-10.944 63.616-38.848 95.572-24.512 27.904-62.612 37.376-99.776 37.376zM291.584 798.634c-11.86-1.514-19.308-1.514-34.092-1.514-13.44 0-93.782 3.008-156.266 23.936-21.332 7.788-69.74 26.24-100.48 67.328 7.51 76.116 71.722 135.616 149.846 135.616h329.75c2.218-7.572 6.4-12.16 6.228-26.966-0.832-76.266-81.878-117.74-194.988-198.4zM835.414 538.924h-80.852v-190.294h-188.65v-79.188h188.652v-188.652h80.852v188.652h188.586v-118.848c0-83.158-67.414-150.592-150.592-150.592h-722.816c-83.156 0-150.592 67.436-150.592 150.592v24.512c3.734-3.584 8.022-7.552 12.010-10.986 84.8-70.188 177.812-81.9 255.83-83.35h314.39l-83.52 67.37c0 0-78.892 0-91.136 0 36.5 31.658 90.986 88.278 90.986 189.12 0 110.442-58.218 162.794-120.682 211.99-19.328 19.328-41.644 40.32-41.644 73.216 0 32.812 22.294 50.708 38.634 64.172l53.61 41.75c65.408 55.254 150.912 119.212 150.912 222.25 0 27.626-3.028 52.416-11.99 73.344h306.004c83.178 0.020 150.592-67.392 150.592-150.572v-524.778h-188.586v190.294zM196.438 653.78c0-25.366 7.444-40.342 14.868-58.24-16.406 1.452-32.704 3.008-47.594 3.008-67.52 0-122.924-25.706-163.692-59.626v264.448c67.37-53.888 184.192-44.224 241.044-48.064-20.864-26.924-44.628-55.274-44.628-101.524zM1024.724 269.44h-0.726v79.188h0.726v-79.188zM0 889.26c0.234-0.32 0.512-0.554 0.746-0.876-0.468-4.948-0.746-9.92-0.746-14.976v15.85z"
|
106 |
-
],
|
107 |
-
"isMulticolor": false,
|
108 |
-
"isMulticolor2": false,
|
109 |
-
"defaultCode": 58883,
|
110 |
-
"grid": 0
|
111 |
-
},
|
112 |
-
"properties": {
|
113 |
-
"id": 4,
|
114 |
-
"order": 18,
|
115 |
-
"ligatures": "",
|
116 |
-
"prevSize": 32,
|
117 |
-
"code": 58883,
|
118 |
-
"name": "vk_w_r_sns_google"
|
119 |
-
},
|
120 |
-
"setIdx": 1,
|
121 |
-
"setId": 2,
|
122 |
-
"iconIdx": 3
|
123 |
-
},
|
124 |
-
{
|
125 |
-
"icon": {
|
126 |
-
"paths": [
|
127 |
-
"M873.408 0h-722.816c-83.156 0-150.592 67.434-150.592 150.592v722.816c0 83.178 67.436 150.592 150.592 150.592h370.9c0 0 0-238.38 0-432.896h-87.062v-149.908h87.062c0-45.782 0-79.446 0-92.118 0-75.988 23.318-192.404 182.25-192.404 117.524 0 135.702 0 135.702 0v148.844c0 0-74.966 0-92.16 0-17.174 0-42.476 5.076-42.476 53.696 0 9.26 0 39.444 0 81.984h134.72l-15.254 149.91h-119.51c0 192.404 0 432.896 0 432.896h168.576c83.244 0 150.656-67.414 150.656-150.592v-722.816c0-83.158-67.414-150.592-150.592-150.592z"
|
128 |
-
],
|
129 |
-
"isMulticolor": false,
|
130 |
-
"isMulticolor2": false,
|
131 |
-
"defaultCode": 58884,
|
132 |
-
"grid": 0,
|
133 |
-
"tags": [
|
134 |
-
""
|
135 |
-
]
|
136 |
-
},
|
137 |
-
"properties": {
|
138 |
-
"id": 5,
|
139 |
-
"order": 19,
|
140 |
-
"ligatures": "",
|
141 |
-
"prevSize": 32,
|
142 |
-
"code": 58884,
|
143 |
-
"name": "vk_w_r_sns_fb"
|
144 |
-
},
|
145 |
-
"setIdx": 1,
|
146 |
-
"setId": 2,
|
147 |
-
"iconIdx": 4
|
148 |
-
}
|
149 |
-
],
|
150 |
-
"height": 1024,
|
151 |
-
"metadata": {
|
152 |
-
"name": "icomoon"
|
153 |
-
},
|
154 |
-
"preferences": {
|
155 |
-
"showGlyphs": true,
|
156 |
-
"showQuickUse": true,
|
157 |
-
"showQuickUse2": true,
|
158 |
-
"showSVGs": true,
|
159 |
-
"fontPref": {
|
160 |
-
"prefix": "icon-",
|
161 |
-
"metadata": {
|
162 |
-
"fontFamily": "icomoon"
|
163 |
-
},
|
164 |
-
"metrics": {
|
165 |
-
"emSize": 1024,
|
166 |
-
"baseline": 6.25,
|
167 |
-
"whitespace": 50
|
168 |
-
},
|
169 |
-
"embed": false
|
170 |
-
},
|
171 |
-
"imagePref": {
|
172 |
-
"prefix": "icon-",
|
173 |
-
"png": true,
|
174 |
-
"useClassSelector": true,
|
175 |
-
"color": 0,
|
176 |
-
"bgColor": 16777215,
|
177 |
-
"classSelector": ".icon"
|
178 |
-
},
|
179 |
-
"historySize": 50,
|
180 |
-
"showCodes": true,
|
181 |
-
"gridSize": 16
|
182 |
-
}
|
183 |
-
}
|
1 |
+
{"IcoMoonType":"selection","icons":[{"icon":{"paths":["M0 514.88c0.425 253.488 182.833 464.247 423.533 508.632l3.187 0.488v-369.76h-128v-142.24h128v-113.76c0-128 82.4-199.040 199.040-199.040 36.96 0 76.8 5.6 113.76 11.2v130.88h-65.44c-62.4 0-76.8 31.36-76.8 71.2v99.52h136.64l-22.72 142.24h-113.92v369.76c243.887-44.873 426.295-255.632 426.72-509.074l0-0.046c0-283.2-230.4-514.88-512-514.88s-512 231.68-512 514.88z"],"attrs":[{}],"isMulticolor":false,"isMulticolor2":false,"grid":0,"tags":["vk_w_r_sns_fb"]},"attrs":[{}],"properties":{"order":40,"id":5,"name":"vk_w_r_sns_fb","prevSize":32,"code":58880},"setIdx":0,"setId":0,"iconIdx":0},{"icon":{"paths":["M238.688 538.912c-127.936 0-180.448-147.904-180.448-247.872 0-38.88 3.904-79.136 29.184-110.496 23.84-29.856 65.44-49.248 104.16-49.248 123.424 0 185.728 167.2 185.728 274.688 0 21.536-10.944 63.616-38.848 95.584-24.512 27.904-62.624 37.376-99.776 37.376zM291.584 798.624c-11.872-1.504-19.296-1.504-34.080-1.504-13.44 0-93.792 3.008-156.256 23.936-21.344 7.776-69.728 26.24-100.48 67.328 7.52 76.128 71.712 135.616 149.856 135.616h329.76c2.208-7.584 6.4-12.16 6.24-26.976-0.832-76.256-81.888-117.728-194.976-198.4zM835.424 538.912h-80.864v-190.304h-188.64v-79.2h188.64v-188.64h80.864v188.64h188.576v-118.848c0-83.168-67.424-150.592-150.592-150.592h-722.816c-83.168 0-150.592 67.424-150.592 150.592v24.512c3.744-3.584 8.032-7.552 12-10.976 84.8-70.176 177.824-81.888 255.84-83.36h314.4l-83.52 67.36c0 0-78.88 0-91.136 0 36.512 31.648 90.976 88.288 90.976 189.12 0 110.432-58.208 162.784-120.672 212-19.328 19.328-41.632 40.32-41.632 73.216 0 32.8 22.304 50.72 38.624 64.16l53.6 41.76c65.408 55.264 150.912 119.2 150.912 222.24 0 27.616-3.040 52.416-12 73.344h306.016c83.168 0.032 150.592-67.392 150.592-150.56v-524.768h-188.576v190.304zM196.448 653.792c0-25.376 7.456-40.352 14.88-58.24-16.416 1.44-32.704 3.008-47.584 3.008-67.52 0-122.912-25.696-163.68-59.616v264.448c67.36-53.888 184.192-44.224 241.056-48.064-20.864-26.912-44.64-55.264-44.64-101.536zM1024.736 269.44h-0.736v79.2h0.736v-79.2zM0 889.248c0.224-0.32 0.512-0.544 0.736-0.864-0.48-4.96-0.736-9.92-0.736-14.976v15.84z"],"attrs":[{}],"isMulticolor":false,"isMulticolor2":false,"grid":0,"tags":["vk_w_r_sns_google"]},"attrs":[{}],"properties":{"order":41,"id":4,"name":"vk_w_r_sns_google","prevSize":32,"code":58881},"setIdx":0,"setId":0,"iconIdx":1},{"icon":{"paths":["M378.656 477.248h-24.352v-89.824h26.208c30.272 0 50.624 3.424 61.12 10.208 10.368 6.848 15.648 18.656 15.648 35.456 0 16.192-5.6 27.584-16.736 34.272-11.264 6.56-31.776 9.888-61.856 9.888zM459.712 568.416c-10.912-7.456-31.36-11.136-60.96-11.136h-44.48v97.792h42.656c28.832 0 49.376-3.616 61.28-10.944 12.032-7.264 17.984-19.392 17.984-36.256 0-18.912-5.44-32.032-16.48-39.456zM1024 150.592v722.816c0 83.168-67.424 150.592-150.592 150.592h-722.816c-83.168 0-150.592-67.424-150.592-150.592v-722.816c0-83.168 67.424-150.592 150.592-150.592h722.816c83.168 0 150.592 67.424 150.592 150.592zM662.624 587.296h105.376v-301.152h-105.376v301.152zM591.84 607.712c0-33.216-8.928-59.872-26.848-79.744-17.888-19.936-42.656-31.136-74.464-33.568 28.32-7.712 48.864-19.008 61.824-34.080 12.96-14.88 19.36-35.104 19.36-60.512 0-20.128-4.384-37.92-12.896-53.312-8.736-15.264-21.344-27.52-37.792-36.672-14.432-7.968-31.584-13.536-51.584-16.864-20.096-3.2-55.264-4.832-105.76-4.832h-122.72v447.648h126.464c50.816 0 87.456-1.76 109.856-5.184 22.368-3.488 41.184-9.44 56.384-17.536 18.784-9.92 33.12-24.032 43.104-42.208 10.080-18.144 15.072-39.168 15.072-63.168zM775.552 677.664c0-33.312-26.976-60.256-60.192-60.256-33.312 0-60.224 26.976-60.224 60.256s26.976 60.192 60.224 60.192c33.216 0 60.192-26.976 60.192-60.192z"],"attrs":[{}],"isMulticolor":false,"isMulticolor2":false,"grid":0,"tags":["vk_w_r_sns_hatena"]},"attrs":[{}],"properties":{"order":42,"id":3,"name":"vk_w_r_sns_hatena","prevSize":32,"code":58882},"setIdx":0,"setId":0,"iconIdx":2},{"icon":{"paths":["M385.76 546.656c0 10.816-8.736 19.584-19.552 19.584h-74.080c-10.784 0-19.552-8.768-19.552-19.584v-148.128c0-10.784 8.768-19.552 19.552-19.552s19.552 8.768 19.552 19.552v128.608h54.528c10.816 0 19.552 8.736 19.552 19.52zM601.6 378.976c-10.784 0-19.552 8.768-19.552 19.552v91.68l-75.936-103.424c-3.648-4.896-9.504-7.84-15.616-7.84-2.080 0-4.192 0.352-6.176 0.992-8 2.656-13.376 10.144-13.376 18.56v148.128c0 10.816 8.8 19.584 19.552 19.584s19.552-8.768 19.552-19.584v-91.616l75.936 103.392c3.68 4.896 9.504 7.84 15.616 7.84 2.080 0 4.128-0.352 6.176-1.024 8.032-2.656 13.408-10.112 13.408-18.56v-148.128c-0.032-10.784-8.8-19.552-19.584-19.552zM423.264 378.976c-10.784 0-19.552 8.768-19.552 19.552v148.128c0 10.816 8.768 19.584 19.552 19.584s19.552-8.768 19.552-19.584v-148.128c0-10.784-8.768-19.552-19.552-19.552zM1024 150.592v722.816c0 83.168-67.424 150.592-150.592 150.592h-722.816c-83.168 0-150.592-67.424-150.592-150.592v-722.816c0-83.168 67.424-150.592 150.592-150.592h722.816c83.168 0 150.592 67.424 150.592 150.592zM884.96 466.976c0-166.816-167.264-302.56-372.832-302.56s-372.832 135.712-372.832 302.56c0 149.536 132.64 274.848 311.808 298.528 12.128 2.592 28.64 8.032 32.864 18.368 3.744 9.376 2.464 24.16 1.184 33.696 0 0-4.352 26.272-5.28 31.936-1.664 9.408-7.52 36.832 32.288 20.064 39.776-16.8 214.688-126.496 292.896-216.48 54.048-59.232 79.904-119.392 79.904-186.144zM741.024 418.112c10.784 0 19.488-8.8 19.488-19.584s-8.736-19.552-19.488-19.552h-74.144c-10.784 0-19.552 8.768-19.552 19.552 0 0.032 0 0.032 0 0.096v73.952c0 0.032 0 0.032 0 0.032s0 0.032 0 0.032v74.016c0 10.816 8.8 19.584 19.552 19.584h74.144c10.72 0 19.488-8.768 19.488-19.584s-8.8-19.52-19.488-19.52h-54.528v-35.008h54.56c10.784 0 19.552-8.768 19.552-19.552s-8.736-19.552-19.552-19.552h-54.56v-34.976l54.56 0.032z"],"attrs":[{}],"isMulticolor":false,"isMulticolor2":false,"grid":0,"tags":["vk_w_r_sns_line"]},"attrs":[{}],"properties":{"order":43,"id":2,"name":"vk_w_r_sns_line","prevSize":32,"code":58883},"setIdx":0,"setId":0,"iconIdx":3},{"icon":{"paths":["M89.6 53.088c-55.808 3.616-89.6 35.488-89.6 92.096v339.296c0 275.488 274.112 492.096 511.2 490.4 266.592-1.888 512.8-227.008 512.8-490.4v-339.296c0-56.896-35.904-88.896-92.096-92.096h-842.304zM305.504 329.088l205.6 195.392 205.888-195.392c92.096-38.688 132.288 66.496 94.496 97.312l-268.096 255.808c-8.8 8.288-55.616 8.288-64.288 0l-268.096-255.904c-36.096-33.888 10.912-140.8 94.496-97.184v0z"],"attrs":[{}],"isMulticolor":false,"isMulticolor2":false,"grid":0,"tags":["vk_w_r_sns_pocket"]},"attrs":[{}],"properties":{"order":44,"id":1,"name":"vk_w_r_sns_pocket","prevSize":32,"code":58884},"setIdx":0,"setId":0,"iconIdx":4},{"icon":{"paths":["M873.408 0h-722.816c-83.168 0-150.592 67.424-150.592 150.592v722.816c0 83.168 67.424 150.592 150.592 150.592h722.816c83.168 0 150.592-67.424 150.592-150.592v-722.816c0-83.168-67.424-150.592-150.592-150.592zM824.416 376.192c0.288 6.688 0.448 13.472 0.448 20.256 0 206.944-157.568 445.568-445.568 445.568-88.448 0-170.752-25.952-240.032-70.368 12.256 1.44 24.736 2.208 37.344 2.208 73.376 0 140.896-25.056 194.496-67.040-68.512-1.312-126.368-46.56-146.272-108.768 9.568 1.856 19.36 2.816 29.472 2.816 14.272 0 28.096-1.888 41.248-5.504-71.648-14.4-125.632-77.664-125.632-153.536 0-0.672 0-1.312 0-1.984 21.088 11.744 45.28 18.784 70.944 19.584-42.016-28.064-69.664-76-69.664-130.336 0-28.704 7.712-55.584 21.216-78.752 77.248 94.752 192.608 157.088 322.784 163.616-2.656-11.456-4.032-23.392-4.032-35.68 0-86.496 70.112-156.608 156.576-156.608 45.024 0 85.792 19.040 114.304 49.44 35.68-7.008 69.152-20.064 99.424-37.984-11.68 36.576-36.512 67.264-68.864 86.656 31.68-3.776 61.856-12.192 89.984-24.672-21.056 31.392-47.584 58.976-78.112 81.056z"],"attrs":[{}],"isMulticolor":false,"isMulticolor2":false,"grid":0,"tags":["vk_w_r_sns_twitter"]},"attrs":[{}],"properties":{"order":45,"id":0,"name":"vk_w_r_sns_twitter","prevSize":32,"code":58885},"setIdx":0,"setId":0,"iconIdx":5}],"height":1024,"metadata":{"name":"icomoon"},"preferences":{"showGlyphs":true,"showQuickUse":true,"showQuickUse2":true,"showSVGs":true,"fontPref":{"prefix":"icon-","metadata":{"fontFamily":"icomoon"},"metrics":{"emSize":1024,"baseline":6.25,"whitespace":50},"embed":false},"imagePref":{"prefix":"icon-","png":true,"useClassSelector":true,"color":0,"bgColor":16777215,"classSelector":".icon","name":"icomoon"},"historySize":50,"showCodes":true,"gridSize":16}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
inc/sns/icons/style.css
CHANGED
@@ -1,21 +1,19 @@
|
|
1 |
-
/* vkExUnit_style.scssに同じ内容を貼り付けてあるのでこちらは現在読み込まれていない */
|
2 |
-
/* 自動結合していないのは結合時にファイルパスがズレたりするため */
|
3 |
-
|
4 |
@font-face {
|
5 |
font-family: 'vk_sns';
|
6 |
-
src: url('fonts/vk_sns.eot?
|
7 |
-
src: url('fonts/vk_sns.eot?
|
8 |
-
url('fonts/vk_sns.ttf?
|
9 |
-
url('fonts/vk_sns.woff?
|
10 |
-
url('fonts/vk_sns.svg?
|
11 |
font-weight: normal;
|
12 |
font-style: normal;
|
|
|
13 |
}
|
14 |
|
15 |
[class^="icon-"], [class*=" icon-"] {
|
16 |
/* use !important to prevent issues with browser extensions that change fonts */
|
17 |
font-family: 'vk_sns' !important;
|
18 |
-
speak:
|
19 |
font-style: normal;
|
20 |
font-weight: normal;
|
21 |
font-variant: normal;
|
@@ -27,21 +25,21 @@
|
|
27 |
-moz-osx-font-smoothing: grayscale;
|
28 |
}
|
29 |
|
30 |
-
.icon-
|
31 |
-
content: "\e605";
|
32 |
-
}
|
33 |
-
.icon-vk_w_r_sns_twitter:before {
|
34 |
content: "\e600";
|
35 |
}
|
36 |
-
.icon-
|
37 |
content: "\e601";
|
38 |
}
|
39 |
.icon-vk_w_r_sns_hatena:before {
|
40 |
content: "\e602";
|
41 |
}
|
42 |
-
.icon-
|
43 |
content: "\e603";
|
44 |
}
|
45 |
-
.icon-
|
46 |
content: "\e604";
|
47 |
}
|
|
|
|
|
|
|
|
|
|
|
|
1 |
@font-face {
|
2 |
font-family: 'vk_sns';
|
3 |
+
src: url('fonts/vk_sns.eot?jl09gx');
|
4 |
+
src: url('fonts/vk_sns.eot?jl09gx#iefix') format('embedded-opentype'),
|
5 |
+
url('fonts/vk_sns.ttf?jl09gx') format('truetype'),
|
6 |
+
url('fonts/vk_sns.woff?jl09gx') format('woff'),
|
7 |
+
url('fonts/vk_sns.svg?jl09gx#vk_sns') format('svg');
|
8 |
font-weight: normal;
|
9 |
font-style: normal;
|
10 |
+
font-display: block;
|
11 |
}
|
12 |
|
13 |
[class^="icon-"], [class*=" icon-"] {
|
14 |
/* use !important to prevent issues with browser extensions that change fonts */
|
15 |
font-family: 'vk_sns' !important;
|
16 |
+
speak: never;
|
17 |
font-style: normal;
|
18 |
font-weight: normal;
|
19 |
font-variant: normal;
|
25 |
-moz-osx-font-smoothing: grayscale;
|
26 |
}
|
27 |
|
28 |
+
.icon-vk_w_r_sns_fb:before {
|
|
|
|
|
|
|
29 |
content: "\e600";
|
30 |
}
|
31 |
+
.icon-vk_w_r_sns_google:before {
|
32 |
content: "\e601";
|
33 |
}
|
34 |
.icon-vk_w_r_sns_hatena:before {
|
35 |
content: "\e602";
|
36 |
}
|
37 |
+
.icon-vk_w_r_sns_line:before {
|
38 |
content: "\e603";
|
39 |
}
|
40 |
+
.icon-vk_w_r_sns_pocket:before {
|
41 |
content: "\e604";
|
42 |
}
|
43 |
+
.icon-vk_w_r_sns_twitter:before {
|
44 |
+
content: "\e605";
|
45 |
+
}
|
inc/vk-css-optimize/package/class-css-tree-shaking.php
CHANGED
@@ -11,9 +11,9 @@ If you want to change this file, please change the original file.
|
|
11 |
*
|
12 |
* Version: 1.0.2
|
13 |
* Author: enomoto@celtislab
|
|
|
14 |
* Author URI: https://celtislab.net/
|
15 |
* License: GPLv2
|
16 |
-
*
|
17 |
*/
|
18 |
namespace celtislab;
|
19 |
|
@@ -21,149 +21,174 @@ defined( 'ABSPATH' ) || exit;
|
|
21 |
|
22 |
class CSS_tree_shaking {
|
23 |
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
function __construct() {}
|
29 |
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
|
|
|
|
|
|
|
|
|
|
53 |
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
|
|
|
|
|
|
|
|
66 |
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
|
|
|
|
|
|
77 |
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
|
|
91 |
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
|
|
|
|
112 |
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
140 |
|
141 |
-
|
142 |
-
|
143 |
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
|
|
159 |
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
|
|
167 |
'id' => array(),
|
168 |
'class' => array(
|
169 |
'device-mobile',
|
@@ -181,10 +206,10 @@ class CSS_tree_shaking {
|
|
181 |
'carousel-item-left',
|
182 |
'carousel-item-next',
|
183 |
'carousel-item-right',
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
'.vk_post_imgOuter a:hover .card-img-overlay::after',
|
189 |
),
|
190 |
'tag' => array(
|
@@ -196,35 +221,38 @@ class CSS_tree_shaking {
|
|
196 |
'meta',
|
197 |
'link',
|
198 |
'script',
|
199 |
-
'noscript'
|
200 |
-
)
|
|
|
|
|
|
|
|
|
|
|
|
|
201 |
);
|
202 |
-
$inidata = apply_filters( 'css_tree_shaking_exclude', $inidata );
|
203 |
-
$pattern = array( 'id' => '|[\s\t\'"]id\s?=\s?[\'"](.+?)[\'"]|u',
|
204 |
-
'class' => '|[\s\t\'"]class\s?=\s?[\'"](.+?)[\'"]|u',
|
205 |
-
'tag' => '|<([\w\-]+)|iu'
|
206 |
-
);
|
207 |
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
|
|
|
|
230 |
}
|
11 |
*
|
12 |
* Version: 1.0.2
|
13 |
* Author: enomoto@celtislab
|
14 |
+
* Modefied: Vektor:Inc.
|
15 |
* Author URI: https://celtislab.net/
|
16 |
* License: GPLv2
|
|
|
17 |
*/
|
18 |
namespace celtislab;
|
19 |
|
21 |
|
22 |
class CSS_tree_shaking {
|
23 |
|
24 |
+
private static $cmplist;
|
25 |
+
private static $varlist;
|
26 |
+
private static $jsaddlist;
|
27 |
+
private static $atrule_data;
|
28 |
function __construct() {}
|
29 |
|
30 |
+
// アットルール一時退避( @{md5key} に置き換えておく)
|
31 |
+
private static function atrule_store( $css ) {
|
32 |
+
$pattern = array(
|
33 |
+
'|(@(\-[\w]+\-)?keyframes.+?\{)(.+?\})\}|',
|
34 |
+
'|(@(\-[\w]+\-)?supports.+?\{)(.+?\})\}|',
|
35 |
+
'|(@(\-[\w]+\-)?media.+?\{)(.+?\})\}|',
|
36 |
+
'|@[^;\{]+?;|',
|
37 |
+
'|@[^;\{]+?\{(.+?)\}|',
|
38 |
+
);
|
39 |
+
foreach ( $pattern as $atrule ) {
|
40 |
+
$css = preg_replace_callback(
|
41 |
+
$atrule,
|
42 |
+
function( $matches ) {
|
43 |
+
$key = 'AR_' . md5( $matches[0] );
|
44 |
+
$data = $matches[0];
|
45 |
+
if ( ! empty( $matches[3] ) ) {
|
46 |
+
$incss = self::atrule_store( $matches[3] );
|
47 |
+
$incss = self::tree_shaking( $incss );
|
48 |
+
$data = ( ! empty( $incss ) ) ? $matches[1] . $incss . '}' : '';
|
49 |
+
}
|
50 |
+
self::$atrule_data[ $key ] = $data;
|
51 |
+
return '@{' . $key . '}';
|
52 |
+
},
|
53 |
+
$css
|
54 |
+
);
|
55 |
+
}
|
56 |
+
return $css;
|
57 |
+
}
|
58 |
|
59 |
+
// アットルール復元
|
60 |
+
private static function atrule_restore( $css ) {
|
61 |
+
$css = preg_replace_callback(
|
62 |
+
'|@\{(.+?)\}|',
|
63 |
+
function( $matches ) {
|
64 |
+
$data = $matches[0];
|
65 |
+
$key = $matches[1];
|
66 |
+
if ( strpos( $key, 'AR_' ) !== false ) {
|
67 |
+
$data = ( ! empty( self::$atrule_data[ $key ] ) ) ? self::atrule_restore( self::$atrule_data[ $key ] ) : '';
|
68 |
+
}
|
69 |
+
return $data;
|
70 |
+
},
|
71 |
+
$css
|
72 |
+
);
|
73 |
+
return $css;
|
74 |
+
}
|
75 |
|
76 |
+
// CSS から未使用の id, class, tag を含む定義を削除
|
77 |
+
private static function tree_shaking( $css ) {
|
78 |
+
$ncss = preg_replace_callback(
|
79 |
+
'|(.+?)(\{.+?\})|u',
|
80 |
+
function( $matches ) {
|
81 |
+
$data = $matches[0];
|
82 |
+
$sel = $matches[1];
|
83 |
+
if ( $sel !== '@' ) {
|
84 |
+
$pattern = array(
|
85 |
+
'id' => '|(#)([\w\-\\%]+)|u',
|
86 |
+
'class' => '|(\.)([\w\-\\%]+)|u',
|
87 |
+
'tag' => '/(^|[,\s>\+~\(\)\]\|])([\w\-]+)/iu',
|
88 |
+
);
|
89 |
|
90 |
+
$slist = array_map( 'trim', explode( ',', $sel ) );
|
91 |
+
foreach ( $slist as $s ) {
|
92 |
+
// selector の判定条件から :not(...) を除外 ($_s で判定して削除時は $s で行う)
|
93 |
+
$_s = $s;
|
94 |
+
if ( preg_match( '/:not\(.+?\)/', $s ) ) {
|
95 |
+
$_s = preg_replace( '/:not\(.+?\)/', '', $s );
|
96 |
+
}
|
97 |
+
foreach ( array( 'id', 'class', 'tag' ) as $item ) {
|
98 |
+
if ( ! empty( $_s ) && preg_match_all( $pattern[ $item ], $_s, $match ) ) {
|
99 |
+
foreach ( $match[2] as $val ) {
|
100 |
+
// $jsaddlist 登録名が一部でも含まれていれば削除しない(処理を簡略化するため上位層のセレクタのみで判定)
|
101 |
+
if ( in_array( $val, self::$jsaddlist ) ) {
|
102 |
+
break;
|
103 |
+
}
|
104 |
|
105 |
+
// $cmplist 登録名に含まれていないものが一つでもあれば削除
|
106 |
+
if ( ! preg_match( '/^[0-9]+/', $val ) && ! in_array( $val, self::$cmplist[ $item ] ) ) {
|
107 |
+
$sel = preg_replace( '/(' . preg_quote( $s ) . ')(,|$)/u', '$2', $sel, 1 );
|
108 |
+
$s = '';
|
109 |
+
break;
|
110 |
+
}
|
111 |
+
}
|
112 |
+
}
|
113 |
+
}
|
114 |
+
}
|
115 |
+
$sel = preg_replace( '/,+/su', ',', $sel );
|
116 |
+
$sel = preg_replace( '/\s+/su', ' ', $sel );
|
117 |
+
$sel = trim( $sel );
|
118 |
+
$sel = trim( $sel, ',' );
|
119 |
+
$data = ( ! empty( $sel ) ) ? $sel . $matches[2] : '';
|
120 |
+
}
|
121 |
+
return $data;
|
122 |
+
},
|
123 |
+
$css
|
124 |
+
);
|
125 |
+
return $ncss;
|
126 |
+
}
|
127 |
|
128 |
+
// 未使用変数定義の削除(tree_shaking 実行後に実施する必要あり)
|
129 |
+
public static function tree_shaking4var( $css ) {
|
130 |
+
$ncss = $css;
|
131 |
+
self::$varlist = array();
|
132 |
+
if ( preg_match_all( '/var\((\-\-.+?)\)/iu', $css, $vmatchs ) ) {
|
133 |
+
foreach ( $vmatchs[1] as $v ) {
|
134 |
+
$v = trim( $v );
|
135 |
+
if ( ! in_array( $v, self::$varlist ) ) {
|
136 |
+
self::$varlist[] = $v;
|
137 |
+
}
|
138 |
+
}
|
139 |
+
}
|
140 |
+
// url() 定義時は文字列中に ; がそのまま含まれている場合があるの分けて処理
|
141 |
+
$ncss = preg_replace_callback(
|
142 |
+
'|(\-\-[\w\-]+?):url\(.+?\);?|u',
|
143 |
+
function( $matches ) {
|
144 |
+
$data = $matches[0];
|
145 |
+
if ( ! in_array( trim( $matches[1] ), self::$varlist ) ) {
|
146 |
+
$data = '';
|
147 |
+
}
|
148 |
+
return $data;
|
149 |
+
},
|
150 |
+
$ncss
|
151 |
+
);
|
152 |
+
$ncss = preg_replace_callback(
|
153 |
+
'|(\-\-[\w\-]+?):(.+?)([;\}])|u',
|
154 |
+
function( $matches ) {
|
155 |
+
$data = $matches[0];
|
156 |
+
if ( ! preg_match( '|url\(|u', $matches[2] ) && ! in_array( trim( $matches[1] ), self::$varlist ) ) {
|
157 |
+
$data = ( $matches[3] === '}' ) ? '}' : '';
|
158 |
+
}
|
159 |
+
return $data;
|
160 |
+
},
|
161 |
+
$ncss
|
162 |
+
);
|
163 |
|
164 |
+
return $ncss;
|
165 |
+
}
|
166 |
|
167 |
+
/*
|
168 |
+
=============================================================
|
169 |
+
* CSS 内のコメント、改行、空白等を削除するだけのシンプルな縮小化
|
170 |
+
*/
|
171 |
+
public static function simple_minify( $css ) {
|
172 |
+
$res = preg_replace( '!/\*[^*]*\*+([^/][^*]*\*+)*/!', '', $css );
|
173 |
+
if ( ! empty( $res ) ) {
|
174 |
+
$css = $res;
|
175 |
+
$css = str_replace( array( "\r", "\n" ), '', $css );
|
176 |
+
$css = str_replace( "\t", ' ', $css );
|
177 |
+
$css = preg_replace( '/\s+/su', ' ', $css );
|
178 |
+
$css = preg_replace( '/\s([\{\}:=,\)*\/;>])/', '$1', $css );
|
179 |
+
$css = preg_replace( '/([\{\}:=,\(*\/!;>])\s/', '$1', $css );
|
180 |
+
}
|
181 |
+
return $css;
|
182 |
+
}
|
183 |
|
184 |
+
/*
|
185 |
+
=============================================================
|
186 |
+
* CSS 内の未使用 id, class, tag に関する定義を取り除く縮小化
|
187 |
+
*/
|
188 |
+
public static function extended_minify( $css, $html, $jsaddlist = array() ) {
|
189 |
+
self::$atrule_data = array();
|
190 |
+
self::$jsaddlist = $jsaddlist; // JS によりDOMロード後に追加される ID や class 等が除外されなくするための名前の事前登録用
|
191 |
+
$inidata = array(
|
192 |
'id' => array(),
|
193 |
'class' => array(
|
194 |
'device-mobile',
|
206 |
'carousel-item-left',
|
207 |
'carousel-item-next',
|
208 |
'carousel-item-right',
|
209 |
+
'carousel-item-prev',
|
210 |
+
'form-control',
|
211 |
+
'btn',
|
212 |
+
'btn-primary',
|
213 |
'.vk_post_imgOuter a:hover .card-img-overlay::after',
|
214 |
),
|
215 |
'tag' => array(
|
221 |
'meta',
|
222 |
'link',
|
223 |
'script',
|
224 |
+
'noscript',
|
225 |
+
),
|
226 |
+
);
|
227 |
+
$inidata = apply_filters( 'css_tree_shaking_exclude', $inidata );
|
228 |
+
$pattern = array(
|
229 |
+
'id' => '|[\s\t\'"]id\s?=\s?[\'"](.+?)[\'"]|u',
|
230 |
+
'class' => '|[\s\t\'"]class\s?=\s?[\'"](.+?)[\'"]|u',
|
231 |
+
'tag' => '|<([\w\-]+)|iu',
|
232 |
);
|
|
|
|
|
|
|
|
|
|
|
233 |
|
234 |
+
if ( empty( self::$cmplist['parse'] ) ) {
|
235 |
+
self::$cmplist['parse'] = true;
|
236 |
+
foreach ( array( 'id', 'class', 'tag' ) as $item ) {
|
237 |
+
self::$cmplist[ $item ] = $inidata[ $item ];
|
238 |
+
if ( preg_match_all( $pattern[ $item ], $html, $matches ) ) {
|
239 |
+
foreach ( $matches[1] as $val ) {
|
240 |
+
$arr = array_map( 'trim', explode( ' ', $val ) );
|
241 |
+
foreach ( $arr as $dt ) {
|
242 |
+
if ( ! empty( $dt ) && ! in_array( $dt, self::$cmplist[ $item ] ) ) {
|
243 |
+
self::$cmplist[ $item ][] = $dt;
|
244 |
+
}
|
245 |
+
}
|
246 |
+
}
|
247 |
+
}
|
248 |
+
}
|
249 |
+
}
|
250 |
+
$css = self::simple_minify( $css );
|
251 |
+
$css = self::atrule_store( $css );
|
252 |
+
$css = self::tree_shaking( $css );
|
253 |
+
$css = self::atrule_restore( $css );
|
254 |
+
// 変数のTreeshaking は必要なのに除外されてしまうので停止
|
255 |
+
// $css = self::tree_shaking4var( $css );
|
256 |
+
return $css;
|
257 |
+
}
|
258 |
}
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: vektor-inc,kurudrive,hinaloe,jim912,hideokamoto,nc30,SaoriMiyazaki
|
|
3 |
Donate link:
|
4 |
Tags: Google Analytics, New posts, Related Posts, sitemap, sns, twitter card, Facebook Page Plugin, OG tags,
|
5 |
Requires at least: 5.3.0
|
6 |
-
Tested up to: 5.7.
|
7 |
-
Stable tag: 9.61.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -81,6 +81,10 @@ e.g.
|
|
81 |
|
82 |
== Changelog ==
|
83 |
|
|
|
|
|
|
|
|
|
84 |
= 9.61.1.0 =
|
85 |
[ Bug fix ][ Page Top Btn ] fix underline
|
86 |
|
3 |
Donate link:
|
4 |
Tags: Google Analytics, New posts, Related Posts, sitemap, sns, twitter card, Facebook Page Plugin, OG tags,
|
5 |
Requires at least: 5.3.0
|
6 |
+
Tested up to: 5.7.2
|
7 |
+
Stable tag: 9.61.2.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
81 |
|
82 |
== Changelog ==
|
83 |
|
84 |
+
= 9.61.2.0 =
|
85 |
+
[ Specification Change ] Admin dashboard banner include
|
86 |
+
[ Specification Change ] Stop exclude CSS Var by Tree shaking
|
87 |
+
|
88 |
= 9.61.1.0 =
|
89 |
[ Bug fix ][ Page Top Btn ] fix underline
|
90 |
|
vkExUnit.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: VK All in One Expansion Unit
|
4 |
* Plugin URI: https://ex-unit.nagoya
|
5 |
* Description: This plug-in is an integrated plug-in with a variety of features that make it powerful your web site. Many features can be stopped individually. Example Facebook Page Plugin,Social Bookmarks,Print OG Tags,Print Twitter Card Tags,Print Google Analytics tag,New post widget,Insert Related Posts and more!
|
6 |
-
* Version: 9.61.
|
7 |
* Author: Vektor,Inc.
|
8 |
* Text Domain: vk-all-in-one-expansion-unit
|
9 |
* Domain Path: /languages
|
3 |
* Plugin Name: VK All in One Expansion Unit
|
4 |
* Plugin URI: https://ex-unit.nagoya
|
5 |
* Description: This plug-in is an integrated plug-in with a variety of features that make it powerful your web site. Many features can be stopped individually. Example Facebook Page Plugin,Social Bookmarks,Print OG Tags,Print Twitter Card Tags,Print Google Analytics tag,New post widget,Insert Related Posts and more!
|
6 |
+
* Version: 9.61.2.0
|
7 |
* Author: Vektor,Inc.
|
8 |
* Text Domain: vk-all-in-one-expansion-unit
|
9 |
* Domain Path: /languages
|