Projet

Général

Profil

Révision f0456308

Ajouté par Assos Assos il y a plus de 9 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/views_data_export/plugins/views_data_export_plugin_style_export.inc
149 149
   * feed image link.
150 150
   */
151 151
  function attach_to($display_id, $path, $title) {
152

  
153
    $type = $this->definition['export feed type'];
154
    $theme_pattern = array(
155
      'views_data_export_feed_icon__' . $this->view->name . '__' . $display_id . '__' . $type,
156
      'views_data_export_feed_icon__' . $this->view->name . '__' . $display_id,
157
      'views_data_export_feed_icon__' . $this->view->name . '__' . $type,
158
      'views_data_export_feed_icon__' . $display_id . '__' . $type,
159
      'views_data_export_feed_icon__' . $display_id,
160
      'views_data_export_feed_icon__' . $type,
161
      'views_data_export_feed_icon',
162
    );
163
    $query = $this->view->get_exposed_input();
164
    // Stash the display id we're coming form in the url so we can hijack it later.
165
    if ($this->options['parent_sort']) {
166
      $query['attach'] = $display_id;
167
    }
168
    if (!isset($this->view->feed_icon)) {
169
      $this->view->feed_icon = '';
152
    if ($this->display->handler->access()) {
153
      $type = $this->definition['export feed type'];
154
      $theme_pattern = array(
155
        'views_data_export_feed_icon__' . $this->view->name . '__' . $display_id . '__' . $type,
156
        'views_data_export_feed_icon__' . $this->view->name . '__' . $display_id,
157
        'views_data_export_feed_icon__' . $this->view->name . '__' . $type,
158
        'views_data_export_feed_icon__' . $display_id . '__' . $type,
159
        'views_data_export_feed_icon__' . $display_id,
160
        'views_data_export_feed_icon__' . $type,
161
        'views_data_export_feed_icon',
162
      );
163
      $query = $this->view->get_exposed_input();
164
      // Stash the display id we're coming form in the url so we can hijack it later.
165
      if ($this->options['parent_sort']) {
166
        $query['attach'] = $display_id;
167
      }
168
      if (!isset($this->view->feed_icon)) {
169
        $this->view->feed_icon = '';
170
      }
171
      $this->view->feed_icon .= theme($theme_pattern, array(
172
          'image_path' => $this->definition['export feed icon'],
173
          'url' => $this->view->get_url(NULL, $path),
174
          'query' => $query,
175
          'text' => $this->options['attach_text'],
176
        )
177
      );
170 178
    }
171
    $this->view->feed_icon .= theme($theme_pattern, array(
172
        'image_path' => $this->definition['export feed icon'],
173
        'url' => $this->view->get_url(NULL, $path),
174
        'query' => $query,
175
        'text' => $this->options['attach_text'],
176
      )
177
    );
178 179
  }
179 180

  
180 181
  function build_sort() {
......
329 330
      $count = 0;
330 331
      foreach ($view->display_handler->get_handlers('argument') as $arg => $handler) {
331 332
        $token = '%' . ++$count;
332
        $tokens[$token . '-title'] = check_plain($handler->title());
333
        $tokens[$token . '-title'] = $handler->get_title();
333 334
        $tokens[$token . '-value'] = isset($view->args[$count - 1]) ? check_plain($view->args[$count - 1]) : '';
334 335
      }
335 336

  

Formats disponibles : Unified diff