WordPress.org

Plugin Directory

Changeset 662395


Ignore:
Timestamp:
02/02/13 05:30:49 (15 months ago)
Author:
markjaquith
Message:

deploy from git

Location:
markdown-on-save/trunk
Files:
3 added
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • markdown-on-save/trunk/markdown-on-save.php

    r660963 r662395  
    101101 
    102102    public function enqueue() { 
    103         wp_enqueue_script( 'markdown-on-save', plugin_dir_url( __FILE__ ) . '/js/markdown-on-save.dev.js', array( 'jquery' ), '20120426' ); 
     103        wp_enqueue_script( 'markdown-on-save', plugin_dir_url( __FILE__ ) . '/js/markdown-on-save.js', array( 'jquery' ), '20120426' ); 
    104104    } 
    105105 
     
    152152        $force_markdown = isset( $postarr['force_markdown'] ) && $postarr['force_markdown']; 
    153153 
    154         //* 
     154        /* 
    155155        $this->trigger_error( var_export( array( 
    156156            'ID' => $postarr['ID'], 
     
    195195    public function submitbox_actions() { 
    196196        $markdown = isset( $GLOBALS['post'] ) && isset( $GLOBALS['post']->ID ) && $this->is_markdown( $GLOBALS['post']->ID ); 
    197         echo '<style>#submitdiv h3 > span { margin-left: 38px; } #cws-markdown { position: absolute; top: 5px; left: 10px; } #cws-markdown img { vertical-align: bottom;margin-right: 10px; }</style><wrap id="cws-markdown"><a href="#" onclick="return false;"><img ' . ( !$markdown ? 'style="display:none" ' : '' ) . 'class="markdown-status markdown-on" src="' . plugin_dir_url( __FILE__ ) . '/img/32x20-solid.png" width="32" height="20" /><img ' . ( $markdown ? 'style="display:none" ' : '' ) . 'class="markdown-status markdown-off" src="' . plugin_dir_url( __FILE__ ) . '/img/32x20.png" width="32" height="20" /></a></wrap><script> 
    198         (function($){ 
    199             $( "#cws-markdown" ).detach().insertBefore( "#submitdiv h3 span" ); 
    200         }(jQuery)); 
    201         </script>'; 
     197        echo '<style>#submitdiv h3 > span { margin-left: 38px; } #cws-markdown { position: absolute; top: 5px; left: 10px; } #cws-markdown img { vertical-align: bottom;margin-right: 10px; } #cws-markdown a:active { outline: 0 !important }</style><wrap id="cws-markdown" style="display: none"><a href="#" onclick="return false;"><img ' . ( !$markdown ? 'style="display:none" ' : '' ) . 'class="markdown-status markdown-on" src="' . plugin_dir_url( __FILE__ ) . '/img/32x20-solid.png" width="32" height="20" /><img ' . ( $markdown ? 'style="display:none" ' : '' ) . 'class="markdown-status markdown-off" src="' . plugin_dir_url( __FILE__ ) . '/img/32x20.png" width="32" height="20" /></a></wrap><script>document.getElementById("cws-markdown").style.display = "none";</script>'; 
    202198        echo '<input style="display: none" type="checkbox" name="cws_using_markdown" id="cws_using_markdown" value="1" '; 
    203199        checked( $this->is_markdown( $GLOBALS['post']->ID ) ); 
Note: See TracChangeset for help on using the changeset viewer.