Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/script-loader.php on line 757

Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/script-loader.php on line 757

Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/script-loader.php on line 758

Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/script-loader.php on line 758

Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/formatting.php on line 4768

Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/formatting.php on line 4768

Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/formatting.php on line 4768

Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/formatting.php on line 4768

Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/formatting.php on line 4768

Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/formatting.php on line 4768

Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/load.php on line 926

Notice: Trying to access array offset on value of type bool in /var/www/html/ticnews.com.br/web/wp-includes/theme.php on line 2360

Notice: Trying to access array offset on value of type bool in /var/www/html/ticnews.com.br/web/wp-content/plugins/download-monitor/src/DLM.php on line 236

Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/formatting.php on line 4768

Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/formatting.php on line 4768

Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/formatting.php on line 4768

Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/formatting.php on line 4768

Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/formatting.php on line 4768

Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/formatting.php on line 4768
EVENTOS – TICNEWS
Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/formatting.php on line 4768

Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/formatting.php on line 4768

Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/formatting.php on line 4768

Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/formatting.php on line 4768

Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/formatting.php on line 4768

Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/formatting.php on line 4768

Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/formatting.php on line 4768

Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/formatting.php on line 4768

Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/formatting.php on line 4768

Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/formatting.php on line 4768

Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/formatting.php on line 4768

Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/formatting.php on line 4768

Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/formatting.php on line 4768

Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/formatting.php on line 4768

Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/formatting.php on line 4768

Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/formatting.php on line 4768

Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/formatting.php on line 4768

Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/formatting.php on line 4768

Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/formatting.php on line 4768

Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/formatting.php on line 4768

Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/formatting.php on line 4768

Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/formatting.php on line 4768

Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/formatting.php on line 4768

Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/formatting.php on line 4768

Deprecated: Function get_magic_quotes_gpc() is deprecated in /var/www/html/ticnews.com.br/web/wp-includes/formatting.php on line 4768

EVENTOS

