@@ -835,10 +835,10 @@ function theme_views_ui_view_info($variables) {
|
||||
}
|
||||
|
||||
$output = '';
|
||||
$output .= '<div class="views-ui-view-title">' . $title . "</div>\n";
|
||||
$output .= '<div class="views-ui-view-title">' . check_plain($title) . "</div>\n";
|
||||
$output .= '<div class="views-ui-view-displays">' . $displays . "</div>\n";
|
||||
$output .= '<div class="views-ui-view-storage">' . $type . "</div>\n";
|
||||
$output .= '<div class="views-ui-view-base">' . t('Type') . ': ' . $variables['base']. "</div>\n";
|
||||
$output .= '<div class="views-ui-view-base">' . t('Type') . ': ' . check_plain($variables['base']). "</div>\n";
|
||||
return $output;
|
||||
}
|
||||
|
||||
@@ -2214,7 +2214,7 @@ function views_ui_edit_form_get_bucket($type, $view, $display) {
|
||||
switch ($type) {
|
||||
case 'filter':
|
||||
$rearrange_url = "admin/structure/views/nojs/rearrange-$type/$view->name/$display->id/$type";
|
||||
$rearrange_text = t('and/or, rearrange');
|
||||
$rearrange_text = t('And/Or, Rearrange');
|
||||
// TODO: Add another class to have another symbol for filter rearrange.
|
||||
$class = 'icon compact rearrange';
|
||||
break;
|
||||
@@ -2233,7 +2233,7 @@ function views_ui_edit_form_get_bucket($type, $view, $display) {
|
||||
|
||||
default:
|
||||
$rearrange_url = "admin/structure/views/nojs/rearrange/$view->name/$display->id/$type";
|
||||
$rearrange_text = t('rearrange');
|
||||
$rearrange_text = t('Rearrange');
|
||||
$class = 'icon compact rearrange';
|
||||
}
|
||||
|
||||
@@ -2241,16 +2241,16 @@ function views_ui_edit_form_get_bucket($type, $view, $display) {
|
||||
$actions = array();
|
||||
$count_handlers = count($display->handler->get_handlers($type));
|
||||
$actions['add'] = array(
|
||||
'title' => t('add'),
|
||||
'title' => t('Add'),
|
||||
'href' => "admin/structure/views/nojs/add-item/$view->name/$display->id/$type",
|
||||
'attributes'=> array('class' => array('icon compact add', 'views-ajax-link'), 'title' => t('add'), 'id' => 'views-add-' . $type),
|
||||
'attributes'=> array('class' => array('icon compact add', 'views-ajax-link'), 'title' => t('Add'), 'id' => 'views-add-' . $type),
|
||||
'html' => TRUE,
|
||||
);
|
||||
if ($count_handlers > 0) {
|
||||
$actions['rearrange'] = array(
|
||||
'title' => $rearrange_text,
|
||||
'href' => $rearrange_url,
|
||||
'attributes' => array('class' => array($class, 'views-ajax-link'), 'title' => $rearrange_text, 'id' => 'views-rearrange-' . $type),
|
||||
'attributes' => array('class' => array($class, 'views-ajax-link'), 'title' => t('Rearrange'), 'id' => 'views-rearrange-' . $type),
|
||||
'html' => TRUE,
|
||||
);
|
||||
}
|
||||
@@ -3038,7 +3038,7 @@ function views_ui_reorder_displays_form($form, &$form_state) {
|
||||
|
||||
foreach ($view->display as $display) {
|
||||
$form[$display->id] = array(
|
||||
'title' => array('#markup' => $display->display_title),
|
||||
'title' => array('#markup' => check_plain($display->display_title)),
|
||||
'weight' => array(
|
||||
'#type' => 'weight',
|
||||
'#value' => $display->position,
|
||||
@@ -4122,8 +4122,8 @@ function views_ui_add_item_form($form, &$form_state) {
|
||||
$zebra_class = ($zebra % 2) ? 'odd' : 'even';
|
||||
$form['options']['name'][$key] = array(
|
||||
'#type' => 'checkbox',
|
||||
'#title' => t('!group: !field', array('!group' => $option['group'], '!field' => $option['title'])),
|
||||
'#description' => $option['help'],
|
||||
'#title' => t('!group: !field', array('!group' => check_plain($option['group']), '!field' => check_plain($option['title']))),
|
||||
'#description' => filter_xss_admin($option['help']),
|
||||
'#return_value' => $key,
|
||||
'#prefix' => "<div class='$zebra_class filterable-option'>",
|
||||
'#suffix' => '</div>',
|
||||
@@ -5047,7 +5047,7 @@ function views_ui_autocomplete_tag($string = '') {
|
||||
$views = views_get_all_views();
|
||||
foreach ($views as $view) {
|
||||
if (!empty($view->tag) && strpos($view->tag, $string) === 0) {
|
||||
$matches[$view->tag] = $view->tag;
|
||||
$matches[$view->tag] = check_plain($view->tag);
|
||||
if (count($matches) >= 10) {
|
||||
break;
|
||||
}
|
||||
@@ -5267,7 +5267,7 @@ function theme_views_ui_style_plugin_table($variables) {
|
||||
$rows = array();
|
||||
foreach (element_children($form['columns']) as $id) {
|
||||
$row = array();
|
||||
$row[] = drupal_render($form['info'][$id]['name']);
|
||||
$row[] = check_plain(drupal_render($form['info'][$id]['name']));
|
||||
$row[] = drupal_render($form['columns'][$id]);
|
||||
$row[] = drupal_render($form['info'][$id]['align']);
|
||||
$row[] = drupal_render($form['info'][$id]['separator']);
|
||||
|
||||
Reference in New Issue
Block a user