Changeset 2477374
- Timestamp:
- 02/18/2021 10:00:33 PM (5 years ago)
- Location:
- automatic-youtube-video-posts/trunk
- Files:
-
- 104 added
- 12 deleted
- 3 edited
-
admin (added)
-
admin/assets (added)
-
admin/assets/css (added)
-
admin/assets/css/jquery-ui.min.css (added)
-
admin/assets/css/less (added)
-
admin/assets/css/less/alert.less (added)
-
admin/assets/css/less/button.less (added)
-
admin/assets/css/less/channel.less (added)
-
admin/assets/css/less/font.less (added)
-
admin/assets/css/less/form.less (added)
-
admin/assets/css/less/import.less (added)
-
admin/assets/css/less/main.less (added)
-
admin/assets/css/less/meta.less (added)
-
admin/assets/css/less/reset.less (added)
-
admin/assets/css/less/tabs.less (added)
-
admin/assets/css/style.css (added)
-
admin/assets/css/switchery.min.css (added)
-
admin/assets/images (added)
-
admin/assets/images/spinner.gif (added)
-
admin/assets/js (added)
-
admin/assets/js/admin.js (added)
-
admin/assets/js/channels.js (added)
-
admin/assets/js/errors.js (added)
-
admin/assets/js/jquery.easing.js (added)
-
admin/assets/js/meta.js (added)
-
admin/assets/js/switchery.min.js (added)
-
admin/class (added)
-
admin/class/channels.php (added)
-
admin/class/duplicate.php (added)
-
admin/class/import.php (added)
-
admin/class/list.php (added)
-
admin/class/menu.php (added)
-
admin/class/post.php (added)
-
admin/class/reset.php (added)
-
admin/class/settings.php (added)
-
admin/class/trouble.php (added)
-
admin/init.php (added)
-
admin/view (added)
-
admin/view/channel_add.php (added)
-
admin/view/channel_add_free.php (added)
-
admin/view/channels.php (added)
-
admin/view/channels_free.php (added)
-
admin/view/dups.php (added)
-
admin/view/import_free.php (added)
-
admin/view/list.php (added)
-
admin/view/meta.php (added)
-
admin/view/reset.php (added)
-
admin/view/settings-api.php (added)
-
admin/view/settings-display.php (added)
-
admin/view/settings-import.php (added)
-
admin/view/settings-player_free.php (added)
-
admin/view/settings-thumbnail.php (added)
-
admin/view/settings-video.php (added)
-
admin/view/settings_free.php (added)
-
admin/view/trouble.php (added)
-
class (deleted)
-
common/class (added)
-
common/class/cron.php (added)
-
common/class/internal.php (added)
-
common/class/scripts.php (added)
-
common/errors.php (deleted)
-
common/init.php (added)
-
common/internal.php (deleted)
-
common/menus.php (deleted)
-
common/scripts.php (deleted)
-
conf.php (modified) (3 diffs)
-
core (deleted)
-
css (deleted)
-
front (deleted)
-
images (deleted)
-
init.php (modified) (2 diffs)
-
js (deleted)
-
public (added)
-
public/assets (added)
-
public/assets/css (added)
-
public/assets/css/style.css (added)
-
public/assets/js (added)
-
public/assets/js/scripts.js (added)
-
public/class (added)
-
public/class/video.php (added)
-
public/init.php (added)
-
public/view (added)
-
readme.txt (modified) (3 diffs)
-
tools (deleted)
-
vendor (added)
-
vendor/autoload.php (added)
-
vendor/composer (added)
-
vendor/composer/ClassLoader.php (added)
-
vendor/composer/InstalledVersions.php (added)
-
vendor/composer/LICENSE (added)
-
vendor/composer/autoload_classmap.php (added)
-
vendor/composer/autoload_namespaces.php (added)
-
vendor/composer/autoload_psr4.php (added)
-
vendor/composer/autoload_real.php (added)
-
vendor/composer/autoload_static.php (added)
-
vendor/composer/installed.json (added)
-
vendor/composer/installed.php (added)
-
vendor/ternstyle (added)
-
vendor/ternstyle/plugin (added)
-
vendor/ternstyle/plugin/src (added)
-
vendor/ternstyle/plugin/src/class (added)
-
vendor/ternstyle/plugin/src/class/admin.php (added)
-
vendor/ternstyle/plugin/src/class/youtube_import.php (added)
-
vendor/ternstyle/plugin/src/class/youtube_video.php (added)
-
vendor/ternstyle/ternstyle (added)
-
vendor/ternstyle/ternstyle/src (added)
-
vendor/ternstyle/ternstyle/src/class (added)
-
vendor/ternstyle/ternstyle/src/class/curl.php (added)
-
vendor/ternstyle/ternstyle/src/class/directory.php (added)
-
vendor/ternstyle/ternstyle/src/class/forms.php (added)
-
vendor/ternstyle/ternstyle/src/class/select.php (added)
-
vendor/ternstyle/wordpress (added)
-
vendor/ternstyle/wordpress/src (added)
-
vendor/ternstyle/wordpress/src/class (added)
-
vendor/ternstyle/wordpress/src/class/menu.php (added)
-
vendor/ternstyle/wordpress/src/class/option.php (added)
-
vendor/ternstyle/wordpress/src/class/setting.php (added)
-
vendor/ternstyle/wordpress/src/class/wordpress.php (added)
-
views (deleted)
Legend:
- Unmodified
- Added
- Removed
-
automatic-youtube-video-posts/trunk/conf.php
r2448152 r2477374 7 7 // This file configures the Wordpress Plugin - Automatic Video Posts Plugin 8 8 // 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 10 15 // 11 16 //////////////////////////////////////////////////////////////////////////////////////////////////// … … 13 18 /****************************************Commence Script*******************************************/ 14 19 15 if ( ! defined( 'ABSPATH' ) ) exit; 16 17 // ******************************* // 18 //________________________________** INITIALIZE VARIABLES **_________________________________// 19 //////////////////////////////////** **/////////////////////////////////// 20 // ** ** // 21 // ******************************* // 22 23 define('AYVPP_URL',plugin_dir_url(__FILE__)); 20 use ternpress\ternWP; 21 use ternstyle\tern_select; 22 use ternstyle\tern_dir as tern_dir; 23 use ternpress\tern_option as tern_option; 24 25 /*------------------------------------------------------------------------------------------------ 26 For good measure 27 ------------------------------------------------------------------------------------------------*/ 28 29 defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); 30 31 /*------------------------------------------------------------------------------------------------ 32 Global Variables 33 ------------------------------------------------------------------------------------------------*/ 34 35 define('AYVPP_URL',plugin_dir_url('').'/automatic-video-posts'); 36 define('AYVPP_ADMIN_URL',AYVPP_URL.'/admin'); 37 define('AYVPP_PUBLIC_URL',AYVPP_URL.'/public'); 24 38 define('AYVPP_ROOT',get_bloginfo('wpurl')); 25 39 define('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( 40 define('AYVPP_CLASS_DIR',dirname(__FILE__).'/class'); 41 define('AYVPP_COMMON_DIR',dirname(__FILE__).'/common'); 42 define('AYVPP_ADMIN_DIR',dirname(__FILE__).'/admin'); 43 define('AYVPP_PUBLIC_DIR',dirname(__FILE__).'/public'); 44 define('AYVPP_VERSION','5.2.2'); 45 $ayvpp_version = [5,2,2]; 46 47 $WP_ayvpp_options = [ 30 48 'updater_checked' => 0, 31 'key' => '',32 'channels' => array(),33 'cron' => 6,49 'key' => '', 50 'channels' => array(), 51 'cron' => 6, 34 52 'last_import' => '', 35 53 'content_display_meta' => 1, 36 54 'content_truncate' => 1, 37 'content_truncate_after' => 20,55 'content_truncate_after' => 20, 38 56 'content_top' => 0, 57 39 58 'video_responsive' => 1, 40 'video_responsive_ratio' => '16:9',59 'video_responsive_ratio' => '16:9', 41 60 'video_dims' => array(506,304), 42 61 'video_related_show' => 0, 43 62 '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 44 77 'thumbs_show' => 1, 45 'verified' => false,78 'verified' => false, 46 79 'serial' => '', 47 80 'admin_import' => 1, … … 49 82 'import_date' => 0, 50 83 '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 277 require_once(dirname(__FILE__).'/vendor/autoload.php'); 278 279 /*------------------------------------------------------------------------------------------------ 280 Load Core Files 281 ------------------------------------------------------------------------------------------------*/ 282 283 (new tern_dir())->include(AYVPP_COMMON_DIR); 93 284 if(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); 101 286 } 102 287 else { 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); 110 289 } 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 122 295 add_action('init','WP_ayvpp_init',-9999); 123 296 function 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 126 304 } 127 305 -
automatic-youtube-video-posts/trunk/init.php
r2448152 r2477374 1 1 <?php 2 2 /* 3 Plugin Name: Automatic YouTube Video Posts3 Plugin Name: Automatic YouTube® Video Posts 4 4 Plugin URI: http://www.ternstyle.us/automatic-video-posts-plugin-for-wordpress/ 5 5 Description: Add YouTube® video posts automatically to your WordPress blog. 6 6 Author: Ternstyle LLC 7 Version: 5. 1.77 Version: 5.2.2 8 8 Author URI: http://www.ternstyle.us/ 9 9 */ … … 16 16 // This file initializes the WordPress Plugin - Automatic Video Posts 17 17 // Version: 18 // 5. 1.718 // 5.2.2 19 19 // 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 21 26 // 22 27 //////////////////////////////////////////////////////////////////////////////////////////////////// 23 28 24 29 /****************************************Commence Script*******************************************/ 25 26 if ( ! defined( 'ABSPATH' ) ) exit;27 30 28 31 // ******************************* // -
automatic-youtube-video-posts/trunk/readme.txt
r2448152 r2477374 4 4 Tags: youtube, youtube videos, videos, embed videos, embed youtube videos, video posts, youtube channel, youtube playlist, channel, playlist 5 5 Requires at least: 2.8 6 Tested up to: 5.6 7 Stable tag: 5. 1.76 Tested up to: 5.6.1 7 Stable tag: 5.2.2 8 8 9 9 The Automatic Youtube Video Posts Plugin automatically creates posts for YouTube videos from any YouTube account, playlist, or search term. … … 40 40 41 41 * 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. 43 43 * Click on the "Settings" option in the "Automatic Video" tab. 44 44 … … 52 52 * PRO ONLY: Import EVERY video, even past videos, in your channel or playlist. 53 53 * PRO ONLY: One click manual import for retrieving ALL channel, playlist videos. 54 * PRO ONLY: Fully customize the embedded YouTube video iFrame player. 54 55 * Publish posts automatically or save them as drafts for review. 55 56 * Add a YouTube video and video meta to any existing post.
Note: See TracChangeset
for help on using the changeset viewer.