diff --git a/conf/themes/silverstripe/class.twig b/conf/themes/silverstripe/class.twig index 20aa18a..47c69b4 100644 --- a/conf/themes/silverstripe/class.twig +++ b/conf/themes/silverstripe/class.twig @@ -1,5 +1,5 @@ {% extends "default/class.twig" %} -{% from "macros.twig" import render_classes, property_link, hint_link, deprecated, deprecations, internals, todos %} +{% from "macros.twig" import render_classes, property_link, method_link, hint_link, deprecated, deprecations, internals, todos %} {# This has to be included so that we can add config after constants #} {% block page_content %} @@ -72,7 +72,7 @@ {% endblock %} -{# This has to be included so that we can exclude config from the properties section #} +{# This has to be included so that we can exclude config from the properties section, and to rearrange some display items #} {% block properties %}
- {% if property.isStatic() %}static{% endif %}
+ {# BEGIN CUSTOMISATION - add public, and reorder so that static is after visibility #}
+ {% if property.isPublic() %}public{% endif %}
{% if property.isProtected() %}protected{% endif %}
{% if property.isPrivate() %}private{% endif %}
- {{ hint_link(property.hint) }}
+ {% if property.isStatic() %}static{% endif %}
+ {# END CUSTOMISATION #}
{% if property.isInternal() %}{% trans 'internal' %}{% endif %}
{% if property.isDeprecated() %}{% trans 'deprecated' %}{% endif %}
{% if property.isReadOnly() %}{% trans 'read-only' %}{% endif %}
@@ -95,6 +97,9 @@
{% endif %} |
+ {# BEGIN CUSTOMISATION - move type hint into its own column to match config #}
+ {{ hint_link(property.hint) }} | + {# END CUSTOMISATION #}${{ property.name|raw }} | {{ property.shortdesc|desc(class)|md_to_html }} | @@ -110,6 +115,40 @@ |
{% trans 'No description' %}
+ {% else %} +{{ method.shortdesc|desc(class)|md_to_html }}
+ {%- endif %} +