Skip to content

Commit 58e9edf

Browse files
committed
changelog 1.1.9 released
1 parent 9d0c129 commit 58e9edf

18 files changed

+679
-470
lines changed

README.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Contributors: codeboxr, manchumahara
33
Tags: changelog,history,release,version,product log
44
Requires at least: 5.3
55
Tested up to: 6.7.1
6-
Stable tag: 1.1.8
6+
Stable tag: 1.1.9
77
Requires PHP: 7.4
88
License: GPLv2 or later
99
License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -73,9 +73,16 @@ This helps to write changes log for any digital products, projects releases. Any
7373

7474

7575
== Changelog ==
76+
= 1.1.9 =
77+
* [new] Added new shortcode param 'count' , 0 means all, any value more than 0 show as specific number of changelogs
78+
* [new] Dashboard changelog edit screenshot has two buttons for adding change log 1. Add changelog at bottom, 2. Add changelog at top
79+
* [update] All type widgets updated for 'count'
80+
* [update] All widget types updated
81+
7682
= 1.1.8 =
7783
* [fixed] Fixed the changelog edit screen error "Connection lost. Saving has been disabled until you are reconnected. This post is being backed up in your browser, just in case."
7884

85+
7986
= 1.1.7 =
8087
* [fixed] Fixed the order issue in changelog edit screen
8188
* [new] Added new order by param 'id', here is release id, please note, release id and dashboard display index is not same.

assets/css/cbxchangelog-listing.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/js/blocks/cbxchangelog-block.js

Lines changed: 53 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
type : 'number',
9494
value : Number(props.attributes.release)
9595
}),
96-
el(ToggleControl,
96+
/*el(ToggleControl,
9797
{
9898
label : cbxchangelog_block.general_settings.show_label,
9999
onChange: (value) => {
@@ -102,34 +102,48 @@
102102
type : 'number',
103103
checked : props.attributes.show_label
104104
}
105-
),
106-
el(ToggleControl,
107-
{
108-
label : cbxchangelog_block.general_settings.show_date,
109-
onChange: (value) => {
110-
props.setAttributes({show_date: value});
111-
},
112-
checked : props.attributes.show_date
113-
}
114-
),
115-
el(ToggleControl,
116-
{
117-
label : cbxchangelog_block.general_settings.show_url,
118-
onChange: (value) => {
119-
props.setAttributes({show_url: value});
120-
},
121-
checked : props.attributes.show_url
122-
}
123-
),
124-
el(ToggleControl,
125-
{
126-
label : cbxchangelog_block.general_settings.relative_date,
127-
onChange: (value) => {
128-
props.setAttributes({relative_date: value});
129-
},
130-
checked : props.attributes.relative_date
131-
}
132-
),
105+
),*/
106+
el(SelectControl, {
107+
label : cbxchangelog_block.general_settings.show_label,
108+
options : cbxchangelog_block.general_settings.show_label_options,
109+
onChange: (value) => {
110+
props.setAttributes({
111+
show_label: String(value)
112+
});
113+
},
114+
value : String(props.attributes.show_label)
115+
}),
116+
117+
el(SelectControl, {
118+
label : cbxchangelog_block.general_settings.show_date,
119+
options : cbxchangelog_block.general_settings.show_label_options,
120+
onChange: (value) => {
121+
props.setAttributes({
122+
show_date: String(value)
123+
});
124+
},
125+
value : String(props.attributes.show_date)
126+
}),
127+
el(SelectControl, {
128+
label : cbxchangelog_block.general_settings.show_url,
129+
options : cbxchangelog_block.general_settings.show_label_options,
130+
onChange: (value) => {
131+
props.setAttributes({
132+
show_url: String(value)
133+
});
134+
},
135+
value : String(props.attributes.show_url)
136+
}),
137+
el(SelectControl, {
138+
label : cbxchangelog_block.general_settings.relative_date,
139+
options : cbxchangelog_block.general_settings.show_label_options,
140+
onChange: (value) => {
141+
props.setAttributes({
142+
relative_date: String(value)
143+
});
144+
},
145+
value : String(props.attributes.relative_date)
146+
}),
133147
el(SelectControl, {
134148
label : cbxchangelog_block.general_settings.layout,
135149
options : cbxchangelog_block.general_settings.layout_options,
@@ -159,6 +173,16 @@
159173
});
160174
},
161175
value : props.attributes.orderby
176+
}),
177+
el(TextControl, {
178+
label : cbxchangelog_block.general_settings.count,
179+
onChange: (value) => {
180+
props.setAttributes({
181+
count: parseInt(value)
182+
});
183+
},
184+
type : 'number',
185+
value : Number(props.attributes.count)
162186
})
163187
)
164188
)

assets/js/cbxchangelog-edit.js

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -96,18 +96,28 @@
9696

9797
});
9898

