Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/administration/recent_activity/recent_activity.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
description: Log and monitor activity through UI, PHP API and REST API.
month_change: true
---

# Recent activity [[% include 'snippets/experience_badge.md' %]] [[% include 'snippets/commerce_badge.md' %]]
Expand Down
3 changes: 2 additions & 1 deletion docs/api/php_api/php_api.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
---
description: Public PHP API exposes the Repository in a number of services and allows creating, reading, updating, managing, and deleting objects.
page_type: reference
month_change: true
---

# PHP API

The public PHP API enables you to interact with [[= product_name =]]'s Repository and content model from your PHP code.
The [public PHP API](../php_api_reference/) enables you to interact with [[= product_name =]]'s Repository and content model from your PHP code.

You can use it to create, read, update, manage, and delete all objects available in [[= product_name =]], namely
content and related objects such as Sections, Locations, content types, languages, etc.
Expand Down
7 changes: 7 additions & 0 deletions docs/css/navigation.css
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,13 @@
padding-bottom: 0.5rem;
}

.md-nav__link .pill.new {
margin-right: 15px;
background-color: #d9e8ff;
color: #3562a0;
text-transform: lowercase;
}

.md-nav__link::after {
font-weight: 700;
}
Expand Down
4 changes: 3 additions & 1 deletion theme/partials/nav-item.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<ul class="md-nav__list" data-md-scrollfix>
{% set base = path %}
{% for nav_item in nav_item.children %}
{% set path = base ~ "-" ~ loop.index %}
{% set path = base ~ "-" ~ loop.index %}
{% set level = level + 1 %}
{% include "partials/nav-item.html" %}
{% endfor %}
Expand All @@ -37,6 +37,7 @@
{% endif %}
<a href="{{ nav_item.url | url }}" class="md-nav__link level-{{ level }} md-nav__link--active">
{{ nav_item.title }}
{% if nav_item.meta.month_change %}<span class="pill new">New</span>{% endif %}
</a>
{% if toc | first is defined %}
{% include "partials/toc.html" %}
Expand All @@ -46,6 +47,7 @@
<li class="{{ class }}">
<a href="{{ nav_item.url | url }}" class="md-nav__link level-{{ level }}">
{{ nav_item.title }}
{% if nav_item.meta.month_change %}<span class="pill new">New</span>{% endif %}
</a>
</li>
{% endif %}