Plugin Directory

Changeset 757309


Ignore:
Timestamp:
08/16/2013 08:07:05 PM (13 years ago)
Author:
sebat
Message:

compatible with Wordpress > 3.3

Location:
show-qr-url/trunk
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • show-qr-url/trunk/readme.txt

    r757099 r757309  
    22Contributors: sebat
    33Tags: widget, sidebar, QR-Code, mobile, piwik, Google Analytics
    4 Requires at least: 2.0
     4Requires at least: 3.3
    55Tested up to: 3.6
    66Stable tag: 1.4.1
    77Author: Sebastian Thiele
    88Author URI: htt://www.sebastian-thiele.net
     9License: GPLv2
    910
    10 Diese Plugin baut ein Sidebar-Widget ein, in dem ein in der groessee anpassbarer QR Code angezeigt wird, der auf die aktuelle URL verweist.
     11Sidebar-Widget zum generieren von QR-Codes die auf die aktuelle Seite verweisen.
    1112
    1213== Description ==
  • show-qr-url/trunk/showQRURL.php

    r229786 r757309  
    22/*
    33Plugin Name: Show QR URL
    4 Plugin URI: http://sebastian.thiele.me/projekte/wordpress-plugin-show-qr-url
    54Description: This Plugin shows a QR-Code with the encoded URL of the corent Page. Useing Google Shart API
    65Author: Sebastian Thiele
    7 Author URI: htt://sebastian.thiele.me
    8 Version: 1.4
     6Author URI: htt://www.sebastian-thiele.net
     7Version: 1.4.1
    98*/
     9
     10
     11// Load JS & CSS for Admin
     12function load_admin_js($hook) {
     13    if ($hook == 'settings_page_show-qr-url') {
     14        wp_enqueue_script(
     15            'showqrurl_admin_js',
     16            '/wp-content/plugins/show-qr-url/js/admin.js',
     17            array( 'jquery' )
     18        );
     19
     20        wp_enqueue_style(
     21            'showqrurl_admin_css',
     22            '/wp-content/plugins/show-qr-url/css/admin.css'
     23        );
     24
     25    }
     26}
     27add_action( 'admin_enqueue_scripts', 'load_admin_js' );
     28
    1029
    1130include("showQRURLadmin.php");
     
    172191
    173192$plugindir = basename(dirname(__FILE__));
    174 wp_enqueue_style("showqrurl_admin_css","/wp-content/plugins/show-qr-url/css/admin.css", false, 'last', 'all');
     193
    175194
    176195
     
    187206add_action("plugins_loaded", "showQRURL_init");
    188207add_action("admin_menu", "showQRURL_admin");
    189 add_action("admin_head", "shoqQRURL_admin_js");
    190 
    191 
    192208
    193209?>
Note: See TracChangeset for help on using the changeset viewer.