Plugin Directory

Changeset 1575928


Ignore:
Timestamp:
01/16/2017 07:34:01 PM (9 years ago)
Author:
streamcomposer
Message:

Fixed issue with scripts not being loaded

Location:
streamcomposer-video/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • streamcomposer-video/trunk/readme.txt

    r1575774 r1575928  
    1616https://www.streamcomposer.com to read more.
    1717
    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.
     18In 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>
    2222
    2323Useful 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  
    33 * Plugin Name: StreamComposer Video
    44 * 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
    77 * Author: StreamComposer
    88 * Author URI: https://streamcomposer.com
     
    4040    function __construct()
    4141    {
     42
    4243        add_action('admin_menu', array($this, 'admin_menu'));
    4344        add_action('admin_notices', array($this, 'acf_admin_notice'));
     
    4950
    5051        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'));
    5253    }
     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
    5364
    5465    function generate_streamcomposer_code($atts, $content = null)
     
    92103        </div>
    93104        <?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__));
    103105    }
    104106
Note: See TracChangeset for help on using the changeset viewer.