Plugin Directory

Changeset 2248638


Ignore:
Timestamp:
02/22/2020 08:47:52 AM (6 years ago)
Author:
pathusutariya
Message:

Update Plug-in structure! Structure update1

Location:
message-to-author/trunk
Files:
29 added
3 deleted
2 edited
2 copied
2 moved

Legend:

Unmodified
Added
Removed
  • message-to-author/trunk/admin/partials/admin_message.php

    • Property svn:eol-style set to native
  • message-to-author/trunk/admin/partials/m2a-admin-settings-display.php

    • Property svn:eol-style set to native
    r1994906 r2248638  
     1<?php
     2
     3/**
     4 * Provide a admin area view for the plugin
     5 *
     6 * This file is used to markup the admin-facing aspects of the plugin.
     7 *
     8 * @link       https://codelab7.com
     9 * @since      1.0.0
     10 *
     11 * @package    Message_To_Author
     12 * @subpackage Message_To_Author/admin/partials
     13 */
     14?>
     15
     16<!-- This file should primarily consist of HTML with a little bit of PHP. -->
    117<style>
    218    .m2a-option {
  • message-to-author/trunk/message-to-author.php

    r1994901 r2248638  
    11<?php
    22
     3/**
     4 * The plugin bootstrap file
     5 *
     6 * This file is read by WordPress to generate the plugin information in the plugin
     7 * admin area. This file also includes all of the dependencies used by the plugin,
     8 * registers the activation and deactivation functions, and defines a function
     9 * that starts the plugin.
     10 *
     11 * @link              https://codelab7.com
     12 * @since             1.0.0
     13 * @package           Message_To_Author
     14 *
     15 * @wordpress-plugin
     16 * Plugin Name:       Message To Auhtor
     17 * Plugin URI:        https://wordpress.org/plugins/message-to-author/
     18 * Description:       Just Message/feedback/query to Auther, You can Also ask for product to seller with woocommerce | enable from settings or use shortcode [message2author] for adding messagebox
     19 * Version:           3.0.0
     20 * Author:            Parth Sutariya
     21 * Author URI:        https://codelab7.com
     22 * License:           GPL-2.0+
     23 * License URI:       http://www.gnu.org/licenses/gpl-2.0.txt
     24 * Text Domain:       message-to-author
     25 * Domain Path:       /languages
     26 */
     27
     28// If this file is called directly, abort.
     29if ( ! defined( 'WPINC' ) ) {
     30    die;
     31}
    332
    433/**
    5  * Plugin Name: Message to Auther
    6  * Plugin URI:  https://wordpress.org/plugins/message-to-author
    7  * Description: Just Message/feedback/query to Auther, You can Also ask for product to seller with woocommerce | enable from settings or use shortcode [message2author] for adding messagebox
    8  * Author:      Parth Sutariya
    9  * Version:     2.2.0
    10  * Author URI:  http://github.com/pathusutariya
    11  * License:     GPLv2+
    12  * Text Domain: message-to-author
    13  * Domain Path: /languages
     34 * Currently plugin version.
     35 * Start at version 1.0.0 and use SemVer - https://semver.org
     36 * Rename this for your plugin and update it as you release new versions.
    1437 */
     38define( 'MESSAGE_TO_AUTHOR_VERSION', '3.0.0' );
    1539
    16 defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
    17 define( 'M2A_VERSION', '2.2.0' );
    18 define( 'M2A__MINIMUM_WP_VERSION', '4.7' );
    19 define( 'M2A__PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
     40/**
     41 * The code that runs during plugin activation.
     42 * This action is documented in includes/class-message-to-author-activator.php
     43 */
     44function activate_message_to_author() {
     45    require_once plugin_dir_path( __FILE__ ) . 'includes/class-message-to-author-activator.php';
     46    Message_To_Author_Activator::activate();
     47}
    2048
    21 require 'admin/admin.php';
    22 require 'functions/functions.php';
     49/**
     50 * The code that runs during plugin deactivation.
     51 * This action is documented in includes/class-message-to-author-deactivator.php
     52 */
     53function deactivate_message_to_author() {
     54    require_once plugin_dir_path( __FILE__ ) . 'includes/class-message-to-author-deactivator.php';
     55    Message_To_Author_Deactivator::deactivate();
     56}
    2357
    24 // On Active plugin   creation of database table
    25 register_activation_hook( __FILE__ , 'm2a_activate' );
     58register_activation_hook( __FILE__, 'activate_message_to_author' );
     59register_deactivation_hook( __FILE__, 'deactivate_message_to_author' );
    2660
     61/**
     62 * The core plugin class that is used to define internationalization,
     63 * admin-specific hooks, and public-facing site hooks.
     64 */
     65require plugin_dir_path( __FILE__ ) . 'includes/class-message-to-author.php';
    2766
    28 // this function is postponded to next version
    29 register_uninstall_hook( __FILE__ , 'm2a_uninstall' );
     67/**
     68 * Begins execution of the plugin.
     69 *
     70 * Since everything within the plugin is registered via hooks,
     71 * then kicking off the plugin from this point in the file does
     72 * not affect the page life cycle.
     73 *
     74 * @since    1.0.0
     75 */
     76function run_message_to_author() {
    3077
    31 ?>
     78    $plugin = new Message_To_Author();
     79    $plugin->run();
     80
     81}
     82run_message_to_author();
  • message-to-author/trunk/public/partials/messagebox.php

    • Property svn:eol-style set to native
  • message-to-author/trunk/public/partials/popup.php

    • Property svn:eol-style set to native
  • message-to-author/trunk/readme.txt

    r1994906 r2248638  
    44Donate link: paypal.me/pathusutariya
    55Requires at least: 4.7
    6 Tested up to: 5.0.1
     6Tested up to: 5.3.2
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/license-list.html#GPLCompatibleLicenses
Note: See TracChangeset for help on using the changeset viewer.