WordPress.org

Plugin Directory

Changeset 906352


Ignore:
Timestamp:
05/01/14 15:53:22 (4 years ago)
Author:
stratoponjak
Message:

Version 1.2

Location:
content-mirror
Files:
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • content-mirror/trunk/Readme.txt

    r527591 r906352  
    44Tags: content, mirror, copy, shortcode, page, post, editor, admin, multisite 
    55Requires at least: 3.0 
    6 Tested up to: 3.3.1 
    7 Stable tag: 1.1 
     6Tested up to: 3.9 
     7Stable tag: 1.2 
    88 
    99You can display content from one page or post on another by mirror content. This also works between sites in a multisite configuration. 
     
    3535== Changelog == 
    3636 
     37= 1.2 = 
     38* Bugfixes, for working in Wordpress v.3.9 
     39 
    3740= 1.1 = 
    3841* Removed php-tags in the .js-files that caused the plugin not to work properly in some web browsers 
  • content-mirror/trunk/content-mirror-editor.js

    r527591 r906352  
    125125                title : 'Edit Content Mirror' 
    126126            }); 
    127  
    128             tinymce.dom.Event.add(editButton, 'mousedown', function(e) { 
     127             
     128            jQuery(editButton).bind('click', function() { 
    129129                var ed = tinyMCE.activeEditor; 
    130130                ed.windowManager.bookmark = ed.selection.getBookmark('simple'); 
     
    139139                title : 'Delete Content Mirror' 
    140140            }); 
    141  
    142             tinymce.dom.Event.add(dellButton, 'mousedown', function(e) { 
     141             
     142            jQuery(dellButton).bind('click', function() { 
    143143                var ed = tinyMCE.activeEditor, el = ed.selection.getNode(); 
    144144 
  • content-mirror/trunk/content-mirror.css

    r487631 r906352  
    1010                                              border: 1px dashed #888888; height: 250px; width: 99%; } 
    1111                                               
    12 #content_mirror_edit                            { font-family: sans-serif; } 
     12#content_mirror_edit                            { font-family: "Open Sans",sans-serif; position: relative; } 
    1313#content_mirror_edit h3.mirror-title            { color: #5A5A5A; font-family: Georgia,"Times New Roman",Times,serif; font-weight: normal; font-size: 22px; margin: 7px 7px 15px 7px; } 
    1414#content_mirror_edit .selecters             { height: 110px; } 
    1515#content_mirror_edit .row                   { } 
    16 #content_mirror_edit label                  { float: left; width: 150px; font-size: 13px; font-weight: bold; margin: 7px; } 
     16#content_mirror_edit label                  { position: absolute; width: 150px; font-size: 13px; font-weight: bold; margin: 7px; } 
    1717#content_mirror_edit label.simple               { float: none; font-weight: normal; font-size: 12px; position: relative; top: 5px;  } 
    18 #content_mirror_edit select                 { float: left; width: 250px; border: 1px solid #000; margin: 7px; height: 20px; } 
     18#content_mirror_edit select                 { float: right; width: 250px; border: 1px solid #000; margin: 7px; height: 20px; } 
    1919#content_mirror_edit .preview                   { border: 1px solid #000; background-color: #fdfdfd; margin: 7px; width: 404px; height: 190px; overflow: scroll; font-size: 0.8em; padding: 5px;   } 
    2020#content_mirror_edit .preview_error         { padding: 0px; margin: 0px; color: #d00; font-family: Georgia,"Times New Roman",Times,serif; } 
  • content-mirror/trunk/content-mirror.php

    r527851 r906352  
    105105         
    106106        public function tinyplugin_register ( $plugin_array ) { 
    107             $plugin_array["content_mirror"] = WP_PLUGIN_URL . "/" . dirname( plugin_basename(__FILE__) ) . "/content-mirror-editor.js"; 
     107            //$plugin_array["content_mirror"] = WP_PLUGIN_URL . "/" . dirname( plugin_basename(__FILE__) ) . "/content-mirror-editor.js"; 
     108            $plugin_array["content_mirror"] = WP_PLUGIN_URL . "/content-mirror/content-mirror-editor.js"; 
    108109            return $plugin_array;        
    109110        } 
     
    115116         
    116117        public function tinyplugin_css( $wp ) { 
    117             $wp .= ',' . WP_PLUGIN_URL . "/" . dirname( plugin_basename(__FILE__) ) . "/content-mirror.css" ; 
     118            //$wp .= ',' . WP_PLUGIN_URL . "/" . dirname( plugin_basename(__FILE__) ) . "/content-mirror.css" ; 
     119            $wp .= ',' . WP_PLUGIN_URL . "/content-mirror/content-mirror.css" ; 
    118120            return $wp; 
    119121        } 
     
    158160            } 
    159161 
    160             $post_item = wp_get_single_post( $r['item'] ); 
     162            $post_item = get_post( $r['item'] ); 
    161163            $post_content = ''; 
    162164 
     
    256258            wp_enqueue_script ( 'jquery' ); 
    257259            wp_enqueue_script ( 'tiny-mce-popup', site_url() . '/' . WPINC . '/js/tinymce/tiny_mce_popup.js' ); 
    258             wp_enqueue_script ( 'content-mirror', WP_PLUGIN_URL . "/" . dirname( plugin_basename(__FILE__) ) . "/content-mirror-options.js" );?> 
     260            //wp_enqueue_script ( 'content-mirror', WP_PLUGIN_URL . "/" . dirname( plugin_basename(__FILE__) ) . "/content-mirror-options.js" ); 
     261            wp_enqueue_script ( 'content-mirror', WP_PLUGIN_URL . "/content-mirror/content-mirror-options.js" );?> 
    259262         
    260263            <html><head> 
    261                 <link rel="stylesheet" type="text/css" href="<?php echo '/wp-content/plugins/' . str_replace( '.php', '.css', plugin_basename(__FILE__)) ?>" /><?php 
     264                <link rel="stylesheet" type="text/css" href="<?php echo '/wp-content/plugins/' . str_replace( '.php', '.css', plugin_basename(__FILE__)) ?>" /> 
     265                <link rel="stylesheet" type="text/css" href="<?php echo WP_PLUGIN_URL . "/content-mirror/content-mirror.css" ?>" /><?php 
    262266                do_action('wp_head');?> 
    263267            </head> 
     
    369373                        $current_blog_id = $wpdb->blogid; 
    370374                        $wpdb->set_blog_id( $site ); 
    371                         $post_item = wp_get_single_post( $item ); 
     375                        $post_item = get_post( $item ); 
    372376                        if ( $post_item ) { 
    373377                            echo $post_item->post_content == '' ? '<h1 class="preview_error">Post is empty</h1>' : wpautop ( $post_item->post_content ); 
Note: See TracChangeset for help on using the changeset viewer.