Skip to content

Commit 14f49f8

Browse files
committed
chore: plugin init
0 parents  commit 14f49f8

15 files changed

Lines changed: 1033 additions & 0 deletions

assets/admin.js

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
( function($) {
2+
3+
$( document ).ready( function() {
4+
$( '.chosen-select' ).chosen();
5+
} );
6+
7+
if ( typeof inlineEditPost !== 'undefined' ) {
8+
9+
var $wp_inline_edit = inlineEditPost.edit;
10+
11+
inlineEditPost.edit = function( id ) {
12+
13+
$wp_inline_edit.apply( this, arguments );
14+
15+
var $post_id = 0;
16+
17+
if ( typeof( id ) == 'object' ) {
18+
$post_id = parseInt( this.getId( id ) );
19+
}
20+
21+
if ( $post_id > 0 ) {
22+
var $edit_row = $( '#edit-' + $post_id );
23+
var $release_date = $( '#spnote-' + $post_id ).text();
24+
$edit_row.find( 'textarea[name="spnote"]' ).val( $release_date );
25+
}
26+
27+
}
28+
29+
}
30+
31+
$( '#bulk_edit' ).on( 'click', function() {
32+
33+
var $bulk_row = $( '#bulk-edit' );
34+
35+
var $post_ids = new Array();
36+
37+
$bulk_row.find('#bulk-titles-list .ntdelbutton').each(function () {
38+
$post_ids.push($(this).attr('id').replace(/^(_)/i, ''));
39+
});
40+
41+
$post_ids.map(function (value, index, array) {
42+
array[index] = parseInt(value);
43+
});
44+
45+
var spnote = $bulk_row.find( 'textarea[name="spnote"]' ).val();
46+
var nonce = $bulk_row.find( '#spnotes_nonce' ).val();
47+
48+
$.ajax( {
49+
url : ajaxurl,
50+
type : 'POST',
51+
async : false,
52+
cache : false,
53+
data : {
54+
action : 'spnote_save_bulk_edit',
55+
post_ids : $post_ids,
56+
spnote : spnote,
57+
nonce : nonce
58+
}
59+
} );
60+
61+
});
62+
63+
} )( jQuery );

assets/chosen/chosen-sprite.png

538 Bytes
Loading

assets/chosen/chosen-sprite@2x.png

738 Bytes
Loading

assets/chosen/chosen.jquery.min.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/chosen/chosen.min.css

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

languages/default.mo

537 Bytes
Binary file not shown.

languages/default.po

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
msgid ""
2+
msgstr ""
3+
"Project-Id-Version: popslide\n"
4+
"POT-Creation-Date: 2015-03-26 13:57+0100\n"
5+
"PO-Revision-Date: 2015-03-26 13:57+0100\n"
6+
"Last-Translator: Jakub Mikita <kuba@wordpressgeeks.co.uk>\n"
7+
"Language-Team: Kuba Mikita <contact@jmikita.com>\n"
8+
"Language: Polish\n"
9+
"MIME-Version: 1.0\n"
10+
"Content-Type: text/plain; charset=UTF-8\n"
11+
"Content-Transfer-Encoding: 8bit\n"
12+
"X-Generator: Poedit 1.5.7\n"
13+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;__\n"
14+
"X-Poedit-Basepath: .\n"
15+
"X-Poedit-SourceCharset: UTF-8\n"
16+
"X-Poedit-SearchPath-0: ..\n"
17+
18+
#: ../simple-post-notes.php:160 ../simple-post-notes.php:197
19+
msgid "Notes"
20+
msgstr ""
21+
22+
#: ../simple-post-notes.php:251 ../simple-post-notes.php:252
23+
msgid "Post Notes"
24+
msgstr ""
25+
26+
#: ../simple-post-notes.php:269
27+
msgid "Simple Post Notes Settings"
28+
msgstr ""
29+
30+
#: ../simple-post-notes.php:274
31+
msgid "Save"
32+
msgstr ""
33+
34+
#: ../simple-post-notes.php:294
35+
msgid "General Settings"
36+
msgstr ""
37+
38+
#: ../simple-post-notes.php:301
39+
msgid "Post types"
40+
msgstr ""
41+
42+
#: ../simple-post-notes.php:339
43+
msgid "Apply Post Notes to these post types"
44+
msgstr ""

languages/spnotes-de_DE.mo

957 Bytes
Binary file not shown.

languages/spnotes-de_DE.po

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
msgid ""
2+
msgstr ""
3+
"Project-Id-Version: popslide\n"
4+
"POT-Creation-Date: 2015-03-26 13:57+0100\n"
5+
"PO-Revision-Date: 2017-01-03 16:43+0100\n"
6+
"Last-Translator: Michael Köther <michael.koether@gmx.net>\n"
7+
"Language-Team: Kuba Mikita <contact@jmikita.com>\n"
8+
"Language: de_DE\n"
9+
"MIME-Version: 1.0\n"
10+
"Content-Type: text/plain; charset=UTF-8\n"
11+
"Content-Transfer-Encoding: 8bit\n"
12+
"X-Generator: Poedit 1.8.11\n"
13+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;_e;__\n"
14+
"X-Poedit-Basepath: .\n"
15+
"X-Poedit-SourceCharset: UTF-8\n"
16+
"X-Poedit-SearchPath-0: ..\n"
17+
18+
#: ../simple-post-notes.php:160 ../simple-post-notes.php:197
19+
msgid "Notes"
20+
msgstr "Notizen"
21+
22+
#: ../simple-post-notes.php:251 ../simple-post-notes.php:252
23+
msgid "Post Notes"
24+
msgstr "Notizen"
25+
26+
#: ../simple-post-notes.php:269
27+
msgid "Simple Post Notes Settings"
28+
msgstr "Einstellungen › Notizen (Simple Post Notes)"
29+
30+
#: ../simple-post-notes.php:274
31+
msgid "Save"
32+
msgstr "Änderungen übernehmen"
33+
34+
#: ../simple-post-notes.php:294
35+
msgid "General Settings"
36+
msgstr "Allgemeine Einstellungen"
37+
38+
#: ../simple-post-notes.php:301
39+
msgid "Post types"
40+
msgstr "Notizen für"
41+
42+
#: ../simple-post-notes.php:339
43+
msgid "Apply Post Notes to these post types"
44+
msgstr "Aktiviere Notizen für diese Inhalte"

languages/spnotes-es_ES.mo

938 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)