MDL-65896 admin: add admin setting to show emoji picker
[moodle.git] / message / templates / message_drawer_view_conversation_footer_content.mustache
index 683d65a..d786bb9 100644 (file)
 
 }}
 
-<div
-    class="emoji-auto-complete-container w-100 hidden"
-    data-region="emoji-auto-complete-container"
-    aria-live="polite"
-    aria-hidden="true"
->
-</div>
+{{#showemojipicker}}
+    <div
+        class="emoji-auto-complete-container w-100 hidden"
+        data-region="emoji-auto-complete-container"
+        aria-live="polite"
+        aria-hidden="true"
+    >
+    </div>
+{{/showemojipicker}}
 <div class="d-flex mt-1">
     <textarea
         dir="auto"
     ></textarea>
 
     <div class="position-relative d-flex flex-column">
-        <div
-            data-region="emoji-picker-container"
-            class="emoji-picker-container hidden"
-            aria-hidden="true"
-        >
-            {{> core/emoji/picker }}
-        </div>
-        <button
-            class="btn btn-link btn-icon icon-size-3 ml-1"
-            data-action="toggle-emoji-picker"
-        >
-            {{#pix}} e/emoticons, core{{/pix}}
-        </button>
+        {{#showemojipicker}}
+            <div
+                data-region="emoji-picker-container"
+                class="emoji-picker-container hidden"
+                aria-hidden="true"
+            >
+                {{> core/emoji/picker }}
+            </div>
+            <button
+                class="btn btn-link btn-icon icon-size-3 ml-1"
+                data-action="toggle-emoji-picker"
+            >
+                {{#pix}} e/emoticons, core{{/pix}}
+            </button>
+        {{/showemojipicker}}
         <button
             class="btn btn-link btn-icon icon-size-3 ml-1 mt-auto"
             aria-label="{{#str}} sendmessage, core_message {{/str}}"