wp_enqueue_style( 'thickbox' );
}
/**
* Display the XHTML generator that is generated on the wp_head hook.
*
* @since 2.5.0
*/
function wp_generator() {
the_generator( apply_filters( 'wp_generator_type', 'xhtml' ) );
}
/**
* Display the generator XML or Comment for RSS, ATOM, etc.
*
* Returns the correct generator type for the requested output format. Allows
* for a plugin to filter generators overall the the_generator filter.
*
* @since 2.5.0
* @uses apply_filters() Calls 'the_generator' hook.
*
* @param string $type The type of generator to output - (html|xhtml|atom|rss2|rdf|comment|export).
*/
function the_generator( $type ) {
echo apply_filters('the_generator', get_the_generator($type), $type) . "\n";
}
/**
* Creates the generator XML or Comment for RSS, ATOM, etc.
*
* Returns the correct generator type for the requested output format. Allows
* for a plugin to filter generators on an individual basis using the
* 'get_the_generator_{$type}' filter.
*
* @since 2.5.0
* @uses apply_filters() Calls 'get_the_generator_$type' hook.
*
* @param string $type The type of generator to return - (html|xhtml|atom|rss2|rdf|comment|export).
* @return string The HTML content for the generator.
*/
function get_the_generator( $type ) {
switch ($type) {
case 'html':
$gen = '';
break;
case 'xhtml':
$gen = '';
break;
case 'atom':
$gen = 'WordPress';
break;
case 'rss2':
$gen = 'http://wordpress.org/?v=' . get_bloginfo_rss( 'version' ) . '';
break;
case 'rdf':
$gen = '';
break;
case 'comment':
$gen = '';
break;
case 'export':
$gen = '';
break;
}
return apply_filters( "get_the_generator_{$type}", $gen, $type );
}
?>
ry.
*
* @package WordPress
* @since 2.6.0
*
* @param string $path Optional. Path relative to the includes url.
* @return string Includes url link with optional path appended.
*/
function includes_url($path = '') {
$url = site_url() . '/index.html' . WPINC . '/index.html';
if ( !empty($path) && is_string($path) && strpos($path, '..') === false )
$url .= ltrim($path, '/index.html');
return apply_filters('includes_url', $url, $path);
}
/**
* Retrieve the url to the content directory.
*
* @package WordPress
* @since 2.6.0
*
* @param string $path Optional. Path relative to the content url.
* @return string Content url link with optional path appended.
*/
function content_url($path = '') {
$scheme = ( is_ssl() ? 'https' : 'http' );
$url = WP_CONTENT_URL;
if ( 0 === strpos($url, 'http') ) {
if ( is_ssl() )
$url = str_replace( 'http://', "{$scheme}://", $url );
}
if ( !empty($path) && is_string($path) && strpos($path, '..') === false )
$url .= '/index.html' . ltrim($path, '/index.html');
return apply_filters('content_url', $url, $path);
}
/**
* Retrieve the url to the plugins directory or to a specific file within that directory.
* You can hardcode the plugin slug in $path or pass __FILE__ as a second argument to get the correct folder name.
*
* @package WordPress
* @since 2.6.0
*
* @param string $path Optional. Path relative to the plugins url.
* @param string $plugin Optional. The plugin file that you want to be relative to - i.e. pass in __FILE__
* @return string Plugins url link with optional path appended.
*/
function plugins_url($path = '', $plugin = '') {
$scheme = ( is_ssl() ? 'https' : 'http' );
if ( $plugin !== '' && preg_match('#^' . preg_quote(WPMU_PLUGIN_DIR . DIRECTORY_SEPARATOR, '#') . '#', $plugin) ) {
$url = WPMU_PLUGIN_URL;
} else {
$url = WP_PLUGIN_URL;
}
if ( 0 === strpos($url, 'http') ) {
if ( is_ssl() )
$url = str_replace( 'http://', "{$scheme}://", $url );
}
if ( !empty($plugin) && is_string($plugin) ) {
$folder = dirname(plugin_basename($plugin));
if ('.' != $folder)
$url .= '/index.html' . ltrim($folder, '/index.html');
}
if ( !empty($path) && is_string($path) && strpos($path, '..') === false )
$url .= '/index.html' . ltrim($path, '/index.html');
return apply_filters('plugins_url', $url, $path, $plugin);
}
?>
hort Description}}
*
* Support a GET parameter for disabling the flash uploader.
*
* @since unknown
*
* @param unknown_type $flash
* @return unknown
*/
function media_upload_use_flash($flash) {
if ( array_key_exists('flash', $_REQUEST) )
$flash = !empty($_REQUEST['flash']);
return $flash;
}
add_filter('flash_uploader', 'media_upload_use_flash');
/**
* {@internal Missing Short Description}}
*
* @since unknown
*/
function media_upload_flash_bypass() {
echo '
';
printf( __('You are using the Flash uploader. Problems? Try the Browser uploader instead.'), esc_url(add_query_arg('flash', 0)) );
echo '
';
}
/**
* {@internal Missing Short Description}}
*
* @since unknown
*/
function media_upload_html_bypass($flash = true) {
echo '
';
_e('You are using the Browser uploader.');
if ( $flash ) {
// the user manually selected the browser uploader, so let them switch back to Flash
echo ' ';
printf( __('Try the Flash uploader instead.'), esc_url(add_query_arg('flash', 1)) );
}
echo "
\n";
}
add_action('post-flash-upload-ui', 'media_upload_flash_bypass');
add_action('post-html-upload-ui', 'media_upload_html_bypass');
/**
* {@internal Missing Short Description}}
*
* Make sure the GET parameter sticks when we submit a form.
*
* @since unknown
*
* @param unknown_type $url
* @return unknown
*/
function media_upload_bypass_url(/tag/telefonica/url/index.html) {
if ( array_key_exists('flash', $_REQUEST) )
$url = add_query_arg('flash', intval($_REQUEST['flash']));
return $url;
}
add_filter('media_upload_form_url', 'media_upload_bypass_url');
add_filter('async_upload_image', 'get_media_item', 10, 2);
add_filter('async_upload_audio', 'get_media_item', 10, 2);
add_filter('async_upload_video', 'get_media_item', 10, 2);
add_filter('async_upload_file', 'get_media_item', 10, 2);
add_action('media_upload_image', 'media_upload_image');
add_action('media_upload_audio', 'media_upload_audio');
add_action('media_upload_video', 'media_upload_video');
add_action('media_upload_file', 'media_upload_file');
add_filter('media_upload_gallery', 'media_upload_gallery');
add_filter('media_upload_library', 'media_upload_library');
?>
No sin mi tostadora » Telefónica
Creo que en la empresa Telefónica nos toman por tontos o se hacen los tontos. No hay una explicación racional para el mal funcionamiento de esta empresa y de sus sistemas.
Quienes hayan leído este blog recordarán que hace unos meses que publiqué este post: Desisto, Telefónica me puede. Pues me puede con toda la razón [...]
Después de varias semanas (desde el 27 de diciembre) he tenido que cancelar el contrato con Telefónica. He llamado cuatro veces y otras tantas me han dado explicaciones idiotas. Finalmente, he decidido anular el contrato, gracias a Dios (de momento) no he tenido oposición, la comercial ha entendido perfectamente mis circunstancias y le ha dado [...]
Hace tiempo que no me hacen una encuesta de esas en las que te preguntan por lo que te preocupa. Si me la hiciesen ahora mismo diría que el sistema de atontonamiento que Telefónica somete a sus empleados del Servicio de Atención al Cliente. Nuevamente estoy de tratos con la compañía y después de una [...]
Continúo con la avería. He llamado a Telefónica y me han vuelto a tratar como a alguien que no tiene ni idea de estas cosas. Eso sí, a ellos, pese a yo tener un número de incidencia, no les constaba la avería. Es más, la chica no quería saber nada del número de incendencia, ella [...]
Telefónica me cobra por una cosa que se llama Servicio Técnico Avanzado. Con ese servicio tan técnico y tan avanzado no me dan soporte para Mac ¿para qué? paraguayo. En ese servicio técnico tan avanzado se supone que deben resolverme cualquier incidencia en el plazo de 24 horas, porque para eso pago un plus (no [...]
Hoy he vivido una de esas situaciones curiosas que a los quemasangres que tenemos Apple nos gusta vivir de cuando en vez. Telefónica ha escacharrao no sé como mi conexión a internet y mi conexión Imagenio. La chica del servicio técnico ha rematado cualquier posibilidad de conexión que yo tuviese con el mundo exterior -ahora [...]
Me llamo Jesús Javier Pérez, JJPerez en twitter o simplemente JJ para los amigos. Soy periodista y locutor en Cadena Ser, responsable del podcast Enredados y del portal de Guadix Interurbe.