VK All in One Expansion Unit - Version 0.1.6.6

Version Description

  • Profile Widget bug fix.
Download this release

Release Info

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

Code changes from version 0.1.6.5 to 0.1.6.6

_scss/style.scss CHANGED
@@ -21,6 +21,8 @@
21
/*-------------------------------------------*/
22
/* childPageIndex Plugin
23
/*-------------------------------------------*/
24
25
/*-------------------------------------------*/
26
/* .common
@@ -132,14 +134,27 @@
132
/*-------------------------------------------*/
133
/* Profile wiget Plugin
134
/*-------------------------------------------*/
135
.profile_media{
136
- display:block; overflow:hidden;
137
margin: 0.8em auto;
138
- max-width: 100px;
139
- border-radius: 100px;
140
}
141
- .site-profile {
142
-
143
}
144
.profile_text{
145
margin-bottom: 0.5em;
@@ -263,7 +278,7 @@
263
.childPage_list_box{
264
position: relative;
265
margin-bottom: 2.5em;
266
- .childPage_list_title{
267
font-size: 16px;
268
line-height: 1.4;
269
}
21
/*-------------------------------------------*/
22
/* childPageIndex Plugin
23
/*-------------------------------------------*/
24
+ /* sitemap page Plugin
25
+ /*-------------------------------------------*/
26
27
/*-------------------------------------------*/
28
/* .common
134
/*-------------------------------------------*/
135
/* Profile wiget Plugin
136
/*-------------------------------------------*/
137
+ .site-profile{
138
+ overflow: hidden;
139
+ }
140
.profile_media{
141
+ display:block;
142
margin: 0.8em auto;
143
+ max-width: 100%;
144
}
145
+ .media_round{
146
+ border-radius: 50%;
147
+ }
148
+ .media_left .profile_media{ margin-left:0; }
149
+ .media_float{
150
+ float: left;
151
+ padding-right: 10px;
152
+ .profile_media{
153
+ margin: 0.8em 0 0;
154
+ }
155
+ &+.profile_text{
156
+ padding-top: 0.8em;
157
+ }
158
}
159
.profile_text{
160
margin-bottom: 0.5em;
278
.childPage_list_box{
279
position: relative;
280
margin-bottom: 2.5em;
281
+ .childPage_list_title{
282
font-size: 16px;
283
line-height: 1.4;
284
}
css/style.css CHANGED
@@ -1,3 +1,20 @@
1
/*-------------------------------------------------*/
2
/* ex_unit
3
/*-------------------------------------------------*/
@@ -106,6 +123,8 @@
106
107
.media_round { border-radius: 50%; }
108
109
.media_float { float: left; padding-right: 10px; }
110
.media_float .profile_media { margin: 0.8em 0 0; }
111
.media_float + .profile_text { padding-top: 0.8em; }
@@ -161,5 +180,3 @@
161
.sitemap-col .page_item { padding: 0; }
162
.sitemap-col .children { margin-bottom: 2em; }
163
.sitemap-col .cat-item { padding: 0; }
164
-
165
- /*# sourceMappingURL=style.css.map */
1
+ /* .media(bootstrap)
2
+ /*-------------------------------------------*/
3
+ .media { border-bottom: 1px solid #e5e5e5; padding: 2em 0; margin-top: 0; }
4
+ .media:first-child { border-top: 1px solid #e5e5e5; }
5
+ .media .postList_thumbnail { width: 160px; margin-bottom: 0.5em; padding-right: 30px; display: block; overflow: hidden; float: left; }
6
+ .media .postList_thumbnail a { position: relative; display: block; overflow: hidden; }
7
+ .media .postList_thumbnail img { width: 100%; height: auto; }
8
+ .media .postList_thumbnail .postList_cateLabel { position: absolute; bottom: 0; left: 0; }
9
+ .media .media-body .media-heading { font-size: 1.8em; line-height: 1.3em; margin-top: 0; margin-bottom: 0.5em; font-weight: normal; }
10
+ .media .media-body .media-heading a { color: #464646; }
11
+ .media .media-body .media-heading a:hover { text-decoration: none; }
12
+ .media .media-body p { margin-bottom: 0; }
13
+ .media .media-body a.media-body_excerpt { color: #464646; }
14
+
15
+ @media (max-width: 767px) { .media .postList_thumbnail { padding-right: 20px; }
16
+ .media .media-body .media-heading { font-size: 1.2em; line-height: 1.3em; margin-bottom: 0.5em; } }
17
+ @media (max-width: 500px) { .media .postList_thumbnail { width: 100px; } }
18
/*-------------------------------------------------*/
19
/* ex_unit
20
/*-------------------------------------------------*/
123
124
.media_round { border-radius: 50%; }
125
126
+ .media_left .profile_media { margin-left: 0; }
127
+
128
.media_float { float: left; padding-right: 10px; }
129
.media_float .profile_media { margin: 0.8em 0 0; }
130
.media_float + .profile_text { padding-top: 0.8em; }
180
.sitemap-col .page_item { padding: 0; }
181
.sitemap-col .children { margin-bottom: 2em; }
182
.sitemap-col .cat-item { padding: 0; }
css/style_in_bs.css CHANGED
@@ -614,6 +614,8 @@ input[type="submit"].btn-block, input[type="reset"].btn-block, input[type="butto
614
/*-------------------------------------------*/
615
/* childPageIndex Plugin
616
/*-------------------------------------------*/
617
/*-------------------------------------------*/
618
/* .common
619
/*-------------------------------------------*/
@@ -701,6 +703,8 @@ input[type="submit"].btn-block, input[type="reset"].btn-block, input[type="butto
701
702
.media_round { border-radius: 50%; }
703
704
.media_float { float: left; padding-right: 10px; }
705
.media_float .profile_media { margin: 0.8em 0 0; }
706
.media_float + .profile_text { padding-top: 0.8em; }
614
/*-------------------------------------------*/
615
/* childPageIndex Plugin
616
/*-------------------------------------------*/
617
+ /* sitemap page Plugin
618
+ /*-------------------------------------------*/
619
/*-------------------------------------------*/
620
/* .common
621
/*-------------------------------------------*/
703
704
.media_round { border-radius: 50%; }
705
706
+ .media_left .profile_media { margin-left: 0; }
707
+
708
.media_float { float: left; padding-right: 10px; }
709
.media_float .profile_media { margin: 0.8em 0 0; }
710
.media_float + .profile_text { padding-top: 0.8em; }
languages/vkExUnit-ja.mo CHANGED
Binary file
languages/vkExUnit-ja.po CHANGED
@@ -1,7 +1,7 @@
1
msgid ""
2
msgstr ""
3
"Project-Id-Version: \n"
4
- "POT-Creation-Date: 2015-07-24 16:44+0900\n"
5
"PO-Revision-Date: \n"
6
"Last-Translator: Kurudrive <kurudrive@gmail.com>\n"
7
"Language-Team: Vektor translate Team <info@vektor-inc.co.jp>\n"
@@ -418,7 +418,7 @@ msgstr ""
418
msgid "if checked you will display a sitemap"
419
msgstr "チェックを入れるとHTMLサイトマップを表示します。"
420
421
- #: ../plugins/child_page_index/child_page_index.php:40
422
#: ../plugins/other_widget/widget-3pr-area.php:274
423
#: ../plugins/other_widget/widget-3pr-area.php:316
424
#: ../plugins/other_widget/widget-3pr-area.php:359
@@ -617,7 +617,7 @@ msgstr "3PR エリア1 設定"
617
#: ../plugins/other_widget/widget-3pr-area.php:102
618
#: ../plugins/other_widget/widget-3pr-area.php:154
619
#: ../plugins/other_widget/widget-new-posts.php:75
620
- #: ../plugins/other_widget/widget-profile.php:38
621
#: ../plugins/sns/function_fbPagePlugin.php:75
622
msgid "Title:"
623
msgstr "タイトル"
@@ -634,7 +634,7 @@ msgstr "PC 用に表示される画像を選択(横 300px 程度推奨)"
634
#: ../plugins/other_widget/widget-3pr-area.php:132
635
#: ../plugins/other_widget/widget-3pr-area.php:166
636
#: ../plugins/other_widget/widget-3pr-area.php:183
637
- #: ../plugins/other_widget/widget-profile.php:49
638
msgid "Select image"
639
msgstr "画像を選択"
640
@@ -644,7 +644,7 @@ msgstr "画像を選択"
644
#: ../plugins/other_widget/widget-3pr-area.php:133
645
#: ../plugins/other_widget/widget-3pr-area.php:167
646
#: ../plugins/other_widget/widget-3pr-area.php:184
647
- #: ../plugins/other_widget/widget-profile.php:50
648
msgid "Clear image"
649
msgstr "画像クリア"
650
@@ -746,62 +746,62 @@ msgstr ""
746
msgid "Profile"
747
msgstr "プロフィール"
748
749
- #: ../plugins/other_widget/widget-profile.php:25
750
msgid "Profile Text"
751
msgstr "プロフィールテキスト"
752
753
- #: ../plugins/other_widget/widget-profile.php:43
754
msgid "Select Profile image:"
755
msgstr "プロフィール用画像を選択"
756
757
- #: ../plugins/other_widget/widget-profile.php:60
758
msgid "Cut out round the image."
759
msgstr "画像を丸く切り抜いて表示する"
760
761
- #: ../plugins/other_widget/widget-profile.php:64
762
msgid "Media size (Optional)"
763
msgstr "画像の大きさ( 任意 )"
764
765
- #: ../plugins/other_widget/widget-profile.php:69
766
msgid "Text float to image."
767
msgstr "テキストを画像に回りこませる"
768
769
- #: ../plugins/other_widget/widget-profile.php:73
770
msgid "Profile Text:"
771
msgstr "プロフィールテキスト"
772
773
- #: ../plugins/other_widget/widget-profile.php:78
774
msgid "Facebook URL:"
775
msgstr "Facebook リンク先ページのURL"
776
777
- #: ../plugins/other_widget/widget-profile.php:83
778
msgid "Twitter URL:"
779
msgstr "twitterリンク先ページのURL"
780
781
- #: ../plugins/other_widget/widget-profile.php:88
782
msgid "Email Address:"
783
msgstr "Email リンク先ページのURL"
784
785
- #: ../plugins/other_widget/widget-profile.php:93
786
msgid "Youtube URL:"
787
msgstr "Youtube リンク先ページのURL"
788
789
- #: ../plugins/other_widget/widget-profile.php:98
790
msgid "RSS URL:"
791
msgstr "RSS リンク先ページのURL"
792
793
- #: ../plugins/other_widget/widget-profile.php:103
794
msgid "instagram URL:"
795
msgstr "instagram リンク先ページのURL"
796
797
- #: ../plugins/other_widget/widget-profile.php:107
798
msgid "linkedin URL:"
799
msgstr "linkedin リンク先ページのURL"
800
801
- #: ../plugins/other_widget/widget-profile.php:140
802
- msgid "Site's Profile"
803
- msgstr "プロフィール"
804
-
805
#: ../plugins/other_widget/widget-taxonomies.php:12
806
msgid "Displays a categories and custom taxonomies list."
807
msgstr "カテゴリーやカスタム分類のリストを表示します。"
@@ -1164,6 +1164,9 @@ msgstr "BizVektor を使用して OGP タグを出力しない。"
1164
msgid "Page top"
1165
msgstr "ページ先頭へ"
1166
1167
#~ msgid "Media round setting:"
1168
#~ msgstr "画像を丸く切り抜くか:"
1169
1
msgid ""
2
msgstr ""
3
"Project-Id-Version: \n"
4
+ "POT-Creation-Date: 2015-07-24 20:36+0900\n"
5
"PO-Revision-Date: \n"
6
"Last-Translator: Kurudrive <kurudrive@gmail.com>\n"
7
"Language-Team: Vektor translate Team <info@vektor-inc.co.jp>\n"
418
msgid "if checked you will display a sitemap"
419
msgstr "チェックを入れるとHTMLサイトマップを表示します。"
420
421
+ #: ../plugins/child_page_index/child_page_index.php:42
422
#: ../plugins/other_widget/widget-3pr-area.php:274
423
#: ../plugins/other_widget/widget-3pr-area.php:316
424
#: ../plugins/other_widget/widget-3pr-area.php:359
617
#: ../plugins/other_widget/widget-3pr-area.php:102
618
#: ../plugins/other_widget/widget-3pr-area.php:154
619
#: ../plugins/other_widget/widget-new-posts.php:75
620
+ #: ../plugins/other_widget/widget-profile.php:39
621
#: ../plugins/sns/function_fbPagePlugin.php:75
622
msgid "Title:"
623
msgstr "タイトル"
634
#: ../plugins/other_widget/widget-3pr-area.php:132
635
#: ../plugins/other_widget/widget-3pr-area.php:166
636
#: ../plugins/other_widget/widget-3pr-area.php:183
637
+ #: ../plugins/other_widget/widget-profile.php:50
638
msgid "Select image"
639
msgstr "画像を選択"
640
644
#: ../plugins/other_widget/widget-3pr-area.php:133
645
#: ../plugins/other_widget/widget-3pr-area.php:167
646
#: ../plugins/other_widget/widget-3pr-area.php:184
647
+ #: ../plugins/other_widget/widget-profile.php:51
648
msgid "Clear image"
649
msgstr "画像クリア"
650
746
msgid "Profile"
747
msgstr "プロフィール"
748
749
+ #: ../plugins/other_widget/widget-profile.php:26
750
msgid "Profile Text"
751
msgstr "プロフィールテキスト"
752
753
+ #: ../plugins/other_widget/widget-profile.php:44
754
msgid "Select Profile image:"
755
msgstr "プロフィール用画像を選択"
756
757
+ #: ../plugins/other_widget/widget-profile.php:61
758
msgid "Cut out round the image."
759
msgstr "画像を丸く切り抜いて表示する"
760
761
+ #: ../plugins/other_widget/widget-profile.php:65
762
msgid "Media size (Optional)"
763
msgstr "画像の大きさ( 任意 )"
764
765
+ #: ../plugins/other_widget/widget-profile.php:70
766
+ msgid "Image align left"
767
+ msgstr "画像を左揃えにする"
768
+
769
+ #: ../plugins/other_widget/widget-profile.php:74
770
msgid "Text float to image."
771
msgstr "テキストを画像に回りこませる"
772
773
+ #: ../plugins/other_widget/widget-profile.php:78
774
msgid "Profile Text:"
775
msgstr "プロフィールテキスト"
776
777
+ #: ../plugins/other_widget/widget-profile.php:83
778
msgid "Facebook URL:"
779
msgstr "Facebook リンク先ページのURL"
780
781
+ #: ../plugins/other_widget/widget-profile.php:88
782
msgid "Twitter URL:"
783
msgstr "twitterリンク先ページのURL"
784
785
+ #: ../plugins/other_widget/widget-profile.php:93
786
msgid "Email Address:"
787
msgstr "Email リンク先ページのURL"
788
789
+ #: ../plugins/other_widget/widget-profile.php:98
790
msgid "Youtube URL:"
791
msgstr "Youtube リンク先ページのURL"
792
793
+ #: ../plugins/other_widget/widget-profile.php:103
794
msgid "RSS URL:"
795
msgstr "RSS リンク先ページのURL"
796
797
+ #: ../plugins/other_widget/widget-profile.php:108
798
msgid "instagram URL:"
799
msgstr "instagram リンク先ページのURL"
800
801
+ #: ../plugins/other_widget/widget-profile.php:112
802
msgid "linkedin URL:"
803
msgstr "linkedin リンク先ページのURL"
804
805
#: ../plugins/other_widget/widget-taxonomies.php:12
806
msgid "Displays a categories and custom taxonomies list."
807
msgstr "カテゴリーやカスタム分類のリストを表示します。"
1164
msgid "Page top"
1165
msgstr "ページ先頭へ"
1166
1167
+ #~ msgid "Site's Profile"
1168
+ #~ msgstr "プロフィール"
1169
+
1170
#~ msgid "Media round setting:"
1171
#~ msgstr "画像を丸く切り抜くか:"
1172
languages/vkexunit.mo CHANGED
Binary file
languages/vkexunit.pot CHANGED
@@ -1,7 +1,7 @@
1
msgid ""
2
msgstr ""
3
"Project-Id-Version: \n"
4
- "POT-Creation-Date: 2015-07-24 16:48+0900\n"
5
"PO-Revision-Date: \n"
6
"Last-Translator: Kurudrive <kurudrive@gmail.com>\n"
7
"Language-Team: Vektor,Inc. <info@vektor-inc.co.jp>\n"
@@ -383,7 +383,7 @@ msgstr ""
383
msgid "if checked you will display a sitemap"
384
msgstr ""
385
386
- #: plugins/child_page_index/child_page_index.php:40
387
#: plugins/other_widget/widget-3pr-area.php:274
388
#: plugins/other_widget/widget-3pr-area.php:316
389
#: plugins/other_widget/widget-3pr-area.php:359
@@ -563,7 +563,7 @@ msgstr ""
563
#: plugins/other_widget/widget-3pr-area.php:102
564
#: plugins/other_widget/widget-3pr-area.php:154
565
#: plugins/other_widget/widget-new-posts.php:75
566
- #: plugins/other_widget/widget-profile.php:38
567
#: plugins/sns/function_fbPagePlugin.php:75
568
msgid "Title:"
569
msgstr ""
@@ -580,7 +580,7 @@ msgstr ""
580
#: plugins/other_widget/widget-3pr-area.php:132
581
#: plugins/other_widget/widget-3pr-area.php:166
582
#: plugins/other_widget/widget-3pr-area.php:183
583
- #: plugins/other_widget/widget-profile.php:49
584
msgid "Select image"
585
msgstr ""
586
@@ -590,7 +590,7 @@ msgstr ""
590
#: plugins/other_widget/widget-3pr-area.php:133
591
#: plugins/other_widget/widget-3pr-area.php:167
592
#: plugins/other_widget/widget-3pr-area.php:184
593
- #: plugins/other_widget/widget-profile.php:50
594
msgid "Clear image"
595
msgstr ""
596
@@ -689,62 +689,62 @@ msgstr ""
689
msgid "Profile"
690
msgstr ""
691
692
- #: plugins/other_widget/widget-profile.php:25
693
msgid "Profile Text"
694
msgstr ""
695
696
- #: plugins/other_widget/widget-profile.php:43
697
msgid "Select Profile image:"
698
msgstr ""
699
700
- #: plugins/other_widget/widget-profile.php:60
701
msgid "Cut out round the image."
702
msgstr ""
703
704
- #: plugins/other_widget/widget-profile.php:64
705
msgid "Media size (Optional)"
706
msgstr ""
707
708
- #: plugins/other_widget/widget-profile.php:69
709
msgid "Text float to image."
710
msgstr ""
711
712
- #: plugins/other_widget/widget-profile.php:73
713
msgid "Profile Text:"
714
msgstr ""
715
716
- #: plugins/other_widget/widget-profile.php:78
717
msgid "Facebook URL:"
718
msgstr ""
719
720
- #: plugins/other_widget/widget-profile.php:83
721
msgid "Twitter URL:"
722
msgstr ""
723
724
- #: plugins/other_widget/widget-profile.php:88
725
msgid "Email Address:"
726
msgstr ""
727
728
- #: plugins/other_widget/widget-profile.php:93
729
msgid "Youtube URL:"
730
msgstr ""
731
732
- #: plugins/other_widget/widget-profile.php:98
733
msgid "RSS URL:"
734
msgstr ""
735
736
- #: plugins/other_widget/widget-profile.php:103
737
msgid "instagram URL:"
738
msgstr ""
739
740
- #: plugins/other_widget/widget-profile.php:107
741
msgid "linkedin URL:"
742
msgstr ""
743
744
- #: plugins/other_widget/widget-profile.php:140
745
- msgid "Site's Profile"
746
- msgstr ""
747
-
748
#: plugins/other_widget/widget-taxonomies.php:12
749
msgid "Displays a categories and custom taxonomies list."
750
msgstr ""
1
msgid ""
2
msgstr ""
3
"Project-Id-Version: \n"
4
+ "POT-Creation-Date: 2015-07-24 20:36+0900\n"
5
"PO-Revision-Date: \n"
6
"Last-Translator: Kurudrive <kurudrive@gmail.com>\n"
7
"Language-Team: Vektor,Inc. <info@vektor-inc.co.jp>\n"
383
msgid "if checked you will display a sitemap"
384
msgstr ""
385
386
+ #: plugins/child_page_index/child_page_index.php:42
387
#: plugins/other_widget/widget-3pr-area.php:274
388
#: plugins/other_widget/widget-3pr-area.php:316
389
#: plugins/other_widget/widget-3pr-area.php:359
563
#: plugins/other_widget/widget-3pr-area.php:102
564
#: plugins/other_widget/widget-3pr-area.php:154
565
#: plugins/other_widget/widget-new-posts.php:75
566
+ #: plugins/other_widget/widget-profile.php:39
567
#: plugins/sns/function_fbPagePlugin.php:75
568
msgid "Title:"
569
msgstr ""
580
#: plugins/other_widget/widget-3pr-area.php:132
581
#: plugins/other_widget/widget-3pr-area.php:166
582
#: plugins/other_widget/widget-3pr-area.php:183
583
+ #: plugins/other_widget/widget-profile.php:50
584
msgid "Select image"
585
msgstr ""
586
590
#: plugins/other_widget/widget-3pr-area.php:133
591
#: plugins/other_widget/widget-3pr-area.php:167
592
#: plugins/other_widget/widget-3pr-area.php:184
593
+ #: plugins/other_widget/widget-profile.php:51
594
msgid "Clear image"
595
msgstr ""
596
689
msgid "Profile"
690
msgstr ""
691
692
+ #: plugins/other_widget/widget-profile.php:26
693
msgid "Profile Text"
694
msgstr ""
695
696
+ #: plugins/other_widget/widget-profile.php:44
697
msgid "Select Profile image:"
698
msgstr ""
699
700
+ #: plugins/other_widget/widget-profile.php:61
701
msgid "Cut out round the image."
702
msgstr ""
703
704
+ #: plugins/other_widget/widget-profile.php:65
705
msgid "Media size (Optional)"
706
msgstr ""
707
708
+ #: plugins/other_widget/widget-profile.php:70
709
+ msgid "Image align left"
710
+ msgstr ""
711
+
712
+ #: plugins/other_widget/widget-profile.php:74
713
msgid "Text float to image."
714
msgstr ""
715
716
+ #: plugins/other_widget/widget-profile.php:78
717
msgid "Profile Text:"
718
msgstr ""
719
720
+ #: plugins/other_widget/widget-profile.php:83
721
msgid "Facebook URL:"
722
msgstr ""
723
724
+ #: plugins/other_widget/widget-profile.php:88
725
msgid "Twitter URL:"
726
msgstr ""
727
728
+ #: plugins/other_widget/widget-profile.php:93
729
msgid "Email Address:"
730
msgstr ""
731
732
+ #: plugins/other_widget/widget-profile.php:98
733
msgid "Youtube URL:"
734
msgstr ""
735
736
+ #: plugins/other_widget/widget-profile.php:103
737
msgid "RSS URL:"
738
msgstr ""
739
740
+ #: plugins/other_widget/widget-profile.php:108
741
msgid "instagram URL:"
742
msgstr ""
743
744
+ #: plugins/other_widget/widget-profile.php:112
745
msgid "linkedin URL:"
746
msgstr ""
747
748
#: plugins/other_widget/widget-taxonomies.php:12
749
msgid "Displays a categories and custom taxonomies list."
750
msgstr ""
plugins/other_widget/widget-profile.php CHANGED
@@ -19,6 +19,7 @@ class WP_Widget_vkExUnit_profile extends WP_Widget {
19
'label' => __('Profile', 'vkExUnit' ),
20
'mediaFile' => '',
21
'mediaAlt' => '',
22
'mediaRound' => '',
23
'mediaSize' => '',
24
'mediaFloat' => '',
@@ -55,7 +56,7 @@ class WP_Widget_vkExUnit_profile extends WP_Widget {
55
<img class="media_image" src="<?php echo esc_url($instance['mediaFile']); ?>" alt="<?php echo esc_attr($instance['mediaAlt']); ?>" />
56
<?php endif; ?>
57
</div>
58
-
59
<?php //image round setting ?>
60
<p><input type="checkbox" id="<?php echo $this->get_field_id('mediaRound'); ?>_round" 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>
61
</p>
@@ -64,7 +65,11 @@ class WP_Widget_vkExUnit_profile extends WP_Widget {
64
<p><label for="<?php echo $this->get_field_id('mediaSize'); ?>"><?php _e('Media size (Optional)', 'vkExUnit'); ?></label><br/>
65
<input type="text" id="<?php echo $this->get_field_id('mediaSize'); ?>_size" class="prof_input" name="<?php echo $this->get_field_name('mediaSize'); ?>" style="width:50px;" value="<?php echo $instance['mediaSize']; ?>" /> px
66
</p>
67
-
68
<?php //image float setting ?>
69
<p><input type="checkbox" id="<?php echo $this->get_field_id('mediaFloat'); ?>_float" 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/>
70
</p>
@@ -116,6 +121,7 @@ class WP_Widget_vkExUnit_profile extends WP_Widget {
116
$instance['mediaFile'] = $new_instance['mediaFile'];
117
$instance['mediaAlt'] = $new_instance['mediaAlt'];
118
$instance['profile'] = $new_instance['profile'];
119
$instance['mediaRound'] = $new_instance['mediaRound'];
120
$instance['mediaSize'] = $new_instance['mediaSize'];
121
$instance['mediaFloat'] = $new_instance['mediaFloat'];
@@ -132,14 +138,13 @@ class WP_Widget_vkExUnit_profile extends WP_Widget {
132
133
function widget($args, $instance) {
134
// From here Display a widget
135
- echo PHP_EOL.'<aside class="widget">'.PHP_EOL;
136
- echo '<h1 class="widget-title subSection-title">';
137
- if ( isset($instance['label']) && $instance['label'] ) {
138
echo $instance['label'];
139
- } else {
140
- _e("Site's Profile", 'vkExUnit' );
141
- }
142
- echo '</h1>'; ?>
143
144
<div class="site-profile" >
145
<?php // Display a profile image
@@ -147,9 +152,19 @@ class WP_Widget_vkExUnit_profile extends WP_Widget {
147
$mediaRound = isset($instance['mediaRound']) ? ' media_round' : '' ;
148
$mediaSize = isset($instance['mediaSize']) ? mb_convert_kana($instance['mediaSize']) : '' ;
149
150
- echo '<div';
151
if(!empty($instance['mediaFloat'])){
152
- echo ' class="media_float"';
153
}
154
echo '><img class="profile_media';
155
if( !empty($mediaRound) || !empty($mediaSize) || !empty($mediaFloat) ){
19
'label' => __('Profile', 'vkExUnit' ),
20
'mediaFile' => '',
21
'mediaAlt' => '',
22
+ 'mediaAlign_left' => '',
23
'mediaRound' => '',
24
'mediaSize' => '',
25
'mediaFloat' => '',
56
<img class="media_image" src="<?php echo esc_url($instance['mediaFile']); ?>" alt="<?php echo esc_attr($instance['mediaAlt']); ?>" />
57
<?php endif; ?>
58
</div>
59
+
60
<?php //image round setting ?>
61
<p><input type="checkbox" id="<?php echo $this->get_field_id('mediaRound'); ?>_round" 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>
62
</p>
65
<p><label for="<?php echo $this->get_field_id('mediaSize'); ?>"><?php _e('Media size (Optional)', 'vkExUnit'); ?></label><br/>
66
<input type="text" id="<?php echo $this->get_field_id('mediaSize'); ?>_size" class="prof_input" name="<?php echo $this->get_field_name('mediaSize'); ?>" style="width:50px;" value="<?php echo $instance['mediaSize']; ?>" /> px
67
</p>
68
+
69
+ <?php //image mediaAlign_left setting ?>
70
+ <p><input type="checkbox" id="<?php echo $this->get_field_id('mediaAlign_left'); ?>_round" name="<?php echo $this->get_field_name('mediaAlign_left'); ?>" value="true" <?php echo ($instance['mediaAlign_left'])? 'checked': '' ; ?> ><label for="<?php echo $this->get_field_id('mediaAlign_left'); ?>"><?php _e('Image align left', 'vkExUnit'); ?></label>
71
+ </p>
72
+
73
<?php //image float setting ?>
74
<p><input type="checkbox" id="<?php echo $this->get_field_id('mediaFloat'); ?>_float" 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/>
75
</p>
121
$instance['mediaFile'] = $new_instance['mediaFile'];
122
$instance['mediaAlt'] = $new_instance['mediaAlt'];
123
$instance['profile'] = $new_instance['profile'];
124
+ $instance['mediaAlign_left'] = $new_instance['mediaAlign_left'];
125
$instance['mediaRound'] = $new_instance['mediaRound'];
126
$instance['mediaSize'] = $new_instance['mediaSize'];
127
$instance['mediaFloat'] = $new_instance['mediaFloat'];
138
139
function widget($args, $instance) {
140
// From here Display a widget
141
+ echo PHP_EOL.'<aside class="widget">'.PHP_EOL;
142
+
143
+ if ( isset($instance['label']) && $instance['label'] ) {
144
+ echo '<h3 class="widget-title subSection-title">';
145
echo $instance['label'];
146
+ echo '</h3>';
147
+ } ?>
148
149
<div class="site-profile" >
150
<?php // Display a profile image
152
$mediaRound = isset($instance['mediaRound']) ? ' media_round' : '' ;
153
$mediaSize = isset($instance['mediaSize']) ? mb_convert_kana($instance['mediaSize']) : '' ;
154
155
+ $mediaClass = '';
156
+
157
+
158
if(!empty($instance['mediaFloat'])){
159
+ $mediaClass .= 'media_float ';
160
+ }
161
+ if(!empty($instance['mediaAlign_left'])){
162
+ $mediaClass .= 'media_left';
163
+ }
164
+
165
+ echo '<div';
166
+ if ($mediaClass){
167
+ echo ' class="'.$mediaClass.'"';
168
}
169
echo '><img class="profile_media';
170
if( !empty($mediaRound) || !empty($mediaSize) || !empty($mediaFloat) ){
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link:
4
Tags: Google Analytics, New posts, Related Posts, sitemap, sns, twitter card, Facebook Page Plugin, OG tags,
5
Requires at least: 4.2
6
Tested up to: 4.2
7
- Stable tag: 0.1.6.5
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
@@ -67,6 +67,9 @@ e.g.
67
68
== Changelog ==
69
70
= 0.1.6.4 =
71
* Child Page Index page order bug fix.
72
4
Tags: Google Analytics, New posts, Related Posts, sitemap, sns, twitter card, Facebook Page Plugin, OG tags,
5
Requires at least: 4.2
6
Tested up to: 4.2
7
+ Stable tag: 0.1.6.6
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
67
68
== Changelog ==
69
70
+ = 0.1.6.6 =
71
+ * Profile Widget bug fix.
72
+
73
= 0.1.6.4 =
74
* Child Page Index page order bug fix.
75
vkExUnit.php CHANGED
@@ -3,7 +3,7 @@
3
Plugin Name: VK All in One Expansion Unit
4
Plugin URI: https://github.com/kurudrive/VK-All-in-one-Expansion-Unit
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: 0.1.6.5
7
Author: Vektor,Inc.
8
Author URI: http://vektor-inc.co.jp
9
License: GPL2
3
Plugin Name: VK All in One Expansion Unit
4
Plugin URI: https://github.com/kurudrive/VK-All-in-one-Expansion-Unit
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: 0.1.6.6
7
Author: Vektor,Inc.
8
Author URI: http://vektor-inc.co.jp
9
License: GPL2