Column Shortcodes - Version 0.6

Version Description

  • added Danish translation ( thanks to Mads Rosendahl )
  • added full width column
  • updated css template for margins ( thanks to intheshallow )
  • added responsive CSS for devices with a max-width viewport of 600pixels
Download this release

Release Info

Developer tschutter
Plugin Icon 128x128 Column Shortcodes
Version 0.6
Comparing to
See all releases

Code changes from version 0.4 to 0.6

assets/css/admin-rtl.css CHANGED
@@ -1,6 +1,12 @@
 
 
 
 
 
 
1
  #cpsh .cpsh-title {
2
  width: 100%;
3
- text-align: right;
4
  }
5
  #cpsh .columns {
6
  padding-left: 0;
@@ -27,4 +33,63 @@
27
  #cpsh .cp-four_fifth { background-position: right -314px; }
28
  #cpsh .cp-four_fifth_last { background-position: right -334px; }
29
  #cpsh .cp-one_sixth { background-position: right -354px; }
30
- #cpsh .cp-one_sixth_last { background-position: right -374px; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* =Shortcodes
2
+ -------------------------------------------------------------- */
3
+ #cpsh .cpsh-shortcodes {
4
+ float: right;
5
+ width: 46%;
6
+ }
7
  #cpsh .cpsh-title {
8
  width: 100%;
9
+ text-align: right;
10
  }
11
  #cpsh .columns {
12
  padding-left: 0;
33
  #cpsh .cp-four_fifth { background-position: right -314px; }
34
  #cpsh .cp-four_fifth_last { background-position: right -334px; }
35
  #cpsh .cp-one_sixth { background-position: right -354px; }
36
+ #cpsh .cp-one_sixth_last { background-position: right -374px; }
37
+ #cpsh .cp-full_width { background-position: right -394px; }
38
+
39
+ /* =Settings
40
+ -------------------------------------------------------------- */
41
+ #cpsh .cpsh-settings {
42
+ float: left;
43
+ width: 50%;
44
+ }
45
+ #preview-padding {
46
+ margin: 10px 0;
47
+ }
48
+ #preview-padding .column-container {
49
+ width: 200px;
50
+ max-height: 370px;
51
+ border: 1px solid #808080;
52
+ background: #f3fcff;
53
+ position: relative;
54
+ }
55
+ #preview-padding .column-inner {
56
+ border: 1px solid #fff;
57
+ background: #fff;
58
+ height: 130px;
59
+ }
60
+ #preview-padding .padding-fields input {
61
+ position: absolute;
62
+ width: 34px;
63
+ border: 1px solid #DFDFDF;
64
+ border-radius: 3px 3px 3px 3px;
65
+ margin: 0;
66
+ text-align: center;
67
+ }
68
+ #preview-padding .padding-fields input#padding-top {
69
+ top: 10px;
70
+ left: 50%;
71
+ margin-left: -17px;
72
+ }
73
+ #preview-padding .padding-fields input#padding-right {
74
+ top: 50%;
75
+ margin-top: -10px;
76
+ right: 10px;
77
+ }
78
+ #preview-padding .padding-fields input#padding-bottom {
79
+ bottom: 10px;
80
+ left: 50%;
81
+ margin-left: -17px;
82
+ }
83
+ #preview-padding .padding-fields input#padding-left {
84
+ top: 50%;
85
+ margin-top: -10px;
86
+ left: 10px;
87
+ }
88
+ #TB_window #preview-padding .padding-reset {
89
+ color: #097BB4;
90
+ text-decoration: none;
91
+ display: inline-block;
92
+ padding-left: 3px;
93
+ padding-top: 3px;
94
+ text-align: right;
95
+ }
assets/css/admin.css CHANGED
@@ -18,6 +18,14 @@
18
  #cpsh #cpsh-generator-header {
19
  border: 1px dashed #CCCCCC;
20
  padding: 20px;
 
 
 
 
 
 
 
 
21
  }
22
  #cpsh .columns {
23
  display: block;
@@ -49,3 +57,73 @@
49
  #cpsh .cp-four_fifth_last { background-position: left -334px; }
50
  #cpsh .cp-one_sixth { background-position: left -354px; }
51
  #cpsh .cp-one_sixth_last { background-position: left -374px; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  #cpsh #cpsh-generator-header {
19
  border: 1px dashed #CCCCCC;
20
  padding: 20px;
21
+ overflow: hidden;
22
+ }
23
+
24
+ /* =Shortcodes
25
+ -------------------------------------------------------------- */
26
+ #cpsh .cpsh-shortcodes {
27
+ float: left;
28
+ width: 50%;
29
  }
30
  #cpsh .columns {
31
  display: block;
57
  #cpsh .cp-four_fifth_last { background-position: left -334px; }
58
  #cpsh .cp-one_sixth { background-position: left -354px; }
59
  #cpsh .cp-one_sixth_last { background-position: left -374px; }
60
+ #cpsh .cp-full_width { background-position: left -394px; }
61
+
62
+ /* =Settings
63
+ -------------------------------------------------------------- */
64
+ #cpsh .cpsh-settings {
65
+ float: right;
66
+ width: 50%;
67
+ }
68
+ #preview-padding {
69
+ margin: 10px 0;
70
+ }
71
+ #preview-padding .column-container {
72
+ width: 200px;
73
+ max-height: 370px;
74
+ border: 1px solid #808080;
75
+ background: #f3fcff;
76
+ position: relative;
77
+ }
78
+ #preview-padding .column-inner {
79
+ border: 1px solid #fff;
80
+ background: #fff;
81
+ height: 130px;
82
+ }
83
+ #preview-padding .padding-fields input {
84
+ position: absolute;
85
+ width: 34px;
86
+ border: 1px solid #DFDFDF;
87
+ border-radius: 3px 3px 3px 3px;
88
+ margin: 0;
89
+ text-align: center;
90
+ }
91
+ #preview-padding .padding-fields input#padding-top {
92
+ top: 10px;
93
+ left: 50%;
94
+ margin-left: -17px;
95
+ }
96
+ #preview-padding .padding-fields input#padding-right {
97
+ top: 50%;
98
+ margin-top: -10px;
99
+ right: 10px;
100
+ }
101
+ #preview-padding .padding-fields input#padding-bottom {
102
+ bottom: 10px;
103
+ left: 50%;
104
+ margin-left: -17px;
105
+ }
106
+ #preview-padding .padding-fields input#padding-left {
107
+ top: 50%;
108
+ margin-top: -10px;
109
+ left: 10px;
110
+ }
111
+ #TB_window #preview-padding .padding-reset {
112
+ color: #097BB4;
113
+ text-decoration: none;
114
+ display: inline-block;
115
+ padding-left: 3px;
116
+ padding-top: 3px;
117
+ }
118
+ /*
119
+ #TB_window #preview-padding .column-container .padding-reset {
120
+ margin-top: -6px;
121
+ margin-left: -45px;
122
+ position: absolute;
123
+ top: 50%;
124
+ left: 50%;
125
+ width: 90px;
126
+ overflow: hidden;
127
+ text-align: center;
128
+ }
129
+ */
assets/css/shortcodes-rtl.css CHANGED
@@ -56,47 +56,113 @@
56
  width: 16.6%;
57
  }
58
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
59
  /* =Small Margins Template
60
  -------------------------------------------------------------- */
61
  /*
62
- .one_half {
63
- width: 48%;
64
- margin-left: 2%;
65
  }
66
- .one_third {
67
- width: 32%;
68
- margin-left: 1.3%;
69
  }
70
- .two_third {
71
- width: 64%;
72
- margin-left: 2.6%;
73
  }
74
- .one_fourth {
75
- width: 24%;
76
- margin-left: 1%;
77
  }
78
- .three_fourth {
79
- width: 72%;
80
- margin-left: 3%;
81
  }
82
- .one_fifth {
83
- width: 19%;
84
- margin-left: 1%;
85
  }
86
- .two_fifth {
87
- width: 38%;
88
- margin-left: 2%;
89
  }
90
- .three_fifth {
91
- width: 57%;
92
- margin-left: 3%;
93
  }
94
- .four_fifth {
95
- width: 76%;
96
- margin-right: 3%;
97
  }
98
- .one_sixth {
99
- width: 16%;
100
- margin-left: 0.6%;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
101
  }
102
  */
56
  width: 16.6%;
57
  }
58
 
59
+ /* =Responsive
60
+ -------------------------------------------------------------- */
61
+ /* Maximum width of 600 pixels. */
62
+ @media screen and (max-width: 600px) {
63
+ .full_width,
64
+ .one_half,
65
+ .one_third,
66
+ .two_third,
67
+ .one_fourth,
68
+ .three_fourth,
69
+ .one_fifth,
70
+ .two_fifth,
71
+ .three_fifth,
72
+ .four_fifth,
73
+ .one_sixth {
74
+ clear: both;
75
+ width: 100%;
76
+ margin-left: 0;
77
+ margin-right: 0;
78
+ margin-bottom: 1em;
79
+ }
80
+ }
81
+
82
  /* =Small Margins Template
83
  -------------------------------------------------------------- */
84
  /*
85
+ .full_width {
86
+ width: 100%;
 
87
  }
88
+ .one_half {
89
+ width: 49% !important;
90
+ margin-left: 2% !important;
91
  }
92
+ .one_half.last_column {
93
+ width: 49% !important;
94
+ margin-left: 0px !important;
95
  }
96
+ .one_third {
97
+ width: 32% !important;
98
+ margin-left: 2% !important;
99
  }
100
+ .one_third.last_column {
101
+ width: 32% !important;
102
+ margin-left: 0px !important;
103
  }
104
+ .two_third {
105
+ width: 66% !important;
106
+ margin-left: 2% !important;
107
  }
108
+ .two_third.last_column {
109
+ width: 66% !important;
110
+ margin-left: 0px !important;
111
  }
112
+ .one_fourth {
113
+ width: 23.5% !important;
114
+ margin-left: 2% !important;
115
  }
116
+ .one_fourth.last_column {
117
+ width: 23.5% !important;
118
+ margin-left: 0px !important;
119
  }
120
+ .three_fourth {
121
+ width: 74.5% !important;
122
+ margin-left: 2% !important;
123
+ }
124
+ .three_fourth.last_column {
125
+ width: 74.5% !important;
126
+ margin-left: 0px !important;
127
+ }
128
+ .one_fifth {
129
+ width: 18.4% !important;
130
+ margin-left: 2% !important;
131
+ }
132
+ .one_fifth.last_column {
133
+ width: 18.4% !important;
134
+ margin-left: 0px !important;
135
+ }
136
+ .two_fifth {
137
+ width: 39% !important;
138
+ margin-left: 2% !important;
139
+ }
140
+ .two_fifth.last_column {
141
+ width: 39% !important;
142
+ margin-left: 0px !important;
143
+ }
144
+ .three_fifth {
145
+ width: 59% !important;
146
+ margin-left: 2% !important;
147
+ }
148
+ .three_fifth.last_column {
149
+ width: 59% !important;
150
+ margin-left: 0px !important;
151
+ }
152
+ .four_fifth {
153
+ width: 79.6% !important;
154
+ margin-left: 2% !important;
155
+ }
156
+ .four_fifth.last_column {
157
+ width: 79.6% !important;
158
+ margin-left: 0px !important;
159
+ }
160
+ .one_sixth {
161
+ width: 15% !important;
162
+ margin-left: 2% !important;
163
+ }
164
+ .one_sixth.last_column {
165
+ width: 15% !important;
166
+ margin-left: 0px !important;
167
  }
168
  */
