This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# App Engine runtime configuration | |
runtime: php74 | |
instance_class: F4 | |
# Defaults to "serve index.php" and "serve public/index.php". Can be used to | |
# serve a custom PHP front controller (e.g. "serve backend/index.php") or to | |
# run a long-running PHP script as a worker process (e.g. "php worker.php"). | |
entrypoint: serve gae-app.php | |
# Defines static handlers to serve WordPress assets |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: tinyLogin | |
Plugin URI: http://wp.tribuna.lt/tiny-login | |
Description: A simple front-end login/registration system. Adds template tags and shortcodes. Shortcodes: [tiny_form_login]/[tiny_form_register]. Template tags: get_tiny_form_login()/get_tiny_form_register() and the_tiny_form_login()/the_tiny_form_register() | |
Version: 0.1 | |
Author: Arūnas | |
Author URI: http://wp.tribuna.lt/ | |
Text Domain: tiny_login | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function get_video_data($url) { | |
$id = ''; | |
$result = ''; | |
$video = array(); | |
$split_url = parse_url( $url ); | |
if ( isset( $split_url['host'] ) ) { | |
$video['host'] = $split_url['host']; | |
// Youtube Thumbnail | |
if (preg_match("/^(?:https?:\/\/)?(?:www\.)?youtube\.com\/watch\?(?=.*v=((\w|-){11}))(?:\S+)?$/", $url, $matches)) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// adds checkbox to make link a button | |
function add_class_wplink() { | |
wp_deregister_script( 'wplink' ); | |
wp_register_script( 'wplink', get_template_directory_uri() . '/js/admin/wplink.js', array( 'jquery', 'wpdialogs' ), false, 1 ); | |
wp_localize_script( 'wplink', 'wpLinkL10n', array( | |
'title' => __('Insert/edit link'), | |
'update' => __('Update'), |