break; case "artstats": $ret = plugin_func('stats', 'stat_graph', 'nba', $id, '400_40_' . $va); $t = 'stats'; break; case "livestats": $ret = plugin_func('stats', 'stat_live'); $t = $id; break; case "slider": require 'plug/slider.php'; $ret = slider_build($id, $va, $opt); break; case "radio": req('pop'); $ret = audio(radio_song($id, $va), $opt); break; case "radioedit": require 'plug/radio.php'; $ret = radio_edit($id, $va, $opt, $optb); break; case "radiosav": require 'plug/radio.php'; $ret = radio_edit($id, $va, $opt); break; //html //html case "menuder": $ret = menuder_pop($id, $va, $opt, $optb); $t = 'select'; $s = 440;
function sconn($doc) { //artwedit list($pdoc, $xf) = split_one(':', $doc, 1); if ($xf && $pdoc != 'http') { $d = sconn_defs_r($pdoc, $xf); if ($d != $doc) { return $d; } } if ($xf) { $d = sconn_defs_app($pdoc, $xf); if ($d) { return $d; } } $xt = strtolower(strrchr($doc, ".")); if ($xt == ".mp3") { $doc = goodroot($doc); return audio($doc); } if ($xt == ".pdf") { return pdfdoc($doc, 'img/', $media); } //pdf if (is_image($doc) && strpos($doc, "§") === false && strpos($doc, "<") === false) { //images $large = currentwidth() - 20; $largb = round($large * 0.5); if (strpos($doc, "http") !== false) { return image($doc); } return place_image($doc, $media, $large, $largb); } if (strpos($doc, "§") or strpos($doc, "http") !== false or strpos($doc, "@") !== false) { //liens $lk = prepdlink($doc); if (is_image($lk[0])) { if (strpos($lk[0], "http") !== false) { return image($lk[0]); } return popim(goodroot($lk[0]), $lk[1]); } elseif (is_image($lk[1]) == true) { //link§im if (is_numeric($lk[0])) { $lk[0] = urlread($lk[0]); } if (strpos($lk[1], "http") !== false) { return lka($lk[0], $lk[1]); } return lkc("", $lk[0], place_image($lk[1], $media, $large, $largb)); } elseif (strpos($lk[0], "http") !== false) { return lka($lk[0], $lk[1]); } elseif (strpos($lk[0], "/") !== false) { return lka(goodroot($lk[0]), $lk[1]); } elseif (substr($lk[0], 0, 1) == "/") { return lka($lk[0], $lk[1]); } elseif (strpos($lk[0], "@") !== false && strpos($lk[0], ".") !== false) { return lkc("", 'mailto:' . $lk[0], $lk[1]); } elseif (strpos($doc, "@") !== false && strpos($doc, ".") !== false) { return lkc("", 'mailto:' . $doc, $doc); } elseif (is_numeric($lk[0])) { return jread('', $lk[0], $lk[1]); } } return $doc; }
function radio($d, $p, $id) { //$f=radio_slct($d,$p,$id); $r = msql_read_b('radio', $d, '', 1); $rid = 'rad' . randid(); if ($r) { foreach ($r as $k => $v) { if ($k == $p) { $f = $v[1]; } $ret .= lj('', $rid . '_radio___' . ajx($d) . '_' . $k, $v[3]) . br(); } } if ($_SESSION['USE']) { $add = lj('', 'popup_radioedit___' . $nod . '___' . $id, picto('edit')); } if (!$_SESSION['nl']) { return divb('nbp|' . $rid, audio($r[1][1], $rid)) . $add . $ret; } }
$ret = overim($id, $va); $t = $id; list($w, $h) = getimagesize($id); $p = lj('', 'popup_photo__x_' . ajx($id) . '_' . $w . '_' . $h . '_' . $va, pictxt('popup', $v)); break; case "video": req('pop,spe'); list($w, $h) = explode('-', $sz); $s = $w; $tt = $id; $ret = video_players($id, video_providers($id), $w, $h - 20, $_GET['pagup']); break; case "popmp3": req('pop'); $t = $id; $ret = audio($id); break; case "popim": list($w, $h) = getimagesize($id); $ret = photo_screen($id, $w, $h, $sz); break; case "poptxt": req('tri'); $ret = nl2br(convertmail(read_file($id))); $t = $id; $s = 440; break; case "popmsql": $r = msql_read($id, $va, $opt, 1); p($r); if ($r) {
/** * Generates a html5 audio tag * It is required that you set html5 as the doctype to use this method * * @param mixed one or multiple audio sources * @param mixed tag attributes * @return string */ function audio($src = '', $attr = null) { if (is_array($src)) { $output = ''; foreach ($src as $elem) { $output[] = audio($elem); } return implode("\n", $output); } return '<source src="' . $src . '"' . ($attr ? _stringify_attributes($attr) : '') . ' />'; }
$post_id = get_the_ID(); ?> <div id="post-media" class="clr"> <?php // Audio embed if ($audio = get_post_meta($post_id, 'wpex_post_oembed', true)) { ?> <div class="blog-post-audio clr wpex-fitvids"> <?php echo wp_oembed_get($audio); ?> </div> <?php // Self hosted audio } elseif ($audio = audio($post_id)) { ?> <div class="blog-post-audio clr"><?php echo apply_filters('the_content', $audio); ?> </div> <?php // Featured Image } elseif (get_theme_mod('blog_single_thumbnail', true) && has_post_thumbnail($post_id)) { $wpex_image = wpex_image('array'); ?> <a href="<?php the_permalink(); ?> " title="<?php echo esc_attr(the_title_attribute('echo=0'));