Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/clone/wp-inclu.../SimplePi...
File: Item.php
$label = null;
[2500] Fix | Delete
if (isset($category['data']))
[2501] Fix | Delete
{
[2502] Fix | Delete
$term = $this->sanitize($category['data'], SIMPLEPIE_CONSTRUCT_TEXT);
[2503] Fix | Delete
}
[2504] Fix | Delete
if (isset($category['attribs']['']['scheme']))
[2505] Fix | Delete
{
[2506] Fix | Delete
$scheme = $this->sanitize($category['attribs']['']['scheme'], SIMPLEPIE_CONSTRUCT_TEXT);
[2507] Fix | Delete
}
[2508] Fix | Delete
else
[2509] Fix | Delete
{
[2510] Fix | Delete
$scheme = 'http://search.yahoo.com/mrss/category_schema';
[2511] Fix | Delete
}
[2512] Fix | Delete
if (isset($category['attribs']['']['label']))
[2513] Fix | Delete
{
[2514] Fix | Delete
$label = $this->sanitize($category['attribs']['']['label'], SIMPLEPIE_CONSTRUCT_TEXT);
[2515] Fix | Delete
}
[2516] Fix | Delete
$categories[] = $this->registry->create('Category', array($term, $scheme, $label));
[2517] Fix | Delete
}
[2518] Fix | Delete
}
[2519] Fix | Delete
if (is_array($categories) && is_array($categories_parent))
[2520] Fix | Delete
{
[2521] Fix | Delete
$categories = array_values(array_unique(array_merge($categories, $categories_parent)));
[2522] Fix | Delete
}
[2523] Fix | Delete
elseif (is_array($categories))
[2524] Fix | Delete
{
[2525] Fix | Delete
$categories = array_values(array_unique($categories));
[2526] Fix | Delete
}
[2527] Fix | Delete
elseif (is_array($categories_parent))
[2528] Fix | Delete
{
[2529] Fix | Delete
$categories = array_values(array_unique($categories_parent));
[2530] Fix | Delete
}
[2531] Fix | Delete
else
[2532] Fix | Delete
{
[2533] Fix | Delete
$categories = null;
[2534] Fix | Delete
}
[2535] Fix | Delete
[2536] Fix | Delete
// COPYRIGHTS
[2537] Fix | Delete
if (isset($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['copyright']))
[2538] Fix | Delete
{
[2539] Fix | Delete
$copyright_url = null;
[2540] Fix | Delete
$copyright_label = null;
[2541] Fix | Delete
if (isset($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['copyright'][0]['attribs']['']['url']))
[2542] Fix | Delete
{
[2543] Fix | Delete
$copyright_url = $this->sanitize($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['copyright'][0]['attribs']['']['url'], SIMPLEPIE_CONSTRUCT_TEXT);
[2544] Fix | Delete
}
[2545] Fix | Delete
if (isset($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['copyright'][0]['data']))
[2546] Fix | Delete
{
[2547] Fix | Delete
$copyright_label = $this->sanitize($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['copyright'][0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
[2548] Fix | Delete
}
[2549] Fix | Delete
$copyrights = $this->registry->create('Copyright', array($copyright_url, $copyright_label));
[2550] Fix | Delete
}
[2551] Fix | Delete
else
[2552] Fix | Delete
{
[2553] Fix | Delete
$copyrights = $copyrights_parent;
[2554] Fix | Delete
}
[2555] Fix | Delete
[2556] Fix | Delete
// CREDITS
[2557] Fix | Delete
if (isset($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['credit']))
[2558] Fix | Delete
{
[2559] Fix | Delete
foreach ($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['credit'] as $credit)
[2560] Fix | Delete
{
[2561] Fix | Delete
$credit_role = null;
[2562] Fix | Delete
$credit_scheme = null;
[2563] Fix | Delete
$credit_name = null;
[2564] Fix | Delete
if (isset($credit['attribs']['']['role']))
[2565] Fix | Delete
{
[2566] Fix | Delete
$credit_role = $this->sanitize($credit['attribs']['']['role'], SIMPLEPIE_CONSTRUCT_TEXT);
[2567] Fix | Delete
}
[2568] Fix | Delete
if (isset($credit['attribs']['']['scheme']))
[2569] Fix | Delete
{
[2570] Fix | Delete
$credit_scheme = $this->sanitize($credit['attribs']['']['scheme'], SIMPLEPIE_CONSTRUCT_TEXT);
[2571] Fix | Delete
}
[2572] Fix | Delete
else
[2573] Fix | Delete
{
[2574] Fix | Delete
$credit_scheme = 'urn:ebu';
[2575] Fix | Delete
}
[2576] Fix | Delete
if (isset($credit['data']))
[2577] Fix | Delete
{
[2578] Fix | Delete
$credit_name = $this->sanitize($credit['data'], SIMPLEPIE_CONSTRUCT_TEXT);
[2579] Fix | Delete
}
[2580] Fix | Delete
$credits[] = $this->registry->create('Credit', array($credit_role, $credit_scheme, $credit_name));
[2581] Fix | Delete
}
[2582] Fix | Delete
if (is_array($credits))
[2583] Fix | Delete
{
[2584] Fix | Delete
$credits = array_values(array_unique($credits));
[2585] Fix | Delete
}
[2586] Fix | Delete
}
[2587] Fix | Delete
else
[2588] Fix | Delete
{
[2589] Fix | Delete
$credits = $credits_parent;
[2590] Fix | Delete
}
[2591] Fix | Delete
[2592] Fix | Delete
// DESCRIPTION
[2593] Fix | Delete
if (isset($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['description']))
[2594] Fix | Delete
{
[2595] Fix | Delete
$description = $this->sanitize($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['description'][0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
[2596] Fix | Delete
}
[2597] Fix | Delete
else
[2598] Fix | Delete
{
[2599] Fix | Delete
$description = $description_parent;
[2600] Fix | Delete
}
[2601] Fix | Delete
[2602] Fix | Delete
// HASHES
[2603] Fix | Delete
if (isset($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['hash']))
[2604] Fix | Delete
{
[2605] Fix | Delete
foreach ($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['hash'] as $hash)
[2606] Fix | Delete
{
[2607] Fix | Delete
$value = null;
[2608] Fix | Delete
$algo = null;
[2609] Fix | Delete
if (isset($hash['data']))
[2610] Fix | Delete
{
[2611] Fix | Delete
$value = $this->sanitize($hash['data'], SIMPLEPIE_CONSTRUCT_TEXT);
[2612] Fix | Delete
}
[2613] Fix | Delete
if (isset($hash['attribs']['']['algo']))
[2614] Fix | Delete
{
[2615] Fix | Delete
$algo = $this->sanitize($hash['attribs']['']['algo'], SIMPLEPIE_CONSTRUCT_TEXT);
[2616] Fix | Delete
}
[2617] Fix | Delete
else
[2618] Fix | Delete
{
[2619] Fix | Delete
$algo = 'md5';
[2620] Fix | Delete
}
[2621] Fix | Delete
$hashes[] = $algo.':'.$value;
[2622] Fix | Delete
}
[2623] Fix | Delete
if (is_array($hashes))
[2624] Fix | Delete
{
[2625] Fix | Delete
$hashes = array_values(array_unique($hashes));
[2626] Fix | Delete
}
[2627] Fix | Delete
}
[2628] Fix | Delete
else
[2629] Fix | Delete
{
[2630] Fix | Delete
$hashes = $hashes_parent;
[2631] Fix | Delete
}
[2632] Fix | Delete
[2633] Fix | Delete
// KEYWORDS
[2634] Fix | Delete
if (isset($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['keywords']))
[2635] Fix | Delete
{
[2636] Fix | Delete
if (isset($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['keywords'][0]['data']))
[2637] Fix | Delete
{
[2638] Fix | Delete
$temp = explode(',', $this->sanitize($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['keywords'][0]['data'], SIMPLEPIE_CONSTRUCT_TEXT));
[2639] Fix | Delete
foreach ($temp as $word)
[2640] Fix | Delete
{
[2641] Fix | Delete
$keywords[] = trim($word);
[2642] Fix | Delete
}
[2643] Fix | Delete
unset($temp);
[2644] Fix | Delete
}
[2645] Fix | Delete
if (is_array($keywords))
[2646] Fix | Delete
{
[2647] Fix | Delete
$keywords = array_values(array_unique($keywords));
[2648] Fix | Delete
}
[2649] Fix | Delete
}
[2650] Fix | Delete
else
[2651] Fix | Delete
{
[2652] Fix | Delete
$keywords = $keywords_parent;
[2653] Fix | Delete
}
[2654] Fix | Delete
[2655] Fix | Delete
// PLAYER
[2656] Fix | Delete
if (isset($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['player']))
[2657] Fix | Delete
{
[2658] Fix | Delete
if (isset($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['player'][0]['attribs']['']['url'])) {
[2659] Fix | Delete
$player = $this->sanitize($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['player'][0]['attribs']['']['url'], SIMPLEPIE_CONSTRUCT_IRI);
[2660] Fix | Delete
}
[2661] Fix | Delete
}
[2662] Fix | Delete
else
[2663] Fix | Delete
{
[2664] Fix | Delete
$player = $player_parent;
[2665] Fix | Delete
}
[2666] Fix | Delete
[2667] Fix | Delete
// RATINGS
[2668] Fix | Delete
if (isset($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['rating']))
[2669] Fix | Delete
{
[2670] Fix | Delete
foreach ($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['rating'] as $rating)
[2671] Fix | Delete
{
[2672] Fix | Delete
$rating_scheme = null;
[2673] Fix | Delete
$rating_value = null;
[2674] Fix | Delete
if (isset($rating['attribs']['']['scheme']))
[2675] Fix | Delete
{
[2676] Fix | Delete
$rating_scheme = $this->sanitize($rating['attribs']['']['scheme'], SIMPLEPIE_CONSTRUCT_TEXT);
[2677] Fix | Delete
}
[2678] Fix | Delete
else
[2679] Fix | Delete
{
[2680] Fix | Delete
$rating_scheme = 'urn:simple';
[2681] Fix | Delete
}
[2682] Fix | Delete
if (isset($rating['data']))
[2683] Fix | Delete
{
[2684] Fix | Delete
$rating_value = $this->sanitize($rating['data'], SIMPLEPIE_CONSTRUCT_TEXT);
[2685] Fix | Delete
}
[2686] Fix | Delete
$ratings[] = $this->registry->create('Rating', array($rating_scheme, $rating_value));
[2687] Fix | Delete
}
[2688] Fix | Delete
if (is_array($ratings))
[2689] Fix | Delete
{
[2690] Fix | Delete
$ratings = array_values(array_unique($ratings));
[2691] Fix | Delete
}
[2692] Fix | Delete
}
[2693] Fix | Delete
else
[2694] Fix | Delete
{
[2695] Fix | Delete
$ratings = $ratings_parent;
[2696] Fix | Delete
}
[2697] Fix | Delete
[2698] Fix | Delete
// RESTRICTIONS
[2699] Fix | Delete
if (isset($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['restriction']))
[2700] Fix | Delete
{
[2701] Fix | Delete
foreach ($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['restriction'] as $restriction)
[2702] Fix | Delete
{
[2703] Fix | Delete
$restriction_relationship = null;
[2704] Fix | Delete
$restriction_type = null;
[2705] Fix | Delete
$restriction_value = null;
[2706] Fix | Delete
if (isset($restriction['attribs']['']['relationship']))
[2707] Fix | Delete
{
[2708] Fix | Delete
$restriction_relationship = $this->sanitize($restriction['attribs']['']['relationship'], SIMPLEPIE_CONSTRUCT_TEXT);
[2709] Fix | Delete
}
[2710] Fix | Delete
if (isset($restriction['attribs']['']['type']))
[2711] Fix | Delete
{
[2712] Fix | Delete
$restriction_type = $this->sanitize($restriction['attribs']['']['type'], SIMPLEPIE_CONSTRUCT_TEXT);
[2713] Fix | Delete
}
[2714] Fix | Delete
if (isset($restriction['data']))
[2715] Fix | Delete
{
[2716] Fix | Delete
$restriction_value = $this->sanitize($restriction['data'], SIMPLEPIE_CONSTRUCT_TEXT);
[2717] Fix | Delete
}
[2718] Fix | Delete
$restrictions[] = $this->registry->create('Restriction', array($restriction_relationship, $restriction_type, $restriction_value));
[2719] Fix | Delete
}
[2720] Fix | Delete
if (is_array($restrictions))
[2721] Fix | Delete
{
[2722] Fix | Delete
$restrictions = array_values(array_unique($restrictions));
[2723] Fix | Delete
}
[2724] Fix | Delete
}
[2725] Fix | Delete
else
[2726] Fix | Delete
{
[2727] Fix | Delete
$restrictions = $restrictions_parent;
[2728] Fix | Delete
}
[2729] Fix | Delete
[2730] Fix | Delete
// THUMBNAILS
[2731] Fix | Delete
if (isset($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['thumbnail']))
[2732] Fix | Delete
{
[2733] Fix | Delete
foreach ($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['thumbnail'] as $thumbnail)
[2734] Fix | Delete
{
[2735] Fix | Delete
if (isset($thumbnail['attribs']['']['url'])) {
[2736] Fix | Delete
$thumbnails[] = $this->sanitize($thumbnail['attribs']['']['url'], SIMPLEPIE_CONSTRUCT_IRI);
[2737] Fix | Delete
}
[2738] Fix | Delete
}
[2739] Fix | Delete
if (is_array($thumbnails))
[2740] Fix | Delete
{
[2741] Fix | Delete
$thumbnails = array_values(array_unique($thumbnails));
[2742] Fix | Delete
}
[2743] Fix | Delete
}
[2744] Fix | Delete
else
[2745] Fix | Delete
{
[2746] Fix | Delete
$thumbnails = $thumbnails_parent;
[2747] Fix | Delete
}
[2748] Fix | Delete
[2749] Fix | Delete
// TITLES
[2750] Fix | Delete
if (isset($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['title']))
[2751] Fix | Delete
{
[2752] Fix | Delete
$title = $this->sanitize($content['child'][SIMPLEPIE_NAMESPACE_MEDIARSS]['title'][0]['data'], SIMPLEPIE_CONSTRUCT_TEXT);
[2753] Fix | Delete
}
[2754] Fix | Delete
else
[2755] Fix | Delete
{
[2756] Fix | Delete
$title = $title_parent;
[2757] Fix | Delete
}
[2758] Fix | Delete
[2759] Fix | Delete
$this->data['enclosures'][] = $this->registry->create('Enclosure', array($url, $type, $length, null, $bitrate, $captions, $categories, $channels, $copyrights, $credits, $description, $duration, $expression, $framerate, $hashes, $height, $keywords, $lang, $medium, $player, $ratings, $restrictions, $samplingrate, $thumbnails, $title, $width));
[2760] Fix | Delete
}
[2761] Fix | Delete
}
[2762] Fix | Delete
}
[2763] Fix | Delete
[2764] Fix | Delete
foreach ((array) $this->get_item_tags(SIMPLEPIE_NAMESPACE_ATOM_10, 'link') as $link)
[2765] Fix | Delete
{
[2766] Fix | Delete
if (isset($link['attribs']['']['href']) && !empty($link['attribs']['']['rel']) && $link['attribs']['']['rel'] === 'enclosure')
[2767] Fix | Delete
{
[2768] Fix | Delete
// Attributes
[2769] Fix | Delete
$bitrate = null;
[2770] Fix | Delete
$channels = null;
[2771] Fix | Delete
$duration = null;
[2772] Fix | Delete
$expression = null;
[2773] Fix | Delete
$framerate = null;
[2774] Fix | Delete
$height = null;
[2775] Fix | Delete
$javascript = null;
[2776] Fix | Delete
$lang = null;
[2777] Fix | Delete
$length = null;
[2778] Fix | Delete
$medium = null;
[2779] Fix | Delete
$samplingrate = null;
[2780] Fix | Delete
$type = null;
[2781] Fix | Delete
$url = null;
[2782] Fix | Delete
$width = null;
[2783] Fix | Delete
[2784] Fix | Delete
$url = $this->sanitize($link['attribs']['']['href'], SIMPLEPIE_CONSTRUCT_IRI, $this->get_base($link));
[2785] Fix | Delete
if (isset($link['attribs']['']['type']))
[2786] Fix | Delete
{
[2787] Fix | Delete
$type = $this->sanitize($link['attribs']['']['type'], SIMPLEPIE_CONSTRUCT_TEXT);
[2788] Fix | Delete
}
[2789] Fix | Delete
if (isset($link['attribs']['']['length']))
[2790] Fix | Delete
{
[2791] Fix | Delete
$length = intval($link['attribs']['']['length']);
[2792] Fix | Delete
}
[2793] Fix | Delete
if (isset($link['attribs']['']['title']))
[2794] Fix | Delete
{
[2795] Fix | Delete
$title = $this->sanitize($link['attribs']['']['title'], SIMPLEPIE_CONSTRUCT_TEXT);
[2796] Fix | Delete
}
[2797] Fix | Delete
else
[2798] Fix | Delete
{
[2799] Fix | Delete
$title = $title_parent;
[2800] Fix | Delete
}
[2801] Fix | Delete
[2802] Fix | Delete
// Since we don't have group or content for these, we'll just pass the '*_parent' variables directly to the constructor
[2803] Fix | Delete
$this->data['enclosures'][] = $this->registry->create('Enclosure', array($url, $type, $length, null, $bitrate, $captions_parent, $categories_parent, $channels, $copyrights_parent, $credits_parent, $description_parent, $duration_parent, $expression, $framerate, $hashes_parent, $height, $keywords_parent, $lang, $medium, $player_parent, $ratings_parent, $restrictions_parent, $samplingrate, $thumbnails_parent, $title, $width));
[2804] Fix | Delete
}
[2805] Fix | Delete
}
[2806] Fix | Delete
[2807] Fix | Delete
foreach ((array) $this->get_item_tags(SIMPLEPIE_NAMESPACE_ATOM_03, 'link') as $link)
[2808] Fix | Delete
{
[2809] Fix | Delete
if (isset($link['attribs']['']['href']) && !empty($link['attribs']['']['rel']) && $link['attribs']['']['rel'] === 'enclosure')
[2810] Fix | Delete
{
[2811] Fix | Delete
// Attributes
[2812] Fix | Delete
$bitrate = null;
[2813] Fix | Delete
$channels = null;
[2814] Fix | Delete
$duration = null;
[2815] Fix | Delete
$expression = null;
[2816] Fix | Delete
$framerate = null;
[2817] Fix | Delete
$height = null;
[2818] Fix | Delete
$javascript = null;
[2819] Fix | Delete
$lang = null;
[2820] Fix | Delete
$length = null;
[2821] Fix | Delete
$medium = null;
[2822] Fix | Delete
$samplingrate = null;
[2823] Fix | Delete
$type = null;
[2824] Fix | Delete
$url = null;
[2825] Fix | Delete
$width = null;
[2826] Fix | Delete
[2827] Fix | Delete
$url = $this->sanitize($link['attribs']['']['href'], SIMPLEPIE_CONSTRUCT_IRI, $this->get_base($link));
[2828] Fix | Delete
if (isset($link['attribs']['']['type']))
[2829] Fix | Delete
{
[2830] Fix | Delete
$type = $this->sanitize($link['attribs']['']['type'], SIMPLEPIE_CONSTRUCT_TEXT);
[2831] Fix | Delete
}
[2832] Fix | Delete
if (isset($link['attribs']['']['length']))
[2833] Fix | Delete
{
[2834] Fix | Delete
$length = intval($link['attribs']['']['length']);
[2835] Fix | Delete
}
[2836] Fix | Delete
[2837] Fix | Delete
// Since we don't have group or content for these, we'll just pass the '*_parent' variables directly to the constructor
[2838] Fix | Delete
$this->data['enclosures'][] = $this->registry->create('Enclosure', array($url, $type, $length, null, $bitrate, $captions_parent, $categories_parent, $channels, $copyrights_parent, $credits_parent, $description_parent, $duration_parent, $expression, $framerate, $hashes_parent, $height, $keywords_parent, $lang, $medium, $player_parent, $ratings_parent, $restrictions_parent, $samplingrate, $thumbnails_parent, $title_parent, $width));
[2839] Fix | Delete
}
[2840] Fix | Delete
}
[2841] Fix | Delete
[2842] Fix | Delete
if ($enclosure = $this->get_item_tags(SIMPLEPIE_NAMESPACE_RSS_20, 'enclosure'))
[2843] Fix | Delete
{
[2844] Fix | Delete
if (isset($enclosure[0]['attribs']['']['url']))
[2845] Fix | Delete
{
[2846] Fix | Delete
// Attributes
[2847] Fix | Delete
$bitrate = null;
[2848] Fix | Delete
$channels = null;
[2849] Fix | Delete
$duration = null;
[2850] Fix | Delete
$expression = null;
[2851] Fix | Delete
$framerate = null;
[2852] Fix | Delete
$height = null;
[2853] Fix | Delete
$javascript = null;
[2854] Fix | Delete
$lang = null;
[2855] Fix | Delete
$length = null;
[2856] Fix | Delete
$medium = null;
[2857] Fix | Delete
$samplingrate = null;
[2858] Fix | Delete
$type = null;
[2859] Fix | Delete
$url = null;
[2860] Fix | Delete
$width = null;
[2861] Fix | Delete
[2862] Fix | Delete
$url = $this->sanitize($enclosure[0]['attribs']['']['url'], SIMPLEPIE_CONSTRUCT_IRI, $this->get_base($enclosure[0]));
[2863] Fix | Delete
$url = $this->feed->sanitize->https_url($url);
[2864] Fix | Delete
if (isset($enclosure[0]['attribs']['']['type']))
[2865] Fix | Delete
{
[2866] Fix | Delete
$type = $this->sanitize($enclosure[0]['attribs']['']['type'], SIMPLEPIE_CONSTRUCT_TEXT);
[2867] Fix | Delete
}
[2868] Fix | Delete
if (isset($enclosure[0]['attribs']['']['length']))
[2869] Fix | Delete
{
[2870] Fix | Delete
$length = intval($enclosure[0]['attribs']['']['length']);
[2871] Fix | Delete
}
[2872] Fix | Delete
[2873] Fix | Delete
// Since we don't have group or content for these, we'll just pass the '*_parent' variables directly to the constructor
[2874] Fix | Delete
$this->data['enclosures'][] = $this->registry->create('Enclosure', array($url, $type, $length, null, $bitrate, $captions_parent, $categories_parent, $channels, $copyrights_parent, $credits_parent, $description_parent, $duration_parent, $expression, $framerate, $hashes_parent, $height, $keywords_parent, $lang, $medium, $player_parent, $ratings_parent, $restrictions_parent, $samplingrate, $thumbnails_parent, $title_parent, $width));
[2875] Fix | Delete
}
[2876] Fix | Delete
}
[2877] Fix | Delete
[2878] Fix | Delete
if (sizeof($this->data['enclosures']) === 0 && ($url || $type || $length || $bitrate || $captions_parent || $categories_parent || $channels || $copyrights_parent || $credits_parent || $description_parent || $duration_parent || $expression || $framerate || $hashes_parent || $height || $keywords_parent || $lang || $medium || $player_parent || $ratings_parent || $restrictions_parent || $samplingrate || $thumbnails_parent || $title_parent || $width))
[2879] Fix | Delete
{
[2880] Fix | Delete
// Since we don't have group or content for these, we'll just pass the '*_parent' variables directly to the constructor
[2881] Fix | Delete
$this->data['enclosures'][] = $this->registry->create('Enclosure', array($url, $type, $length, null, $bitrate, $captions_parent, $categories_parent, $channels, $copyrights_parent, $credits_parent, $description_parent, $duration_parent, $expression, $framerate, $hashes_parent, $height, $keywords_parent, $lang, $medium, $player_parent, $ratings_parent, $restrictions_parent, $samplingrate, $thumbnails_parent, $title_parent, $width));
[2882] Fix | Delete
}
[2883] Fix | Delete
[2884] Fix | Delete
$this->data['enclosures'] = array_values(array_unique($this->data['enclosures']));
[2885] Fix | Delete
}
[2886] Fix | Delete
if (!empty($this->data['enclosures']))
[2887] Fix | Delete
{
[2888] Fix | Delete
return $this->data['enclosures'];
[2889] Fix | Delete
}
[2890] Fix | Delete
[2891] Fix | Delete
return null;
[2892] Fix | Delete
}
[2893] Fix | Delete
[2894] Fix | Delete
/**
[2895] Fix | Delete
* Get the latitude coordinates for the item
[2896] Fix | Delete
*
[2897] Fix | Delete
* Compatible with the W3C WGS84 Basic Geo and GeoRSS specifications
[2898] Fix | Delete
*
[2899] Fix | Delete
* Uses `<geo:lat>` or `<georss:point>`
[2900] Fix | Delete
*
[2901] Fix | Delete
* @since 1.0
[2902] Fix | Delete
* @link http://www.w3.org/2003/01/geo/ W3C WGS84 Basic Geo
[2903] Fix | Delete
* @link http://www.georss.org/ GeoRSS
[2904] Fix | Delete
* @return string|null
[2905] Fix | Delete
*/
[2906] Fix | Delete
public function get_latitude()
[2907] Fix | Delete
{
[2908] Fix | Delete
if ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_W3C_BASIC_GEO, 'lat'))
[2909] Fix | Delete
{
[2910] Fix | Delete
return (float) $return[0]['data'];
[2911] Fix | Delete
}
[2912] Fix | Delete
elseif (($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_GEORSS, 'point')) && preg_match('/^((?:-)?[0-9]+(?:\.[0-9]+)) ((?:-)?[0-9]+(?:\.[0-9]+))$/', trim($return[0]['data']), $match))
[2913] Fix | Delete
{
[2914] Fix | Delete
return (float) $match[1];
[2915] Fix | Delete
}
[2916] Fix | Delete
[2917] Fix | Delete
return null;
[2918] Fix | Delete
}
[2919] Fix | Delete
[2920] Fix | Delete
/**
[2921] Fix | Delete
* Get the longitude coordinates for the item
[2922] Fix | Delete
*
[2923] Fix | Delete
* Compatible with the W3C WGS84 Basic Geo and GeoRSS specifications
[2924] Fix | Delete
*
[2925] Fix | Delete
* Uses `<geo:long>`, `<geo:lon>` or `<georss:point>`
[2926] Fix | Delete
*
[2927] Fix | Delete
* @since 1.0
[2928] Fix | Delete
* @link http://www.w3.org/2003/01/geo/ W3C WGS84 Basic Geo
[2929] Fix | Delete
* @link http://www.georss.org/ GeoRSS
[2930] Fix | Delete
* @return string|null
[2931] Fix | Delete
*/
[2932] Fix | Delete
public function get_longitude()
[2933] Fix | Delete
{
[2934] Fix | Delete
if ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_W3C_BASIC_GEO, 'long'))
[2935] Fix | Delete
{
[2936] Fix | Delete
return (float) $return[0]['data'];
[2937] Fix | Delete
}
[2938] Fix | Delete
elseif ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_W3C_BASIC_GEO, 'lon'))
[2939] Fix | Delete
{
[2940] Fix | Delete
return (float) $return[0]['data'];
[2941] Fix | Delete
}
[2942] Fix | Delete
elseif (($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_GEORSS, 'point')) && preg_match('/^((?:-)?[0-9]+(?:\.[0-9]+)) ((?:-)?[0-9]+(?:\.[0-9]+))$/', trim($return[0]['data']), $match))
[2943] Fix | Delete
{
[2944] Fix | Delete
return (float) $match[2];
[2945] Fix | Delete
}
[2946] Fix | Delete
[2947] Fix | Delete
return null;
[2948] Fix | Delete
}
[2949] Fix | Delete
[2950] Fix | Delete
/**
[2951] Fix | Delete
* Get the `<atom:source>` for the item
[2952] Fix | Delete
*
[2953] Fix | Delete
* @since 1.1
[2954] Fix | Delete
* @return SimplePie_Source|null
[2955] Fix | Delete
*/
[2956] Fix | Delete
public function get_source()
[2957] Fix | Delete
{
[2958] Fix | Delete
if ($return = $this->get_item_tags(SIMPLEPIE_NAMESPACE_ATOM_10, 'source'))
[2959] Fix | Delete
{
[2960] Fix | Delete
return $this->registry->create('Source', array($this, $return[0]));
[2961] Fix | Delete
}
[2962] Fix | Delete
[2963] Fix | Delete
return null;
[2964] Fix | Delete
}
[2965] Fix | Delete
}
[2966] Fix | Delete
[2967] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function