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
'default' => null,
),
'calendar_css_selector' => array(
'type' => 'deprecated',
'renderer' => array(
'class' => 'input',
'tab' => 'advanced',
'item' => 'advanced',
'label' => Ai1ec_I18n::__( 'Move calendar into this DOM element' ),
'type' => 'normal',
'help' => Ai1ec_I18n::__(
'Optional. Use this JavaScript-based shortcut to place the
calendar a DOM element other than the usual page content container
if you are unable to create an appropriate page template
for the calendar page. To use, enter a
jQuery selector that evaluates to a single DOM element.
Any existing markup found within the target will be replaced
by the calendar.'
),
),
'default' => '',
),
'skip_in_the_loop_check' => array(
'type' => 'bool',
'renderer' => array(
'class' => 'checkbox',
'tab' => 'advanced',
'item' => 'advanced',
'label' => Ai1ec_I18n::__(
'Skip in_the_loop() check that protects against multiple calendar output'
),
'help' => Ai1ec_I18n::__(
'Try enabling this option if your calendar does not appear on the calendar page. It is needed for compatibility with a small number of themes that call the_content() from outside of The Loop. Leave disabled otherwise.'
),
),
'default' => false,
),
'disable_gzip_compression' => array(
'type' => 'bool',
'renderer' => array(
'class' => 'checkbox',
'tab' => 'advanced',
'item' => 'advanced',
'label' => Ai1ec_I18n::__(
'Disable gzip compression.'
),
'help' => Ai1ec_I18n::__(
'Use this option if calendar is unresponsive. Read more about the issue. (From version 2.1 onwards, gzip is disabled by default for maximum compatibility.)'
),
),
'default' => true,
),
'ai1ec_use_frontend_rendering' => array(
'type' => 'bool',
'renderer' => array(
'class' => 'checkbox',
'tab' => 'advanced',
'item' => 'advanced',
'label' => Ai1ec_I18n::__(
'Use frontend rendering.'
),
'help' => Ai1ec_I18n::__(
'Renders calendar views on the client rather than the server; can improve performance.'
),
),
'default' => true,
),
'cache_dynamic_js' => array(
'type' => 'bool',
'renderer' => array(
'class' => 'checkbox',
'tab' => 'advanced',
'item' => 'advanced',
'label' => Ai1ec_I18n::__(
'Use advanced JS cache.'
),
'help' => Ai1ec_I18n::__(
'Cache dynamically generated JS files. Improves performance.'
),
),
'default' => true,
),
'render_css_as_link' => array(
'type' => 'bool',
'renderer' => array(
'class' => 'checkbox',
'tab' => 'advanced',
'item' => 'advanced',
'label' => Ai1ec_I18n::__(
'Link CSS in <head>
section when file cache is unavailable.'
),
'help' => Ai1ec_I18n::__(
'Use this option if file cache is unavailable and you would prefer to serve CSS as a link rather than have it output inline.'
),
),
'default' => false,
),
'edit_robots_txt' => array(
'type' => 'string',
'renderer' => array(
'class' => 'textarea',
'tab' => 'advanced',
'item' => 'advanced',
'label' => Ai1ec_I18n::__( 'Current robots.txt on this site' ),
'type' => 'normal',
'rows' => 6,
'readonly' => 'readonly',
'help' => Ai1ec_I18n::__(
'The Robot Exclusion Standard, also known as the Robots Exclusion Protocol or
robots.txt
protocol, is a convention for cooperating web crawlers and other web robots
about accessing all or part of a website that is otherwise publicly viewable.
You can change it manually by editing robots.txt
in your root WordPress directory.'
),
),
'default' => '',
),
'allow_statistics' => array(
'type' => 'bool',
'renderer' => array(
'class' => 'checkbox',
'tab' => 'advanced',
'item' => 'advanced',
'label' => sprintf(
Ai1ec_I18n::__(
'Publicize, promote, and share my events marked as public on the Timely network. (Learn more »)'
),
'https://time.ly/event-search-calendar'
),
),
'default' => false,
),
'legacy_options' => array(
'type' => 'legacy_options',
'default' => null,
),
'ics_cron_freq' => array(
'type' => 'string',
'default' => 'hourly',
),
'twig_cache' => array(
'type' => 'string',
'renderer' => array(
'class' => 'cache',
'tab' => 'advanced',
'item' => 'cache',
'label' => sprintf(
Ai1ec_I18n::__(
'Templates cache improves site performance'
)
),
),
'default' => '',
),
'always_use_calendar_timezone' => array(
'type' => 'bool',
'renderer' => array(
'class' => 'checkbox',
'tab' => 'viewing-events',
'item' => 'viewing-events',
'label' => Ai1ec_I18n::__(
'Display events in calendar time zone'
),
'help' => Ai1ec_I18n::__(
'If this box is checked events will appear in the calendar time zone with time zone information displayed on the event details page.'
),
),
'default' => false,
),
);
}
/**
* Register the standard setting values.
*
* @return void Method doesn't return.
*/
protected function _register_standard_values() {
foreach ( $this->_standard_options as $key => $option ) {
$renderer = null;
$value = $option['default'];
if ( isset( $option['renderer'] ) ) {
$renderer = $option['renderer'];
}
$this->register(
$key,
$value,
$option['type'],
$renderer,
AI1EC_VERSION
);
}
}
/**
* Update translated strings, after introduction of `_noop` functions.
*
* @return void
*/
protected function _update_name_translations() {
$translations = $this->_standard_options['enabled_views']['default'];
$current = $this->get( 'enabled_views' );
foreach ( $current as $key => $view ) {
if ( isset( $translations[$key] ) ) {
$current[$key]['longname'] = $translations[$key]['longname'];
}
}
$this->set( 'enabled_views', $current );
}
/**
* Change `updated` flag value.
*
* @param bool $new_status Status to change to.
*
* @return bool Previous status flag value.
*/
protected function _change_update_status( $new_status ) {
$previous = $this->_updated;
$this->_updated = (bool)$new_status;
return $previous;
}
}