Skip to content

Commit 2cb5441

Browse files
committed
Various Cleanup
- changed plugin URI and License - add short description to top of plugin page with basic styling - remove shortcode support (do not want) - update plugin icon and change order (should be just before Post)
1 parent 91839af commit 2cb5441

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

quick-weblog.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,14 @@
22

33
/*
44
Plugin Name: Quick Weblog
5-
Plugin URI: https://fexd.com/wordpress/plugins/quick-weblog
6-
Description: Create new weblog posts quickly and easily.
5+
Plugin URI: https://fexd.github.io/wordpress-plugin-quick-weblog/
6+
Description: Quickly create a simple Post that highlights an existing news article.
77
Version: 0.0.1
88
Author: Arlin Schaffel
9-
Author URI: https://fexd.com
10-
License: GPL2
11-
License URI: https://www.gnu.org/licenses/gpl-2.0.html
9+
Author URI: https://github.com/FeXd
10+
License: MIT
11+
License URI: https://github.com/FeXd/wordpress-plugin-quick-weblog/blob/main/LICENSE.md
1212
Text Domain: quick-weblog
13-
Domain Path: /languages/
1413
*/
1514

1615
function quick_weblog_form() {
@@ -31,6 +30,9 @@ function quick_weblog_form() {
3130
#quick-weblog div label {
3231
font-weight: 600;
3332
}
33+
#quick-weblog-description {
34+
max-width: 520px;
35+
}
3436
#quick-weblog div input,
3537
#quick-weblog div textarea,
3638
#quick-weblog div select {
@@ -43,6 +45,8 @@ function quick_weblog_form() {
4345
}
4446
</style>
4547

48+
<p id="quick-weblog-description">Quickly create a simple Post that highlights an existing news article. Posts include a captioned image and quote with URL citation of original article. All fields are required.</p>
49+
4650
<div class="card">
4751
<form id="quick-weblog" method="post" action="<?php echo esc_url( admin_url('admin-post.php') ); ?>">
4852
<div>
@@ -90,20 +94,15 @@ function quick_weblog_form() {
9094
<?php
9195
}
9296

93-
function quick_weblog_add_form_to_page() {
94-
add_shortcode( 'quick-weblog-form', 'quick_weblog_form' );
95-
}
96-
add_action( 'init', 'quick_weblog_add_form_to_page' );
97-
9897
function quick_weblog_add_menu_page() {
9998
add_menu_page(
10099
__( 'Quick Weblog', 'quick-weblog' ), // Page title
101100
__( 'Quick Weblog', 'quick-weblog' ), // Menu title
102101
'manage_options', // Capability required to access the page
103102
'quick-weblog', // Menu slug
104103
'quick_weblog_menu_page', // Callback function to render the page
105-
'dashicons-admin-post', // Icon
106-
30 // Position in the menu
104+
'dashicons-welcome-write-blog', // Icon
105+
4.9021042 // Position in the menu
107106
);
108107
}
109108
add_action( 'admin_menu', 'quick_weblog_add_menu_page' );
@@ -161,6 +160,7 @@ function quick_weblog_submit_form() {
161160
wp_redirect( get_permalink( $post_id ) );
162161
exit();
163162
}
163+
164164
add_action( 'admin_post_quick_weblog_submit_form', 'quick_weblog_submit_form' );
165165

166166
?>

0 commit comments

Comments
 (0)