99+
var $changelog_wrapper = $('#cbxchangelog_wrapper');
100+
99101
$('#cbxchangelog_metabox').on('click', 'a.cbxchangelog_add_release', function (e) {
100102
e.preventDefault();
101103

102-
var $this = $(this);
103-
var $counter = Number($this.attr('data-counter'));
104+
var $this = $(this);
105+
var $position = $this.data('position');
106+
107+
//var $counter = Number($this.attr('data-counter'));
108+
var $counter = Number($changelog_wrapper.data('counter'));
104109

105110
//var rendered = Mustache.render($release_template, {increment: $counter, incrementplus: ($counter + 1)});
106111
var rendered = Mustache.render($release_template, {increment: ($counter - 1), incrementplus: ($counter)});
107-
$('#cbxchangelog_wrapper').append(rendered);
112+
113+
if (typeof $position === 'undefined' || $position === 'bottom') {
114+
$changelog_wrapper.append(rendered);
115+
} else {
116+
$changelog_wrapper.prepend(rendered);
117+
}
108118

109119
$counter++;
110-
$this.attr('data-counter', $counter);
120+
$changelog_wrapper.data('counter', $counter);
111121

112122
//sorting single feature
113123
$('#cbxchangelog_wrapper .release-feature-wrap').each(function (index, element) {
@@ -129,7 +139,7 @@
129139
});
130140

131141
//remove any release
132-
$('#cbxchangelog_wrapper').on('click', '.trash-release', function (e) {
142+
$changelog_wrapper.on('click', '.trash-release', function (e) {
133143
e.preventDefault();
134144

135145
var $this = $(this);
@@ -188,7 +198,7 @@
188198
});
189199

190200
//add new feature
191-
$('#cbxchangelog_wrapper').on('click', '.add-feature', function (e) {
201+
$changelog_wrapper.on('click', '.add-feature', function (e) {
192202
e.preventDefault();
193203

194204
var $this = $(this);
@@ -201,7 +211,7 @@
201211
});
202212

203213
//remove any feature
204-
$('#cbxchangelog_wrapper').on('click', '.trash-feature', function (e) {
214+
$changelog_wrapper.on('click', '.trash-feature', function (e) {
205215
e.preventDefault();
206216

207217
var $this = $(this);
@@ -244,7 +254,7 @@
244254
});
245255

246256
//sorting releases
247-
$('#cbxchangelog_wrapper').sortable({
257+
$changelog_wrapper.sortable({
248258
group : 'cbxchangelog_releases',
249259
nested : false,
250260
vertical : true,

assets/js/cbxchangelog-listing.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@
1919
}
2020

2121
$(document.body).ready(function ($) {
22-
23-
//console.log('hi there');
24-
25-
2622
/*var awn_options = {
2723
labels: {
2824
tip : cbxchangelog_listing.awn_options.tip,

assets/js/cbxchangelog-setting.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@
1717
};
1818

1919
$('.setting-color-picker-wrapper').each(function (index, element) {
20-
//console.log(element);
21-
2220
var $color_field_wrap = $(element);
23-
//console.log($color_field);
2421
var $color_field = $color_field_wrap.find('.setting-color-picker');
2522
var $color_field_fire = $color_field_wrap.find('.setting-color-picker-fire');
2623

@@ -202,17 +199,12 @@
202199
activetab = $('.setting-tabs-nav').find('a.active').attr('href');
203200
}
204201

205-
//console.log(activetab);
206-
207202
if (activetab !== null) {
208203
var activetab_whash = activetab.replace('#', '');
209204

210205
$('.setting-select-nav').val(activetab_whash);
211206
$('.setting-select-nav').trigger('change');
212207
}
213-
else{
214-
//console.log('hi there change');
215-
}
216208

217209

218210
$('.wpsa-browse').on('click', function (event) {

cbxchangelog.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* Plugin Name: CBX Changelog
1717
* Plugin URI: http://codeboxr.com/product/cbx-changelog-for-wordpress/
1818
* Description: Easy change log manager for WordPress, use for any product post type or releases notes
19-
* Version: 1.1.8
19+
* Version: 1.1.9
2020
* Author: Codeboxr
2121
* Author URI: http://codeboxr.com
2222
* License: GPL-2.0+
@@ -32,7 +32,7 @@
3232

3333

3434
defined( 'CBXCHANGELOG_PLUGIN_NAME' ) or define( 'CBXCHANGELOG_PLUGIN_NAME', 'cbxchangelog' );
35-
defined( 'CBXCHANGELOG_PLUGIN_VERSION' ) or define( 'CBXCHANGELOG_PLUGIN_VERSION', '1.1.8' );
35+
defined( 'CBXCHANGELOG_PLUGIN_VERSION' ) or define( 'CBXCHANGELOG_PLUGIN_VERSION', '1.1.9' );
3636
defined( 'CBXCHANGELOG_ROOT_PATH' ) or define( 'CBXCHANGELOG_ROOT_PATH', plugin_dir_path( __FILE__ ) );
3737
defined( 'CBXCHANGELOG_ROOT_URL' ) or define( 'CBXCHANGELOG_ROOT_URL', plugin_dir_url( __FILE__ ) );
3838
defined( 'CBXCHANGELOG_BASE_NAME' ) or define( 'CBXCHANGELOG_BASE_NAME', plugin_basename( __FILE__ ) );

includes/CBXChangelog.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ private function define_admin_hooks() {
167167
//add new post type
168168
add_action( 'init', [ $plugin_admin, 'init_post_types' ], 0 );
169169

170-
//create opverview menu page
170+
//create overview menu page
171171
add_action( 'admin_menu', [ $plugin_admin, 'admin_pages' ], 11 );
172172

173173

0 commit comments

Comments
 (0)