Changeset 505833
- Timestamp:
- 02/16/2012 10:44:21 AM (14 years ago)
- Location:
- e-paper/trunk
- Files:
-
- 2 edited
-
epaper.php (modified) (7 diffs)
-
readme.txt (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
e-paper/trunk/epaper.php
r496210 r505833 1 1 <?php 2 2 /** 3 * @package continent74 * @version 1. 93 * @package davidn.de 4 * @version 1.11 5 5 */ 6 6 /* … … 9 9 Description: This Plugin provides a custom post-type e-paper. 10 10 Author: David Nellessen (continent7 Bartels & Nellessen GbR) 11 Version: 1.1 011 Version: 1.11 12 12 Author URI: http://davidn.de 13 13 */ … … 17 17 # Filename: epaper.php 18 18 # Type: php 19 # Version: 1.1 0.020 # Last Change: 27.01.201219 # Version: 1.11.0 20 # Last Change: 16.02.2012 21 21 # Created: 10.06.2011 22 22 # Authors: David Nellessen (info@davidn.de) … … 28 28 # 29 29 # This is the main file of the epaper plugin for wordpress written 30 # by continent7. 31 # 32 # Features: 33 # - Creates a custom post-type "E-Paper" 34 # - E-Paper are equipped with most of the posts' features ('title', 'editor', 35 # 'author', 'thumbnail', 'excerpt', 'custom-fields', ) plus 'edition number'. 36 # - Content of epaper can be stored page-wise for searching-purpose. We recommend 37 # using relevanssi (http://wordpress.org/extend/plugins/relevanssi/) 38 # - Full support for Relevanssi. Content of E-Papers is searched by relevanssi 39 # AND displayed in results if relevanssi is configured to 40 # - The epaper data is IP-protected giving access only to users that are able to 41 # open the epaper post the data relates to. 42 # - Access protection compatible with UAM 43 # (http://wordpress.org/extend/plugins/user-access-manager/) 44 # - Support for epaper created with Flipviewer Xpress Creator 45 # (http://www.flipviewer.com/): Uploaded 46 # archives are automatically processed (content detection, url-detection, ...) 47 # 48 # Requirements: 49 # - Wordpress 3.1 (or higher) installed, fulfilling the common requirements 50 # - Apache Module mod_access with all directives order, deny, allow 51 # - PHP ext. SimpleXML http://www.php.net/manual/en/simplexml.requirements.php 52 # - WP function unzip_file should work properly. Don't worry about it, if the 53 # installation of plugins and themes works fine. 54 # 55 # Guidelines: 56 # - Version format is: major.minor.bugfix 57 # - The following license is a MIT license 58 # 59 # Note for Cyrillic: 60 # Cyrillic is not supported due to a combination of a wordpress bug when 61 # importing some of the XML extracted strings that are corrupted and lag in 62 # support for Cyrillic in forceUTF8.php 63 # 30 # by David Nellessen. 31 # 32 # See readme.txt for more documentation. 64 33 # 65 34 ################################### LICENSE #################################### 66 35 # 67 # Copyright (c) 201 0,2011 continent736 # Copyright (c) 2012 David Nellessen 68 37 # 69 38 # Permission is hereby granted, free of charge, to any person obtaining a copy … … 122 91 'epaper_meta_realepaper', 123 92 'epaper_meta_pdf', 93 'epaper_meta_pages' 94 ); 95 $frontendfields_reduced = array( 124 96 'epaper_meta_pages' 125 97 ); … … 912 884 if ( $post->post_type != EPAPER_POST_TYPE_NAME ) return $content; 913 885 914 global $frontendfields ;915 foreach($frontendfields as $field){886 global $frontendfields_reduced; 887 foreach($frontendfields_reduced as $field){ 916 888 //pay attention to $single (http://codex.wordpress.org/Function_Reference/get_post_meta) 917 889 $field_value = get_post_meta($post->ID, $field, TRUE); … … 995 967 else 996 968 return FALSE; 997 } 969 } -
e-paper/trunk/readme.txt
r496210 r505833 2 2 Contributors: davidn.de 3 3 Donate link: 4 Tags: e-paper, paper, publication, custom-post-type, FlipViewer, publisher, Relevanssi, UAM4 Tags: e-paper, paper, publication, custom-post-type, FlipViewer, publisher, Relevanssi, relevance, user access manager 5 5 Requires at least: 3.1.0 6 6 Tested up to: 3.3.1 7 Stable tag: 1.1 07 Stable tag: 1.11 8 8 9 9 With E-Paper-plugin you can easily integrate your e-paper … … 52 52 work out of the box**. 53 53 54 The plugin stores e-paper data in wp-content/uploads/epaper.55 56 54 = Relevanssi Support = 57 55 58 56 The E-Paper Plugin integrates into 59 [Rel levansi](http://wordpress.org/extend/plugins/relevanssi/). To set it up57 [Relevanssi](http://wordpress.org/extend/plugins/relevanssi/). To set it up 60 58 go into the Relevanssi settinga panel and add __epaper_meta_editionnumber, 61 59 epaper_meta_realepaper, epaper_meta_pdf, epaper_meta_pages__ to … … 88 86 89 87 == Frequently Asked Questions == 90 Nothing yet... 88 = Where does the E-Paper Plugin store the e-paper data? = 89 The plugin stores e-paper data in wp-content/uploads/epaper. Make sure it is 90 writeable! 91 91 92 92 == Screenshots == … … 95 95 == Changelog == 96 96 97 = Version 0.1.0 (10.06.2011) = 98 * Implementation of post-type epaper with basic features 99 * Plugin Template for the_content 100 * Implementation of 'edition number': Admin Interface & the_content 101 102 = Version 0.2.0 (13.06.2011) = 103 * Implementation of 'Epaper-URL': Admin Interface & the_content 104 * Implementation of 'PDF-URL': Admin Interface & the_content 105 * Implementation of an Upload field & unziping file 106 107 = Version 0.3.0 (14.06.2011) = 108 * Implemented validation possibility on save_post 109 * Validation for file upload implemented 110 * Implemented ip-based file protection following 111 http://stackoverflow.com/questions/2187200/using-php-apache-to-restrict-access-to-static-files-html-css-img-etc 112 * Implemented support for UAM 113 * Implemented possibility to upload archives 114 * Implemented autodetection of E-Paper-URL and PDF-Url for uploaded archives 97 Version format is: major.minor.bugfix 98 99 = Version 1.11.0 (16.02.2012) = 100 * Minor improvement of documentation. 101 * Removed internal urls from relevanssi excerpts. 102 103 = Version 1.10.0 (27.01.2012) = 104 * Further preps for submission to wordpress rep. 105 * created readme.txt 106 107 = Version 1.9.0 (26.01.2012) = 108 * Prepared plugin for submission to wordpress rep. 109 * 'show_in_menu' fix 110 111 = Version 1.8.1 (09.11.2011) = 112 * Bugfix for searchterms with higher asci characters like � 113 114 = Version 1.8.0 (24.10.2011) = 115 * changed url-parameter "search" to "keyword" for compatibility with new flipviewer versions 116 117 = Version 1.7.0 (12.08.2011) = 118 * changed page detection to xml attribute pageNumber 119 120 = Version 1.6.0 (12.08.2011) = 121 * Added searchterm to the_content 122 * updated language file 123 124 = Version 1.5.0 (09.08.2011) = 125 * Bugfix: Internal Server Error if xml-file-convention is ignored 126 127 = Version 1.4.0 (07.08.2011) = 128 * Improved "link page in epaper after search results" 129 130 = Version 1.3.0 (04.08.2011) = 131 * Fixed wp-nonce bug 132 133 = Version 1.2.0 (22.07.2011) = 134 * link page in epaper after search results 135 136 = Version 1.1.0 (21.07.2011) = 137 * removed edition number 138 * improved pdf recognition 139 * search message 140 141 = Version 1.0.1 (20.06.2011) = 142 * Small changes and cleanup 143 * Testing 144 145 = Version 1.0.0 (19.06.2011) = 146 * Fixing the file system problem by using 0777 permission by default 147 * Optimization of frontend/backend and some cleanup 148 * Testing on different server 149 * Documentation 150 151 = Version 0.5.0 (16.06.2011) = 152 * Better Relevanssi support with you filter 153 http://wordpress.org/support/topic/snippets-not-created-from-custom-fields?replies=23 154 * Performance optimization 155 * Backend UI improved with jQuery UI and some cleanup 156 * Frontend styling 157 * looking for epaper-the-content.php in theme directory for templating the_content of epaper posts 115 158 116 159 = Version 0.4.0 (15.06.2011) = … … 125 168 http://wordpress.org/support/topic/plugin-relevanssi-a-better-search-bug-report-wrong-use-of-get_post_meta 126 169 127 = Version 0.5.0 (16.06.2011) = 128 * Better Relevanssi support with you filter 129 http://wordpress.org/support/topic/snippets-not-created-from-custom-fields?replies=23 130 * Performance optimization 131 * Backend UI improved with jQuery UI and some cleanup 132 * Frontend styling 133 * looking for epaper-the-content.php in theme directory for templating the_content of epaper posts 134 135 = Version 1.0.0 (19.06.2011) = 136 * Fixing the file system problem by using 0777 permission by default 137 * Optimization of frontend/backend and some cleanup 138 * Testing on different server 139 * Documentation 140 141 = Version 1.0.1 (20.06.2011) = 142 * Small changes and cleanup 143 * Testing 144 145 = Version 1.1.0 (21.07.2011) = 146 * removed edition number 147 * improved pdf recognition 148 * search message 149 150 = Version 1.2.0 (22.07.2011) = 151 * link page in epaper after search results 152 153 = Version 1.3.0 (04.08.2011) = 154 * Fixed wp-nonce bug 155 156 = Version 1.4.0 (07.08.2011) = 157 * Improved "link page in epaper after search results" 158 159 = Version 1.5.0 (09.08.2011) = 160 * Bugfix: Internal Server Error if xml-file-convention is ignored 161 162 = Version 1.6.0 (12.08.2011) = 163 * Added searchterm to the_content 164 * updated language file 165 166 = Version 1.7.0 (12.08.2011) = 167 * changed page detection to xml attribute pageNumber 168 169 = Version 1.8.0 (24.10.2011) = 170 * changed url-parameter "search" to "keyword" for compatibility with new flipviewer versions 171 172 = Version 1.8.1 (09.11.2011) = 173 * Bugfix for searchterms with higher asci characters like � 174 175 = Version 1.9.0 (26.01.2012) = 176 * Prepared plugin for submission to wordpress rep. 177 * 'show_in_menu' fix 178 179 = Version 1.10.0 (27.01.2012) = 180 * Further preps for submission to wordpress rep. 181 * created readme.txt 170 = Version 0.3.0 (14.06.2011) = 171 * Implemented validation possibility on save_post 172 * Validation for file upload implemented 173 * Implemented ip-based file protection following 174 http://stackoverflow.com/questions/2187200/using-php-apache-to-restrict-access-to-static-files-html-css-img-etc 175 * Implemented support for UAM 176 * Implemented possibility to upload archives 177 * Implemented autodetection of E-Paper-URL and PDF-Url for uploaded archives 178 179 = Version 0.2.0 (13.06.2011) = 180 * Implementation of 'Epaper-URL': Admin Interface & the_content 181 * Implementation of 'PDF-URL': Admin Interface & the_content 182 * Implementation of an Upload field & unziping file 183 184 = Version 0.1.0 (10.06.2011) = 185 * Implementation of post-type epaper with basic features 186 * Plugin Template for the_content 187 * Implementation of 'edition number': Admin Interface & the_content 182 188 183 189 == Upgrade Notice ==
Note: See TracChangeset
for help on using the changeset viewer.