Changeset 1575928
- Timestamp:
- 01/16/2017 07:34:01 PM (9 years ago)
- Location:
- streamcomposer-video/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (1 diff)
-
streamcomposer.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
streamcomposer-video/trunk/readme.txt
r1575774 r1575928 16 16 https://www.streamcomposer.com to read more. 17 17 18 In short, this plugin will make it possible for you to: 19 * Upload videos directly to StreamComposer where they will be encoded once upload is done 20 * Monitor all video encoding processes directly from the WordPress administration interface 21 * Browse videos in StreamComposer directly from WordPress backend. 18 In short, this plugin will make it possible for you to:<br> 19 * Upload videos directly to StreamComposer where they will be encoded once upload is done<br> 20 * Monitor all video encoding processes directly from the WordPress administration interface<br> 21 * Browse videos in StreamComposer directly from WordPress backend.<br> 22 22 23 23 Useful for all people that want videos on their website, but do NOT want users to be distracted from videos after the -
streamcomposer-video/trunk/streamcomposer.php
r1575778 r1575928 3 3 * Plugin Name: StreamComposer Video 4 4 * Plugin URI: https://www.streamcomposer.com 5 * Description: Encode videos for web and mobile devices directly from WordPress simply by uploading a video in the administration interface of WordPress. 6 * Version: 1.0 5 * Description: Encode videos for web and mobile devices directly from WordPress simply by uploading a video in the administration interface of WordPress.<br>When encoded the video can be directly embedded using our userfriendly editor plugin 6 * Version: 1.0.1 7 7 * Author: StreamComposer 8 8 * Author URI: https://streamcomposer.com … … 40 40 function __construct() 41 41 { 42 42 43 add_action('admin_menu', array($this, 'admin_menu')); 43 44 add_action('admin_notices', array($this, 'acf_admin_notice')); … … 49 50 50 51 add_shortcode('streamcomposer-code', array($this, 'generate_streamcomposer_code')); 51 add_action(' wp_enqueue_scripts', array($this, 'encueue_scripts'));52 add_action('admin_enqueue_scripts', array($this, 'enqueue_scripts')); 52 53 } 54 55 function enqueue_scripts() 56 { 57 wp_enqueue_script('jquery'); 58 wp_enqueue_style('streamcomposer-style', plugins_url('/css/main.css', __FILE__)); 59 wp_enqueue_script('resumable', plugins_url('/js/resumable.js', __FILE__), array('jquery'), '1.0', true); 60 wp_enqueue_script('streamcomposer-embed', plugins_url('/js/streamcomposer_player.js', __FILE__), array('jquery')); 61 wp_enqueue_style('streamcomposer_main_css', plugins_url('/css/main.css', __FILE__)); 62 } 63 53 64 54 65 function generate_streamcomposer_code($atts, $content = null) … … 92 103 </div> 93 104 <?php 94 }95 96 function encueue_scripts()97 {98 wp_enqueue_script('jquery');99 wp_enqueue_style('streamcomposer-style', plugins_url('/css/main.css', __FILE__));100 wp_enqueue_script('resumable', plugins_url('/js/resumable.js', __FILE__), array('jquery'), '1.0', true);101 wp_enqueue_script('streamcomposer-embed', plugins_url('/js/streamcomposer_player.js', __FILE__), array('jquery'));102 wp_enqueue_style('streamcomposer_main_css', plugins_url('/css/main.css', __FILE__));103 105 } 104 106
Note: See TracChangeset
for help on using the changeset viewer.