Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 2.0 #50

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/.github/ export-ignore
.gitattributes export-ignore
.gitignore export-ignore
package.json export-ignore
package-lock.json export-ignore
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
vendor
12 changes: 12 additions & 0 deletions .phpstorm.meta.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

namespace PHPSTORM_META {
// Allow PhpStorm IDE to resolve return types when calling novelist( Object_Type::class ) or novelist( `Object_Type` ).
override(
\novelist( 0 ),
map( [
'' => '@',
'' => '@Class',
] )
);
}
16 changes: 16 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "ashleyfae/novelist",
"type": "wordpress-plugin",
"description": "Easily organize and display your portfolio of books.",
"homepage": "https://novelistplugin.com/",
"license": "GPL-2.0-or-later",
"require": {
"php": ">=7.1",
"composer/installers": "~1.2"
},
"autoload": {
"psr-4": {
"Novelist\\": "src"
}
}
}
171 changes: 171 additions & 0 deletions composer.lock

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

14 changes: 7 additions & 7 deletions includes/admin/thickbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ function novelistBookGrid() {
<div class="novelist-box-row">
<label for="novelist_series_filter"><?php _e( 'Filter by Series', 'novelist' ); ?></label>
<div>
<?php Novelist()->html->series_dropdown( array(
<?php novelist()->html->series_dropdown( array(
'id' => 'novelist_series_filter',
'name' => 'novelist_series_filter'
) ); ?>
Expand All @@ -256,7 +256,7 @@ function novelistBookGrid() {
<div class="novelist-box-row">
<label for="novelist_genre_filter"><?php _e( 'Filter by Genre', 'novelist' ); ?></label>
<div>
<?php Novelist()->html->genre_dropdown( array(
<?php novelist()->html->genre_dropdown( array(
'id' => 'novelist_genre_filter',
'name' => 'novelist_genre_filter'
) ); ?>
Expand Down Expand Up @@ -312,7 +312,7 @@ function novelistBookGrid() {
<div class="novelist-box-row">
<label for="novelist_orderby"><?php _e( 'Order By', 'novelist' ); ?></label>
<div>
<?php Novelist()->html->select( array(
<?php novelist()->html->select( array(
'id' => 'novelist_orderby',
'selected' => 'menu_order',
'options' => array(
Expand All @@ -331,7 +331,7 @@ function novelistBookGrid() {
<div class="novelist-box-row">
<label for="novelist_order"><?php _e( 'Order', 'novelist' ); ?></label>
<div>
<?php Novelist()->html->select( array(
<?php novelist()->html->select( array(
'id' => 'novelist_order',
'selected' => 'ASC',
'options' => array(
Expand All @@ -346,7 +346,7 @@ function novelistBookGrid() {
<div class="novelist-box-row">
<label for="novelist_pagination"><?php _e( 'Split Results into Multiple Pages?', 'novelist' ); ?></label>
<div>
<?php Novelist()->html->select( array(
<?php novelist()->html->select( array(
'id' => 'novelist_pagination',
'selected' => 'true',
'options' => array(
Expand All @@ -361,7 +361,7 @@ function novelistBookGrid() {
<div class="novelist-box-row">
<label for="novelist_number_results"><?php _e( 'Number of Results', 'novelist' ); ?></label>
<div>
<?php Novelist()->html->text( array(
<?php novelist()->html->text( array(
'id' => 'novelist_number_results',
'value' => '12',
'type' => 'number'
Expand All @@ -378,4 +378,4 @@ function novelistBookGrid() {
<?php
}

add_action( 'admin_footer', 'novelist_admin_footer_for_thickbox' );
add_action( 'admin_footer', 'novelist_admin_footer_for_thickbox' );
Loading