assets/css/shortcodes.css CHANGED
@@ -1,5 +1,6 @@
1
  /* =General CSS
2
  -------------------------------------------------------------- */
 
3
  .one_half,
4
  .one_third,
5
  .two_third,
@@ -25,6 +26,9 @@
25
 
26
  /* =Default Template (no margin)
27
  -------------------------------------------------------------- */
 
 
 
28
  .one_half {
29
  width: 50%;
30
  }
@@ -56,47 +60,113 @@
56
  width: 16.6%;
57
  }
58
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
59
  /* =Small Margins Template
60
  -------------------------------------------------------------- */
61
  /*
62
- .one_half {
63
- width: 48%;
64
- margin-right: 2%;
65
  }
66
- .one_third {
67
- width: 32%;
68
- margin-right: 1.3%;
69
  }
70
- .two_third {
71
- width: 64%;
72
- margin-right: 2.6%;
73
  }
74
- .one_fourth {
75
- width: 24%;
76
- margin-right: 1%;
77
  }
78
- .three_fourth {
79
- width: 72%;
80
- margin-right: 3%;
81
  }
82
- .one_fifth {
83
- width: 19%;
84
- margin-right: 1%;
85
  }
86
- .two_fifth {
87
- width: 38%;
88
- margin-right: 2%;
89
  }
90
- .three_fifth {
91
- width: 57%;
92
- margin-right: 3%;
93
  }
94
- .four_fifth {
95
- width: 76%;
96
- margin-right: 3%;
97
  }
98
- .one_sixth {
99
- width: 16%;
100
- margin-right: 0.6%;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
101
  }
102
  */
1
  /* =General CSS
2
  -------------------------------------------------------------- */
3
+ .full_width,
4
  .one_half,
5
  .one_third,
6
  .two_third,
26
 
27
  /* =Default Template (no margin)
28
  -------------------------------------------------------------- */
29
+ .full_width {
30
+ width: 100%;
31
+ }
32
  .one_half {
33
  width: 50%;
34
  }
60
  width: 16.6%;
61
  }
62
 
63
+ /* =Responsive
64
+ -------------------------------------------------------------- */
65
+ /* Maximum width of 600 pixels. */
66
+ @media screen and (max-width: 600px) {
67
+ .full_width,
68
+ .one_half,
69
+ .one_third,
70
+ .two_third,
71
+ .one_fourth,
72
+ .three_fourth,
73
+ .one_fifth,
74
+ .two_fifth,
75
+ .three_fifth,
76
+ .four_fifth,
77
+ .one_sixth {
78
+ clear: both;
79
+ width: 100%;
80
+ margin-left: 0;
81
+ margin-right: 0;
82
+ margin-bottom: 1em;
83
+ }
84
+ }
85
+
86
  /* =Small Margins Template
87
  -------------------------------------------------------------- */
88
  /*
89
+ .full_width {
90
+ width: 100%;
 
91
  }
92
+ .one_half {
93
+ width: 49% !important;
94
+ margin-right: 2% !important;
95
  }
96
+ .one_half.last_column {
97
+ width: 49% !important;
98
+ margin-right: 0px !important;
99
  }
100
+ .one_third {
101
+ width: 32% !important;
102
+ margin-right: 2% !important;
103
  }
104
+ .one_third.last_column {
105
+ width: 32% !important;
106
+ margin-right: 0px !important;
107
  }
108
+ .two_third {
109
+ width: 66% !important;
110
+ margin-right: 2% !important;
111
  }
112
+ .two_third.last_column {
113
+ width: 66% !important;
114
+ margin-right: 0px !important;
115
  }
116
+ .one_fourth {
117
+ width: 23.5% !important;
118
+ margin-right: 2% !important;
119
  }
120
+ .one_fourth.last_column {
121
+ width: 23.5% !important;
122
+ margin-right: 0px !important;
123
  }
124
+ .three_fourth {
125
+ width: 74.5% !important;
126
+ margin-right: 2% !important;
127
+ }
128
+ .three_fourth.last_column {
129
+ width: 74.5% !important;
130
+ margin-right: 0px !important;
131
+ }
132
+ .one_fifth {
133
+ width: 18.4% !important;
134
+ margin-right: 2% !important;
135
+ }
136
+ .one_fifth.last_column {
137
+ width: 18.4% !important;
138
+ margin-right: 0px !important;
139
+ }
140
+ .two_fifth {
141
+ width: 39% !important;
142
+ margin-right: 2% !important;
143
+ }
144
+ .two_fifth.last_column {
145
+ width: 39% !important;
146
+ margin-right: 0px !important;
147
+ }
148
+ .three_fifth {
149
+ width: 59% !important;
150
+ margin-right: 2% !important;
151
+ }
152
+ .three_fifth.last_column {
153
+ width: 59% !important;
154
+ margin-right: 0px !important;
155
+ }
156
+ .four_fifth {
157
+ width: 79.6% !important;
158
+ margin-right: 2% !important;
159
+ }
160
+ .four_fifth.last_column {
161
+ width: 79.6% !important;
162
+ margin-right: 0px !important;
163
+ }
164
+ .one_sixth {
165
+ width: 15% !important;
166
+ margin-right: 2% !important;
167
+ }
168
+ .one_sixth.last_column {
169
+ width: 15% !important;
170
+ margin-right: 0px !important;
171
  }
172
  */
assets/images/columns-rtl.png CHANGED
Binary file
assets/images/columns.png CHANGED
Binary file
assets/images/shortcode.png CHANGED
File without changes
assets/js/admin.js CHANGED
@@ -3,25 +3,130 @@
3
  $(document).ready(function()
4
  {
5
  codepressShortcodes();
 
 
6
  });
7
 
8
  /**
9
- * description
10
  *
11
  */
12
- function codepressShortcodes()
13
- {
14
- // Insert shortcode
15
- $('#cpsh .insert-shortcode').live('click', function(event) {
16
 
17
  var shortcode = $(this).attr('rel');
 
18
 
19
- window.send_to_editor(shortcode);
20
-
21
- // Prevent default action
22
- event.preventDefault();
23
  return false;
24
  });
25
  }
26
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
  })(jQuery);
3
  $(document).ready(function()
4
  {
5
  codepressShortcodes();
6
+
7
+ codepressPaddingGenerator();
8
  });
9
 
10
  /**
11
+ * Send shortcode to editor
12
  *
13
  */
14
+ function codepressShortcodes() {
15
+ $('#cpsh .insert-shortcode').live('click', function(e) {
 
 
16
 
17
  var shortcode = $(this).attr('rel');
18
+ window.send_to_editor( shortcode );
19
 
20
+ e.preventDefault();
 
 
 
21
  return false;
22
  });
23
  }
24
 
25
+ /**
26
+ * Padding generator
27
+ *
28
+ */
29
+ function codepressPaddingGenerator() {
30
+
31
+ if ( $('#preview-padding').length === 0 )
32
+ return;
33
+
34
+ var fields = $("#preview-padding .padding-fields input");
35
+
36
+ // init: restore previous settings
37
+ var positions = ['top', 'right', 'bottom', 'left'];
38
+
39
+ for ( var p in positions ) {
40
+ var pos = positions[p];
41
+ if ( $.cookie('cpsh-' + pos) ) {
42
+ updatePreviewAndShortcode( pos, $.cookie('cpsh-' + pos) );
43
+ }
44
+ }
45
+
46
+ // event: user input
47
+ fields.bind("keyup change", function(e) {
48
+
49
+ var value = $(this).val();
50
+ var pos = $(this).attr('id').replace('padding-', '');
51
+
52
+ updatePreviewAndShortcode( pos, value );
53
+ });
54
+
55
+ // event: reset all values
56
+ $('.padding-reset').click( function(e) {
57
+
58
+ fields.val('').trigger('change');
59
+ e.preventDefault();
60
+ });
61
+
62
+ /**
63
+ * Update preview and shortcode
64
+ *
65
+ */
66
+ function updatePreviewAndShortcode( pos, value ) {
67
+
68
+ value = suffixPaddingValue( value );
69
+
70
+ // inputs
71
+ if ( ! $('#padding-' + pos).val() )
72
+ $('#padding-' + pos).val( value );
73
+
74
+ var preview = $('#preview-padding .column-container .column-inner');
75
+
76
+ // preview: margins
77
+ preview.css( 'margin-' + pos, value );
78
+
79
+ // preview: hide border when margin is zero
80
+ if ( '0px' == preview.css( 'margin-' + pos ) ) {
81
+ preview.css( 'border-' + pos, '0px solid #fff' );
82
+ }
83
+ else {
84
+ preview.css( 'border-' + pos, '1px dashed #097bb4' );
85
+ }
86
+
87
+ // shortcode attributes
88
+ var attr_padding = '';
89
+ var has_padding = false;
90
+ for ( var p in positions ) {
91
+
92
+ var _input_val = $( '#padding-' + positions[p] ).val();
93
+ var attr_val = '0';
94
+
95
+ // has padding?
96
+ if( _input_val !== "" ) {
97
+ attr_val = suffixPaddingValue( _input_val );
98
+ has_padding = true;
99
+ }
100
+
101
+ attr_padding += ' ' + attr_val;
102
+ }
103
+
104
+ // update: shortcode rel
105
+ $('.cpsh-shortcodes .columns').each( function() {
106
+ if ( ! has_padding ) {
107
+ $(this).attr( 'rel', $(this).attr('data-tag') );
108
+ }
109
+ else {
110
+ $(this).attr( 'rel', $(this).attr('data-tag').replace( '][/', ' padding="' + attr_padding.trim() + '"][/' ) );
111
+ }
112
+ });
113
+
114
+ // store settings in cookie
115
+ $.cookie( 'cpsh-' + pos, value );
116
+ }
117
+
118
+ /**
119
+ * When user input is an integer, suffix 'px'
120
+ */
121
+ function suffixPaddingValue( value ) {
122
+
123
+ if ( Math.floor( value ) == value && $.isNumeric( value ) ) {
124
+ value = value + 'px';
125
+ }
126
+
127
+ return value;
128
+ }
129
+
130
+ }
131
+
132
  })(jQuery);
