Changeset 492697
- Timestamp:
- 01/20/2012 04:05:46 PM (14 years ago)
- Location:
- indypress/trunk
- Files:
-
- 127 added
- 2 edited
-
indypress (added)
-
indypress.php (modified) (2 diffs)
-
indypress/.swp (added)
-
indypress/api (added)
-
indypress/api/hide.php (added)
-
indypress/api/publication.php (added)
-
indypress/api/signal.php (added)
-
indypress/api/term.php (added)
-
indypress/classes (added)
-
indypress/classes/admin.class.php (added)
-
indypress/classes/form_settings.php (added)
-
indypress/classes/hide.class.php (added)
-
indypress/classes/hide_admin.class.php (added)
-
indypress/classes/hide_common.class.php (added)
-
indypress/classes/live-blogging.class.php (added)
-
indypress/classes/live-blogging_settings.class.php (added)
-
indypress/classes/newform_settings.php (added)
-
indypress/classes/pagination.class.php (added)
-
indypress/classes/publication.class.php (added)
-
indypress/classes/publication_admin.class.php (added)
-
indypress/classes/publication_form.class.php (added)
-
indypress/classes/publication_settings.class.php (added)
-
indypress/classes/publication_theme.class.php (added)
-
indypress/classes/signal.class.php (added)
-
indypress/classes/signal_admin.class.php (added)
-
indypress/classes/upload.class.php (added)
-
indypress/classes/visualization-settings.class.php (added)
-
indypress/classes/wizard.class.php (added)
-
indypress/config.php (added)
-
indypress/css (added)
-
indypress/css/publication.css (added)
-
indypress/css/publication_visual_editor.css (added)
-
indypress/css/signal.css (added)
-
indypress/css/smoothness (added)
-
indypress/css/smoothness/images (added)
-
indypress/css/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png (added)
-
indypress/css/smoothness/images/ui-bg_flat_75_ffffff_40x100.png (added)
-
indypress/css/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png (added)
-
indypress/css/smoothness/images/ui-bg_glass_65_ffffff_1x400.png (added)
-
indypress/css/smoothness/images/ui-bg_glass_75_dadada_1x400.png (added)
-
indypress/css/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png (added)
-
indypress/css/smoothness/images/ui-bg_glass_95_fef1ec_1x400.png (added)
-
indypress/css/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png (added)
-
indypress/css/smoothness/images/ui-icons_222222_256x240.png (added)
-
indypress/css/smoothness/images/ui-icons_2e83ff_256x240.png (added)
-
indypress/css/smoothness/images/ui-icons_454545_256x240.png (added)
-
indypress/css/smoothness/images/ui-icons_888888_256x240.png (added)
-
indypress/css/smoothness/images/ui-icons_cd0a0a_256x240.png (added)
-
indypress/css/smoothness/jquery-ui-1.8.16.custom.css (added)
-
indypress/doc (added)
-
indypress/doc/HACKING.md (added)
-
indypress/doc/README.md (added)
-
indypress/doc/configurability_plan.txt (added)
-
indypress/form_actions (added)
-
indypress/form_actions/filter.php (added)
-
indypress/form_actions/if.php (added)
-
indypress/form_actions/meta.php (added)
-
indypress/form_actions/pre_field.php (added)
-
indypress/form_inputs (added)
-
indypress/form_inputs/autocomplete.php (added)
-
indypress/form_inputs/checkboxes.php (added)
-
indypress/form_inputs/embed.js (added)
-
indypress/form_inputs/embed.php (added)
-
indypress/form_inputs/html.php (added)
-
indypress/form_inputs/if.php (added)
-
indypress/form_inputs/line.php (added)
-
indypress/form_inputs/select.php (added)
-
indypress/form_inputs/tinymce.php (added)
-
indypress/form_inputs/upload.js (added)
-
indypress/form_inputs/upload.php (added)
-
indypress/images (added)
-
indypress/images/attachment.png (added)
-
indypress/images/attachment_icon.gif (added)
-
indypress/images/audio_icon.gif (added)
-
indypress/images/audioplayer.png (added)
-
indypress/images/buttons (added)
-
indypress/images/buttons/Sin categoría.png (added)
-
indypress/images/buttons/button_sample.png (added)
-
indypress/images/close_icon.png (added)
-
indypress/images/embedvideoplayer.png (added)
-
indypress/images/image_icon.gif (added)
-
indypress/images/publish.png (added)
-
indypress/images/video_icon.gif (added)
-
indypress/images/videoplayer.png (added)
-
indypress/includes (added)
-
indypress/includes/audio-player.js (added)
-
indypress/includes/autocompletion.css (added)
-
indypress/includes/hide_ajax.js (added)
-
indypress/includes/jquery.tools.tooltip_dynamic.min.js (added)
-
indypress/includes/jquery.validate.min.js (added)
-
indypress/languages (added)
-
indypress/languages/indypress-it_IT.mo (added)
-
indypress/languages/indypress-it_IT.po (added)
-
indypress/languages/indypress-it_IT.po.old (added)
-
indypress/languages/indypress.mo (added)
-
indypress/languages/indypress.pot (added)
-
indypress/templates (added)
-
indypress/templates/comments.php (added)
-
indypress_defaultconf.php (added)
-
indypress_event (added)
-
indypress_event.php (added)
-
indypress_event/api (added)
-
indypress_event/api/event.php (added)
-
indypress_event/classes (added)
-
indypress_event/classes/event.class.php (added)
-
indypress_event/classes/event_admin.class.php (added)
-
indypress_event/classes/event_page.class.php (added)
-
indypress_event/classes/settings.php (added)
-
indypress_event/form_inputs (added)
-
indypress_event/form_inputs/daterange.php (added)
-
indypress_event/images (added)
-
indypress_event/images/clock.png (added)
-
indypress_event/templates (added)
-
indypress_event/templates/single-indypress_event.php (added)
-
indypress_event/widget (added)
-
indypress_event/widget/event.php (added)
-
indypress_hide (added)
-
indypress_hide/classes (added)
-
indypress_napoliconf.php (added)
-
indypress_reserved (added)
-
indypress_reserved.php (added)
-
indypress_reserved/inhibit.class.php (added)
-
indypress_reserved/settings.php (added)
-
indypress_romaconf.php (added)
-
indypress_testconf.php (added)
-
readme.txt (modified) (4 diffs)
-
screenshot-1.png (added)
-
screenshot-2.png (added)
-
screenshot-3.png (added)
Legend:
- Unmodified
- Added
- Removed
-
indypress/trunk/indypress.php
r395150 r492697 5 5 Plugin URI: http://code.autistici.org/p/indypress 6 6 Description: Make your WordPress as an Indypendent Media Center 7 Author: p(A)skao8 Version: 0.5.19 Author URI: paskao@hacari.org7 Author: boyska, paskao 8 Version: 2012.01 9 Author URI: 10 10 License: GPL2 11 11 Domain Path: ./languages/ 12 12 */ 13 13 14 /* 15 function this_plugin_first() { 16 // ensure path to this file is via main wp plugin path 17 $wp_path_to_this_file = preg_replace('/(.*)plugins\/(.*)$/', WP_PLUGIN_DIR."/$2", __FILE__); 18 $this_plugin = plugin_basename(trim($wp_path_to_this_file)); 19 $active_plugins = get_option('active_plugins'); 20 $this_plugin_key = array_search($this_plugin, $active_plugins); 21 if ($this_plugin_key) { // if it's 0 it's the first plugin already, no need to continue 22 array_splice($active_plugins, $this_plugin_key, 1); 23 array_unshift($active_plugins, $this_plugin); 24 update_option('active_plugins', $active_plugins); 25 } 26 } 27 add_action("activated_plugin", "this_plugin_first"); 28 */ 14 // CONFIG 15 $indypress_url = plugins_url( '', __FILE__ ) . '/indypress/'; 16 $indypress_relative_path = '/wp-content/plugins/' . str_replace( basename( __FILE__ ), "", plugin_basename( __FILE__ )) . 'indypress/'; 17 $indypress_path = ABSPATH . 'wp-content/plugins/' . str_replace( basename( __FILE__ ), "", plugin_basename( __FILE__ )) . 'indypress/'; 29 18 30 // CONFIG 31 $indypress_url = plugins_url( '', __FILE__ ) . '/'; 32 $indypress_relative_path = '/wp-content/plugins/' . str_replace( basename( __FILE__ ), "", plugin_basename( __FILE__ )); 33 $indypress_path = ABSPATH . 'wp-content/plugins/' . str_replace( basename( __FILE__ ), "", plugin_basename( __FILE__ )); 19 require_once( $indypress_path . 'config.php' ); 20 require_once( $indypress_path . 'api/publication.php' ); 34 21 35 require_once( 'config.php' );36 22 37 23 /* --- Modified by Cap --- Start section*/ 38 39 24 load_plugin_textdomain('indypress', '', 'indypress/languages'); 40 41 25 /* --- Modified by Cap --- End section*/ 42 26 27 require_once( $indypress_path . 'classes/wizard.class.php' ); 28 register_activation_hook( __FILE__, 'do_wizard' ); 43 29 44 // CREATE EVENT TYPE 45 require_once('classes/common.class.php'); 46 $common = new indypress_common(); 30 /* Publication inputs: TODO: move it to publication_common or something like that */ 31 include_once( $indypress_path . 'form_inputs/line.php'); 32 include_once( $indypress_path . 'form_inputs/html.php'); 33 include_once( $indypress_path . 'form_inputs/tinymce.php'); 34 include_once( $indypress_path . 'form_inputs/autocomplete.php'); 35 include_once( $indypress_path . 'form_inputs/if.php'); 36 include_once( $indypress_path . 'form_inputs/checkboxes.php'); 37 include_once( $indypress_path . 'form_inputs/select.php'); 38 include_once( $indypress_path . 'form_inputs/upload.php'); 39 include_once( $indypress_path . 'form_inputs/embed.php'); 40 include_once( $indypress_path . 'form_actions/meta.php'); 41 include_once( $indypress_path . 'form_actions/pre_field.php'); 42 include_once( $indypress_path . 'form_actions/if.php'); 43 include_once( $indypress_path . 'form_actions/filter.php'); 44 /* Publication inputs end */ 45 46 require_once( $indypress_path . 'classes/upload.class.php' ); 47 $indypress_upload = new indypress_upload(); 47 48 48 49 // ADMIN PANEL MENU 49 50 if( is_admin() ) { 50 51 // add_action('admin_init', array($common, 'indypress_common_init'));52 53 require_once( 'classes/next-event.php' );54 add_action( 'widgets_init', 'load_next_event_widget' );55 56 51 // LOAD ADMIN COMMON 57 require_once( 'classes/admin.class.php' );52 require_once( $indypress_path . 'classes/admin.class.php' ); 58 53 $indypress_admin = new indypress_admin(); 59 54 // INDYPRESS ADMIN HOOK 60 // add_action( 'admin_init', array( $indypress_admin, 'indypress_admin_init' ) );61 55 add_action( 'indypress_admin_init', array( $indypress_admin, 'indypress_admin' ) ); 62 56 63 64 57 // LOAD PUBLICATION SETTINGS 65 require_once( 'classes/publication_settings.class.php' );58 require_once( $indypress_path . 'classes/publication_settings.class.php' ); 66 59 $indypress_publication_settings = new indypress_publication_settings(); 67 60 add_action( 'indypress_admin_init', array( $indypress_publication_settings, 'indypress_publication_settings' ) ); 61 require_once( $indypress_path . 'classes/form_settings.php' ); 62 $indypress_form_settings = new indypress_form_settings(); 63 require_once( $indypress_path . 'classes/newform_settings.php' ); 64 $indypress_newform_settings = new indypress_newform_settings(); 68 65 69 66 // LOAD PUBLICATION ADMIN&AJAX 70 require_once( 'classes/publication_admin.class.php' );67 require_once( $indypress_path . 'classes/publication_admin.class.php' ); 71 68 $indypress_publication_admin = new indypress_publication_admin(); 72 69 add_action( 'indypress_admin_init', array( $indypress_publication_admin, 'indypress_publication_admin' ) ); 73 70 74 71 // LOAD HIDING POST 75 require_once( 'classes/hide_admin.class.php' );72 require_once( $indypress_path . 'classes/hide_admin.class.php' ); 76 73 $indypress_hide_admin = new indypress_hide_admin(); 77 74 add_action( 'indypress_admin_init', array( $indypress_hide_admin, 'indypress_hide_admin' ) ); 78 75 79 76 // LOAD SIGNALING POSTS AND COMMENTS 80 require_once( 'classes/signal_admin.class.php' );77 require_once( $indypress_path . 'classes/signal_admin.class.php' ); 81 78 $indypress_signal_admin = new indypress_signal_admin(); 82 79 add_action( 'indypress_admin_init', array( $indypress_signal_admin, 'indypress_signal_admin' ) ); 83 80 84 81 //LOAD LIVEBLOGGING SETTINGS 85 require_once('classes/live-blogging_settings.class.php' );86 $indypress_liveblogging_settings = new indypress_liveblogging_settings();87 add_action( 'indypress_admin_init', array( $indypress_liveblogging_settings, 'indypress_liveblogging_settings' ) );82 // require_once( $indypress_path . 'classes/live-blogging_settings.class.php' ); 83 // $indypress_liveblogging_settings = new indypress_liveblogging_settings(); 84 // add_action( 'indypress_admin_init', array( $indypress_liveblogging_settings, 'indypress_liveblogging_settings' ) ); 88 85 89 require_once( 'classes/visualization-settings.class.php' );86 require_once( $indypress_path . 'classes/visualization-settings.class.php' ); 90 87 $indypress_visualization_settings = new Indypress_VisualizationSettings(); 91 88 add_action( 'indypress_admin_init', array( $indypress_visualization_settings, 'Indypress_VisualizationSettings' ) ); … … 97 94 do_action( 'indypress_init' ); 98 95 99 // add_action('init', array($common, 'indypress_common_init'));100 96 // LOAD OPEN PUBLICATION 101 97 $enable_publication = get_option( 'indypress_enable_publication' ); 102 98 if( $enable_publication ) { 103 require_once( 'classes/publication.class.php');99 require_once( $indypress_path . 'classes/publication.class.php' ); 104 100 $indypress_publication = new indypress_publication(); 101 require_once( $indypress_path . 'classes/publication_form.class.php' ); 102 $indypress_publication_form = new indypress_publication_form(); 105 103 add_action( 'indypress_init', array( $indypress_publication, 'indypress_publication' ) ); 106 107 104 } 108 105 109 require_once( 'classes/next-event.php' );110 add_action( 'widgets_init', 'load_next_event_widget');111 112 // LOAD RIGHT VISUALIZATIO OF AUTHOR POST113 require_once( 'classes/publication_theme.class.php' );106 // require_once( $indypress_path . 'classes/live-blogging.class.php' ); 107 // $indypress_liveblogging = new indypress_liveblogging(); 108 109 // LOAD RIGHT VISUALIZATION OF AUTHOR POST 110 require_once( $indypress_path . 'classes/publication_theme.class.php' ); 114 111 $indypress_publication_theme = new indypress_publication_theme(); 115 112 add_action( 'indypress_init', array( $indypress_publication_theme, 'indypress_publication_theme' ) ); 116 113 117 114 // LOAD SIGNALING POSTS AND COMMENTS 118 require_once( 'classes/signal.class.php' );115 require_once( $indypress_path . 'classes/signal.class.php' ); 119 116 $indypress_signal = new indypress_signal(); 120 117 add_action( 'indypress_init', array( $indypress_signal, 'indypress_signal' ) ); 121 118 122 119 // LOAD HIDING POSTS AND COMMENTS 123 require_once( 'classes/hide.class.php' ); 120 require_once( $indypress_path . 'classes/hide_admin.class.php' ); 121 $indypress_hide_admin = new indypress_hide_admin(); 122 add_action( 'init', array( &$indypress_hide_admin, 'register_hide_post_status' ) ); 123 require_once( $indypress_path . 'classes/hide.class.php' ); 124 124 $indypress_hide = new indypress_hide(); 125 125 add_action( 'indypress_init', array( $indypress_hide, 'indypress_hide' ) ); 126 126 127 //LOAD EVENTS PAGE128 require_once('classes/event_page.class.php');129 $indypress_eventpage = new indypress_eventpage();130 add_action( 'indypress_init', array( $indypress_eventpage, 'indypress_eventpage' ) );131 127 } 132 128 129 function do_wizard() { 130 $indypress_wizard = new indypress_wizard(); 131 } 132 133 133 ?> -
indypress/trunk/readme.txt
r395150 r492697 3 3 Tags: indymedia, imc, open publishing 4 4 Requires at least: 3.0 5 Tested up to: 3. 15 Tested up to: 3.3 6 6 Stable tag: trunk 7 7 … … 13 13 ### Features 14 14 15 * Open publishing 16 * Different post types: ordinary post, events, liveblog entries (liveblogging 17 plugin required) 15 * Extremely flexible open publishing support 18 16 * Rich interface for open publishing (see below) 19 17 * Posts and comments can be hidden (instead of deleted) 20 * Optional premoderation: see its own section 18 * Posts and comments can be signaled to admin 19 * Premoderation support: see its own section 20 * UI Internationalization 21 * Event support 21 22 * Widget for displaying next events 22 * UI Internationalization23 23 24 24 #### Open Publish form features 25 25 26 26 * TinyMCE interface for rich text editing, upload and media embed 27 * Different "kinds" of categorization: by topic and by localization28 27 * Form validation: if the user is missing some fields, JS warns it immediately 29 without making it wait an entire POST30 28 * HTML5 form attributes (newest browser will autovalidate some fields) 31 29 … … 34 32 Indypress does NOT have these features: 35 33 36 * Custom taxonomy/categorization systems behind the topic/localization one37 34 * Multi language articles: this is not even in our wishlist. 35 36 == Upgrade notice == 37 38 = 2012.01 = 39 40 HUGE switch: wp 3.3, better configurability; BUT it requires everything to 41 be configured in a different way. This is not very difficult, but has to be 42 done. Also, all the "event"-related functionalities has been moved to a 43 separate plugin, which is bundled together. 44 45 == Frequently Asked Questions == 46 47 = It is to difficult to configure! How can I just test it in a easy way = 48 49 Go to plugin page and activate the "Indypress Base Configuration": this will 50 enable a simple, "standard" configuration 51 52 = Indypress Base Configuration is fine, but TOO limited; a compromise? = 53 54 On https://code.autistici.org/trac/indypress/wiki/FormPresets you'll find lot of 55 "presets": settings that has been done, tested, sometimes actually used in 56 production site. Sometime they require a bit of customization for your needs 57 58 == Screenshots == 59 60 These are just samples, but indypress is much more flexible than this! 61 62 1. Typical publish page (on twentyeleven) 63 2. Plugin status page, with summary informations 64 3. Make some forms accessible only by logged users with some permissions 38 65 39 66 == Changelog == 40 67 41 **0.5.1**: i18n fixes 68 = 2011.01 = 69 Huge rewrite 70 71 = 0.5.1 = 72 i18n fixes 42 73 43 74 boyska (2): … … 45 76 Fix: return of get_indy_publish_permalink 46 77 47 **0.5**: Introduces i18n 78 = 0.5 = 79 Introduces i18n 48 80 49 81 boyska (4):
Note: See TracChangeset
for help on using the changeset viewer.