features.html 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <p><code>[features]</code> are an optional Skinr setting. They do not need to be
  2. specified. By default Skinr will assume that your styles can be used anywhere
  3. Skinr is available on your site, i.e. nodes, blocks, etc. If you want to
  4. reduce UI clutter and have more fine grained control over where your skins are
  5. used, you'll want to use the <code>[features]</code> option.
  6. </p>
  7. <p>The <code>[features]</code> setting is the equivalent of the high level
  8. Drupal theme hook. If nothing is specified in your skin it will appear
  9. everywhere by default. It may only contain underscores. By specifying a
  10. <code>[features]</code> you are telling Skinr: Only show this skin when
  11. editing X.
  12. </p>
  13. <p>Below is a listing of available options, by module:</p>
  14. <h3>Blocks</h3>
  15. <pre>
  16. skinr[skin_system_name][features][] = block
  17. skinr[skin_system_name][features][] = block_[module]
  18. </pre>
  19. <h3>Comments</h3>
  20. <pre>
  21. skinr[skin_system_name][features][] = comment_wrapper
  22. skinr[skin_system_name][features][] = comment_wrapper_[node_type]
  23. </pre>
  24. <h3>Nodes</h3>
  25. <pre>
  26. skinr[skin_system_name][features][] = node
  27. skinr[skin_system_name][features][] = node_[node_type]
  28. </pre>
  29. <em class="marker">Note: node_[node_type] is not yet implemented.</em>
  30. <h3>Page (body classes)</h3>
  31. <pre>
  32. skinr[skin_system_name][features][] = page
  33. </pre>
  34. <h3>Panels</h3>
  35. <pre>
  36. skinr[skin_system_name][features][] = panels_pane
  37. skinr[skin_system_name][features][] = panels_panel
  38. </pre>
  39. <h3>Views</h3>
  40. <pre>
  41. skinr[skin_system_name][features][] = views_view
  42. skinr[skin_system_name][features][] = views_view__[style_name]
  43. skinr[skin_system_name][features][] = views_view__[display_name]
  44. skinr[skin_system_name][features][] = views_view__[view_name]
  45. skinr[skin_system_name][features][] = views_view__[view_name]__[display_name]
  46. </pre>
  47. <em class="marker">Note: views_view__[style_name] is not yet implemented.</em>