WordPress.org

Plugin Directory

Changeset 1231050


Ignore:
Timestamp:
08/26/15 09:22:33 (2 years ago)
Author:
djzone
Message:

TV2 video embed javítás

Location:
magyar-video-embed
Files:
3 added
2 edited

Legend:

Unmodified
Added
Removed
  • magyar-video-embed/trunk/magyar-video-embed.php

    r1230431 r1231050  
    22/* 
    33Plugin Name: Magyar Video Embed 
    4 Version: 0.2 
     4Version: 0.3 
    55Plugin URI: https://wordpress.org/plugins/magyar-video-embed 
    66Description: Ez a bővítmény arra való, hogy a különböző magyar videó szolgáltatók linkjeiből is szépen beágyazott videót kapjunk, pont, mintha csak egy youtube link lenne 
     
    4040    wp_embed_register_handler( 'mtvcohu', '#http://(www\.)?mtv\.co\.hu/([0-9a-zA-Z\-\_\/]+)/(?:videos)/([0-9a-zA-Z\-\_\/]+)\-([\d]+)#i', 'wp_embed_handler_mtvcohu' ); 
    4141    wp_embed_register_handler( 'mnohu', '#http://(www\.)?mno\.hu/(?:videok)/([\d]+)#i', 'wp_embed_handler_mnohu' ); 
    42     wp_embed_register_handler( 'tv2hu', '#http://(www\.)?tv2\.hu/(musoraink)/([0-9a-zA-Z\-\_]+)/([\d]+)_([0-9a-zA-Z\-\_]+)\.html#i', 'wp_embed_handler_tv2hu' ); 
     42    wp_embed_register_handler( 'tv2hu', '#http://(www\.)?tv2\.hu/(musoraink)/([0-9a-zA-Z\.\-\_]+)/([\d]+)_([0-9a-zA-Z\.\-\_]+)#i', 'wp_embed_handler_tv2hu' ); 
    4343    wp_embed_register_handler( 'rtlhu', '#http://(www\.)?rtl\.hu/(rtlklub)/([0-9a-zA-Z\-\_\/]+)#i', 'wp_embed_handler_rtlhu' ); 
    4444     
     
    7777 * tv2.hu wp_embed handler 
    7878 * 
    79  * Utoljára frissítve: 2014-12-19 02:40:00 +0100 
     79 * Utoljára frissítve: 2015-08-26 09:00:00 +0100 
    8080 * 
    8181 * @author DjZoNe 
     
    9292    $width = floor($content_width); 
    9393    $height = floor($content_width * $ratio); 
    94      
    95     $embed = sprintf('<iframe width="%d" height="%d" src="http://tv2.hu/neoplayer/tv2/embed/%d_%s.html/%d" frameborder="0" scrolling="no"></iframe>',$width,$height,$video_id,$slug,$width); 
     94 
     95    $embed = sprintf('<iframe width="%d" height="%d" src="http://tv2.hu/neoplayer/tv2/embed/%d_%s/%d" frameborder="0" scrolling="no"></iframe>',$width,$height,$video_id,$slug,$width); 
    9696 
    9797    return apply_filters( 'embed_tv2hu', $embed, $matches, $attr, $url, $rawattr ); 
  • magyar-video-embed/trunk/readme.txt

    r1230558 r1231050  
    55Requires at least: 4.1 
    66Tested up to: 4.3 
    7 Stable tag: 0.2 
     7Stable tag: 0.3 
    88 
    99This plugin helps different hungarian online video service provider videos to be embeded just like youtube links. So, this is not intresting to you unless you are hungarian, or want to make website for hungarians with local video embeders.   
Note: See TracChangeset for help on using the changeset viewer.