Skip to content

Commit

Permalink
Merge pull request #649 from publishpress/release-v2.10.0
Browse files Browse the repository at this point in the history
Release v2.10.0
  • Loading branch information
olatechpro authored Oct 4, 2022
2 parents b5f7ffa + 156617c commit e43faeb
Show file tree
Hide file tree
Showing 53 changed files with 4,703 additions and 2,143 deletions.
17 changes: 17 additions & 0 deletions addons/grouping/bootstrap.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

use OrganizeSeries\application\Root;
use OrganizeSeries\domain\model\ClassOrInterfaceFullyQualifiedName;
use OrganizeSeries\GroupingAddon\domain\Meta;
use OrganizeSeries\GroupingAddon\domain\services\Bootstrap;


Root::initializeExtensionMeta(
__FILE__,
OS_GROUPING_VERSION,
new ClassOrInterfaceFullyQualifiedName(
Meta::class
)
);
$fully_qualified_bootstrap_class = new ClassOrInterfaceFullyQualifiedName(Bootstrap::class);
Root::registerAndLoadExtensionBootstrap($fully_qualified_bootstrap_class);
20 changes: 20 additions & 0 deletions addons/grouping/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "organize-series/organize-series-grouping",
"description": "An add-on for PublishPress Series that allows one to group series together.",
"type": "wordpress-plugin",
"keywords": ["wordpress", "plugin", "organize-series", "organize-series-extension"],
"license": "GPLv2",
"authors": [
{
"name": "Darren Ethier",
"email": "[email protected]"
}
],
"require": {
"php": ">=5.6",
"composer/installers": "v1.0.6"
},
"autoload": {
"psr-4": {"OrganizeSeries\\GroupingAddon\\": "src/"}
}
}
98 changes: 98 additions & 0 deletions addons/grouping/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions addons/grouping/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"versionFile":"organize-series-grouping.php","slug":"organize-series-grouping","textDomain":"organize-series-grouping","name":"PublishPress Series Grouping","releaseFilesRemove":["src\/tests\/**","src\/acceptance_tests\/**","src\/docs\/**","src\/info.json","src\/readme.txt","src\/wp-assets\/**","src\/.travis.yml","src\/ISSUE_TEMPLATE.md","src\/PULL_REQUEST_TEMPLATE.md","src\/assets\/src\/**"],"wpOrgRelease":"2.2.6"}
47 changes: 47 additions & 0 deletions addons/grouping/js/series-groups.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
jQuery(document).ready(function($) {
$('#the-list').on('click', '.editinline', function() {
var id, type, editRowData, rowData, group_check, group_text;
var r_id = inlineEditTax.getId(this);
type = $('#the-list').attr('data-wp-lists').substr(5);
rowData = $('#inline_group_'+r_id);
id = $('series_group_id', rowData).text();
$('#hidden_group_id', 'div.inline_edit_group_old').remove();
$('div.inline_edit_group_old').attr('class', 'inline_edit_group_');
$('div.inline_edit_group_').attr('class', 'inline_edit_group_'+id);
editRowData = $('.inline_edit_group_'+id);
/*editRow = $('#inline-edit').clone(true);*/

if ( type == 'tag' ) {
group_check = $('.group_inline_edit', rowData).text();
group_text = $('.group_inline_name', rowData).text();

if ( group_check === '' ) {
group_check = -1;
}

$('.group_inline_edit', rowData).each(function() {
if ( term_ids = $(this).text() )
{
taxname = 'category';

$('ul.'+taxname+'-checklist :checkbox', editRowData).val(term_ids.split(','));

}
});

}

$('span.catshow').click(function() {
$(this).hide().next().show().parent().next().addClass("cat-hover");
});

$('span.cathide').click(function() {
$(this).hide().prev().show().parent().next().removeClass("cat-hover");
});
$(editRowData).attr('class', 'inline_edit_group_old');
});

var series_filter = $('#series_group_filter');

$('.col-wrap', '#col-right').prepend(series_filter);
});
Loading

0 comments on commit e43faeb

Please sign in to comment.