assets/js/jquery.cookie.js ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*!
2
+ * jQuery Cookie Plugin v1.3.1
3
+ * https://github.com/carhartl/jquery-cookie
4
+ *
5
+ * Copyright 2013 Klaus Hartl
6
+ * Released under the MIT license
7
+ */
8
+ (function ($, document, undefined) {
9
+
10
+ var pluses = /\+/g;
11
+
12
+ function raw(s) {
13
+ return s;
14
+ }
15
+
16
+ function decoded(s) {
17
+ return unRfc2068(decodeURIComponent(s.replace(pluses, ' ')));
18
+ }
19
+
20
+ function unRfc2068(value) {
21
+ if (value.indexOf('"') === 0) {
22
+ // This is a quoted cookie as according to RFC2068, unescape
23
+ value = value.slice(1, -1).replace(/\\"/g, '"').replace(/\\\\/g, '\\');
24
+ }
25
+ return value;
26
+ }
27
+
28
+ function fromJSON(value) {
29
+ return config.json ? JSON.parse(value) : value;
30
+ }
31
+
32
+ var config = $.cookie = function (key, value, options) {
33
+
34
+ // write
35
+ if (value !== undefined) {
36
+ options = $.extend({}, config.defaults, options);
37
+
38
+ if (value === null) {
39
+ options.expires = -1;
40
+ }
41
+
42
+ if (typeof options.expires === 'number') {
43
+ var days = options.expires, t = options.expires = new Date();
44
+ t.setDate(t.getDate() + days);
45
+ }
46
+
47
+ value = config.json ? JSON.stringify(value) : String(value);
48
+
49
+ return (document.cookie = [
50
+ encodeURIComponent(key), '=', config.raw ? value : encodeURIComponent(value),
51
+ options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE
52
+ options.path ? '; path=' + options.path : '',
53
+ options.domain ? '; domain=' + options.domain : '',
54
+ options.secure ? '; secure' : ''
55
+ ].join(''));
56
+ }
57
+
58
+ // read
59
+ var decode = config.raw ? raw : decoded;
60
+ var cookies = document.cookie.split('; ');
61
+ var result = key ? null : {};
62
+ for (var i = 0, l = cookies.length; i < l; i++) {
63
+ var parts = cookies[i].split('=');
64
+ var name = decode(parts.shift());
65
+ var cookie = decode(parts.join('='));
66
+
67
+ if (key && key === name) {
68
+ result = fromJSON(cookie);
69
+ break;
70
+ }
71
+
72
+ if (!key) {
73
+ result[name] = fromJSON(cookie);
74
+ }
75
+ }
76
+
77
+ return result;
78
+ };
79
+
80
+ config.defaults = {};
81
+
82
+ $.removeCookie = function (key, options) {
83
+ if ($.cookie(key) !== null) {
84
+ $.cookie(key, null, options);
85
+ return true;
86
+ }
87
+ return false;
88
+ };
89
+
90
+ })(jQuery, document);
column-shortcodes.php CHANGED
@@ -1,7 +1,8 @@
1
  <?php
 
2
  /*
3
  Plugin Name: Column Shortcodes
4
- Version: 0.4
5
  Description: Adds shortcodes to easily create columns in your posts or pages
6
  Author: Codepress
7
  Author URI: http://www.codepress.nl
@@ -26,7 +27,7 @@ along with this program; if not, write to the Free Software
26
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
27
  */
28
 
29
- define( 'CPSH_VERSION', '0.4' );
30
  define( 'CPSH_URL', plugins_url( '', __FILE__ ) );
31
  define( 'CPSH_TEXTDOMAIN', 'column-shortcodes' );
32
 
@@ -57,7 +58,7 @@ class Codepress_Column_Shortcodes {
57
  public function init() {
58
  $this->add_shortcodes();
59
 
60
- add_action('admin_init', array( $this, 'add_editor_buttons' ) );
61
  add_action( 'admin_footer', array( $this, 'popup' ) );
62
 
63
  // styling
@@ -78,11 +79,11 @@ class Codepress_Column_Shortcodes {
78
  */
79
  public function admin_styles() {
80
  if ( $this->has_permissions() && $this->is_edit_screen() ) {
81
-
82
- wp_enqueue_style( 'cpsh-admin', CPSH_URL.'/assets/css/admin.css', array(), CPSH_VERSION, 'all' );
83
 
84
  if ( is_rtl() ) {
85
- wp_enqueue_style( 'cpsh-admin-rtl', CPSH_URL.'/assets/css/admin-rtl.css', array(), CPSH_VERSION, 'all' );
86
  }
87
  }
88
  }
@@ -94,7 +95,8 @@ class Codepress_Column_Shortcodes {
94
  */
95
  public function admin_scripts( $plugins ) {
96
  if ( $this->has_permissions() && $this->is_edit_screen() ) {
97
- wp_enqueue_script( 'cpsh-admin', CPSH_URL.'/assets/js/admin.js', array('jquery'), CPSH_VERSION );
 
98
  }
99
 
100
  return $plugins;
@@ -136,18 +138,41 @@ class Codepress_Column_Shortcodes {
136
  * @return string $ouput Column HTML output
137
  */
138
  function columns( $atts, $content = null, $name='' ) {
139
- $atts = shortcode_atts(array(
140
- "id" => '',
141
- "class" => ''
 
 
142
  ), $atts );
143
 
144
  $id = sanitize_text_field( $atts['id'] );
145
  $class = sanitize_text_field( $atts['class'] );
146
- $content = $this->content_helper( $content );
147
 
148
  $id = ( $id <> '' ) ? " id='" . esc_attr( $id ) . "'" : '';
149
  $class = ( $class <> '' ) ? esc_attr( ' ' . $class ) : '';
150
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
151
  $pos = strpos( $name, '_last' );
152
 
153
  if ( false !== $pos ) {
@@ -195,18 +220,17 @@ class Codepress_Column_Shortcodes {
195
  * @since 0.1
196
  */
197
  function add_editor_buttons() {
198
- global $pagenow;
199
 
200
- if ( $this->has_permissions() && $this->is_edit_screen() ) {
201
-
202
- // add html buttons, when using this filter
203
- if( apply_filters( 'add_shortcode_html_buttons', false ) ) {
204
- add_action( 'admin_head', array( $this, 'add_html_buttons' ) );
205
- }
206
 
207
- // add shortcode button
208
- add_action( 'media_buttons', array( $this, 'add_shortcode_button' ), 100 );
 
209
  }
 
 
 
210
  }
211
 
212
  /**
@@ -218,11 +242,11 @@ class Codepress_Column_Shortcodes {
218
  * @param string $target
219
  */
220
  public function add_shortcode_button( $page = null, $target = null ) {
221
- echo "
222
- <a href='#TB_inline?width=640&height=600&inlineId=cpsh-wrap' class='thickbox' title='" . __( 'Select shortcode', CPSH_TEXTDOMAIN ) . "' data-page='{$page}' data-target='{$target}'>
223
- <img src='" . CPSH_URL . "/assets/images/shortcode.png' alt='' />
224
  </a>
225
- ";
226
  }
227
 
228
  /**
@@ -237,11 +261,11 @@ class Codepress_Column_Shortcodes {
237
  $select = '';
238
  foreach ( $buttons as $button ) {
239
 
240
- $open_tag = str_replace('\n', '', $button['options']['open_tag']);
241
- $close_tag = str_replace('\n', '', $button['options']['close_tag']);
242
 
243
  $select .= "
244
- <a href='javascript:;' rel='{$open_tag}{$close_tag}' class='cp-{$button['name']} columns insert-shortcode'>
245
  {$button['options']['display_name']}
246
  </a>";
247
  }
@@ -251,12 +275,44 @@ class Codepress_Column_Shortcodes {
251
  <div id="cpsh-wrap" style="display:none">
252
  <div id="cpsh">
253
  <div id="cpsh-generator-shell">
 
254
  <div id="cpsh-generator-header">
255
- <h2 class="cpsh-title"><?php _e( "Column shortcodes", CPSH_TEXTDOMAIN ); ?></h2>
256
- <?php echo $select; ?>
257
- </div>
258
- <div id="cpsh-settings"></div>
259
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
260
  </div>
261
  </div>
262
 
@@ -276,6 +332,7 @@ class Codepress_Column_Shortcodes {
276
 
277
  // define column shortcodes
278
  $column_shortcodes = array(
 
279
  'one_half' => array ('display_name' => __('one half', CPSH_TEXTDOMAIN) ),
280
  'one_third' => array ('display_name' => __('one third', CPSH_TEXTDOMAIN) ),
281
  'one_fourth' => array ('display_name' => __('one fourth', CPSH_TEXTDOMAIN) ),
@@ -288,9 +345,14 @@ class Codepress_Column_Shortcodes {
288
  'one_sixth' => array ('display_name' => __('one sixth', CPSH_TEXTDOMAIN) )
289
  );
290
 
291
- foreach ( $column_shortcodes as $shortcode => $options ) {
 
 
 
 
292
  $shortcodes[] = array(
293
  'name' => $shortcode,
 
294
  'options' => array(
295
  'display_name' => $options['display_name'],
296
  'open_tag' => '\n'."[{$shortcode}]",
@@ -298,8 +360,12 @@ class Codepress_Column_Shortcodes {
298
  'key' => ''
299
  )
300
  );
 
 
 
301
  $shortcodes[] = array(
302
  'name' => "{$shortcode}_last",
 
303
  'options' => array(
304
  'display_name' => $options['display_name'] . ' (' . __('last', CPSH_TEXTDOMAIN) . ')',
305
  'open_tag' => '\n'."[{$shortcode}_last]",
1
  <?php
2
+
3
  /*
4
  Plugin Name: Column Shortcodes
5
+ Version: 0.6
6
  Description: Adds shortcodes to easily create columns in your posts or pages
7
  Author: Codepress
8
  Author URI: http://www.codepress.nl
27
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
28
  */
29
 
30
+ define( 'CPSH_VERSION', '0.6' );
31
  define( 'CPSH_URL', plugins_url( '', __FILE__ ) );
32
  define( 'CPSH_TEXTDOMAIN', 'column-shortcodes' );
33
 
58
  public function init() {
59
  $this->add_shortcodes();
60
 
61
+ add_action( 'admin_init', array( $this, 'add_editor_buttons' ) );
62
  add_action( 'admin_footer', array( $this, 'popup' ) );
63
 
64
  // styling
79
  */
80
  public function admin_styles() {
81
  if ( $this->has_permissions() && $this->is_edit_screen() ) {
82
+
83
+ wp_enqueue_style( 'cpsh-admin', CPSH_URL . '/assets/css/admin.css', array(), CPSH_VERSION, 'all' );
84
 
85
  if ( is_rtl() ) {
86
+ wp_enqueue_style( 'cpsh-admin-rtl', CPSH_URL . '/assets/css/admin-rtl.css', array(), CPSH_VERSION, 'all' );
87
  }
88
  }
89
  }
95
  */
96
  public function admin_scripts( $plugins ) {
97
  if ( $this->has_permissions() && $this->is_edit_screen() ) {
98
+ wp_enqueue_script( 'cpsh-admin', CPSH_URL . '/assets/js/admin.js', array( 'jquery' ), CPSH_VERSION );
99
+ wp_enqueue_script( 'jquery-cookie', CPSH_URL . '/assets/js/jquery.cookie.js', array( 'jquery' ), CPSH_VERSION );
100
  }
101
 
102
  return $plugins;
138
  * @return string $ouput Column HTML output
139
  */
140
  function columns( $atts, $content = null, $name='' ) {
141
+
142
+ $atts = shortcode_atts( array(
143
+ "id" => '',
144
+ "class" => '',
145
+ "padding" => '',
146
  ), $atts );
147
 
148
  $id = sanitize_text_field( $atts['id'] );
149
  $class = sanitize_text_field( $atts['class'] );
150
+ $padding = sanitize_text_field( $atts['padding'] );
151
 
152
  $id = ( $id <> '' ) ? " id='" . esc_attr( $id ) . "'" : '';
153
  $class = ( $class <> '' ) ? esc_attr( ' ' . $class ) : '';
154
 
155
+ $content = $this->content_helper( $content );
156
+
157
+ // padding generator
158
+ if ( $padding <> '' ) {
159
+ $parts = explode(" ", $padding);
160
+
161
+ // check for '0' values. if true we will split padding attributes into top,right,bottom and left.
162
+ if ( $parts && in_array( '0', $parts ) ) {
163
+ $padding = !empty( $parts[0] ) ? "padding-top:{$parts[0]};" : '';
164
+ $padding .= !empty( $parts[1] ) ? "padding-right:{$parts[1]};" : '';
165
+ $padding .= !empty( $parts[2] ) ? "padding-bottom:{$parts[2]};" : '';
166
+ $padding .= !empty( $parts[3] ) ? "padding-left:{$parts[3]};" : '';
167
+ }
168
+ else {
169
+ $padding = "padding:{$padding};";
170
+ }
171
+
172
+ // wraps the content in an extra div with padding applied
173
+ $content = '<div style="' . esc_attr( $padding ) . '">' . $content . '</div>';
174
+ }
175
+
176
  $pos = strpos( $name, '_last' );
177
 
178
  if ( false !== $pos ) {
220
  * @since 0.1
221
  */
222
  function add_editor_buttons() {
 
223
 
224
+ if ( ! $this->has_permissions() || ! $this->is_edit_screen() )
225
+ return false;
 
 
 
 
226
 
227
+ // add html buttons, when using this filter
228
+ if( apply_filters( 'add_shortcode_html_buttons', false ) ) {
229
+ add_action( 'admin_head', array( $this, 'add_html_buttons' ) );
230
  }
231
+
232
+ // add shortcode button
233
+ add_action( 'media_buttons', array( $this, 'add_shortcode_button' ), 100 );
234
  }
235
 
236
  /**
242
  * @param string $target
243
  */
244
  public function add_shortcode_button( $page = null, $target = null ) {
245
+ ?>
246
+ <a href="#TB_inline?width=640&amp;height=600&amp;inlineId=cpsh-wrap" class="thickbox" title="<?php _e( 'Select shortcode', CPSH_TEXTDOMAIN ); ?>" data-page="<?php echo $page; ?>" data-target="<?php echo $target; ?>">
247
+ <img src="<?php echo CPSH_URL . "/assets/images/shortcode.png";?>" alt="" />
248
  </a>
249
+ <?php
250
  }
251
 
252
  /**
261
  $select = '';
262
  foreach ( $buttons as $button ) {
263
 
264
+ $open_tag = str_replace( '\n', '', $button['options']['open_tag'] );
265
+ $close_tag = str_replace( '\n', '', $button['options']['close_tag'] );
266
 
267
  $select .= "
268
+ <a href='javascript:;' rel='{$open_tag}{$close_tag}' data-tag='{$open_tag}{$close_tag}' class='cp-{$button['class']} columns insert-shortcode'>
269
  {$button['options']['display_name']}
270
  </a>";
271
  }
275
  <div id="cpsh-wrap" style="display:none">
276
  <div id="cpsh">
277
  <div id="cpsh-generator-shell">
278
+
279
  <div id="cpsh-generator-header">
280
+
281
+ <div class="cpsh-shortcodes">
282
+ <h2 class="cpsh-title"><?php _e( "Column shortcodes", CPSH_TEXTDOMAIN ); ?></h2>
283
+ <?php echo $select; ?>
284
+ </div><!--.cpsh-shortcodes-->
285
+
286
+ <?php if ( ! apply_filters( 'cpsh_hide_padding_settings', false ) ) : ?>
287
+
288
+ <div class="cpsh-settings">
289
+ <h2 class="cpsh-title"><?php _e( "Column padding ( optional )", CPSH_TEXTDOMAIN ); ?></h2>
290
+ <p class="description">
291
+ <?php _e( "Use the input fields below to customize the padding of your column shortcode.", CPSH_TEXTDOMAIN ); ?>
292
+ <?php _e( "Enter padding first, then select your column shortcode.", CPSH_TEXTDOMAIN ); ?>
293
+ </p>
294
+
295
+ <div id="preview-padding">
296
+ <div class="column-container">
297
+ <div class="column-inner">
298
+ </div>
299
+ <div class="padding-fields">
300
+ <input id="padding-top" placeholder="0" value=""/>
301
+ <input id="padding-right" placeholder="0" value=""/>
302
+ <input id="padding-bottom" placeholder="0" value=""/>
303
+ <input id="padding-left" placeholder="0" value=""/>
304
+ </div>
305
+ </div>
306
+
307
+ <a class="padding-reset" href="javascript:;"><?php _e( "reset", CPSH_TEXTDOMAIN ); ?></a>
308
+ </div>
309
+ </div><!--.cpsh-settings-->
310
+
311
+ <?php endif; ?>
312
+
313
+ </div><!--cpsh-generator-header-->
314
+
315
+ </div><!--cpsh-generator-shell-->
316
  </div>
317
  </div>
318
 
332
 
333
  // define column shortcodes
334
  $column_shortcodes = array(
335
+ 'full_width' => array ('display_name' => __('full width', CPSH_TEXTDOMAIN) ),
336
  'one_half' => array ('display_name' => __('one half', CPSH_TEXTDOMAIN) ),
337
  'one_third' => array ('display_name' => __('one third', CPSH_TEXTDOMAIN) ),
338
  'one_fourth' => array ('display_name' => __('one fourth', CPSH_TEXTDOMAIN) ),
345
  'one_sixth' => array ('display_name' => __('one sixth', CPSH_TEXTDOMAIN) )
346
  );
347
 
348
+ foreach ( $column_shortcodes as $short => $options ) {
349
+
350
+ // add prefix
351
+ $shortcode = trim( apply_filters( 'cpsh_prefix', '' ) ) . $short;
352
+
353
  $shortcodes[] = array(
354
  'name' => $shortcode,
355
+ 'class' => $short,
356
  'options' => array(
357
  'display_name' => $options['display_name'],
358
  'open_tag' => '\n'."[{$shortcode}]",
360
  'key' => ''
361
  )
362
  );
363
+
364
+ if ( 'full_width' == $short ) continue;
365
+
366
  $shortcodes[] = array(
367
  'name' => "{$shortcode}_last",
368
+ 'class' => "{$short}_last",
369
  'options' => array(
370
  'display_name' => $options['display_name'] . ' (' . __('last', CPSH_TEXTDOMAIN) . ')',
371
  'open_tag' => '\n'."[{$shortcode}_last]",
languages/column-shortcodes-es_ES.mo CHANGED
Binary file
languages/column-shortcodes-es_ES.po CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Column Shortcodes\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2013-01-23 11:01+0100\n"
6
- "PO-Revision-Date: 2013-01-23 11:01+0100\n"
7
  "Last-Translator: Codepress <info@codepress.nl>\n"
8
  "Language-Team: Codepress <info@codepress.nl>\n"
9
  "MIME-Version: 1.0\n"
@@ -12,58 +12,79 @@ msgstr ""
12
  "X-Poedit-KeywordsList: __;_e\n"
13
  "X-Poedit-Basepath: .\n"
14
  "X-Poedit-SourceCharset: utf-8\n"
15
- "X-Generator: Poedit 1.5.4\n"
16
  "X-Poedit-SearchPath-0: .\n"
17
  "X-Poedit-SearchPath-1: ..\n"
18
 
19
- #: ../column-shortcodes.php:222
20
  msgid "Select shortcode"
21
  msgstr "Seleccione códigos abreviados"
22
 
23
- #: ../column-shortcodes.php:255
24
  msgid "Column shortcodes"
25
  msgstr "Códigos disponibles"
26
 
27
- #: ../column-shortcodes.php:280
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
  msgid "one half"
29
  msgstr "la mitad"
30
 
31
- #: ../column-shortcodes.php:281
32
  msgid "one third"
33
  msgstr "un tercio"
34
 
35
- #: ../column-shortcodes.php:282
36
  msgid "one fourth"
37
  msgstr "un cuarto"
38
 
39
- #: ../column-shortcodes.php:283
40
  msgid "two third"
41
  msgstr "dos tercios"
42
 
43
- #: ../column-shortcodes.php:284
44
  msgid "three fourth"
45
  msgstr "tres cuartos"
46
 
47
- #: ../column-shortcodes.php:285
48
  msgid "one fifth"
49
  msgstr "un quinto"
50
 
51
- #: ../column-shortcodes.php:286
52
  msgid "two fifth"
53
  msgstr "dos quintos"
54
 
55
- #: ../column-shortcodes.php:287
56
  msgid "three fifth"
57
  msgstr "tres quintos"
58
 
59
- #: ../column-shortcodes.php:288
60
  msgid "four fifth"
61
  msgstr "cuatro quintos"
62
 
63
- #: ../column-shortcodes.php:289
64
  msgid "one sixth"
65
  msgstr "un sexto"
66
 
67
- #: ../column-shortcodes.php:305
68
  msgid "last"
69
  msgstr "final"
2
  msgstr ""
3
  "Project-Id-Version: Column Shortcodes\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2013-05-07 14:35+0100\n"
6
+ "PO-Revision-Date: 2013-05-07 14:35+0100\n"
7
  "Last-Translator: Codepress <info@codepress.nl>\n"
8
  "Language-Team: Codepress <info@codepress.nl>\n"
9
  "MIME-Version: 1.0\n"
12
  "X-Poedit-KeywordsList: __;_e\n"
13
  "X-Poedit-Basepath: .\n"
14
  "X-Poedit-SourceCharset: utf-8\n"
15
+ "X-Generator: Poedit 1.5.5\n"
16
  "X-Poedit-SearchPath-0: .\n"
17
  "X-Poedit-SearchPath-1: ..\n"
18
 
19
+ #: ../column-shortcodes.php:246
20
  msgid "Select shortcode"
21
  msgstr "Seleccione códigos abreviados"
22
 
23
+ #: ../column-shortcodes.php:282
24
  msgid "Column shortcodes"
25
  msgstr "Códigos disponibles"
26
 
27
+ #: ../column-shortcodes.php:287
28
+ msgid "Column padding ( optional )"
29
+ msgstr ""
30
+
31
+ #: ../column-shortcodes.php:289
32
+ msgid ""
33
+ "Use the input fields below to customize the padding of your column shortcode."
34
+ msgstr ""
35
+
36
+ #: ../column-shortcodes.php:290
37
+ msgid "Enter padding first, then select your column shortcode."
38
+ msgstr ""
39
+
40
+ #: ../column-shortcodes.php:303
41
+ msgid "reset"
42
+ msgstr ""
43
+
44
+ #: ../column-shortcodes.php:329
45
+ msgid "full width"
46
+ msgstr ""
47
+
48
+ #: ../column-shortcodes.php:330
49
  msgid "one half"
50
  msgstr "la mitad"
51
 
52
+ #: ../column-shortcodes.php:331
53
  msgid "one third"
54
  msgstr "un tercio"
55
 
56
+ #: ../column-shortcodes.php:332
57
  msgid "one fourth"
58
  msgstr "un cuarto"
59
 
60
+ #: ../column-shortcodes.php:333
61
  msgid "two third"
62
  msgstr "dos tercios"
63
 
64
+ #: ../column-shortcodes.php:334
65
  msgid "three fourth"
66
  msgstr "tres cuartos"
67
 
68
+ #: ../column-shortcodes.php:335
69
  msgid "one fifth"
70
  msgstr "un quinto"
71
 
72
+ #: ../column-shortcodes.php:336
73
  msgid "two fifth"
74
  msgstr "dos quintos"
75
 
76
+ #: ../column-shortcodes.php:337
77
  msgid "three fifth"
78
  msgstr "tres quintos"
79
 
80
+ #: ../column-shortcodes.php:338
81
  msgid "four fifth"
82
  msgstr "cuatro quintos"
83
 
84
+ #: ../column-shortcodes.php:339
85
  msgid "one sixth"
86
  msgstr "un sexto"
87
 
88
+ #: ../column-shortcodes.php:364
89
  msgid "last"
90
  msgstr "final"
languages/column-shortcodes-fr_FR.mo CHANGED
Binary file
languages/column-shortcodes-fr_FR.po CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Column Shortcodes\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2012-08-27 16:24+0100\n"
6
- "PO-Revision-Date: 2012-08-28 08:24+0100\n"
7
  "Last-Translator: Codepress <info@codepress.nl>\n"
8
  "Language-Team: Codepress <info@codepress.nl>\n"
9
  "MIME-Version: 1.0\n"
@@ -12,53 +12,80 @@ msgstr ""
12
  "X-Poedit-KeywordsList: __;_e\n"
13
  "X-Poedit-Basepath: .\n"
14
  "X-Poedit-SourceCharset: utf-8\n"
 
15
  "X-Poedit-SearchPath-0: .\n"
16
  "X-Poedit-SearchPath-1: ..\n"
17
 
18
- #: ../column-shortcodes.php:174
19
  msgid "Select shortcode"
20
  msgstr "Choisissez votre code abrégé"
21
 
22
- #: ../column-shortcodes.php:208
23
  msgid "Column shortcodes"
24
  msgstr "Codes abrégés de colonnes"
25
 
26
- #: ../column-shortcodes.php:231
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
  msgid "one half"
28
  msgstr "la moitié"
29
 
30
- #: ../column-shortcodes.php:232
31
  msgid "one third"
32
  msgstr "un tiers"
33
 
34
- #: ../column-shortcodes.php:233
35
  msgid "one fourth"
36
  msgstr "un quart"
37
 
38
- #: ../column-shortcodes.php:234
39
  msgid "two third"
40
  msgstr "deux tiers"
41
 
42
- #: ../column-shortcodes.php:235
43
  msgid "three fourth"
44
  msgstr "trois quarts"
45
 
46
- #: ../column-shortcodes.php:236
47
  msgid "one fifth"
48
  msgstr "un cinquième"
49
 
50
- #: ../column-shortcodes.php:237
51
  msgid "two fifth"
52
  msgstr "deux cinquièmes"
53
 
54
- #: ../column-shortcodes.php:238
55
  msgid "three fifth"
56
  msgstr "trois cinquièmes"
57
 
58
- #: ../column-shortcodes.php:239
 
 
 
 
 
59
  msgid "one sixth"
60
  msgstr "un sixième"
61
 
62
- #: ../column-shortcodes.php:255
63
  msgid "last"
64
  msgstr "final"
2
  msgstr ""
3
  "Project-Id-Version: Column Shortcodes\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2013-05-07 14:35+0100\n"
6
+ "PO-Revision-Date: 2013-05-07 14:35+0100\n"
7
  "Last-Translator: Codepress <info@codepress.nl>\n"
8
  "Language-Team: Codepress <info@codepress.nl>\n"
9
  "MIME-Version: 1.0\n"
12
  "X-Poedit-KeywordsList: __;_e\n"
13
  "X-Poedit-Basepath: .\n"
14
  "X-Poedit-SourceCharset: utf-8\n"
15
+ "X-Generator: Poedit 1.5.5\n"
16
  "X-Poedit-SearchPath-0: .\n"
17
  "X-Poedit-SearchPath-1: ..\n"
18
 
19
+ #: ../column-shortcodes.php:246
20
  msgid "Select shortcode"
21
  msgstr "Choisissez votre code abrégé"
22
 
23
+ #: ../column-shortcodes.php:282
24
  msgid "Column shortcodes"
25
  msgstr "Codes abrégés de colonnes"
26
 
27
+ #: ../column-shortcodes.php:287
28
+ msgid "Column padding ( optional )"
29
+ msgstr ""
30
+
31
+ #: ../column-shortcodes.php:289
32
+ msgid ""
33
+ "Use the input fields below to customize the padding of your column shortcode."
34
+ msgstr ""
35
+
36
+ #: ../column-shortcodes.php:290
37
+ msgid "Enter padding first, then select your column shortcode."
38
+ msgstr ""
39
+
40
+ #: ../column-shortcodes.php:303
41
+ msgid "reset"
42
+ msgstr ""
43
+
44
+ #: ../column-shortcodes.php:329
45
+ msgid "full width"
46
+ msgstr ""
47
+
48
+ #: ../column-shortcodes.php:330
49
  msgid "one half"
50
  msgstr "la moitié"
51
 
52
+ #: ../column-shortcodes.php:331
53
  msgid "one third"
54
  msgstr "un tiers"
55
 
56
+ #: ../column-shortcodes.php:332
57
  msgid "one fourth"
58
  msgstr "un quart"
59
 
60
+ #: ../column-shortcodes.php:333
61
  msgid "two third"
62
  msgstr "deux tiers"
63
 
64
+ #: ../column-shortcodes.php:334
65
  msgid "three fourth"
66
  msgstr "trois quarts"
67
 
68
+ #: ../column-shortcodes.php:335
69
  msgid "one fifth"
70
  msgstr "un cinquième"
71
 
72
+ #: ../column-shortcodes.php:336
73
  msgid "two fifth"
74
  msgstr "deux cinquièmes"
75
 
76
+ #: ../column-shortcodes.php:337
77
  msgid "three fifth"
78
  msgstr "trois cinquièmes"
79
 
80
+ #: ../column-shortcodes.php:338
81
+ #, fuzzy
82
+ msgid "four fifth"
83
+ msgstr "un cinquième"
84
+
85
+ #: ../column-shortcodes.php:339
86
  msgid "one sixth"
87
  msgstr "un sixième"
88
 
89
+ #: ../column-shortcodes.php:364
90
  msgid "last"
91
  msgstr "final"
languages/column-shortcodes-he_IL.mo CHANGED
Binary file
languages/column-shortcodes-he_IL.po CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Column Shortcodes\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2013-01-23 10:59+0100\n"
6
- "PO-Revision-Date: 2013-01-23 11:00+0100\n"
7
  "Last-Translator: Codepress <info@codepress.nl>\n"
8
  "Language-Team: Rami Y (wp-tricks.co.il) <r_a_m_i@hotmail.com>\n"
9
  "Language: Hebrew\n"
@@ -13,58 +13,79 @@ msgstr ""
13
  "X-Poedit-KeywordsList: __;_e\n"
14
  "X-Poedit-Basepath: .\n"
15
  "X-Poedit-SourceCharset: UTF-8\n"
16
- "X-Generator: Poedit 1.5.4\n"
17
  "X-Poedit-SearchPath-0: .\n"
18
  "X-Poedit-SearchPath-1: ..\n"
19
 
20
- #: ../column-shortcodes.php:222
21
  msgid "Select shortcode"
22
  msgstr "בחר פקודת מקרו"
23
 
24
- #: ../column-shortcodes.php:255
25
  msgid "Column shortcodes"
26
  msgstr "טור פקודות מקרו"
27
 
28
- #: ../column-shortcodes.php:280
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
  msgid "one half"
30
  msgstr "חצי"
31
 
32
- #: ../column-shortcodes.php:281
33
  msgid "one third"
34
  msgstr "שליש"
35
 
36
- #: ../column-shortcodes.php:282
37
  msgid "one fourth"
38
  msgstr "רבע"
39
 
40
- #: ../column-shortcodes.php:283
41
  msgid "two third"
42
  msgstr "שני שליש"
43
 
44
- #: ../column-shortcodes.php:284
45
  msgid "three fourth"
46
  msgstr "שלוש רבעים"
47
 
48
- #: ../column-shortcodes.php:285
49
  msgid "one fifth"
50
  msgstr "חמישית"
51
 
52
- #: ../column-shortcodes.php:286
53
  msgid "two fifth"
54
  msgstr "שתי חמישיות"
55
 
56
- #: ../column-shortcodes.php:287
57
  msgid "three fifth"
58
  msgstr "שלוש חמישיות"
59
 
60
- #: ../column-shortcodes.php:288
61
  msgid "four fifth"
62
  msgstr "חמישיות"
63
 
64
- #: ../column-shortcodes.php:289
65
  msgid "one sixth"
66
  msgstr "שישית"
67
 
68
- #: ../column-shortcodes.php:305
69
  msgid "last"
70
  msgstr "אחרון"
2
  msgstr ""
3
  "Project-Id-Version: Column Shortcodes\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2013-05-07 14:35+0100\n"
6
+ "PO-Revision-Date: 2013-05-07 14:35+0100\n"
7
  "Last-Translator: Codepress <info@codepress.nl>\n"
8
  "Language-Team: Rami Y (wp-tricks.co.il) <r_a_m_i@hotmail.com>\n"
9
  "Language: Hebrew\n"
13
  "X-Poedit-KeywordsList: __;_e\n"
14
  "X-Poedit-Basepath: .\n"
15
  "X-Poedit-SourceCharset: UTF-8\n"
16
+ "X-Generator: Poedit 1.5.5\n"
17
  "X-Poedit-SearchPath-0: .\n"
18
  "X-Poedit-SearchPath-1: ..\n"
19
 
20
+ #: ../column-shortcodes.php:246
21
  msgid "Select shortcode"
22
  msgstr "בחר פקודת מקרו"
23
 
24
+ #: ../column-shortcodes.php:282
25
  msgid "Column shortcodes"
26
  msgstr "טור פקודות מקרו"
27
 
28
+ #: ../column-shortcodes.php:287
29
+ msgid "Column padding ( optional )"
30
+ msgstr ""
31
+
32
+ #: ../column-shortcodes.php:289
33
+ msgid ""
34
+ "Use the input fields below to customize the padding of your column shortcode."
35
+ msgstr ""
36
+
37
+ #: ../column-shortcodes.php:290
38
+ msgid "Enter padding first, then select your column shortcode."
39
+ msgstr ""
40
+
41
+ #: ../column-shortcodes.php:303
42
+ msgid "reset"
43
+ msgstr ""
44
+
45
+ #: ../column-shortcodes.php:329
46
+ msgid "full width"
47
+ msgstr ""
48
+
49
+ #: ../column-shortcodes.php:330
50
  msgid "one half"
51
  msgstr "חצי"
52
 
53
+ #: ../column-shortcodes.php:331
54
  msgid "one third"
55
  msgstr "שליש"
56
 
57
+ #: ../column-shortcodes.php:332
58
  msgid "one fourth"
59
  msgstr "רבע"
60
 
61
+ #: ../column-shortcodes.php:333
62
  msgid "two third"
63
  msgstr "שני שליש"
64
 
65
+ #: ../column-shortcodes.php:334
66
  msgid "three fourth"
67
  msgstr "שלוש רבעים"
68
 
69
+ #: ../column-shortcodes.php:335
70
  msgid "one fifth"
71
  msgstr "חמישית"
72
 
73
+ #: ../column-shortcodes.php:336
74
  msgid "two fifth"
75
  msgstr "שתי חמישיות"
76
 
77
+ #: ../column-shortcodes.php:337
78
  msgid "three fifth"
79
  msgstr "שלוש חמישיות"
80
 
81
+ #: ../column-shortcodes.php:338
82
  msgid "four fifth"
83
  msgstr "חמישיות"
84
 
85
+ #: ../column-shortcodes.php:339
86
  msgid "one sixth"
87
  msgstr "שישית"
88
 
89
+ #: ../column-shortcodes.php:364
90
  msgid "last"
91
  msgstr "אחרון"
languages/column-shortcodes-nl_NL.mo CHANGED
Binary file
languages/column-shortcodes-nl_NL.po CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Column Shortcodes\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2013-01-23 11:02+0100\n"
6
- "PO-Revision-Date: 2013-01-23 11:02+0100\n"
7
  "Last-Translator: Codepress <info@codepress.nl>\n"
8
  "Language-Team: Codepress <info@codepress.nl>\n"
9
  "MIME-Version: 1.0\n"
@@ -15,71 +15,92 @@ msgstr ""
15
  "_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
16
  "X-Poedit-Basepath: .\n"
17
  "X-Textdomain-Support: yes\n"
18
- "X-Generator: Poedit 1.5.4\n"
19
  "X-Poedit-SearchPath-0: .\n"
20
  "X-Poedit-SearchPath-1: ..\n"
21
 
22
  # @ column-shortcodes
23
- #: ../column-shortcodes.php:222
24
  msgid "Select shortcode"
25
  msgstr "Selecteer shortcode "
26
 
27
  # @ column-shortcodes
28
- #: ../column-shortcodes.php:255
29
  msgid "Column shortcodes"
30
  msgstr "Kolom shortcodes"
31
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
  # @ column-shortcodes
33
- #: ../column-shortcodes.php:280
34
  msgid "one half"
35
  msgstr "half"
36
 
37
  # @ column-shortcodes
38
- #: ../column-shortcodes.php:281
39
  msgid "one third"
40
  msgstr "een derde"
41
 
42
  # @ column-shortcodes
43
- #: ../column-shortcodes.php:282
44
  msgid "one fourth"
45
  msgstr "een vierde"
46
 
47
  # @ column-shortcodes
48
- #: ../column-shortcodes.php:283
49
  msgid "two third"
50
  msgstr "tweederde"
51
 
52
  # @ column-shortcodes
53
- #: ../column-shortcodes.php:284
54
  msgid "three fourth"
55
  msgstr "drie vierde"
56
 
57
  # @ column-shortcodes
58
- #: ../column-shortcodes.php:285
59
  msgid "one fifth"
60
  msgstr "een vijfde"
61
 
62
  # @ column-shortcodes
63
- #: ../column-shortcodes.php:286
64
  msgid "two fifth"
65
  msgstr "twee vijfde"
66
 
67
  # @ column-shortcodes
68
- #: ../column-shortcodes.php:287
69
  msgid "three fifth"
70
  msgstr "drie vijfde"
71
 
72
  # @ column-shortcodes
73
- #: ../column-shortcodes.php:288
74
  msgid "four fifth"
75
  msgstr "vier vijfde"
76
 
77
  # @ column-shortcodes
78
- #: ../column-shortcodes.php:289
79
  msgid "one sixth"
80
  msgstr "een zesde"
81
 
82
  # @ column-shortcodes
83
- #: ../column-shortcodes.php:305
84
  msgid "last"
85
  msgstr "laatste"
2
  msgstr ""
3
  "Project-Id-Version: Column Shortcodes\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2013-05-07 14:35+0100\n"
6
+ "PO-Revision-Date: 2013-05-07 14:36+0100\n"
7
  "Last-Translator: Codepress <info@codepress.nl>\n"
8
  "Language-Team: Codepress <info@codepress.nl>\n"
9
  "MIME-Version: 1.0\n"
15
  "_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
16
  "X-Poedit-Basepath: .\n"
17
  "X-Textdomain-Support: yes\n"
18
+ "X-Generator: Poedit 1.5.5\n"
19
  "X-Poedit-SearchPath-0: .\n"
20
  "X-Poedit-SearchPath-1: ..\n"
21
 
22
  # @ column-shortcodes
23
+ #: ../column-shortcodes.php:246
24
  msgid "Select shortcode"
25
  msgstr "Selecteer shortcode "
26
 
27
  # @ column-shortcodes
28
+ #: ../column-shortcodes.php:282
29
  msgid "Column shortcodes"
30
  msgstr "Kolom shortcodes"
31
 
32
+ #: ../column-shortcodes.php:287
33
+ msgid "Column padding ( optional )"
34
+ msgstr "Kolom padding ( optioneel )"
35
+
36
+ #: ../column-shortcodes.php:289
37
+ msgid ""
38
+ "Use the input fields below to customize the padding of your column shortcode."
39
+ msgstr "Vul onderstaande velden in om de padding van de columns aan te passen."
40
+
41
+ #: ../column-shortcodes.php:290
42
+ msgid "Enter padding first, then select your column shortcode."
43
+ msgstr "Vul eerste de padding in, selecteer daarna je kolom shortcode."
44
+
45
+ #: ../column-shortcodes.php:303
46
+ msgid "reset"
47
+ msgstr "herstel"
48
+
49
+ #: ../column-shortcodes.php:329
50
+ msgid "full width"
51
+ msgstr "volledige breedte"
52
+
53
  # @ column-shortcodes
54
+ #: ../column-shortcodes.php:330
55
  msgid "one half"
56
  msgstr "half"
57
 
58
  # @ column-shortcodes
59
+ #: ../column-shortcodes.php:331
60
  msgid "one third"
61
  msgstr "een derde"
62
 
63
  # @ column-shortcodes
64
+ #: ../column-shortcodes.php:332
65
  msgid "one fourth"
66
  msgstr "een vierde"
67
 
68
  # @ column-shortcodes
69
+ #: ../column-shortcodes.php:333
70
  msgid "two third"
71
  msgstr "tweederde"
72
 
73
  # @ column-shortcodes
74
+ #: ../column-shortcodes.php:334
75
  msgid "three fourth"
76
  msgstr "drie vierde"
77
 
78
  # @ column-shortcodes
79
+ #: ../column-shortcodes.php:335
80
  msgid "one fifth"
81
  msgstr "een vijfde"
82
 
83
  # @ column-shortcodes
84
+ #: ../column-shortcodes.php:336
85
  msgid "two fifth"
86
  msgstr "twee vijfde"
87
 
88
  # @ column-shortcodes
89
+ #: ../column-shortcodes.php:337
90
  msgid "three fifth"
91
  msgstr "drie vijfde"
92
 
93
  # @ column-shortcodes
94
+ #: ../column-shortcodes.php:338
95
  msgid "four fifth"
96
  msgstr "vier vijfde"
97
 
98
  # @ column-shortcodes
99
+ #: ../column-shortcodes.php:339
100
  msgid "one sixth"
101
  msgstr "een zesde"
102
 
103
  # @ column-shortcodes
104
+ #: ../column-shortcodes.php:364
105
  msgid "last"
106
  msgstr "laatste"
languages/column-shortcodes.po CHANGED
@@ -2,8 +2,8 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Column Shortcodes\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2013-01-23 11:01+0100\n"
6
- "PO-Revision-Date: 2013-01-23 11:02+0100\n"
7
  "Last-Translator: Codepress <info@codepress.nl>\n"
8
  "Language-Team: Codepress <info@codepress.nl>\n"
9
  "MIME-Version: 1.0\n"
@@ -12,58 +12,79 @@ msgstr ""
12
  "X-Poedit-KeywordsList: __;_e\n"
13
  "X-Poedit-Basepath: .\n"
14
  "X-Poedit-SourceCharset: UTF-8\n"
15
- "X-Generator: Poedit 1.5.4\n"
16
  "X-Poedit-SearchPath-0: .\n"
17
  "X-Poedit-SearchPath-1: ..\n"
18
 
19
- #: ../column-shortcodes.php:222
20
  msgid "Select shortcode"
21
  msgstr ""
22
 
23
- #: ../column-shortcodes.php:255
24
  msgid "Column shortcodes"
25
  msgstr ""
26
 
27
- #: ../column-shortcodes.php:280
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
  msgid "one half"
29
  msgstr ""
30
 
31
- #: ../column-shortcodes.php:281
32
  msgid "one third"
33
  msgstr ""
34
 
35
- #: ../column-shortcodes.php:282
36
  msgid "one fourth"
37
  msgstr ""
38
 
39
- #: ../column-shortcodes.php:283
40
  msgid "two third"
41
  msgstr ""
42
 
43
- #: ../column-shortcodes.php:284
44
  msgid "three fourth"
45
  msgstr ""
46
 
47
- #: ../column-shortcodes.php:285
48
  msgid "one fifth"
49
  msgstr ""
50
 
51
- #: ../column-shortcodes.php:286
52
  msgid "two fifth"
53
  msgstr ""
54
 
55
- #: ../column-shortcodes.php:287
56
  msgid "three fifth"
57
  msgstr ""
58
 
59
- #: ../column-shortcodes.php:288
60
  msgid "four fifth"
61
  msgstr ""
62
 
63
- #: ../column-shortcodes.php:289
64
  msgid "one sixth"
65
  msgstr ""
66
 
67
- #: ../column-shortcodes.php:305
68
  msgid "last"
69
  msgstr ""
2
  msgstr ""
3
  "Project-Id-Version: Column Shortcodes\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2013-05-07 14:29+0100\n"
6
+ "PO-Revision-Date: 2013-05-07 14:29+0100\n"
7
  "Last-Translator: Codepress <info@codepress.nl>\n"
8
  "Language-Team: Codepress <info@codepress.nl>\n"
9
  "MIME-Version: 1.0\n"
12
  "X-Poedit-KeywordsList: __;_e\n"
13
  "X-Poedit-Basepath: .\n"
14
  "X-Poedit-SourceCharset: UTF-8\n"
15
+ "X-Generator: Poedit 1.5.5\n"
16
  "X-Poedit-SearchPath-0: .\n"
17
  "X-Poedit-SearchPath-1: ..\n"
18
 
19
+ #: ../column-shortcodes.php:246
20
  msgid "Select shortcode"
21
  msgstr ""
22
 
23
+ #: ../column-shortcodes.php:282
24
  msgid "Column shortcodes"
25
  msgstr ""
26
 
27
+ #: ../column-shortcodes.php:287
28
+ msgid "Column padding ( optional )"
29
+ msgstr ""
30
+
31
+ #: ../column-shortcodes.php:289
32
+ msgid ""
33
+ "Use the input fields below to customize the padding of your column shortcode."
34
+ msgstr ""
35
+
36
+ #: ../column-shortcodes.php:290
37
+ msgid "Enter padding first, then select your column shortcode."
38
+ msgstr ""
39
+
40
+ #: ../column-shortcodes.php:303
41
+ msgid "reset"
42
+ msgstr ""
43
+
44
+ #: ../column-shortcodes.php:329
45
+ msgid "full width"
46
+ msgstr ""
47
+
48
+ #: ../column-shortcodes.php:330
49
  msgid "one half"
50
  msgstr ""
51
 
52
+ #: ../column-shortcodes.php:331
53
  msgid "one third"
54
  msgstr ""
55
 
56
+ #: ../column-shortcodes.php:332
57
  msgid "one fourth"
58
  msgstr ""
59
 
60
+ #: ../column-shortcodes.php:333
61
  msgid "two third"
62
  msgstr ""
63
 
64
+ #: ../column-shortcodes.php:334
65
  msgid "three fourth"
66
  msgstr ""
67
 
68
+ #: ../column-shortcodes.php:335
69
  msgid "one fifth"
70
  msgstr ""
71
 
72
+ #: ../column-shortcodes.php:336
73
  msgid "two fifth"
74
  msgstr ""
75
 
76
+ #: ../column-shortcodes.php:337
77
  msgid "three fifth"
78
  msgstr ""
79
 
80
+ #: ../column-shortcodes.php:338
81
  msgid "four fifth"
82
  msgstr ""
83
 
84
+ #: ../column-shortcodes.php:339
85
  msgid "one sixth"
86
  msgstr ""
87
 
88
+ #: ../column-shortcodes.php:364
89
  msgid "last"
90
  msgstr ""
languages/column-shortcodes_dk_DA.mo ADDED
Binary file
languages/column-shortcodes_dk_DA.po ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Column Shortcodes\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2013-05-07 14:35+0100\n"
6
+ "PO-Revision-Date: 2013-05-07 14:35+0100\n"
7
+ "Last-Translator: Codepress <info@codepress.nl>\n"
8
+ "Language-Team: Codepress <info@codepress.nl>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Poedit-KeywordsList: __;_e\n"
13
+ "X-Poedit-Basepath: .\n"
14
+ "X-Poedit-SourceCharset: UTF-8\n"
15
+ "X-Generator: Poedit 1.5.5\n"
16
+ "X-Poedit-SearchPath-0: .\n"
17
+ "X-Poedit-SearchPath-1: ..\n"
18
+
19
+ #: ../column-shortcodes.php:246
20
+ msgid "Select shortcode"
21
+ msgstr "Vælg shortcode"
22
+
23
+ #: ../column-shortcodes.php:282
24
+ msgid "Column shortcodes"
25
+ msgstr "Kolonne shortcodes"
26
+
27
+ #: ../column-shortcodes.php:287
28
+ msgid "Column padding ( optional )"
29
+ msgstr ""
30
+
31
+ #: ../column-shortcodes.php:289
32
+ msgid ""
33
+ "Use the input fields below to customize the padding of your column shortcode."
34
+ msgstr ""
35
+
36
+ #: ../column-shortcodes.php:290
37
+ msgid "Enter padding first, then select your column shortcode."
38
+ msgstr ""
39
+
40
+ #: ../column-shortcodes.php:303
41
+ msgid "reset"
42
+ msgstr ""
43
+
44
+ #: ../column-shortcodes.php:329
45
+ msgid "full width"
46
+ msgstr ""
47
+
48
+ #: ../column-shortcodes.php:330
49
+ msgid "one half"
50
+ msgstr "en halv"
51
+
52
+ #: ../column-shortcodes.php:331
53
+ msgid "one third"
54
+ msgstr "en tredjedel"
55
+
56
+ #: ../column-shortcodes.php:332
57
+ msgid "one fourth"
58
+ msgstr "en fjerdedel"
59
+
60
+ #: ../column-shortcodes.php:333
61
+ msgid "two third"
62
+ msgstr "to tredjedele"
63
+
64
+ #: ../column-shortcodes.php:334
65
+ msgid "three fourth"
66
+ msgstr "tre fjerdedele"
67
+
68
+ #: ../column-shortcodes.php:335
69
+ msgid "one fifth"
70
+ msgstr "en femtedel"
71
+
72
+ #: ../column-shortcodes.php:336
73
+ msgid "two fifth"
74
+ msgstr "to femtedele"
75
+
76
+ #: ../column-shortcodes.php:337
77
+ msgid "three fifth"
78
+ msgstr "tre femtedele"
79
+
80
+ #: ../column-shortcodes.php:338
81
+ msgid "four fifth"
82
+ msgstr "fire femtedele"
83
+
84
+ #: ../column-shortcodes.php:339
85
+ msgid "one sixth"
86
+ msgstr "en sjetedel"
87
+
88
+ #: ../column-shortcodes.php:364
89
+ msgid "last"
90
+ msgstr "sidst"
languages/column-shortcodes_sk_SK.mo CHANGED
Binary file
languages/column-shortcodes_sk_SK.po CHANGED
@@ -2,9 +2,9 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Column Shortcodes\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2012-07-20 15:46+0100\n"
6
- "PO-Revision-Date: 2013-01-16 02:19+0300\n"
7
- "Last-Translator: \n"
8
  "Language-Team: Codepress <info@codepress.nl>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -12,54 +12,80 @@ msgstr ""
12
  "X-Poedit-KeywordsList: __;_e\n"
13
  "X-Poedit-Basepath: .\n"
14
  "X-Poedit-SourceCharset: utf-8\n"
15
- "X-Generator: Poedit 1.5.4\n"
16
  "X-Poedit-SearchPath-0: .\n"
17
  "X-Poedit-SearchPath-1: ..\n"
18
 
19
- #: ../column-shortcodes.php:174
20
  msgid "Select shortcode"
21
  msgstr "Zvoľte krátky"
22
 
23
- #: ../column-shortcodes.php:208
24
  msgid "Column shortcodes"
25
  msgstr "Stĺpec shortcodes"
26
 
27
- #: ../column-shortcodes.php:231
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
  msgid "one half"
29
  msgstr "jedna polovica"
30
 
31
- #: ../column-shortcodes.php:232
32
  msgid "one third"
33
  msgstr "jedna tretina"
34
 
35
- #: ../column-shortcodes.php:233
36
  msgid "one fourth"
37
  msgstr "štvrtina"
38
 
39
- #: ../column-shortcodes.php:234
40
  msgid "two third"
41
  msgstr "dve tretiny"
42
 
43
- #: ../column-shortcodes.php:235
44
  msgid "three fourth"
45
  msgstr "tri štvrtý"
46
 
47
- #: ../column-shortcodes.php:236
48
  msgid "one fifth"
49
  msgstr "jedna pätina"
50
 
51
- #: ../column-shortcodes.php:237
52
  msgid "two fifth"
53
  msgstr "dve piaty"
54
 
55
- #: ../column-shortcodes.php:238
56
  msgid "three fifth"
57
  msgstr "tromi pätina"
58
 
59
- #: ../column-shortcodes.php:239
 
 
 
 
 
60
  msgid "one sixth"
61
  msgstr "jedna šestina"
62
 
63
- #: ../column-shortcodes.php:255
64
  msgid "last"
65
  msgstr "posledný"
2
  msgstr ""
3
  "Project-Id-Version: Column Shortcodes\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2013-05-07 14:35+0100\n"
6
+ "PO-Revision-Date: 2013-05-07 14:35+0100\n"
7
+ "Last-Translator: Codepress <info@codepress.nl>\n"
8
  "Language-Team: Codepress <info@codepress.nl>\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "X-Poedit-KeywordsList: __;_e\n"
13
  "X-Poedit-Basepath: .\n"
14
  "X-Poedit-SourceCharset: utf-8\n"
15
+ "X-Generator: Poedit 1.5.5\n"
16
  "X-Poedit-SearchPath-0: .\n"
17
  "X-Poedit-SearchPath-1: ..\n"
18
 
19
+ #: ../column-shortcodes.php:246
20
  msgid "Select shortcode"
21
  msgstr "Zvoľte krátky"
22
 
23
+ #: ../column-shortcodes.php:282
24
  msgid "Column shortcodes"
25
  msgstr "Stĺpec shortcodes"
26
 
27
+ #: ../column-shortcodes.php:287
28
+ msgid "Column padding ( optional )"
29
+ msgstr ""
30
+
31
+ #: ../column-shortcodes.php:289
32
+ msgid ""
33
+ "Use the input fields below to customize the padding of your column shortcode."
34
+ msgstr ""
35
+
36
+ #: ../column-shortcodes.php:290
37
+ msgid "Enter padding first, then select your column shortcode."
38
+ msgstr ""
39
+
40
+ #: ../column-shortcodes.php:303
41
+ msgid "reset"
42
+ msgstr ""
43
+
44
+ #: ../column-shortcodes.php:329
45
+ msgid "full width"
46
+ msgstr ""
47
+
48
+ #: ../column-shortcodes.php:330
49
  msgid "one half"
50
  msgstr "jedna polovica"
51
 
52
+ #: ../column-shortcodes.php:331
53
  msgid "one third"
54
  msgstr "jedna tretina"
55
 
56
+ #: ../column-shortcodes.php:332
57
  msgid "one fourth"
58
  msgstr "štvrtina"
59
 
60
+ #: ../column-shortcodes.php:333
61
  msgid "two third"
62
  msgstr "dve tretiny"
63
 
64
+ #: ../column-shortcodes.php:334
65
  msgid "three fourth"
66
  msgstr "tri štvrtý"
67
 
68
+ #: ../column-shortcodes.php:335
69
  msgid "one fifth"
70
  msgstr "jedna pätina"
71
 
72
+ #: ../column-shortcodes.php:336
73
  msgid "two fifth"
74
  msgstr "dve piaty"
75
 
76
+ #: ../column-shortcodes.php:337
77
  msgid "three fifth"
78
  msgstr "tromi pätina"
79
 
80
+ #: ../column-shortcodes.php:338
81
+ #, fuzzy
82
+ msgid "four fifth"
83
+ msgstr "jedna pätina"
84
+
85
+ #: ../column-shortcodes.php:339
86
  msgid "one sixth"
87
  msgstr "jedna šestina"
88
 
89
+ #: ../column-shortcodes.php:364
90
  msgid "last"
91
  msgstr "posledný"
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Tags: columns, column, shortcodes, shortcode, divider, layout, posts, editor, wp-admin, admin, codepress, wordpress
5
  Requires at least: 3.1
6
  Tested up to: 3.5
7
- Stable tag: 0.4
8
 
9
  Adds shortcodes to easily create columns in your posts or pages.
10
 
@@ -12,10 +12,11 @@ Adds shortcodes to easily create columns in your posts or pages.
12
 
13
  Adds shortcodes to easily create columns in your posts or pages.
14
 
15
- Sometimes you just need to divide your page into different columns. With this plugin you just select a column shortcode and it will add the column to the page.
16
 
17
- There are 9 different column widths available from which you can make all combinations:
18
 
 
19
  * half (1/2)
20
  * one third (1/3)
21
  * two third (2/3)
@@ -51,6 +52,7 @@ The easiest way is to use the added icon on the top of your editor ( right next
51
  You could also type in the shortcode yourself inside the editor. The following shortcodes are available:
52
 
53
  `
 
54
  [one_half][/one_half]
55
  [one_half_last][/one_half_last]
56
  [one_third][/one_third]
@@ -95,50 +97,109 @@ Make sure to place your content (text/images etc. ) between the two shortcodes,
95
  [one_half]My content goes here...[/one_half]
96
  `
97
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
98
  = How can I replace the default Shortcode CSS stylesheet? =
99
 
100
  You can easily overwrite the existing stylesheet. For example you would like to add a margin between your columns, you just place the following in your theme's style.css:
101
 
102
  `
103
- .one_half {
104
- width: 48%;
105
- margin-right: 2%;
 
 
 
 
106
  }
107
- .one_third {
108
- width: 32%;
109
- margin-right: 1.3%;
110
  }
111
- .two_third {
112
- width: 64%;
113
- margin-right: 2.6%;
114
  }
115
- .one_fourth {
116
- width: 24%;
117
- margin-right: 1%;
118
  }
119
- .three_fourth {
120
- width: 72%;
121
- margin-right: 3%;
122
  }
123
- .one_fifth {
124
- width: 19%;
125
- margin-right: 1%;
126
  }
127
- .two_fifth {
128
- width: 38%;
129
- margin-right: 2%;
130
  }
131
- .three_fifth {
132
- width: 57%;
133
- margin-right: 3%;
134
  }
135
- .four_fifth {
136
- width: 76%;
137
- margin-right: 3%;
138
  }
139
- .one_sixth {
140
- width: 16%;
141
- margin-right: 0.6%;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
142
  }
143
  `
144
 
@@ -160,6 +221,15 @@ You will find a .po file in the languages folder which you can use. You can send
160
 
161
  == Changelog ==
162
 
 
 
 
 
 
 
 
 
 
163
  = 0.4 =
164
 
165
  * added improvements made for inclusion on WordPress.com VIP ( thanks to danielbachhuber )
4
  Tags: columns, column, shortcodes, shortcode, divider, layout, posts, editor, wp-admin, admin, codepress, wordpress
5
  Requires at least: 3.1
6
  Tested up to: 3.5
7
+ Stable tag: 0.6
8
 
9
  Adds shortcodes to easily create columns in your posts or pages.
10
 
12
 
13
  Adds shortcodes to easily create columns in your posts or pages.
14
 
15
+ Sometimes you just need to divide your page into different columns. With this plugin you just select a column shortcode and it will add the column to the page. You can also change the padding of each individual column from the UI.
16
 
17
+ There are 10 different column widths available from which you can make all combinations:
18
 
19
+ * full width (1/1)
20
  * half (1/2)
21
  * one third (1/3)
22
  * two third (2/3)
52
  You could also type in the shortcode yourself inside the editor. The following shortcodes are available:
53
 
54
  `
55
+ [full_width][/full_width]
56
  [one_half][/one_half]
57
  [one_half_last][/one_half_last]
58
  [one_third][/one_third]
97
  [one_half]My content goes here...[/one_half]
98
  `
99
 
100
+ = My existing theme uses the same shortcodes, how can I solve this? =
101
+
102
+ You can prefix the shortcode by placing the following in your functions.php. Problem solved =)
103
+
104
+ `
105
+ add_filter( 'cpsh_prefix', 'set_shortcode_prefix' );
106
+ function set_shortcode_prefix() {
107
+ return 'myprefix_'; // edit this part if needed
108
+ }
109
+ `
110
+
111
+ = How can I hide the Padding Settings? =
112
+
113
+ In patch 0.6 we added padding settings (optional) to the plugin. If you would like to hide this settings menu you can place the following in your functions.php
114
+
115
+ `
116
+ add_filter( 'cpsh_hide_padding_settings', '__return_true' );
117
+ `
118
+
119
  = How can I replace the default Shortcode CSS stylesheet? =
120
 
121
  You can easily overwrite the existing stylesheet. For example you would like to add a margin between your columns, you just place the following in your theme's style.css:
122
 
123
  `
124
+ .one_half {
125
+ width: 49% !important;
126
+ margin-right: 2% !important;
127
+ }
128
+ .one_half.last_column {
129
+ width: 49% !important;
130
+ margin-right: 0px !important;
131
  }
132
+ .one_third {
133
+ width: 32% !important;
134
+ margin-right: 2% !important;
135
  }
136
+ .one_third.last_column {
137
+ width: 32% !important;
138
+ margin-right: 0px !important;
139
  }
140
+ .two_third {
141
+ width: 66% !important;
142
+ margin-right: 2% !important;
143
  }
144
+ .two_third.last_column {
145
+ width: 66% !important;
146
+ margin-right: 0px !important;
147
  }
148
+ .one_fourth {
149
+ width: 23.5% !important;
150
+ margin-right: 2% !important;
151
  }
152
+ .one_fourth.last_column {
153
+ width: 23.5% !important;
154
+ margin-right: 0px !important;
155
  }
156
+ .three_fourth {
157
+ width: 74.5% !important;
158
+ margin-right: 2% !important;
159
  }
160
+ .three_fourth.last_column {
161
+ width: 74.5% !important;
162
+ margin-right: 0px !important;
163
  }
164
+ .one_fifth {
165
+ width: 18.4% !important;
166
+ margin-right: 2% !important;
167
+ }
168
+ .one_fifth.last_column {
169
+ width: 18.4% !important;
170
+ margin-right: 0px !important;
171
+ }
172
+ .two_fifth {
173
+ width: 39% !important;
174
+ margin-right: 2% !important;
175
+ }
176
+ .two_fifth.last_column {
177
+ width: 39% !important;
178
+ margin-right: 0px !important;
179
+ }
180
+ .three_fifth {
181
+ width: 59% !important;
182
+ margin-right: 2% !important;
183
+ }
184
+ .three_fifth.last_column {
185
+ width: 59% !important;
186
+ margin-right: 0px !important;
187
+ }
188
+ .four_fifth {
189
+ width: 79.6% !important;
190
+ margin-right: 2% !important;
191
+ }
192
+ .four_fifth.last_column {
193
+ width: 79.6% !important;
194
+ margin-right: 0px !important;
195
+ }
196
+ .one_sixth {
197
+ width: 15% !important;
198
+ margin-right: 2% !important;
199
+ }
200
+ .one_sixth.last_column {
201
+ width: 15% !important;
202
+ margin-right: 0px !important;
203
  }
204
  `
205
 
221
 
222
  == Changelog ==
223
 
224
+ = 0.6 =
225
+ * added Danish translation ( thanks to Mads Rosendahl )
226
+ * added full width column
227
+ * updated css template for margins ( thanks to intheshallow )
228
+ * added responsive CSS for devices with a max-width viewport of 600pixels
229
+
230
+ = 0.5 =
231
+ * added the option to add paddings to the columns from the shortcode UI.
232
+
233
  = 0.4 =
234
 
235
  * added improvements made for inclusion on WordPress.com VIP ( thanks to danielbachhuber )
screenshot-1.png CHANGED
File without changes
screenshot-2.png CHANGED
Binary file
screenshot-3.png CHANGED
File without changes
screenshot-4.png CHANGED
File without changes