<?php
class WPDDL_HelpVideos extends Toolset_HelpVideosFactoryAbstract{

    protected function define_toolset_videos(){
        return  array(
            'layout_template' =>  array(
                'name' => 'layouts_template',
                'url' => 'http://d7j863fr5jhrr.cloudfront.net/Toolset-Layouts-Templates.mp4',
                'screens' => array('toolset_page_dd_layouts_edit'),
                'element' => '.toolset-video-box-wrap',
                'title' => __('Render Views Content Templates with Layouts', 'ddl-layouts'),
                'width' => '820px',
                'height' => '470px'
            ),
            'archive_layout' =>  array(
                'name' => 'layouts_archive',
                'url' => 'http://d7j863fr5jhrr.cloudfront.net/Toolset-Layouts-Archives.mp4',
                'screens' => array('toolset_page_dd_layouts_edit'),
                'element' => '.toolset-video-box-wrap',
                'title' => __('Render Views WordPress Archives with Layouts', 'ddl-layouts'),
                'width' => '820px',
                'height' => '470px'
            ),
            'list_of_contents' =>  array(
                'name' => 'list_of_contents',
                'url' => 'https://d7j863fr5jhrr.cloudfront.net/Adding-Lists-Of-Contents.mp4',
                'screens' => array('toolset_page_dd_layouts_edit'),
                'element' => '.toolset-video-box-wrap',
                'title' => __('Adding lists of contents to your site using Toolset', 'ddl-layouts'),
                'width' => '820px',
                'height' => '470px'
            ),
            'layouts_and_front_end_forms' =>  array(
                'name' => 'layouts_and_front_end_forms',
                'url' => 'https://d7j863fr5jhrr.cloudfront.net/Adding-Front-end-Forms.mp4',
                'screens' => array('toolset_page_dd_layouts_edit'),
                'element' => '.toolset-video-box-wrap',
                'title' => __('Adding front-end forms to layouts', 'ddl-layouts'),
                'width' => '820px',
                'height' => '470px'
            ),
            'content_layout' =>  array(
	            'name' => 'content_layout',
	            'url' => $this->get_content_layout_video_url(),
	            'screens' => array('toolset_page_dd_layouts_edit'),
	            'element' => '.toolset-video-box-private-wrap',
	            'title' => __('Design single pages and posts using Layouts plugin', 'ddl-layouts'),
	            'width' => '820px',
	            'height' => '470px'
            ),
        );
    }
    private function get_content_layout_video_url(){

	    if( apply_filters( 'ddl-is_integrated_theme', false ) ){
		    return 'https://d7j863fr5jhrr.cloudfront.net/Layouts-Integrated.mp4';
	    } else {
		    return 'https://d7j863fr5jhrr.cloudfront.net/Layouts-Non-Integrated.mp4';
	    }

    }
}
