Plugin Directory

Changeset 2089413

Timestamp:
05/16/2019 07:31:58 PM (5 years ago)
Author:
igmoweb
Message:

tagging version 1.1.1

Location:
append-or-prepend-content/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • append-or-prepend-content/trunk/admin.php

    r1522031 r2089413  
    77
    88    public function __construct() {
    9         add_action( 'admin_init' , array( $this , 'register_fields' ) );
     9        add_action( 'admin_init', 'register_fields' ) );
    1010    }
    1111
     
    1313        add_settings_section(
    1414            'apporprep_section',
    15             __( 'Append or Prepend Content Settings', 'apporprep' ),
     15            __( 'Append or Prepend Content Settings', 'apporprep' ),
    1616            array( $this, 'header_html' ),
    1717            'writing'
     
    5959    public function header_html() {
    6060        ?>
    61         <p><?php _e( 'Allows you to append or prepend content to any Post Type on your site. Shortcodes allowed.', 'apporprep' ); ?></p>
     61        <p><?php _e( 'Allows you to append or prepend content to any Post Type on your site. Shortcodes allowed.', 'apporprep' ); ?></p>
    6262        <?php
    6363
     
    6969    public function prepend_html( $args ) {
    7070        $post_type = $args['post_type'];
    71         $value = get_option( 'prepend_' . $post_type, '' );
    72         wp_editor( $value, 'prepend_' . $post_type, array( 'quicktags' => true, 'media_buttons' => true, 'textarea_rows' => 8, 'teeny' => true ) );
     71        $value     = get_option( 'prepend_' . $post_type, '' );
     72        wp_editor(
     73            $value,
     74            'prepend_' . $post_type,
     75            array(
     76                'quicktags'     => true,
     77                'media_buttons' => true,
     78                'textarea_rows' => 8,
     79                'teeny'         => true,
     80            )
     81        );
    7382    }
    7483
    7584    public function append_html( $args ) {
    7685        $post_type = $args['post_type'];
    77         $value = get_option( 'append_' . $post_type, '' );
    78         wp_editor( $value, 'append_' . $post_type, array( 'quicktags' => true, 'media_buttons' => true, 'textarea_rows' => 8, 'teeny' => true ) );
     86        $value     = get_option( 'append_' . $post_type, '' );
     87        wp_editor(
     88            $value,
     89            'append_' . $post_type,
     90            array(
     91                'quicktags'     => true,
     92                'media_buttons' => true,
     93                'textarea_rows' => 8,
     94                'teeny'         => true,
     95            )
     96        );
    7997    }
    8098
  • append-or-prepend-content/trunk/app-prep-content.php

    r1522031 r2089413  
    1 <?php
     1<?php
    22
    33/**
     
    55 * Description: Add content before or after every post, page or Custom Post Type
    66 * Plugin URI: https://wordpress.org/plugins/app-prep-content
    7  * Version: 1.1
     7 * Version: 1.1
    88 * Author: igmoweb
    99 * Author URI: http://igmoweb.com
     
    1212 * License: GPLv2 or later (license.txt)
    1313 */
     14
    1415
    15 class AppOrPrepp {
     16    /**
     17     * Plugin instance.
     18     *
     19     * @var AppOrPrepp
     20     */
    1621    private static $instance;
    1722
     23
     24
     25
     26
     27
    1828    public static function get_instance() {
    1929        if ( ! self::$instance ) {
     
    2434    }
    2535
     36
     37
     38
    2639    public function __construct() {
    2740        if ( is_admin() ) {
    28             include_once( plugin_dir_path( __FILE__ ) . '/admin.php' );
     41            include_once;
    2942            new AppOrPrepp_Admin();
    3043        }
     
    3548    }
    3649
     50
     51
     52
    3753    public function load_text_domain() {
    3854        load_plugin_textdomain( 'apporprepp', false, plugin_basename( dirname( __FILE__ ) ) . '/languages' );
    3955    }
    4056
     57
     58
     59
     60
     61
     62
     63
    4164    public function the_content( $content ) {
    4265        $post = get_post();
     
    5679}
    5780
    58 add_action( 'plugins_loaded', 'app_or_prepp'  );
     81add_action( 'plugins_loaded', 'app_or_prepp' );
     82/**
     83 * Return the plugin instance
     84 *
     85 * @return AppOrPrepp
     86 */
    5987function app_or_prepp() {
    6088    return AppOrPrepp::get_instance();
  • append-or-prepend-content/trunk/languages/apporprepp.pot

    r1374049 r2089413  
    1 # Copyright (C) 2016 Append or Prepend Content
    2 # This file is distributed under the same license as the Append or Prepend Content package.
     1# Copyright (C) 201
     2# This file is distributed under the .
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Append or Prepend Content 1.0\n"
    6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/app-prep-content\n"
    7 "POT-Creation-Date: 2016-03-17 09:16:42+00:00\n"
     5"Project-Id-Version: Append or Prepend Content 1.1.1\n"
     6"Report-Msgid-Bugs-To: "
     7"https://wordpress.org/support/plugin/append-or-prepend-content\n"
     8"POT-Creation-Date: 2019-05-16 19:27:30+00:00\n"
    89"MIME-Version: 1.0\n"
    9 "Content-Type: text/plain; charset=UTF-8\n"
     10"Content-Type: text/plain; charset=-8\n"
    1011"Content-Transfer-Encoding: 8bit\n"
    11 "PO-Revision-Date: 2016-MO-DA HO:MI+ZONE\n"
     12"PO-Revision-Date: 201-MO-DA HO:MI+ZONE\n"
    1213"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
    1314"Language-Team: LANGUAGE <LL@li.org>\n"
     15
    1416
    15 #: admin.php:15
     17#: admin.php:15 build/admin.php:15 svn/tags/1.0/admin.php:15
     18#: svn/tags/1.1/admin.php:15 svn/tags/1.1.1/admin.php:15 svn/trunk/admin.php:15
    1619msgid "Append or Prepend Content Settings"
    1720msgstr ""
    1821
    19 #: admin.php:28
    20 msgctxt "%s is the post type"
    21 msgid "Prepend content to %s"
    22 msgstr ""
    23 
    24 #: admin.php:37
    25 msgctxt "%s is the post type"
    26 msgid "Append content to %s"
    27 msgstr ""
    28 
    29 #: admin.php:61
     22#: admin.php:61 build/admin.php:61 svn/tags/1.0/admin.php:61
     23#: svn/tags/1.1/admin.php:61 svn/tags/1.1.1/admin.php:61 svn/trunk/admin.php:61
    3024msgid ""
    3125"Allows you to append or prepend content to any Post Type on your site. "
     
    5246msgid "http://igmoweb.com"
    5347msgstr ""
     48
     49
     50
     51
     52
     53
     54
     55
     56
     57
     58
     59
  • append-or-prepend-content/trunk/readme.txt

    r1522031 r2089413  
    33Tags: content,posts,custom post type
    44Requires at least: 4.0
    5 Tested up to: 4.6.1
    6 Stable tag: 1.1
     5Tested up to:
     6Stable tag: 1.1
    77License: GPLv2 or later
    88
     
    2222
    2323== Changelog ==
     24
     25
     26
    2427= 1.1 =
    2528Added media buttons and HTML mode in editors
Note: See TracChangeset for help on using the changeset viewer.