Plugin Directory

Changeset 2477374


Ignore:
Timestamp:
02/18/2021 10:00:33 PM (5 years ago)
Author:
mpraetzel
Message:

adding version 5.2.2

Location:
automatic-youtube-video-posts/trunk
Files:
104 added
12 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • automatic-youtube-video-posts/trunk/conf.php

    r2448152 r2477374  
    77//          This file configures the Wordpress Plugin - Automatic Video Posts Plugin
    88//      Copyright:
    9 //          Copyright (c) 2016 Ternstyle LLC.
     9//          Copyright (c) 2021 Ternstyle LLC.
     10//      License:
     11//          This software is licensed under the terms of the End User License Agreement (EULA)
     12//          provided with this software. In the event the EULA is not present with this software
     13//          or you have not read it, please visit:
     14//          http://www.ternstyle.us/automatic-video-posts-plugin-for-wordpress/license.html
    1015//
    1116////////////////////////////////////////////////////////////////////////////////////////////////////
     
    1318/****************************************Commence Script*******************************************/
    1419
    15 if ( ! defined( 'ABSPATH' ) ) exit;
    16 
    17 //                                *******************************                                 //
    18 //________________________________** INITIALIZE VARIABLES      **_________________________________//
    19 //////////////////////////////////**                           **///////////////////////////////////
    20 //                                **                           **                                 //
    21 //                                *******************************                                 //
    22 
    23 define('AYVPP_URL',plugin_dir_url(__FILE__));
     20use ternpress\ternWP;
     21use ternstyle\tern_select;
     22use ternstyle\tern_dir as tern_dir;
     23use ternpress\tern_option as tern_option;
     24
     25/*------------------------------------------------------------------------------------------------
     26    For good measure
     27------------------------------------------------------------------------------------------------*/
     28
     29defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
     30
     31/*------------------------------------------------------------------------------------------------
     32    Global Variables
     33------------------------------------------------------------------------------------------------*/
     34
     35define('AYVPP_URL',plugin_dir_url('').'/automatic-video-posts');
     36define('AYVPP_ADMIN_URL',AYVPP_URL.'/admin');
     37define('AYVPP_PUBLIC_URL',AYVPP_URL.'/public');
    2438define('AYVPP_ROOT',get_bloginfo('wpurl'));
    2539define('AYVPP_DIR',dirname(__FILE__));
    26 define('AYVPP_SSLCRT',AYVPP_DIR.'/tools/ESCA.crt');
    27 $ayvpp_version = array(5,1,7);
    28 
    29 $WP_ayvpp_options = array(
     40define('AYVPP_CLASS_DIR',dirname(__FILE__).'/class');
     41define('AYVPP_COMMON_DIR',dirname(__FILE__).'/common');
     42define('AYVPP_ADMIN_DIR',dirname(__FILE__).'/admin');
     43define('AYVPP_PUBLIC_DIR',dirname(__FILE__).'/public');
     44define('AYVPP_VERSION','5.2.2');
     45$ayvpp_version = [5,2,2];
     46
     47$WP_ayvpp_options = [
    3048    'updater_checked'           =>  0,
    31     'key'                       =>  '',
    32     'channels'                  =>  array(),
    33     'cron'                      =>  6,
     49    'key'                   =>  '',
     50    'channels'              =>  array(),
     51    'cron'                  =>  6,
    3452    'last_import'               =>  '',
    3553    'content_display_meta'      =>  1,
    3654    'content_truncate'          =>  1,
    37     'content_truncate_after'    =>  20,
     55    'content_truncate_after'        =>  20,
    3856    'content_top'               =>  0,
     57
    3958    'video_responsive'          =>  1,
    40     'video_responsive_ratio'    =>  '16:9',
     59    'video_responsive_ratio'        =>  '16:9',
    4160    'video_dims'                =>  array(506,304),
    4261    'video_related_show'        =>  0,
    4362    'video_post_list_show'      =>  0,
     63
     64    'video_autoplay'            =>  0,
     65    'video_cc_lang'         =>  'en',
     66    'video_cc_load'         =>  0,
     67    'video_color'               =>  0,
     68    'video_controls'            =>  1,
     69    //'video_disablekb'         =>  0,
     70    'video_fs'              =>  1,
     71    'video_lang'                =>  'en',
     72    //'video_iv_load'           =>  1,
     73    'video_loop'                =>  0,
     74    //'video_modestbranding'        =>  0,
     75    'video_rel'             =>  0,
     76
    4477    'thumbs_show'               =>  1,
    45     'verified'                  =>  false,
     78    'verified'              =>  false,
    4679    'serial'                    =>  '',
    4780    'admin_import'              =>  1,
     
    4982    'import_date'               =>  0,
    5083    'cainfo'                    =>  0,
    51 );
    52 
    53 //                                *******************************                                 //
    54 //________________________________** FILE CLASS                **_________________________________//
    55 //////////////////////////////////**                           **///////////////////////////////////
    56 //                                **                           **                                 //
    57 //                                *******************************                                 //
    58 require_once(dirname(__FILE__).'/class/file.php');
    59 $getFILE = new fileClass;
    60 //                                *******************************                                 //
    61 //________________________________** LOAD CLASSES              **_________________________________//
    62 //////////////////////////////////**                           **///////////////////////////////////
    63 //                                **                           **                                 //
    64 //                                *******************************                                 //
    65 $l = $getFILE->directoryList(array(
    66     'dir'   =>  dirname(__FILE__).'/class/',
    67     'rec'   =>  true,
    68     'flat'  =>  true,
    69     'depth' =>  1
    70 ));
    71 if(is_array($l)) {
    72     foreach($l as $k => $v) {
    73         require_once($v);
    74     }
    75 }
    76 //                                *******************************                                 //
    77 //________________________________** LOAD CORE FILES           **_________________________________//
    78 //////////////////////////////////**                           **///////////////////////////////////
    79 //                                **                           **                                 //
    80 //                                *******************************                                 //
    81 
    82 $l = $getFILE->directoryList(array(
    83     'dir'   =>  dirname(__FILE__).'/common/',
    84     'rec'   =>  true,
    85     'flat'  =>  true,
    86     'depth' =>  1,
    87     'ext'   =>  array('php')
    88 ));
    89 foreach((array)$l as $k => $v) {
    90     require_once($v);
    91 }
    92 
     84];
     85
     86$WP_ayvpp_lang_codes = [
     87    'ab' => 'Abkhazian',
     88    'aa' => 'Afar',
     89    'af' => 'Afrikaans',
     90    'ak' => 'Akan',
     91    'sq' => 'Albanian',
     92    'am' => 'Amharic',
     93    'ar' => 'Arabic',
     94    'an' => 'Aragonese',
     95    'hy' => 'Armenian',
     96    'as' => 'Assamese',
     97    'av' => 'Avaric',
     98    'ae' => 'Avestan',
     99    'ay' => 'Aymara',
     100    'az' => 'Azerbaijani',
     101    'bm' => 'Bambara',
     102    'ba' => 'Bashkir',
     103    'eu' => 'Basque',
     104    'be' => 'Belarusian',
     105    'bn' => 'Bengali',
     106    'bh' => 'Bihari languages',
     107    'bi' => 'Bislama',
     108    'bs' => 'Bosnian',
     109    'br' => 'Breton',
     110    'bg' => 'Bulgarian',
     111    'my' => 'Burmese',
     112    'ca' => 'Catalan, Valencian',
     113    'km' => 'Central Khmer',
     114    'ch' => 'Chamorro',
     115    'ce' => 'Chechen',
     116    'ny' => 'Chichewa, Chewa, Nyanja',
     117    'zh' => 'Chinese',
     118    'cu' => 'Church Slavonic, Old Bulgarian, Old Church Slavonic',
     119    'cv' => 'Chuvash',
     120    'kw' => 'Cornish',
     121    'co' => 'Corsican',
     122    'cr' => 'Cree',
     123    'hr' => 'Croatian',
     124    'cs' => 'Czech',
     125    'da' => 'Danish',
     126    'dv' => 'Divehi, Dhivehi, Maldivian',
     127    'nl' => 'Dutch, Flemish',
     128    'dz' => 'Dzongkha',
     129    'en' => 'English',
     130    'eo' => 'Esperanto',
     131    'et' => 'Estonian',
     132    'ee' => 'Ewe',
     133    'fo' => 'Faroese',
     134    'fj' => 'Fijian',
     135    'fi' => 'Finnish',
     136    'fr' => 'French',
     137    'ff' => 'Fulah',
     138    'gd' => 'Gaelic, Scottish Gaelic',
     139    'gl' => 'Galician',
     140    'lg' => 'Ganda',
     141    'ka' => 'Georgian',
     142    'de' => 'German',
     143    'ki' => 'Gikuyu, Kikuyu',
     144    'el' => 'Greek (Modern)',
     145    'kl' => 'Greenlandic, Kalaallisut',
     146    'gn' => 'Guarani',
     147    'gu' => 'Gujarati',
     148    'ht' => 'Haitian, Haitian Creole',
     149    'ha' => 'Hausa',
     150    'he' => 'Hebrew',
     151    'hz' => 'Herero',
     152    'hi' => 'Hindi',
     153    'ho' => 'Hiri Motu',
     154    'hu' => 'Hungarian',
     155    'is' => 'Icelandic',
     156    'io' => 'Ido',
     157    'ig' => 'Igbo',
     158    'id' => 'Indonesian',
     159    'ia' => 'Interlingua (International Auxiliary Language Association)',
     160    'ie' => 'Interlingue',
     161    'iu' => 'Inuktitut',
     162    'ik' => 'Inupiaq',
     163    'ga' => 'Irish',
     164    'it' => 'Italian',
     165    'ja' => 'Japanese',
     166    'jv' => 'Javanese',
     167    'kn' => 'Kannada',
     168    'kr' => 'Kanuri',
     169    'ks' => 'Kashmiri',
     170    'kk' => 'Kazakh',
     171    'rw' => 'Kinyarwanda',
     172    'kv' => 'Komi',
     173    'kg' => 'Kongo',
     174    'ko' => 'Korean',
     175    'kj' => 'Kwanyama, Kuanyama',
     176    'ku' => 'Kurdish',
     177    'ky' => 'Kyrgyz',
     178    'lo' => 'Lao',
     179    'la' => 'Latin',
     180    'lv' => 'Latvian',
     181    'lb' => 'Letzeburgesch, Luxembourgish',
     182    'li' => 'Limburgish, Limburgan, Limburger',
     183    'ln' => 'Lingala',
     184    'lt' => 'Lithuanian',
     185    'lu' => 'Luba-Katanga',
     186    'mk' => 'Macedonian',
     187    'mg' => 'Malagasy',
     188    'ms' => 'Malay',
     189    'ml' => 'Malayalam',
     190    'mt' => 'Maltese',
     191    'gv' => 'Manx',
     192    'mi' => 'Maori',
     193    'mr' => 'Marathi',
     194    'mh' => 'Marshallese',
     195    'ro' => 'Moldovan, Moldavian, Romanian',
     196    'mn' => 'Mongolian',
     197    'na' => 'Nauru',
     198    'nv' => 'Navajo, Navaho',
     199    'nd' => 'Northern Ndebele',
     200    'ng' => 'Ndonga',
     201    'ne' => 'Nepali',
     202    'se' => 'Northern Sami',
     203    'no' => 'Norwegian',
     204    'nb' => 'Norwegian Bokmål',
     205    'nn' => 'Norwegian Nynorsk',
     206    'ii' => 'Nuosu, Sichuan Yi',
     207    'oc' => 'Occitan (post 1500)',
     208    'oj' => 'Ojibwa',
     209    'or' => 'Oriya',
     210    'om' => 'Oromo',
     211    'os' => 'Ossetian, Ossetic',
     212    'pi' => 'Pali',
     213    'pa' => 'Panjabi, Punjabi',
     214    'ps' => 'Pashto, Pushto',
     215    'fa' => 'Persian',
     216    'pl' => 'Polish',
     217    'pt' => 'Portuguese',
     218    'qu' => 'Quechua',
     219    'rm' => 'Romansh',
     220    'rn' => 'Rundi',
     221    'ru' => 'Russian',
     222    'sm' => 'Samoan',
     223    'sg' => 'Sango',
     224    'sa' => 'Sanskrit',
     225    'sc' => 'Sardinian',
     226    'sr' => 'Serbian',
     227    'sn' => 'Shona',
     228    'sd' => 'Sindhi',
     229    'si' => 'Sinhala, Sinhalese',
     230    'sk' => 'Slovak',
     231    'sl' => 'Slovenian',
     232    'so' => 'Somali',
     233    'st' => 'Sotho, Southern',
     234    'nr' => 'South Ndebele',
     235    'es' => 'Spanish, Castilian',
     236    'su' => 'Sundanese',
     237    'sw' => 'Swahili',
     238    'ss' => 'Swati',
     239    'sv' => 'Swedish',
     240    'tl' => 'Tagalog',
     241    'ty' => 'Tahitian',
     242    'tg' => 'Tajik',
     243    'ta' => 'Tamil',
     244    'tt' => 'Tatar',
     245    'te' => 'Telugu',
     246    'th' => 'Thai',
     247    'bo' => 'Tibetan',
     248    'ti' => 'Tigrinya',
     249    'to' => 'Tonga (Tonga Islands)',
     250    'ts' => 'Tsonga',
     251    'tn' => 'Tswana',
     252    'tr' => 'Turkish',
     253    'tk' => 'Turkmen',
     254    'tw' => 'Twi',
     255    'ug' => 'Uighur, Uyghur',
     256    'uk' => 'Ukrainian',
     257    'ur' => 'Urdu',
     258    'uz' => 'Uzbek',
     259    've' => 'Venda',
     260    'vi' => 'Vietnamese',
     261    'vo' => 'Volap_k',
     262    'wa' => 'Walloon',
     263    'cy' => 'Welsh',
     264    'fy' => 'Western Frisian',
     265    'wo' => 'Wolof',
     266    'xh' => 'Xhosa',
     267    'yi' => 'Yiddish',
     268    'yo' => 'Yoruba',
     269    'za' => 'Zhuang, Chuang',
     270    'zu' => 'Zulu'
     271];
     272
     273/*------------------------------------------------------------------------------------------------
     274    Vendors
     275------------------------------------------------------------------------------------------------*/
     276
     277require_once(dirname(__FILE__).'/vendor/autoload.php');
     278
     279/*------------------------------------------------------------------------------------------------
     280    Load Core Files
     281------------------------------------------------------------------------------------------------*/
     282
     283(new tern_dir())->include(AYVPP_COMMON_DIR);
    93284if(is_admin()) {
    94     $l = $getFILE->directoryList(array(
    95         'dir'   =>  dirname(__FILE__).'/core/',
    96         'rec'   =>  true,
    97         'flat'  =>  true,
    98         'depth' =>  1,
    99         'ext'   =>  array('php')
    100     ));
     285    (new tern_dir())->include(AYVPP_ADMIN_DIR);
    101286}
    102287else {
    103     $l = $getFILE->directoryList(array(
    104         'dir'   =>  dirname(__FILE__).'/front/',
    105         'rec'   =>  true,
    106         'flat'  =>  true,
    107         'depth' =>  1,
    108         'ext'   =>  array('php')
    109     ));
     288    (new tern_dir())->include(AYVPP_PUBLIC_DIR);
    110289}
    111 foreach((array)$l as $k => $v) {
    112     require_once($v);
    113 }
    114 unset($l,$k,$v);
    115 
    116 
    117 //                                *******************************                                 //
    118 //________________________________** INITIALIZE PLUGIN         **_________________________________//
    119 //////////////////////////////////**                           **///////////////////////////////////
    120 //                                **                           **                                 //
    121 //                                *******************************                                 //
     290
     291/*------------------------------------------------------------------------------------------------
     292    Plugin Settings
     293------------------------------------------------------------------------------------------------*/
     294
    122295add_action('init','WP_ayvpp_init',-9999);
    123296function WP_ayvpp_init() {
    124     global $getWP,$WP_ayvpp_options,$ayvpp_options;
    125     $ayvpp_options = $getWP->getOption('ayvpp_settings',$WP_ayvpp_options);
     297    global $WP_ayvpp_options,$ayvpp_options,$getWP,$ternSel;
     298    $ayvpp_options = (new tern_option())->get('ayvpp_settings',$WP_ayvpp_options);
     299
     300    //set-up global objects
     301    $getWP = new ternpress\ternWP;
     302    $ternSel = new ternstyle\tern_select;
     303
    126304}
    127305
  • automatic-youtube-video-posts/trunk/init.php

    r2448152 r2477374  
    11<?php
    22/*
    3 Plugin Name: Automatic YouTube Video Posts
     3Plugin Name: Automatic YouTube&reg; Video Posts
    44Plugin URI: http://www.ternstyle.us/automatic-video-posts-plugin-for-wordpress/
    55Description: Add YouTube&reg; video posts automatically to your WordPress blog.
    66Author: Ternstyle LLC
    7 Version: 5.1.7
     7Version: 5.2.2
    88Author URI: http://www.ternstyle.us/
    99*/
     
    1616//          This file initializes the WordPress Plugin - Automatic Video Posts
    1717//      Version:
    18 //          5.1.7
     18//          5.2.2
    1919//      Copyright:
    20 //          Copyright (c) 2016 Ternstyle LLC.
     20//          Copyright (c) 2021 Ternstyle LLC.
     21//      License:
     22//          This software is licensed under the terms of the End User License Agreement (EULA)
     23//          provided with this software. In the event the EULA is not present with this software
     24//          or you have not read it, please visit:
     25//          http://www.ternstyle.us/automatic-video-posts-plugin-for-wordpress/license.html
    2126//
    2227////////////////////////////////////////////////////////////////////////////////////////////////////
    2328
    2429/****************************************Commence Script*******************************************/
    25 
    26 if ( ! defined( 'ABSPATH' ) ) exit;
    2730
    2831//                                *******************************                                 //
  • automatic-youtube-video-posts/trunk/readme.txt

    r2448152 r2477374  
    44Tags: youtube, youtube videos, videos, embed videos, embed youtube videos, video posts, youtube channel, youtube playlist, channel, playlist
    55Requires at least: 2.8
    6 Tested up to: 5.6
    7 Stable tag: 5.1.7
     6Tested up to: 5.6.1
     7Stable tag: 5.2.2
    88
    99The Automatic Youtube Video Posts Plugin automatically creates posts for YouTube videos from any YouTube account, playlist, or search term.
     
    4040
    4141* Log into Wordpress
    42 * Open the "Youtube Posts" tab (which is located at the bottom of the vertical navigation on the left of your Wordpress administration panel.
     42* Open the "Automatic Video" tab (which is located at the bottom of the vertical navigation on the left of your Wordpress administration panel.
    4343* Click on the "Settings" option in the "Automatic Video" tab.
    4444
     
    5252* PRO ONLY: Import EVERY video, even past videos, in your channel or playlist.
    5353* PRO ONLY: One click manual import for retrieving ALL channel, playlist videos.
     54* PRO ONLY: Fully customize the embedded YouTube video iFrame player.
    5455* Publish posts automatically or save them as drafts for review.
    5556* Add a YouTube video and video meta to any existing post.
Note: See TracChangeset for help on using the changeset viewer.