Changeset 1483841
- Timestamp:
- 08/26/2016 09:10:46 AM (10 years ago)
- Location:
- blrt-wp-embed
- Files:
-
- 35 added
- 2 edited
-
tags/1.1.0 (added)
-
tags/1.1.0/blrt-wp-embed.php (added)
-
tags/1.1.0/css (added)
-
tags/1.1.0/css/blrt-wp-embed-style.css (added)
-
tags/1.1.0/images (added)
-
tags/1.1.0/images/blrt_20x20.png (added)
-
tags/1.1.0/images/blrt_focus_20x20.png (added)
-
tags/1.1.0/images/blrt_white_20x20.png (added)
-
tags/1.1.0/includes (added)
-
tags/1.1.0/includes/blrt-wp-gallery-add.php (added)
-
tags/1.1.0/includes/blrt-wp-gallery-all.php (added)
-
tags/1.1.0/includes/blrt-wp-gallery-settings.php (added)
-
tags/1.1.0/js (added)
-
tags/1.1.0/js/blrt-wp-embed-script.js (added)
-
tags/1.1.0/readme.txt (added)
-
tags/1.1.0/shortcode (added)
-
tags/1.1.0/shortcode/html (added)
-
tags/1.1.0/shortcode/html/gallery.html (added)
-
tags/1.1.0/shortcode/shortcode.php (added)
-
trunk/blrt-wp-embed.php (modified) (5 diffs)
-
trunk/css (added)
-
trunk/css/blrt-wp-embed-style.css (added)
-
trunk/images (added)
-
trunk/images/blrt_20x20.png (added)
-
trunk/images/blrt_focus_20x20.png (added)
-
trunk/images/blrt_white_20x20.png (added)
-
trunk/includes (added)
-
trunk/includes/blrt-wp-gallery-add.php (added)
-
trunk/includes/blrt-wp-gallery-all.php (added)
-
trunk/includes/blrt-wp-gallery-settings.php (added)
-
trunk/js (added)
-
trunk/js/blrt-wp-embed-script.js (added)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/shortcode (added)
-
trunk/shortcode/html (added)
-
trunk/shortcode/html/gallery.html (added)
-
trunk/shortcode/shortcode.php (added)
Legend:
- Unmodified
- Added
- Removed
-
blrt-wp-embed/trunk/blrt-wp-embed.php
r1220553 r1483841 3 3 * Plugin Name: Blrt WP Embed 4 4 * Plugin URI: http://www.blrt.com/wordpress-plugin 5 * Description: Enable embedding Blrts in your pages and posts by simply pasting in the URL of a public or private Blrt - just like YouTube videos are embedded utilising oEmbed.6 * Version: 1. 0.15 * Description: Enable Blrts and Blrt Galleries in your pages and posts - just like YouTube videos. 6 * Version: 1.1.0 7 7 * Author: Blrt 8 8 * Author URI: http://www.blrt.com … … 10 10 */ 11 11 12 /* Copyright 201 5Blrt Operations Pty Ltd (email : support@blrt.com)12 /* Copyright 2016 Blrt Operations Pty Ltd (email : support@blrt.com) 13 13 14 14 This program is free software; you can redistribute it and/or modify … … 27 27 28 28 defined( 'ABSPATH' ) or die( 'No direct access to this file' ); 29 global $jal_db_version; 30 $jal_db_version = '1.0';//add version number for the table in case we need to update the structure of table later 29 31 30 32 class BlrtWPEmbed { 31 33 public function __construct() { 32 34 add_action( 'init', array( $this, 'init' ) ); 35 add_action( 'admin_menu', array( $this, 'wpa_add_menu' )); 36 add_action( 'admin_enqueue_scripts', array( $this, 'wpa_styles') ); 37 register_activation_hook( __FILE__, array( $this, 'wpa_install' ) ); 38 register_deactivation_hook( __FILE__, array( $this, 'wpa_uninstall' ) ); 33 39 } 34 40 35 41 public function init() { 36 42 $this->add_oembed_providers(); 43 include dirname( __FILE__ ).'/shortcode/shortcode.php'; 44 } 45 46 function wpa_add_menu() { 47 48 add_menu_page( 'Blrt gallery', 'Blrt Gallery' , 'nosuchcapability', 'blrt-wp-gallery', null, '' ,'5.5'); 49 50 add_submenu_page( 'blrt-wp-gallery', 'Blrt galllery', 'All Galleries', 'manage_options', 'blrt-wp-gallery-all', array( 51 __CLASS__, 52 'show_all' 53 )); 54 add_submenu_page( 'blrt-wp-gallery', 'Blrt gallery', 'Add New', 'manage_options', 'blrt-wp-gallery-add', array( 55 __CLASS__, 56 'add_new' 57 )); 58 // add_submenu_page( 'blrt-wp-gallery', 'Blrt gallery', 'Settings', 'manage_options', 'blrt-wp-gallery-settings', array( 59 // __CLASS__, 60 // 'setting' 61 // )); 62 63 } 64 65 function wpa_styles(){ 66 wp_enqueue_script('jquery'); 67 wp_enqueue_style( 'blrt-wp-embed', plugins_url('css/blrt-wp-embed-style.css', __FILE__)); 68 wp_enqueue_script( 'blrt-wp-embed', plugins_url('js/blrt-wp-embed-script.js', __FILE__)); 69 70 } 71 72 function show_all(){ 73 include dirname( __FILE__ ).'/includes/blrt-wp-gallery-all.php'; 74 } 75 76 function add_new(){ 77 include dirname( __FILE__ ).'/includes/blrt-wp-gallery-add.php'; 78 } 79 80 function setting(){ 81 include dirname( __FILE__ ).'/includes/blrt-wp-gallery-settings.php'; 37 82 } 38 83 … … 57 102 ) ); 58 103 } 104 105 function wpa_install () {//intialise the table blrtwpembed 106 global $wpdb; 107 global $jal_db_version; 108 109 $table_name = $wpdb->prefix . "blrtwpembed"; 110 111 $charset_collate = $wpdb->get_charset_collate(); 112 113 $sql = "CREATE TABLE $table_name ( 114 id mediumint(9) NOT NULL AUTO_INCREMENT, 115 time datetime DEFAULT '0000-00-00 00:00:00' NOT NULL, 116 name tinytext NOT NULL, 117 title tinytext, 118 url text DEFAULT '' NOT NULL, 119 UNIQUE KEY id (id) 120 ) $charset_collate;"; 121 122 require_once( ABSPATH . 'wp-admin/includes/upgrade.php' ); 123 dbDelta( $sql ); 124 add_option( 'jal_db_version', $jal_db_version ); 125 } 126 127 function wpa_uninstall(){ 128 129 } 130 59 131 60 132 private function get_convertible_short_servers() { … … 67 139 return apply_filters( 'blrt_wp_embed_oembed_server', 'e.blrt.com' ); 68 140 } 141 142 69 143 } 70 144 -
blrt-wp-embed/trunk/readme.txt
r1220553 r1483841 3 3 Tags: Blrt,Embed,oembed 4 4 Requires at least: 2.9 5 Stable tag: 1. 0.16 Tested up to: 4. 25 Stable tag: 1.1.0 6 Tested up to: 4.6 7 7 License: GPL2 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 11 11 12 12 == Description == 13 Enable embedding Blrts in your WordPress pages and posts by simply pasting in the URL of a public or private Blrt - just like YouTube videos are embedded utilising oEmbed. 13 <ul> 14 <li>Enable embedding Blrts in your WordPress pages and posts by simply pasting in the URL of a public or private Blrt - just like YouTube videos are embedded utilising oEmbed. 15 <li>Create Blrt Galleries with multiple Blrts and embed them in any web page. 16 </ul> 14 17 15 Check out all things Blrt at https://www.blrt.com 16 For support visit http://help.blrt.com 17 Download Blrt for iOS at http://www.blrt.com/ios 18 Download Blrt for Android at http://www.blrt.com/android 18 All things Blrt 19 <ul> 20 <li>Learn all about Blrt at https://www.blrt.com 21 <li>For support visit http://help.blrt.com 22 <li>Download Blrt for iOS at http://www.blrt.com/ios 23 <li>Download Blrt for Android at http://www.blrt.com/android 24 </ul> 19 25 20 26 == Frequently Asked Questions ==
Note: See TracChangeset
for help on using the changeset viewer.