Changeset 2090806
- Timestamp:
- 05/19/2019 02:40:53 PM (5 years ago)
- Location:
- append-or-prepend-content
- Files:
-
- 10 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
append-or-prepend-content/trunk/app-prep-content.php
r2089413 r2090806 5 5 * Description: Add content before or after every post, page or Custom Post Type 6 6 * Plugin URI: https://wordpress.org/plugins/app-prep-content 7 * Version: 1.1.17 * Version: 8 8 * Author: igmoweb 9 9 * Author URI: http://igmoweb.com … … 39 39 public function __construct() { 40 40 if ( is_admin() ) { 41 include_once plugin_dir_path( __FILE__ ) . '/ admin.php';41 include_once plugin_dir_path( __FILE__ ) . '/admin.php'; 42 42 new AppOrPrepp_Admin(); 43 43 } 44 44 45 add_filter( 'the_content', array( $this, 'the_content' ));45 add_filter( 'the_content', ); 46 46 47 add_action( 'plugins_loaded', array( $this, 'load_text_domain' ), 50 );47 add_action( 'plugins_loaded', , 50 ); 48 48 } 49 49 … … 63 63 */ 64 64 public function the_content( $content ) { 65 $post = get_post();65 $post = get_post(); 66 66 $post_type = get_post_type( $post ); 67 68 69 70 71 72 67 73 $prepend = get_option( 'prepend_' . $post_type, '' ); 68 $append = get_option( 'append_' . $post_type, '' );74 $append = get_option( 'append_' . $post_type, '' ); 69 75 70 76 if ( $prepend ) { … … 75 81 $content = $content . wpautop( $append ); 76 82 } 83 77 84 return $content; 78 85 } -
append-or-prepend-content/trunk/languages/apporprepp-es_ES.po
r1374049 r2090806 4 4 msgstr "" 5 5 "Project-Id-Version: Append or Prepend Content 1.0\n" 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/app-prep-" 7 "content\n" 8 "POT-Creation-Date: 2016-03-17 10:30+0100\n" 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/app-prep-content\n" 7 "POT-Creation-Date: 2019-05-19 14:28:20+00:00\n" 9 8 "MIME-Version: 1.0\n" 10 9 "Content-Type: text/plain; charset=UTF-8\n" 11 10 "Content-Transfer-Encoding: 8bit\n" 12 "PO-Revision-Date: 201 6-03-17 10:32+0100\n"13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"14 "Language-Team: \n"15 "X-Generator: Poedit 1.8.2\n"11 "PO-Revision-Date: 20100\n" 12 "Last-Translator: >\n" 13 "Language-Team: \n" 14 "X-Generator: \n" 16 15 "Plural-Forms: nplurals=2; plural=(n != 1);\n" 17 "Language: es \n"16 "Language: es" 18 17 19 #: admin.php:15 18 #: build/class-apporprepp-admin.php:21 class-apporprepp-admin.php:21 19 #: svn/tags/1.0/admin.php:15 svn/tags/1.1/admin.php:15 20 #: svn/tags/1.1.1/admin.php:15 svn/trunk/admin.php:15 20 21 msgid "Append or Prepend Content Settings" 21 22 msgstr "Opciones de Append o Prepend Content" 22 23 23 #: admin.php:28 24 msgctxt "%s is the post type" 25 msgid "Prepend content to %s" 26 msgstr "Agregar contenido previo a %s" 27 28 #: admin.php:37 29 msgctxt "%s is the post type" 30 msgid "Append content to %s" 31 msgstr "Agregar contenido a %s" 32 33 #: admin.php:61 24 #: build/class-apporprepp-admin.php:102 class-apporprepp-admin.php:102 25 #: svn/tags/1.0/admin.php:61 svn/tags/1.1/admin.php:61 26 #: svn/tags/1.1.1/admin.php:61 svn/trunk/admin.php:61 34 27 msgid "" 35 28 "Allows you to append or prepend content to any Post Type on your site. " 36 29 "Shortcodes allowed." 37 30 msgstr "" 31 32 38 33 39 34 #. Plugin Name of the plugin/theme … … 48 43 msgid "Add content before or after every post, page or Custom Post Type" 49 44 msgstr "" 45 46 50 47 51 48 #. Author of the plugin/theme … … 56 53 msgid "http://igmoweb.com" 57 54 msgstr "" 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 -
append-or-prepend-content/trunk/languages/apporprepp.pot
r2089413 r2090806 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Append or Prepend Content 1.1.1\n"5 "Project-Id-Version: Append or Prepend Content \n" 6 6 "Report-Msgid-Bugs-To: " 7 7 "https://wordpress.org/support/plugin/append-or-prepend-content\n" 8 "POT-Creation-Date: 2019-05-1 6 19:27:30+00:00\n"8 "POT-Creation-Date: 2019-05-1+00:00\n" 9 9 "MIME-Version: 1.0\n" 10 10 "Content-Type: text/plain; charset=utf-8\n" … … 15 15 "X-Generator: grunt-wp-i18n 1.0.3\n" 16 16 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 17 #: build/class-apporprepp-admin.php:21 class-apporprepp-admin.php:21 18 #: svn/tags/1.0/admin.php:15 svn/tags/1.1/admin.php:15 19 #: svn/tags/1.1.1/admin.php:15 svn/tags/1.2.0/class-apporprepp-admin.php:21 20 #: svn/trunk/class-apporprepp-admin.php:21 19 21 msgid "Append or Prepend Content Settings" 20 22 msgstr "" 21 23 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 24 #: build/class-apporprepp-admin.php:102 class-apporprepp-admin.php:102 25 #: svn/tags/1.0/admin.php:61 svn/tags/1.1/admin.php:61 26 #: svn/tags/1.1.1/admin.php:61 svn/tags/1.2.0/class-apporprepp-admin.php:102 27 #: svn/trunk/class-apporprepp-admin.php:102 24 28 msgid "" 25 29 "Allows you to append or prepend content to any Post Type on your site. " … … 47 51 msgstr "" 48 52 49 #: admin.php:28 build/admin.php:28 svn/tags/1.0/admin.php:28 50 #: svn/tags/1.1/admin.php:28 svn/tags/1.1.1/admin.php:28 svn/trunk/admin.php:28 53 #: build/class-apporprepp-admin.php:36 class-apporprepp-admin.php:36 54 #: svn/tags/1.0/admin.php:28 svn/tags/1.1/admin.php:28 55 #: svn/tags/1.1.1/admin.php:28 svn/tags/1.2.0/class-apporprepp-admin.php:36 56 #: svn/trunk/class-apporprepp-admin.php:36 57 #. translators: %s is the post type. 51 58 msgctxt "%s is the post type" 52 59 msgid "Prepend content to %s" 53 60 msgstr "" 54 61 55 #: admin.php:37 build/admin.php:37 svn/tags/1.0/admin.php:37 56 #: svn/tags/1.1/admin.php:37 svn/tags/1.1.1/admin.php:37 svn/trunk/admin.php:37 62 #: build/class-apporprepp-admin.php:48 class-apporprepp-admin.php:48 63 #: svn/tags/1.0/admin.php:37 svn/tags/1.1/admin.php:37 64 #: svn/tags/1.1.1/admin.php:37 svn/tags/1.2.0/class-apporprepp-admin.php:48 65 #: svn/trunk/class-apporprepp-admin.php:48 66 #. translators: %s is the post type. 57 67 msgctxt "%s is the post type" 58 68 msgid "Append content to %s" 59 69 msgstr "" 70 71 72 73 74 75 76 77 -
append-or-prepend-content/trunk/readme.txt
r2089413 r2090806 2 2 Contributors: igmoweb 3 3 Tags: content,posts,custom post type 4 Requires at least: 4.05 Tested up to: 5.26 Stable tag: 1.1.14 Requires at least: 5 Tested up to: 6 Stable tag: 7 7 License: GPLv2 or later 8 8 … … 22 22 23 23 == Changelog == 24 25 26 24 27 = 1.1.1 = 25 28 Updated compatibility with WordPress 5.2
Note: See TracChangeset
for help on using the changeset viewer.