diff --git __views-view-fields.tpl.php __views-view-fields.tpl.php new file mode 100644 index 0000000..42368f1 --- /dev/null +++ __views-view-fields.tpl.php @@ -0,0 +1,124 @@ +content: The output of the field. + * - $field->raw: The raw data for the field, if it exists. This is NOT output safe. + * - $field->class: The safe class id to use. + * - $field->handler: The Views field handler object controlling this field. Do not use + * var_export to dump this object, as it can't handle the recursion. + * - $field->inline: Whether or not the field should be inline. + * - $field->inline_html: either div or span based on the above flag. + * - $field->separator: an optional separator that may appear before a field. + * - $row: The raw result object from the query, with all data it fetched. + * + * @ingroup views_templates + */ +?> + + 'grid-4 alpha', + * '1' => 'grid-2', + * '2' => 'grid-2 omega', + * ); + * @endcode + * + * Above code will result in this structure: + * + * +--------------------------8--------------------------+ + * +-------------------------+ +-----------+ +-----------+ + * | | | | | | + * | 4 | | 2 | | 2 | + * | | | | | | + * +-------------------------+ +-----------+ +-----------+ + * + * In order to group fields together under the same grid definition is done by + * specifying and empty value. + * + * @code + * $row_wrapper = 'grid-8'; + * + * $ids = array( + * '0' => 'grid-6 alpha', + * '1' => 'grid-2 omega', + * '2' => '', + * ); + * @endcode + * + * Above code will result in this structure: + * + * +--------------------------8--------------------------+ + * +---------------------------------------+ +-----------+ + * | | | | + * | | | 2 | + * | | | | + * | 6 | +-----------+ + * | | +-----------+ + * | | | | + * | | | 2 | + * | | | | + * +---------------------------------------+ +-----------+ + */ + + // We usually need to add alpha omega, as this view in the "main" content area + // which already has grid definitions. + $row_wrapper = 'grid-9 alpha omega'; + + $ids = array( + '0' => 'grid-3 alpha', + '1' => 'grid-3', + '2' => 'grid-3 omega', + ); +?> + + +
+ $field): ?> + separator)): ?> + separator; ?> + + + + +
+ + + <inline_html;?> class="views-field-class;?>"> + label): ?> + + + element_type is either SPAN or DIV depending upon whether or not + // the field is a 'block' element type or 'inline' element type. + ?> + <element_type; ?> class="field-content">content; ?>element_type; ?>> + inline_html;?>> + + + +
+ + + +