You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: admin/css-classes.php
+15-3Lines changed: 15 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -11,12 +11,24 @@ function cache_everything_display_css_classes() {
11
11
<div class="wrap">
12
12
<h2>Available CSS Classes</h2>
13
13
<p>Below are the CSS classes available for use, based on your site and user roles, including generic guest and user status.</p>
14
-
<p>Elements with the following CSS classes will be hidden FOR ALL USERS on the front end UNLESS the user's role matches the class specified. Each element can only have one of these classes applied; mixing multiple classes on a single element is not supported.</p>
14
+
<h3>Classes to SHOW Elements Based on Roles</h3>
15
+
<p>Elements with the following CSS classes will be hidden FOR ALL USERS on the front end UNLESS the user's role matches the class specified. Each element can only have one of these classes applied; mixing multiple classes on a single element is not supported. Use the hide classes to hide elements for multiple user roles if more than one type of user needs to see the content.</p>
15
16
<ul>
16
17
<?php
17
18
foreach ($css_classesas$class) {
18
19
echo"<li>{$class}</li>";
19
20
}
20
-
echo'</ul>';
21
-
echo'</div>';
21
+
?>
22
+
</ul>
23
+
<h3>Classes to HIDE Elements Based on Roles</h3>
24
+
<p>Elements with the following CSS classes will be hidden ONLY FOR USERS that match the role indicated. Multiple classes per element are supported. If a user matches one or more roles, the element will be hidden.</p>
0 commit comments