WordPress.org

Plugin Directory

Changeset 555013


Ignore:
Timestamp:
06/08/12 20:19:32 (23 months ago)
Author:
TimZ
Message:

code cleanup

Location:
seekxl-snapr/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • seekxl-snapr/trunk

    • Property svn:ignore
      •  

        old new  
        11.settings 
        2  
        32.buildpath 
        4  
        53.project 
         4tmp 
  • seekxl-snapr/trunk/readme.txt

    r554398 r555013  
    11=== seekXL Snapr === 
    22Contributors: TimZ 
     3Donate link: http://www.kiva.org/invitedby/tim5156 
    34Tags: formatting, screenshot, post, thumbnails, seekXL 
    45Requires at least: 2.8 
    56Tested up to: 3.3.2 
    6 Stable tag: 2.0.5 
     7Stable tag: 2.0.6 
    78License: GPLv2 or later 
    89License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    6768== Screenshots == 
    6869 
    69 1. Tooltip 100x75 
    70 2. Tooltip 200x150 
    71 3. Tooltip 400x300 
     701. Tooltip size T (100x75) 
     712. Tooltip size S (200x150) 
     723. Tooltip size M (400x300) 
    7273 
    7374 
    7475== Changelog == 
     76 
     77= 2.0.6 = 
     78* More efficient JS generation 
     79* ongoing code cleanup 
    7580 
    7681= 2.0.5 = 
     
    110115== Upgrade Notice == 
    111116 
     117= 2.0.6 = 
     118Maintenance release. No functional changes. 
     119 
    112120= 2.0.5 = 
    113121Removed deprecated function calls. Now at least WP 2.8 is required! 
  • seekxl-snapr/trunk/seekxl-snapr.php

    r554398 r555013  
    33Plugin Name: seekXL Snapr 
    44Plugin URI: http://www.zyblog.de/wordpress-plugins/seekxl-snapr/ 
    5 Description: Versieht externen Links mit einen Screenshot Thumbnail mit Hilfe von <a href="http://snapr.seekxl.de/">seekXL Snapr</a>. 
    6 Version: 2.0.5 
     5Description: Versieht externen Links mit einen Screenshot-Thumbnail von SeekXL Snapr. 
     6Version: 2.0.6 
    77Author: Tim Zylinski 
    88Author URI: http://www.zyblog.de 
     
    5858        function addHeaderCode() { 
    5959            $devOptions = get_option($this->adminOptionsName); 
    60  
    61             echo '<link type="text/css" rel="stylesheet" href="' . get_bloginfo('wpurl') . '/wp-content/plugins/seekxl-snapr/css/bubble.css" />' . "\n"; 
     60             
     61            // CSS 
     62            echo '<link type="text/css" rel="stylesheet" href="' .plugins_url( 'css/bubble.css' , __FILE__ ).'" />' . "\n"; 
     63            // JS 
     64            echo "<script type='text/javascript'>\n"; 
    6265            if($devOptions['use_logo_key'] == "true") { 
    63                 echo "<script type='text/javascript'>var seekXLLogoKey = \"". $devOptions['logo_key'] . "\";</script>"; 
     66                echo "var seekXLLogoKey = \"". $devOptions['logo_key'] . "\";\n"; 
    6467            } 
    6568            if ($devOptions['show_all'] == 'true') { 
    66                 echo "<script type='text/javascript'>var seekXLThumbnailSize = \"". $devOptions['thumbnail_size'] . "\";</script>"; 
    67                 echo "<script type='text/javascript'>var seekXLShowAll = \"". $devOptions['show_all'] . "\";</script>"; 
     69                echo "var seekXLThumbnailSize = \"". $devOptions['thumbnail_size'] . "\";\n"; 
     70                echo "var seekXLShowAll = \"". $devOptions['show_all'] . "\";\n"; 
    6871            } else { 
    69                 echo "<script type='text/javascript'>var seekXLShowAll = \"". $devOptions['show_all'] . "\";</script>"; 
     72                echo "var seekXLShowAll = \"". $devOptions['show_all'] . "\";\n"; 
    7073 
    7174            } 
    72             if (function_exists('wp_enqueue_script')) { 
    73                 wp_enqueue_script('seekxl_snapr', get_bloginfo('wpurl') . '/wp-content/plugins/seekxl-snapr/js/bubble-min.js'); 
    74             } 
     75            echo "</script>\n"; 
     76             
     77            wp_enqueue_script('seekxl_snapr', plugins_url( 'js/bubble-min.js' , __FILE__ )); 
    7578        } 
    7679 
     
    9396        function printAdminPage() { 
    9497            $devOptions = $this->getAdminOptions(); 
     98            $updated = false; 
    9599 
    96100            if (isset($_POST['update_seekXLSnaprSettings'])) { 
     
    198202            return; 
    199203        } 
    200         if (function_exists('add_options_page')) { 
    201             add_options_page('seekXL Snapr Plugin', 'seekXL Snapr', 'manage_options', basename(__FILE__), array(&$o_SeekXLSnapr, 'printAdminPage')); 
    202         } 
     204        add_options_page('seekXL Snapr Plugin', 'seekXL Snapr', 'manage_options', basename(__FILE__), array(&$o_SeekXLSnapr, 'printAdminPage')); 
    203205    } 
    204206} 
Note: See TracChangeset for help on using the changeset viewer.