WordPress.org

Plugin Directory

Changeset 503441


Ignore:
Timestamp:
02/11/12 00:13:53 (6 years ago)
Author:
zelenin
Message:
 
Location:
print-me/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • print-me/trunk/print.css

    r502642 r503441  
    2626 
    2727.article-content { 
    28     white-space:pre; 
    2928    margin-left:20px; 
    3029} 
  • print-me/trunk/printme.php

    r502650 r503441  
    44Plugin URI: http://zelenin.me 
    55Description: This plugin adds a print version 
    6 Version: 0.1.2 
     6Version: 0.1.3 
    77Author: Aleksandr Zelenin 
    88Author URI: http://zelenin.me 
    99License: Free 
    1010*/ 
    11  
    12 add_action('admin_menu', 'printme_admin_menu'); 
    13 function printme_admin_menu() { 
    14     add_options_page('Print me!','Print me!','manage_options','printme','printme_settings'); 
    15 } 
    1611 
    1712if ( !$_GET["print"] == 1  ) { 
     
    2318        wp_register_script('printme', plugins_url('/printme.js', __FILE__), false, '1', true); 
    2419        wp_enqueue_script('printme'); 
    25         $content = '<p style="width:16px;margin:10px 0;" id="print-page-link"><a href="' . get_permalink() . '?print=1"><img style="width:16px;height:16px;" src="'. plugins_url('/printme.png', __FILE__) .'" title="print"></a></p>'.$content; 
     20        $link = add_query_arg( 'print', '1', get_permalink() ); 
     21        $content = '<p style="width:16px;margin:10px 0;" id="print-page-link"><a href="' . $link . '"><img style="width:16px;height:16px;" src="'. plugins_url('/printme.png', __FILE__) .'" title="print"></a></p>'.$content; 
    2622        return $content; 
    2723    } 
  • print-me/trunk/readme.txt

    r502650 r503441  
    55Requires at least: 3.0 
    66Tested up to: 3.3.1 
    7 Stable tag: 0.1.2 
     7Stable tag: 0.1.3 
    88 
    99This plugin adds a print version for any singular before content. 
     
    1515== Changelog == 
    1616 
    17 = 0.1.2 = 
    18 Fix for automatic install 
     17= 0.1.3 = 
     18Fix for automatic install. Other fixes 
    1919= 0.1 = 
    2020Initial release 
Note: See TracChangeset for help on using the changeset viewer.