Changeset 944333
- Timestamp:
- 07/07/2014 12:42:37 PM (12 years ago)
- Location:
- auto-files/trunk
- Files:
-
- 6 added
- 2 edited
-
autofiles.php (modified) (3 diffs)
-
languages (added)
-
languages/autof-en_US.mo (added)
-
languages/autof-en_US.po (added)
-
languages/autof-tr_TR.mo (added)
-
languages/autof-tr_TR.po (added)
-
metaboxes.php (added)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
auto-files/trunk/autofiles.php
r901853 r944333 3 3 Plugin Name: Auto Files 4 4 Plugin URI: http://wpadami.com/cms-sistemleri/wordpress/auto-files-mini-bir-auto-attachments.html 5 Description: This plugin is minified version of Auto Attachments. Supported attachment types are Word, Excel, Pdf, PowerPoint, zip, rar, tar, tar.gz 6 Version: 0. 15 Description: This plugin is minified version of Auto Attachments. Supported attachment types are Word, Excel, Pdf, PowerPoint, zip, rar, tar, tar.gz 6 Version: 0.2 7 7 Author: Serkan Algur 8 8 Author URI: http://www.wpadami.com … … 15 15 } 16 16 17 // CSS Style Loading 17 // CSS Style Loading 18 18 if (!is_admin()){ 19 19 wp_enqueue_style('autofilesstyle', plugins_url('/auto-files/autofiles.css'), __FILE__ ); 20 20 } 21 function multilingual_af( ) { 22 load_plugin_textdomain('autof', false, dirname(plugin_basename(__FILE__)) . '/languages'); 23 } 24 add_action('init', 'multilingual_af'); 21 25 26 include('metaboxes.php'); 22 27 23 28 function autof_show_files() { … … 63 68 $filehtml .= "</div>"; 64 69 } 65 $filehtml .="</div>"; 70 $filehtml .="</div>"; 66 71 $filehtml .="<div class='clear'> </div>"; 67 72 return $filehtml; 68 } 73 } 69 74 } 70 75 71 76 add_filter('the_content', 'autof_insertintoContent'); 72 77 function autof_insertintoContent($content) { 78 global $post; 79 $metapost = get_post_meta($post->ID,'aa_post_meta',TRUE); 80 $metapage = get_post_meta($post->ID,'aa_page_meta',TRUE); 73 81 if (get_post_type() == 'post') { 74 if (!post_password_required() ){75 $content .= autof_show_files();76 return $content;82 if (!post_password_required() && $metapost['show'] == 'yes'){ 83 $content .= autof_show_files(); 84 return $content; 77 85 } else { 78 86 return $content; 79 87 } 80 88 } 81 89 82 90 if (get_post_type() == 'page'){ 83 if (!post_password_required() ){84 $content .= autof_show_files();85 return $content;91 if (!post_password_required() && $metapage['show'] == 'yes'){ 92 $content .= autof_show_files(); 93 return $content; 86 94 } else { 87 95 return $content; -
auto-files/trunk/readme.txt
r901853 r944333 33 33 == Changelog == 34 34 35 = Version 0.2 = 36 * Users can hide Auto Files from page and posts. Users will find a metabox each page/post edit area. 37 * English and Turkish Language Added for metaboxes. (07.07.2014) 38 35 39 = Version 0.1 = 36 40 * Plugin Released (24.04.2014)
Note: See TracChangeset
for help on using the changeset viewer.