You are here

views-view-views-rss-field.tpl.php in Views RSS 6.2

File

theme/views-view-views-rss-field.tpl.php
View source
<?php

// Received full markup, nothing to theme.
if (!empty($markup)) {
  print $markup;
  return;
}
print "<{$element}";

// Process element arguments if provided.
if (!empty($arguments) && is_array($arguments)) {
  foreach ($arguments as $key => $argument_value) {
    print " {$key}=\"{$argument_value}\"";
  }
}

// Process element value if provided and close element.
if (!empty($value)) {
  print ">{$value}</{$element}>\n";
}
elseif (!empty($subelements) && is_array($subelements)) {
  print ">\n";

  // Subelements have already been themed in preprocess function.
  foreach ($subelements as $subelement) {
    print $subelement;
  }
  print "</{$element}>\n";
}
else {
  print " />\n";
}