$classes, $wrap_permalink ); } /** * Debug function to be used in twig templates with Firebug/FirePHP * * @param mixed $object */ public function fb( $object ) { if ( function_exists( 'fb' ) ) { fb( $object ); } } /** * Get URL for avatar. * * Accepts an ordered array of named avatar $fallbacks. * @param Ai1ec_Event $event The event to get the avatar for. * @param array|null $fallback_order Order of fallback in searching for * images, or null to use default. * * @return string URL if image is found. */ public function avatar_url( Ai1ec_Event $event, $fallback_order = null ) { return $this->_registry->get( 'view.event.avatar' ) ->get_event_avatar_url( $event, $fallback_order ); } /** * Remove the avatar url from the content * * Accepts an ordered array of named avatar $fallbacks. * @param Ai1ec_Event $event The event to get the avatar for. * @param array|null $fallback_order Order of fallback in searching for * images, or null to use default. * * @return string URL if image is found. */ public function remove_avatar_url( $content ) { return $this->_registry->get( 'view.event.avatar' ) ->remove_avatar_url( $content ); } /** * Remove the First paragraph (

....

) from the content * @return *

This is a text

returns This is a text *

This is a text

returns

This is a text

*/ public function remove_paragraph( $content ) { if ( preg_match( '/^

(.+)<\\/p>$/is', $content, $matches ) ) { return $matches[1]; } else { return $content; } } /** * Check if provided value is a string. * * @param mixed $var Suspected string * * @return boolean True if it is a string, false otherwise. */ public function is_string( $var ) { return is_string( $var ); } /** * Convert an hour to an Ai1ec_Date_Time object. * * @param int $hour * * @return Ai1ec_Date_Time */ public function hour_to_datetime( $hour ) { return $this->_registry->get( 'date.time', 'now', 'sys.default' ) ->set_time( $hour, 0, 0 ); } /** * Get the name of the weekday. * * @param int $unix_timestamp * * @return string */ public function weekday( $unix_timestamp ) { return $this->_registry->get( 'date.time', $unix_timestamp ) ->format_i18n( 'D' ); } /** * Get the name of the day. * * @param int $unix_timestamp * * @return string */ public function day( $unix_timestamp ) { return $this->_registry->get( 'date.time', $unix_timestamp ) ->format_i18n( 'j' ); } /** * Get the name of the month. * * @param int $unix_timestamp * * @return string */ public function month( $unix_timestamp ) { return $this->_registry->get( 'date.time', $unix_timestamp ) ->format_i18n( 'M' ); } /** * Get the date's year * * @param int $unix_timestamp * * @return string */ public function year( $unix_timestamp ) { return $this->_registry->get( 'date.time', $unix_timestamp ) ->format_i18n( 'Y' ); } /** * Get URL of the given image file in the calendar theme's directory. * * @param int $unix_timestamp * * @return string */ public function theme_img_url( $image ) { $loader = $this->_registry->get( 'theme.loader' ); return $loader->get_file( $image, array(), false )->get_url(); } /** * Internationalize the given UNIX timestamp with the given format string. * * @param int $unix_timestamp * @param string $format * * @return string */ public function date_i18n( $unix_timestamp, $format ) { return $this->_registry->get( 'date.time', $unix_timestamp ) ->format_i18n( $format ); } /** * Truncate a string after $length characters, appending $read_more string * at end of truncation. * * @param number $length Length to truncate string to. * @param string $read_more What string to append if truncated. * @param string $html_entities Whether to treat input string as HTML with * possible &asdf; entities * @return string */ public function truncate( $string, $length = 35, $read_more = '...', $html_entities = true ) { // Truncate multibyte encodings differently, if supported. if ( function_exists( 'mb_strimwidth' ) ) { // First decode entities if requested. if ( $html_entities ) { $string = html_entity_decode( $string, ENT_QUOTES, 'UTF-8' ); } // Truncate string. $string = mb_strimwidth( $string, 0, $length, $read_more, 'UTF-8' ); // Reencode entities if requested. if ( $html_entities ) { $string = htmlentities( $string, ENT_QUOTES, 'UTF-8' ); } } else { // First decode entities if requested. if ( $html_entities ) { $string = html_entity_decode( $string, ENT_QUOTES ); } // Truncate string. $read_more = strlen( $string ) > 35 ? $read_more : ''; $string = substr( $string, 0, 35 ) . $read_more; // Reencode entities if requested. if ( $html_entities ) { $string = html_entity_decode( $string, ENT_QUOTES ); } } return $string; } /** * Filter string allowing ampersand symbols to be displayed. * at end of truncation. * * @param string $string String to process. * @return string */ public function dropdown_filter( $string ) { $string = htmlspecialchars( $string ); $string = preg_replace( '/&/', '&', $string ); return $string; } /** * Generate a timespan HTML block for an event. * * @param Ai1ec_Event $event Event to generate timespan for. * @param string $start_date_display Start date display format. * * @return string Rendered HTML timespan block. */ public function timespan( Ai1ec_Event $event, $start_date_display = 'long' ) { return $this->_registry->get( 'view.event.time' ) ->get_timespan_html( $event, $start_date_display ); } /** * Meta-Box template function * * @since 2.5.0 * * @param string|object $screen Screen identifier * @param string $context box context * @param mixed $object gets passed to the box callback function as first parameter * @return int number of meta_boxes */ public function do_meta_boxes( $screen, $context, $object ) { do_meta_boxes( $screen, $context, $object ); } /** * Retrieve or display nonce hidden field for forms. * * The nonce field is used to validate that the contents of the form came from * the location on the current site and not somewhere else. The nonce does not * offer absolute protection, but should protect against most cases. It is very * important to use nonce field in forms. * * The $action and $name are optional, but if you want to have better security, * it is strongly suggested to set those two parameters. It is easier to just * call the function without any parameters, because validation of the nonce * doesn't require any parameters, but since crackers know what the default is * it won't be difficult for them to find a way around your nonce and cause * damage. * * The input name will be whatever $name value you gave. The input value will be * the nonce creation value. * * @package WordPress * @subpackage Security * @since 2.0.4 * * @param string $action Optional. Action name. * @param string $name Optional. Nonce name. * @param bool $referer Optional, default true. Whether to set the referer field for validation. * @param bool $echo Optional, default true. Whether to display or return hidden form field. * @return string Nonce field. */ public function wp_nonce_field( $action = -1, $name = "_wpnonce", $referer = true , $echo = true ) { wp_nonce_field( $action, $name, $referer, $echo ); } /* (non-PHPdoc) * @see Twig_ExtensionInterface::getName() */ public function getName() { return 'ai1ec'; } /** * Hooks into the_content filter to disable its output. * * @return void Method does not return. */ public function ai1ec_disable_content_output() { $this->_registry->get( 'calendar.state' )->set_append_content( false ); } }