Commit 775a2a91 by 牛晓林

mrege

parent 6bb28e48
<?php
/* @users/settings.twig */
class __TwigTemplate_8d750ce8324ebffa77cf68c2106ed47771cba5717b401af33a433c85fc49ee59 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
// line 1
$this->parent = $this->loadTemplate("@users/profile.twig", "@users/settings.twig", 1);
$this->blocks = array(
'content' => array($this, 'block_content'),
);
}
protected function doGetParent(array $context)
{
return "@users/profile.twig";
}
protected function doDisplay(array $context, array $blocks = array())
{
$this->parent->display($context, array_merge($this->blocks, $blocks));
}
// line 3
public function block_content($context, array $blocks = array())
{
// line 4
echo "
\t";
// line 5
$context["privacyOptions"] = array("all-users" => call_user_func_array($this->env->getFunction('translate')->getCallable(), array("All users")), "friends" => call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Friends")), "friends-of-friends" => call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Friends of friends")), "only-me" => call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Only Me")));
// line 11
echo "\t
\t<div class=\"ui basic vertical segment\">
\t\t<div class=\"ui secondary pointing menu settings-nav-menu settings-tabs\">
\t\t\t<a class=\"item active\" data-tab=\"account\">";
// line 14
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Account")), "html", null, true);
echo "</a>
\t\t\t";
// line 15
if (call_user_func_array($this->env->getFunction('currentUserCan')->getCallable(), array("change-privacy-settings"))) {
// line 16
echo "\t\t\t\t<a class=\"item\" data-tab=\"privacy\">";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Privacy")), "html", null, true);
echo "</a>
\t\t\t";
}
// line 18
echo "\t\t\t<a class=\"item\" data-tab=\"blocked-users\">";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Blocked users")), "html", null, true);
echo "</a>
\t\t\t<a class=\"item\" data-tab=\"notifications\">";
// line 19
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Notifications ")), "html", null, true);
echo "</a>
\t\t\t";
// line 21
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["environment"] ?? null), "dispatcher", array()), "dispatch", array(0 => "profileSettingsMenu"), "method"), "html", null, true);
echo "
\t\t\t<div class=\"ui dropdown item\" style=\"display:none;\">
\t\t\t\t<i class=\"ellipsis horizontal icon\"></i>
\t\t\t\t<div class=\"menu\"></div>
\t\t\t</div>
\t\t</div>
\t</div>
\t
\t<div class=\"ui tab active\" data-tab=\"account\">
\t\t<div class=\"ui vertical segment account-settings\">
\t\t\t<h3 class=\"ui header\">";
// line 32
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Account E-mail")), "html", null, true);
echo "</h3>
\t\t\t<div class=\"ui form\">
\t\t\t\t<div class=\"field\">
\t\t\t\t\t<label>";
// line 35
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Email")), "html", null, true);
echo "</label>
\t\t\t\t\t<input type=\"email\" name=\"email\" value=\"";
// line 36
echo twig_escape_filter($this->env, $this->getAttribute(($context["currentUser"] ?? null), "user_email", array()), "html", null, true);
echo "\">
\t\t\t\t</div>
\t\t\t\t<button class=\"ui button primary mini change-email\">";
// line 38
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Change email")), "html", null, true);
echo "</button>
\t\t\t</div>
\t\t\t
\t\t\t<h3 class=\"ui header\">";
// line 41
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Password change")), "html", null, true);
echo "</h3>
\t\t\t<div class=\"ui form\">
\t\t\t\t<div class=\"field\">
\t\t\t\t\t<label>";
// line 44
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("New Password")), "html", null, true);
echo "</label>
\t\t\t\t\t<input type=\"password\" name=\"password\">
\t\t\t\t</div>
\t\t\t\t<div class=\"field\">
\t\t\t\t\t<label>";
// line 48
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("New Password Confirmation")), "html", null, true);
echo "</label>
\t\t\t\t\t<input type=\"password\" name=\"password-confirmation\">
\t\t\t\t</div>
\t\t\t\t<button class=\"ui button primary mini change-password\">";
// line 51
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Change password")), "html", null, true);
echo "</button>
\t\t\t</div>
\t\t\t";
// line 54
if (call_user_func_array($this->env->getFunction('currentUserCan')->getCallable(), array("can-delete-their-account"))) {
// line 55
echo "\t\t\t\t<h3 class=\"ui header\">";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Account Deletion")), "html", null, true);
echo "</h3>
\t\t\t\t<div class=\"ui form\">
\t\t\t\t\t<div class=\"field\">
\t\t\t\t\t\t<div class=\"ui checkbox\">
\t\t\t\t\t\t\t<input type=\"checkbox\" id=\"delete-confirmation\" class=\"hidden confirm-deletion\">
\t\t\t\t\t\t\t<label for=\"delete-confirmation\">";
// line 60
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Confirm deletion (All user data will be deleted and cannot be restored)")), "html", null, true);
echo "</label>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<button class=\"ui button negative mini confirm-deletion-button\" style=\"display: none\">";
// line 63
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Delete account")), "html", null, true);
echo "</button>
\t\t\t\t</div>
\t\t\t";
}
// line 66
echo "\t\t</div>
\t</div>
\t<div class=\"ui tab\" data-tab=\"privacy\">
\t\t<div class=\"ui basic vertical segment privacy-settings\">
\t\t\t<div class=\"ui form\">
\t\t\t\t<h3 class=\"ui header\">";
// line 71
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Privacy")), "html", null, true);
echo "</h3>
\t\t\t\t
\t\t\t\t<div class=\"field\">
\t\t\t\t\t<label>";
// line 74
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Who can view my profile.")), "html", null, true);
echo "</label>
\t\t\t\t\t<select class=\"ui dropdown\" name=\"view-profile\">
\t\t\t\t\t\t";
// line 76
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["privacyOptions"] ?? null));
foreach ($context['_seq'] as $context["value"] => $context["title"]) {
// line 77
echo "\t\t\t\t\t\t\t<option value=\"";
echo twig_escape_filter($this->env, $context["value"], "html", null, true);
echo "\" ";
if (($this->getAttribute($this->getAttribute(($context["currentUser"] ?? null), "privacy", array()), "view-profile", array(), "array") == $context["value"])) {
echo "selected";
}
echo ">";
echo twig_escape_filter($this->env, $context["title"], "html", null, true);
echo "</option>
\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['value'], $context['title'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 79
echo "\t\t\t\t\t</select>
\t\t\t\t</div>
\t\t\t\t
\t\t\t\t<div class=\"field\">
\t\t\t\t\t<label>";
// line 83
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Who can view my profile activity page.")), "html", null, true);
echo "</label>
\t\t\t\t\t<select class=\"ui dropdown\" name=\"view-activity\">
\t\t\t\t\t\t";
// line 85
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["privacyOptions"] ?? null));
foreach ($context['_seq'] as $context["value"] => $context["title"]) {
// line 86
echo "\t\t\t\t\t\t\t<option value=\"";
echo twig_escape_filter($this->env, $context["value"], "html", null, true);
echo "\" ";
if (($this->getAttribute($this->getAttribute(($context["currentUser"] ?? null), "privacy", array()), "view-activity", array(), "array") == $context["value"])) {
echo "selected";
}
echo ">";
echo twig_escape_filter($this->env, $context["title"], "html", null, true);
echo "</option>
\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['value'], $context['title'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 88
echo "\t\t\t\t\t</select>
\t\t\t\t</div>
\t\t\t\t<div class=\"field\">
\t\t\t\t\t<label>";
// line 91
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Who can post to my profile activity.")), "html", null, true);
echo "</label>
\t\t\t\t\t<select class=\"ui dropdown\" name=\"post-activity\">
\t\t\t\t\t\t";
// line 93
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["privacyOptions"] ?? null));
foreach ($context['_seq'] as $context["value"] => $context["title"]) {
// line 94
echo "\t\t\t\t\t\t\t<option value=\"";
echo twig_escape_filter($this->env, $context["value"], "html", null, true);
echo "\" ";
if (($this->getAttribute($this->getAttribute(($context["currentUser"] ?? null), "privacy", array()), "post-activity", array(), "array") == $context["value"])) {
echo "selected";
}
echo ">";
echo twig_escape_filter($this->env, $context["title"], "html", null, true);
echo "</option>
\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['value'], $context['title'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 96
echo "\t\t\t\t\t</select>
\t\t\t\t</div>
\t\t\t\t";
// line 98
if (($this->getAttribute(($context["bConfig"] ?? null), "showFriendPostOpt", array()) == 1)) {
// line 99
echo "\t\t\t\t\t<div class=\"field\">
\t\t\t\t\t\t<input type=\"checkbox\" class=\"ui checkbox mbsFrontendCheckbox\" id=\"mbsUserPrivacyHideFriendPost\" name=\"friendPost\" value=\"1\" ";
// line 100
if (($this->getAttribute($this->getAttribute(($context["currentUser"] ?? null), "privacy", array()), "hideFriendPost", array(), "array") == 1)) {
echo "checked=\"checked\"";
}
echo "/>
\t\t\t\t\t\t<label for=\"mbsUserPrivacyHideFriendPost\" class=\"mbsFrontendLbl\">";
// line 101
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Don't add friend's posts to my activity.")), "html", null, true);
echo "</label>
\t\t\t\t\t</div>
\t\t\t\t";
}
// line 104
echo "\t\t\t\t<div class=\"field\">
\t\t\t\t\t<label>";
// line 105
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Who can comment my activity posts.")), "html", null, true);
echo "</label>
\t\t\t\t\t<select class=\"ui dropdown\" name=\"post-comments\">
\t\t\t\t\t\t";
// line 107
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["privacyOptions"] ?? null));
foreach ($context['_seq'] as $context["value"] => $context["title"]) {
// line 108
echo "\t\t\t\t\t\t\t<option value=\"";
echo twig_escape_filter($this->env, $context["value"], "html", null, true);
echo "\" ";
if (($this->getAttribute($this->getAttribute(($context["currentUser"] ?? null), "privacy", array()), "post-comments", array(), "array") == $context["value"])) {
echo "selected";
}
echo ">";
echo twig_escape_filter($this->env, $context["title"], "html", null, true);
echo "</option>
\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['value'], $context['title'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 110
echo "\t\t\t\t\t</select>
\t\t\t\t</div>
\t\t\t\t<div class=\"field\">
\t\t\t\t\t<label>";
// line 113
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Who can view comments on my activity posts.")), "html", null, true);
echo "</label>
\t\t\t\t\t<select class=\"ui dropdown\" name=\"view-comments\">
\t\t\t\t\t\t";
// line 115
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["privacyOptions"] ?? null));
foreach ($context['_seq'] as $context["value"] => $context["title"]) {
// line 116
echo "\t\t\t\t\t\t\t<option value=\"";
echo twig_escape_filter($this->env, $context["value"], "html", null, true);
echo "\" ";
if (($this->getAttribute($this->getAttribute(($context["currentUser"] ?? null), "privacy", array()), "view-comments", array(), "array") == $context["value"])) {
echo "selected";
}
echo ">";
echo twig_escape_filter($this->env, $context["title"], "html", null, true);
echo "</option>
\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['value'], $context['title'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 118
echo "\t\t\t\t\t</select>
\t\t\t\t</div>
\t\t\t\t<div class=\"field\">
\t\t\t\t\t<label>";
// line 121
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Who can view about information on my profile.")), "html", null, true);
echo "</label>
\t\t\t\t\t<select class=\"ui dropdown\" name=\"view-about\">
\t\t\t\t\t\t";
// line 123
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["privacyOptions"] ?? null));
foreach ($context['_seq'] as $context["value"] => $context["title"]) {
// line 124
echo "\t\t\t\t\t\t\t<option value=\"";
echo twig_escape_filter($this->env, $context["value"], "html", null, true);
echo "\" ";
if (($this->getAttribute($this->getAttribute(($context["currentUser"] ?? null), "privacy", array()), "view-about", array(), "array") == $context["value"])) {
echo "selected";
}
echo ">";
echo twig_escape_filter($this->env, $context["title"], "html", null, true);
echo "</option>
\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['value'], $context['title'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 126
echo "\t\t\t\t\t</select>
\t\t\t\t</div>
\t\t\t\t<div class=\"field\">
\t\t\t\t\t<label>";
// line 129
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Who can view my friends.")), "html", null, true);
echo "</label>
\t\t\t\t\t<select class=\"ui dropdown\" name=\"view-friends\">
\t\t\t\t\t\t";
// line 131
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["privacyOptions"] ?? null));
foreach ($context['_seq'] as $context["value"] => $context["title"]) {
// line 132
echo "\t\t\t\t\t\t\t<option value=\"";
echo twig_escape_filter($this->env, $context["value"], "html", null, true);
echo "\" ";
if (($this->getAttribute($this->getAttribute(($context["currentUser"] ?? null), "privacy", array()), "view-friends", array(), "array") == $context["value"])) {
echo "selected";
}
echo ">";
echo twig_escape_filter($this->env, $context["title"], "html", null, true);
echo "</option>
\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['value'], $context['title'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 134
echo "\t\t\t\t\t</select>
\t\t\t\t</div>
\t\t\t\t<div class=\"field\">
\t\t\t\t\t<label>";
// line 137
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Who can view my follows.")), "html", null, true);
echo "</label>
\t\t\t\t\t<select class=\"ui dropdown\" name=\"view-follows\">
\t\t\t\t\t\t";
// line 139
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["privacyOptions"] ?? null));
foreach ($context['_seq'] as $context["value"] => $context["title"]) {
// line 140
echo "\t\t\t\t\t\t\t<option value=\"";
echo twig_escape_filter($this->env, $context["value"], "html", null, true);
echo "\" ";
if (($this->getAttribute($this->getAttribute(($context["currentUser"] ?? null), "privacy", array()), "view-follows", array(), "array") == $context["value"])) {
echo "selected";
}
echo ">";
echo twig_escape_filter($this->env, $context["title"], "html", null, true);
echo "</option>
\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['value'], $context['title'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 142
echo "\t\t\t\t\t</select>
\t\t\t\t</div>
\t\t\t\t<div class=\"field\">
\t\t\t\t\t<label>";
// line 145
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Who can view my followers.")), "html", null, true);
echo "</label>
\t\t\t\t\t<select class=\"ui dropdown\" name=\"view-followers\">
\t\t\t\t\t\t";
// line 147
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["privacyOptions"] ?? null));
foreach ($context['_seq'] as $context["value"] => $context["title"]) {
// line 148
echo "\t\t\t\t\t\t\t<option value=\"";
echo twig_escape_filter($this->env, $context["value"], "html", null, true);
echo "\" ";
if (($this->getAttribute($this->getAttribute(($context["currentUser"] ?? null), "privacy", array()), "view-followers", array(), "array") == $context["value"])) {
echo "selected";
}
echo ">";
echo twig_escape_filter($this->env, $context["title"], "html", null, true);
echo "</option>
\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['value'], $context['title'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 150
echo "\t\t\t\t\t</select>
\t\t\t\t</div>
\t\t\t\t<div class=\"field\">
\t\t\t\t\t<label>";
// line 153
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Who can view my groups.")), "html", null, true);
echo "</label>
\t\t\t\t\t<select class=\"ui dropdown\" name=\"view-groups\">
\t\t\t\t\t\t";
// line 155
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["privacyOptions"] ?? null));
foreach ($context['_seq'] as $context["value"] => $context["title"]) {
// line 156
echo "\t\t\t\t\t\t\t<option value=\"";
echo twig_escape_filter($this->env, $context["value"], "html", null, true);
echo "\" ";
if (($this->getAttribute($this->getAttribute(($context["currentUser"] ?? null), "privacy", array()), "view-groups", array(), "array") == $context["value"])) {
echo "selected";
}
echo ">";
echo twig_escape_filter($this->env, $context["title"], "html", null, true);
echo "</option>
\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['value'], $context['title'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 158
echo "\t\t\t\t\t</select>
\t\t\t\t</div>
\t\t\t\t<div class=\"field\">
\t\t\t\t\t<label>";
// line 161
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Who can view my posts.")), "html", null, true);
echo "</label>
\t\t\t\t\t<select class=\"ui dropdown\" name=\"view-posts\">
\t\t\t\t\t\t";
// line 163
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["privacyOptions"] ?? null));
foreach ($context['_seq'] as $context["value"] => $context["title"]) {
// line 164
echo "\t\t\t\t\t\t\t<option value=\"";
echo twig_escape_filter($this->env, $context["value"], "html", null, true);
echo "\" ";
if (($this->getAttribute($this->getAttribute(($context["currentUser"] ?? null), "privacy", array()), "view-posts", array(), "array") == $context["value"])) {
echo "selected";
}
echo ">";
echo twig_escape_filter($this->env, $context["title"], "html", null, true);
echo "</option>
\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['value'], $context['title'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 166
echo "\t\t\t\t\t</select>
\t\t\t\t</div>
\t\t\t\t<div class=\"field\">
\t\t\t\t\t<label>";
// line 169
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Who can send me private messages.")), "html", null, true);
echo "</label>
\t\t\t\t\t<select class=\"ui dropdown\" name=\"send-messages\">
\t\t\t\t\t\t";
// line 171
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["privacyOptions"] ?? null));
foreach ($context['_seq'] as $context["value"] => $context["title"]) {
// line 172
echo "\t\t\t\t\t\t\t<option value=\"";
echo twig_escape_filter($this->env, $context["value"], "html", null, true);
echo "\" ";
if (($this->getAttribute($this->getAttribute(($context["currentUser"] ?? null), "privacy", array()), "send-messages", array(), "array") == $context["value"])) {
echo "selected";
}
echo ">";
echo twig_escape_filter($this->env, $context["title"], "html", null, true);
echo "</option>
\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['value'], $context['title'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 174
echo "\t\t\t\t\t</select>
\t\t\t\t</div>
\t\t\t\t";
// line 185
echo "\t\t\t</div>
\t\t</div>
\t</div>
\t<div class=\"ui tab\" data-tab=\"blocked-users\">
\t\t<div class=\"ui basic vertical segment blocked-users\">
\t\t\t<div class=\"column\">
\t\t\t\t<div class=\"ui divided items\">
\t\t\t\t\t";
// line 192
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["blockedUsers"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["user"]) {
// line 193
echo "\t\t\t\t\t\t<div class=\"item blocked-user\" data-id=\"";
echo twig_escape_filter($this->env, $this->getAttribute($context["user"], "id", array()), "html", null, true);
echo "\">
\t\t\t\t\t\t\t<a href=\"";
// line 194
echo twig_escape_filter($this->env, $this->env->getExtension('Membership_Users_Twig')->profileUrl($context["user"]), "html", null, true);
echo "\" class=\"ui tiny image\">
\t\t\t\t\t\t\t\t<img src=\"";
// line 195
echo twig_escape_filter($this->env, $this->env->getExtension('Membership_Users_Twig')->userAvatar($context["user"], "default"), "html", null, true);
echo "\">
\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t<div class=\"content\">
\t\t\t\t\t\t\t\t<a href=\"";
// line 198
echo twig_escape_filter($this->env, $this->env->getExtension('Membership_Users_Twig')->profileUrl($context["user"]), "html", null, true);
echo "\" class=\"header\">";
echo twig_escape_filter($this->env, $this->getAttribute($context["user"], "displayName", array()), "html", null, true);
echo "</a>
\t\t\t\t\t\t\t\t<div class=\"extra\">
\t\t\t\t\t\t\t\t\t<button class=\"ui button mini primary\">";
// line 200
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Unblock")), "html", null, true);
echo "</button>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['user'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 205
echo "\t\t\t\t\t<div class=\"ui basic vertical segment\" ";
if (($context["followers"] ?? null)) {
echo "style=\"display: none\"";
}
echo ">
\t\t\t\t\t\t<div class=\"ui message\">
\t\t\t\t\t\t\t<p>";
// line 207
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("No blocked users to show.")), "html", null, true);
echo "</p>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</div>
\t<div class=\"ui tab\" data-tab=\"notifications\">
\t\t<div class=\"ui basic vertical segment notifications-settings\">
\t\t\t<div class=\"column\">
\t\t\t\t<div class=\"ui divided items\">
\t\t\t\t\t<div class=\"ui form\">
\t\t\t\t\t\t<h5 class=\"ui header\">Notify me when someone</h5>
\t\t\t\t\t\t<div class=\"field\">
\t\t\t\t\t\t\t<div class=\"ui checkbox\">
\t\t\t\t\t\t\t\t<input type=\"checkbox\" id=\"notifications-messages\" class=\"hidden\"
\t\t\t\t\t\t\t\t ";
// line 223
if (($this->getAttribute($this->getAttribute(($context["currentUser"] ?? null), "notifications", array()), "messages", array(), "array") == "on")) {
echo "checked=\"checked\"";
}
// line 224
echo "\t\t\t\t\t\t\t\t>
\t\t\t\t\t\t\t\t<label for=\"notifications-messages\">";
// line 225
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Send private message")), "html", null, true);
echo "</label>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"field\">
\t\t\t\t\t\t\t<div class=\"ui checkbox\">
\t\t\t\t\t\t\t\t<input type=\"checkbox\" id=\"notifications-friend-requests\" class=\"hidden\"
\t\t\t\t\t\t\t\t ";
// line 231
if (($this->getAttribute($this->getAttribute(($context["currentUser"] ?? null), "notifications", array()), "friend-requests", array(), "array") == "on")) {
echo "checked=\"checked\"";
}
// line 232
echo "\t\t\t\t\t\t\t\t>
\t\t\t\t\t\t\t\t<label for=\"notifications-friend-requests\">";
// line 233
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Send friend request")), "html", null, true);
echo "</label>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"field\">
\t\t\t\t\t\t\t<div class=\"ui checkbox\">
\t\t\t\t\t\t\t\t<input type=\"checkbox\" id=\"notifications-follows\" class=\"hidden\"
\t\t\t\t\t\t\t\t ";
// line 239
if (($this->getAttribute($this->getAttribute(($context["currentUser"] ?? null), "notifications", array()), "follows", array(), "array") == "on")) {
echo "checked=\"checked\"";
}
// line 240
echo "\t\t\t\t\t\t\t\t>
\t\t\t\t\t\t\t\t<label for=\"notifications-follows\">";
// line 241
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Follows me")), "html", null, true);
echo "</label>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</div>
\t";
// line 249
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["environment"] ?? null), "dispatcher", array()), "dispatch", array(0 => "profileSettingsTabs"), "method"), "html", null, true);
echo "
\t\t
\t<div class=\"ui small modal mp-confirm-password\">
\t\t<i class=\"close icon\"></i>
\t\t<div class=\"header\">
\t\t\t";
// line 254
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Confirm your current password to continue")), "html", null, true);
echo "
\t\t</div>
\t\t<div class=\"content\">
\t\t\t<div class=\"ui form\">
\t\t\t\t<div class=\"field\">
\t\t\t\t\t<label>";
// line 259
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Password")), "html", null, true);
echo "</label>
\t\t\t\t\t<input type=\"password\">
\t\t\t\t</div>
\t\t\t\t<div class=\"ui message error\"></div>
\t\t\t</div>
\t\t</div>
\t\t<div class=\"actions\">
\t\t\t<button class=\"ui mini button secondary cancel\">";
// line 266
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Cancel")), "html", null, true);
echo "</button>
\t\t\t<button class=\"ui mini primary positive button\">";
// line 267
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Confirm password")), "html", null, true);
echo "</button>
\t\t</div>
\t</div>
\t
";
}
public function getTemplateName()
{
return "@users/settings.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 679 => 267, 675 => 266, 665 => 259, 657 => 254, 649 => 249, 638 => 241, 635 => 240, 631 => 239, 622 => 233, 619 => 232, 615 => 231, 606 => 225, 603 => 224, 599 => 223, 580 => 207, 572 => 205, 561 => 200, 554 => 198, 548 => 195, 544 => 194, 539 => 193, 535 => 192, 526 => 185, 522 => 174, 507 => 172, 503 => 171, 498 => 169, 493 => 166, 478 => 164, 474 => 163, 469 => 161, 464 => 158, 449 => 156, 445 => 155, 440 => 153, 435 => 150, 420 => 148, 416 => 147, 411 => 145, 406 => 142, 391 => 140, 387 => 139, 382 => 137, 377 => 134, 362 => 132, 358 => 131, 353 => 129, 348 => 126, 333 => 124, 329 => 123, 324 => 121, 319 => 118, 304 => 116, 300 => 115, 295 => 113, 290 => 110, 275 => 108, 271 => 107, 266 => 105, 263 => 104, 257 => 101, 251 => 100, 248 => 99, 246 => 98, 242 => 96, 227 => 94, 223 => 93, 218 => 91, 213 => 88, 198 => 86, 194 => 85, 189 => 83, 183 => 79, 168 => 77, 164 => 76, 159 => 74, 153 => 71, 146 => 66, 140 => 63, 134 => 60, 125 => 55, 123 => 54, 117 => 51, 111 => 48, 104 => 44, 98 => 41, 92 => 38, 87 => 36, 83 => 35, 77 => 32, 63 => 21, 58 => 19, 53 => 18, 47 => 16, 45 => 15, 41 => 14, 36 => 11, 34 => 5, 31 => 4, 28 => 3, 11 => 1,);
}
/** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
public function getSource()
{
@trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
return $this->getSourceContext()->getCode();
}
public function getSourceContext()
{
return new Twig_Source("{% extends '@users/profile.twig' %}
{% block content %}
\t{% set privacyOptions = {
\t\t'all-users': translate('All users'),
\t\t'friends': translate('Friends'),
\t\t'friends-of-friends': translate('Friends of friends'),
\t\t'only-me': translate('Only Me'),
\t} %}
\t
\t<div class=\"ui basic vertical segment\">
\t\t<div class=\"ui secondary pointing menu settings-nav-menu settings-tabs\">
\t\t\t<a class=\"item active\" data-tab=\"account\">{{ translate('Account') }}</a>
\t\t\t{% if currentUserCan('change-privacy-settings') %}
\t\t\t\t<a class=\"item\" data-tab=\"privacy\">{{ translate('Privacy') }}</a>
\t\t\t{% endif %}
\t\t\t<a class=\"item\" data-tab=\"blocked-users\">{{ translate('Blocked users') }}</a>
\t\t\t<a class=\"item\" data-tab=\"notifications\">{{ translate('Notifications ') }}</a>
\t\t\t{{ environment.dispatcher.dispatch('profileSettingsMenu') }}
\t\t\t<div class=\"ui dropdown item\" style=\"display:none;\">
\t\t\t\t<i class=\"ellipsis horizontal icon\"></i>
\t\t\t\t<div class=\"menu\"></div>
\t\t\t</div>
\t\t</div>
\t</div>
\t
\t<div class=\"ui tab active\" data-tab=\"account\">
\t\t<div class=\"ui vertical segment account-settings\">
\t\t\t<h3 class=\"ui header\">{{ translate('Account E-mail') }}</h3>
\t\t\t<div class=\"ui form\">
\t\t\t\t<div class=\"field\">
\t\t\t\t\t<label>{{ translate('Email') }}</label>
\t\t\t\t\t<input type=\"email\" name=\"email\" value=\"{{ currentUser.user_email }}\">
\t\t\t\t</div>
\t\t\t\t<button class=\"ui button primary mini change-email\">{{ translate('Change email') }}</button>
\t\t\t</div>
\t\t\t
\t\t\t<h3 class=\"ui header\">{{ translate('Password change') }}</h3>
\t\t\t<div class=\"ui form\">
\t\t\t\t<div class=\"field\">
\t\t\t\t\t<label>{{ translate('New Password') }}</label>
\t\t\t\t\t<input type=\"password\" name=\"password\">
\t\t\t\t</div>
\t\t\t\t<div class=\"field\">
\t\t\t\t\t<label>{{ translate('New Password Confirmation') }}</label>
\t\t\t\t\t<input type=\"password\" name=\"password-confirmation\">
\t\t\t\t</div>
\t\t\t\t<button class=\"ui button primary mini change-password\">{{ translate('Change password') }}</button>
\t\t\t</div>
\t\t\t{% if currentUserCan('can-delete-their-account') %}
\t\t\t\t<h3 class=\"ui header\">{{ translate('Account Deletion') }}</h3>
\t\t\t\t<div class=\"ui form\">
\t\t\t\t\t<div class=\"field\">
\t\t\t\t\t\t<div class=\"ui checkbox\">
\t\t\t\t\t\t\t<input type=\"checkbox\" id=\"delete-confirmation\" class=\"hidden confirm-deletion\">
\t\t\t\t\t\t\t<label for=\"delete-confirmation\">{{ translate('Confirm deletion (All user data will be deleted and cannot be restored)') }}</label>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<button class=\"ui button negative mini confirm-deletion-button\" style=\"display: none\">{{ translate('Delete account') }}</button>
\t\t\t\t</div>
\t\t\t{% endif %}
\t\t</div>
\t</div>
\t<div class=\"ui tab\" data-tab=\"privacy\">
\t\t<div class=\"ui basic vertical segment privacy-settings\">
\t\t\t<div class=\"ui form\">
\t\t\t\t<h3 class=\"ui header\">{{ translate('Privacy') }}</h3>
\t\t\t\t
\t\t\t\t<div class=\"field\">
\t\t\t\t\t<label>{{ translate('Who can view my profile.') }}</label>
\t\t\t\t\t<select class=\"ui dropdown\" name=\"view-profile\">
\t\t\t\t\t\t{% for value, title in privacyOptions %}
\t\t\t\t\t\t\t<option value=\"{{ value }}\" {% if currentUser.privacy['view-profile'] == value %}selected{% endif %}>{{ title }}</option>
\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t</select>
\t\t\t\t</div>
\t\t\t\t
\t\t\t\t<div class=\"field\">
\t\t\t\t\t<label>{{ translate('Who can view my profile activity page.') }}</label>
\t\t\t\t\t<select class=\"ui dropdown\" name=\"view-activity\">
\t\t\t\t\t\t{% for value, title in privacyOptions %}
\t\t\t\t\t\t\t<option value=\"{{ value }}\" {% if currentUser.privacy['view-activity'] == value %}selected{% endif %}>{{ title }}</option>
\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t</select>
\t\t\t\t</div>
\t\t\t\t<div class=\"field\">
\t\t\t\t\t<label>{{ translate('Who can post to my profile activity.') }}</label>
\t\t\t\t\t<select class=\"ui dropdown\" name=\"post-activity\">
\t\t\t\t\t\t{% for value, title in privacyOptions %}
\t\t\t\t\t\t\t<option value=\"{{ value }}\" {% if currentUser.privacy['post-activity'] == value %}selected{% endif %}>{{ title }}</option>
\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t</select>
\t\t\t\t</div>
\t\t\t\t{% if bConfig.showFriendPostOpt == 1 %}
\t\t\t\t\t<div class=\"field\">
\t\t\t\t\t\t<input type=\"checkbox\" class=\"ui checkbox mbsFrontendCheckbox\" id=\"mbsUserPrivacyHideFriendPost\" name=\"friendPost\" value=\"1\" {% if currentUser.privacy['hideFriendPost'] == 1 %}checked=\"checked\"{% endif %}/>
\t\t\t\t\t\t<label for=\"mbsUserPrivacyHideFriendPost\" class=\"mbsFrontendLbl\">{{ translate(\"Don't add friend's posts to my activity.\") }}</label>
\t\t\t\t\t</div>
\t\t\t\t{% endif %}
\t\t\t\t<div class=\"field\">
\t\t\t\t\t<label>{{ translate('Who can comment my activity posts.') }}</label>
\t\t\t\t\t<select class=\"ui dropdown\" name=\"post-comments\">
\t\t\t\t\t\t{% for value, title in privacyOptions %}
\t\t\t\t\t\t\t<option value=\"{{ value }}\" {% if currentUser.privacy['post-comments'] == value %}selected{% endif %}>{{ title }}</option>
\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t</select>
\t\t\t\t</div>
\t\t\t\t<div class=\"field\">
\t\t\t\t\t<label>{{ translate('Who can view comments on my activity posts.') }}</label>
\t\t\t\t\t<select class=\"ui dropdown\" name=\"view-comments\">
\t\t\t\t\t\t{% for value, title in privacyOptions %}
\t\t\t\t\t\t\t<option value=\"{{ value }}\" {% if currentUser.privacy['view-comments'] == value %}selected{% endif %}>{{ title }}</option>
\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t</select>
\t\t\t\t</div>
\t\t\t\t<div class=\"field\">
\t\t\t\t\t<label>{{ translate('Who can view about information on my profile.') }}</label>
\t\t\t\t\t<select class=\"ui dropdown\" name=\"view-about\">
\t\t\t\t\t\t{% for value, title in privacyOptions %}
\t\t\t\t\t\t\t<option value=\"{{ value }}\" {% if currentUser.privacy['view-about'] == value %}selected{% endif %}>{{ title }}</option>
\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t</select>
\t\t\t\t</div>
\t\t\t\t<div class=\"field\">
\t\t\t\t\t<label>{{ translate('Who can view my friends.') }}</label>
\t\t\t\t\t<select class=\"ui dropdown\" name=\"view-friends\">
\t\t\t\t\t\t{% for value, title in privacyOptions %}
\t\t\t\t\t\t\t<option value=\"{{ value }}\" {% if currentUser.privacy['view-friends'] == value %}selected{% endif %}>{{ title }}</option>
\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t</select>
\t\t\t\t</div>
\t\t\t\t<div class=\"field\">
\t\t\t\t\t<label>{{ translate('Who can view my follows.') }}</label>
\t\t\t\t\t<select class=\"ui dropdown\" name=\"view-follows\">
\t\t\t\t\t\t{% for value, title in privacyOptions %}
\t\t\t\t\t\t\t<option value=\"{{ value }}\" {% if currentUser.privacy['view-follows'] == value %}selected{% endif %}>{{ title }}</option>
\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t</select>
\t\t\t\t</div>
\t\t\t\t<div class=\"field\">
\t\t\t\t\t<label>{{ translate('Who can view my followers.') }}</label>
\t\t\t\t\t<select class=\"ui dropdown\" name=\"view-followers\">
\t\t\t\t\t\t{% for value, title in privacyOptions %}
\t\t\t\t\t\t\t<option value=\"{{ value }}\" {% if currentUser.privacy['view-followers'] == value %}selected{% endif %}>{{ title }}</option>
\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t</select>
\t\t\t\t</div>
\t\t\t\t<div class=\"field\">
\t\t\t\t\t<label>{{ translate('Who can view my groups.') }}</label>
\t\t\t\t\t<select class=\"ui dropdown\" name=\"view-groups\">
\t\t\t\t\t\t{% for value, title in privacyOptions %}
\t\t\t\t\t\t\t<option value=\"{{ value }}\" {% if currentUser.privacy['view-groups'] == value %}selected{% endif %}>{{ title }}</option>
\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t</select>
\t\t\t\t</div>
\t\t\t\t<div class=\"field\">
\t\t\t\t\t<label>{{ translate('Who can view my posts.') }}</label>
\t\t\t\t\t<select class=\"ui dropdown\" name=\"view-posts\">
\t\t\t\t\t\t{% for value, title in privacyOptions %}
\t\t\t\t\t\t\t<option value=\"{{ value }}\" {% if currentUser.privacy['view-posts'] == value %}selected{% endif %}>{{ title }}</option>
\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t</select>
\t\t\t\t</div>
\t\t\t\t<div class=\"field\">
\t\t\t\t\t<label>{{ translate('Who can send me private messages.') }}</label>
\t\t\t\t\t<select class=\"ui dropdown\" name=\"send-messages\">
\t\t\t\t\t\t{% for value, title in privacyOptions %}
\t\t\t\t\t\t\t<option value=\"{{ value }}\" {% if currentUser.privacy['send-messages'] == value %}selected{% endif %}>{{ title }}</option>
\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t</select>
\t\t\t\t</div>
\t\t\t\t{#
\t\t\t\t<div class=\"field\">
\t\t\t\t\t<label>{{ translate('Show my profile in Members Directory.') }}</label>
\t\t\t\t\t<select class=\"ui dropdown\" name=\"show-in-members-directory\">
\t\t\t\t\t\t<option value=\"yes\" {% if currentUser.privacy['show-in-members-directory'] == 'yes' %}selected{% endif %}>{{ translate('Yes') }}</option>
\t\t\t\t\t\t<option value=\"no\" {% if currentUser.privacy['show-in-members-directory'] == 'no' %}selected{% endif %}>{{ translate('No') }}</option>
\t\t\t\t\t</select>
\t\t\t\t</div>
\t\t\t\t#}
\t\t\t</div>
\t\t</div>
\t</div>
\t<div class=\"ui tab\" data-tab=\"blocked-users\">
\t\t<div class=\"ui basic vertical segment blocked-users\">
\t\t\t<div class=\"column\">
\t\t\t\t<div class=\"ui divided items\">
\t\t\t\t\t{% for user in blockedUsers %}
\t\t\t\t\t\t<div class=\"item blocked-user\" data-id=\"{{ user.id }}\">
\t\t\t\t\t\t\t<a href=\"{{ profileUrl(user) }}\" class=\"ui tiny image\">
\t\t\t\t\t\t\t\t<img src=\"{{ userAvatar(user, 'default') }}\">
\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t<div class=\"content\">
\t\t\t\t\t\t\t\t<a href=\"{{ profileUrl(user) }}\" class=\"header\">{{ user.displayName }}</a>
\t\t\t\t\t\t\t\t<div class=\"extra\">
\t\t\t\t\t\t\t\t\t<button class=\"ui button mini primary\">{{ translate('Unblock') }}</button>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t{% endfor %}
\t\t\t\t\t<div class=\"ui basic vertical segment\" {% if followers %}style=\"display: none\"{% endif %}>
\t\t\t\t\t\t<div class=\"ui message\">
\t\t\t\t\t\t\t<p>{{ translate('No blocked users to show.') }}</p>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</div>
\t<div class=\"ui tab\" data-tab=\"notifications\">
\t\t<div class=\"ui basic vertical segment notifications-settings\">
\t\t\t<div class=\"column\">
\t\t\t\t<div class=\"ui divided items\">
\t\t\t\t\t<div class=\"ui form\">
\t\t\t\t\t\t<h5 class=\"ui header\">Notify me when someone</h5>
\t\t\t\t\t\t<div class=\"field\">
\t\t\t\t\t\t\t<div class=\"ui checkbox\">
\t\t\t\t\t\t\t\t<input type=\"checkbox\" id=\"notifications-messages\" class=\"hidden\"
\t\t\t\t\t\t\t\t {% if currentUser.notifications['messages'] == 'on' %}checked=\"checked\"{% endif %}
\t\t\t\t\t\t\t\t>
\t\t\t\t\t\t\t\t<label for=\"notifications-messages\">{{ translate('Send private message') }}</label>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"field\">
\t\t\t\t\t\t\t<div class=\"ui checkbox\">
\t\t\t\t\t\t\t\t<input type=\"checkbox\" id=\"notifications-friend-requests\" class=\"hidden\"
\t\t\t\t\t\t\t\t {% if currentUser.notifications['friend-requests'] == 'on' %}checked=\"checked\"{% endif %}
\t\t\t\t\t\t\t\t>
\t\t\t\t\t\t\t\t<label for=\"notifications-friend-requests\">{{ translate('Send friend request') }}</label>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"field\">
\t\t\t\t\t\t\t<div class=\"ui checkbox\">
\t\t\t\t\t\t\t\t<input type=\"checkbox\" id=\"notifications-follows\" class=\"hidden\"
\t\t\t\t\t\t\t\t {% if currentUser.notifications['follows'] == 'on' %}checked=\"checked\"{% endif %}
\t\t\t\t\t\t\t\t>
\t\t\t\t\t\t\t\t<label for=\"notifications-follows\">{{ translate('Follows me') }}</label>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</div>
\t{{ environment.dispatcher.dispatch('profileSettingsTabs') }}
\t\t
\t<div class=\"ui small modal mp-confirm-password\">
\t\t<i class=\"close icon\"></i>
\t\t<div class=\"header\">
\t\t\t{{ translate('Confirm your current password to continue') }}
\t\t</div>
\t\t<div class=\"content\">
\t\t\t<div class=\"ui form\">
\t\t\t\t<div class=\"field\">
\t\t\t\t\t<label>{{ translate('Password') }}</label>
\t\t\t\t\t<input type=\"password\">
\t\t\t\t</div>
\t\t\t\t<div class=\"ui message error\"></div>
\t\t\t</div>
\t\t</div>
\t\t<div class=\"actions\">
\t\t\t<button class=\"ui mini button secondary cancel\">{{ translate('Cancel') }}</button>
\t\t\t<button class=\"ui mini primary positive button\">{{ translate('Confirm password') }}</button>
\t\t</div>
\t</div>
\t
{% endblock %}", "@users/settings.twig", "D:\\projects\\htdocs\\wordpress\\wp-content\\plugins\\membership-by-supsystic\\src\\Membership\\Users\\views\\settings.twig");
}
}
<?php
/* @activity/partials/activities.twig */
class __TwigTemplate_482949c60d696e4a2f42c872913569e23c1a4fda45eaf95bce777c27dbc658ea extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
);
}
protected function doDisplay(array $context, array $blocks = array())
{
// line 1
$context["this"] = $this;
// line 2
echo "
";
// line 3
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["activities"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["activity"]) {
// line 4
echo "\t";
if ($this->getAttribute($context["activity"], "relatedActivity", array())) {
// line 5
echo "\t\t";
echo $context["this"]->getactivity($this->getAttribute($context["activity"], "relatedActivity", array()), "relatedActivity", $context["activity"], ($context["context"] ?? null), ($context["params"] ?? null), ($context["settings"] ?? null));
echo "
\t";
} else {
// line 7
echo "\t\t";
echo $context["this"]->getactivity($context["activity"], null, null, ($context["context"] ?? null), ($context["params"] ?? null), ($context["settings"] ?? null));
echo "
\t";
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['activity'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 10
echo "
";
}
// line 11
public function getactivity($__activity__ = null, $__activityType__ = null, $__relatedActivity__ = null, $__activityContext__ = null, $__params__ = null, $__settings__ = null, ...$__varargs__)
{
$context = $this->env->mergeGlobals(array(
"activity" => $__activity__,
"activityType" => $__activityType__,
"relatedActivity" => $__relatedActivity__,
"activityContext" => $__activityContext__,
"params" => $__params__,
"settings" => $__settings__,
"varargs" => $__varargs__,
));
$blocks = array();
ob_start();
try {
// line 12
echo " ";
$context["this"] = $this;
// line 13
echo " <div class=\"ui segments mp-activity\" data-activity-id=\"";
echo twig_escape_filter($this->env, $this->getAttribute(($context["activity"] ?? null), "id", array()), "html", null, true);
echo "\">
\t ";
// line 14
if (($context["relatedActivity"] ?? null)) {
// line 15
echo "\t\t <div class=\"ui basic segment\">
\t\t\t ";
// line 16
if (($this->getAttribute(($context["relatedActivity"] ?? null), "type", array()) == "activity_comment")) {
// line 17
echo "\t\t\t\t ";
echo sprintf(call_user_func_array($this->env->getFunction('translate')->getCallable(), array("%s commented post from %s on %s.")), (((("<a href=\"" . $this->env->getExtension('Membership_Users_Twig')->profileUrl($this->getAttribute( // line 19
($context["relatedActivity"] ?? null), "author", array()))) . "\">") . $this->getAttribute($this->getAttribute(($context["relatedActivity"] ?? null), "author", array()), "displayName", array())) . "</a>"), (((("<b><a href=\"" . $this->env->getExtension('Membership_Users_Twig')->profileUrl($this->getAttribute($this->getAttribute( // line 20
($context["relatedActivity"] ?? null), "relatedActivity", array()), "author", array()))) . "\">") . $this->getAttribute($this->getAttribute($this->getAttribute(($context["relatedActivity"] ?? null), "relatedActivity", array()), "author", array()), "display_name", array())) . "</a></b>"), twig_date_format_filter($this->env, $this->getAttribute($this->getAttribute( // line 21
($context["relatedActivity"] ?? null), "relatedActivity", array()), "created_at", array()), "Y-m-d"));
// line 24
echo "
\t\t\t ";
}
// line 26
echo "\t\t\t ";
if (($this->getAttribute(($context["relatedActivity"] ?? null), "type", array()) == "like")) {
// line 27
echo "\t\t\t ";
echo sprintf(call_user_func_array($this->env->getFunction('translate')->getCallable(), array("%s liked post from %s on %s.")), (((("<a href=\"" . $this->env->getExtension('Membership_Users_Twig')->profileUrl($this->getAttribute( // line 29
($context["relatedActivity"] ?? null), "author", array()))) . "\">") . $this->getAttribute($this->getAttribute(($context["relatedActivity"] ?? null), "author", array()), "displayName", array())) . "</a>"), (((("<b><a href=\"" . $this->env->getExtension('Membership_Users_Twig')->profileUrl($this->getAttribute($this->getAttribute( // line 30
($context["relatedActivity"] ?? null), "relatedActivity", array()), "author", array()))) . "\">") . $this->getAttribute($this->getAttribute($this->getAttribute(($context["relatedActivity"] ?? null), "relatedActivity", array()), "author", array()), "display_name", array())) . "</a></b>"), twig_date_format_filter($this->env, $this->getAttribute($this->getAttribute( // line 31
($context["relatedActivity"] ?? null), "relatedActivity", array()), "created_at", array()), "Y-m-d"));
// line 34
echo "
\t\t\t ";
}
// line 36
echo "
\t\t\t\t";
// line 37
if (($this->getAttribute(($context["relatedActivity"] ?? null), "type", array()) == "favorite")) {
// line 38
echo "\t\t\t\t\t";
echo sprintf(call_user_func_array($this->env->getFunction('translate')->getCallable(), array("%s add to favorite post from %s on %s.")), (((("<a href=\"" . $this->env->getExtension('Membership_Users_Twig')->profileUrl($this->getAttribute( // line 40
($context["relatedActivity"] ?? null), "author", array()))) . "\">") . $this->getAttribute($this->getAttribute(($context["relatedActivity"] ?? null), "author", array()), "displayName", array())) . "</a>"), (((("<b><a href=\"" . $this->env->getExtension('Membership_Users_Twig')->profileUrl($this->getAttribute($this->getAttribute( // line 41
($context["relatedActivity"] ?? null), "relatedActivity", array()), "author", array()))) . "\">") . $this->getAttribute($this->getAttribute($this->getAttribute(($context["relatedActivity"] ?? null), "relatedActivity", array()), "author", array()), "display_name", array())) . "</a></b>"), twig_date_format_filter($this->env, $this->getAttribute($this->getAttribute( // line 42
($context["relatedActivity"] ?? null), "relatedActivity", array()), "created_at", array()), "Y-m-d"));
// line 44
echo "
\t\t\t\t";
}
// line 46
echo "\t\t </div>
\t ";
}
// line 48
echo "\t
<div class=\"ui segment\"";
// line 49
if ((($context["activityType"] ?? null) == "sharedActivity")) {
echo " class=\"shared\"";
}
echo ">
<div class=\"mp-activity-header\">
<div class=\"mp-activity-header-image\">
\t ";
// line 53
if (($this->getAttribute(($context["activity"] ?? null), "type", array()) != "group_post")) {
// line 54
echo "\t\t <a href=\"";
echo twig_escape_filter($this->env, $this->env->getExtension('Membership_Users_Twig')->profileUrl($this->getAttribute(($context["activity"] ?? null), "author", array())), "html", null, true);
echo "\">
\t\t\t\t\t\t\t";
// line 55
if ( !$this->getAttribute(($context["activity"] ?? null), "friendPost", array())) {
// line 56
echo "\t\t\t\t\t\t\t\t<img src=\"";
echo twig_escape_filter($this->env, $this->env->getExtension('Membership_Users_Twig')->userAvatar($this->getAttribute(($context["activity"] ?? null), "author", array()), "small"), "html", null, true);
echo "\" alt=\"\">
\t\t\t\t\t\t\t";
} elseif ( !$this->getAttribute( // line 57
($context["activity"] ?? null), "sharedActivity", array())) {
// line 58
echo "\t\t\t\t <img src=\"";
echo twig_escape_filter($this->env, $this->env->getExtension('Membership_Users_Twig')->userAvatar($this->getAttribute(($context["activity"] ?? null), "author", array()), "medium"), "html", null, true);
echo "\" alt=\"\">
\t\t\t ";
} else {
// line 60
echo "\t\t\t\t <img src=\"";
echo twig_escape_filter($this->env, $this->env->getExtension('Membership_Users_Twig')->userAvatar($this->getAttribute(($context["activity"] ?? null), "author", array()), "small"), "html", null, true);
echo "\" alt=\"\">
\t\t\t ";
}
// line 62
echo "\t\t </a>
\t ";
} else {
// line 64
echo "\t\t <a href=\"";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('groupUrl')->getCallable(), array($this->getAttribute(($context["activity"] ?? null), "group", array()))), "html", null, true);
echo "\">
\t\t\t ";
// line 65
if ( !$this->getAttribute(($context["activity"] ?? null), "sharedActivity", array())) {
// line 66
echo "\t\t\t\t <img src=\"";
echo twig_escape_filter($this->env, $this->env->getExtension('Membership_Groups_Twig')->groupsLogo($this->getAttribute(($context["activity"] ?? null), "group", array()), "medium"), "html", null, true);
echo "\" alt=\"\">
\t\t\t ";
} else {
// line 68
echo "\t\t\t\t <img src=\"";
echo twig_escape_filter($this->env, $this->env->getExtension('Membership_Groups_Twig')->groupsLogo($this->getAttribute(($context["activity"] ?? null), "group", array()), "small"), "html", null, true);
echo "\" alt=\"\">
\t\t\t ";
}
// line 70
echo "\t\t </a>
\t ";
}
// line 72
echo "
</div>
<div class=\"mp-activity-header-title\">
";
// line 75
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["environment"] ?? null), "dispatcher", array()), "dispatch", array(0 => "activity.view.activityTitle", 1 => array(0 => ($context["activity"] ?? null))), "method"), "html", null, true);
echo "
\t
\t ";
// line 77
if (($this->getAttribute(($context["activity"] ?? null), "type", array()) == "post")) {
// line 78
echo "\t\t <a href=\"";
echo twig_escape_filter($this->env, $this->env->getExtension('Membership_Users_Twig')->profileUrl($this->getAttribute(($context["activity"] ?? null), "author", array())), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["activity"] ?? null), "author", array()), "displayName", array()), "html", null, true);
echo "</a>
\t ";
}
// line 80
echo "\t
\t ";
// line 81
if (($this->getAttribute(($context["activity"] ?? null), "type", array()) == "user_registered")) {
// line 82
echo "\t\t ";
echo sprintf(call_user_func_array($this->env->getFunction('translate')->getCallable(), array("%s registered")), (((("<a href=\"" . $this->env->getExtension('Membership_Users_Twig')->profileUrl($this->getAttribute( // line 83
($context["activity"] ?? null), "author", array()))) . "\">") . $this->getAttribute($this->getAttribute(($context["activity"] ?? null), "author", array()), "displayName", array())) . "</a>"));
// line 85
echo "
\t ";
}
// line 87
echo "\t
\t ";
// line 88
if (($this->getAttribute(($context["activity"] ?? null), "type", array()) == "related_post")) {
// line 89
echo "\t\t <a href=\"";
echo twig_escape_filter($this->env, $this->env->getExtension('Membership_Users_Twig')->profileUrl($this->getAttribute(($context["activity"] ?? null), "author", array())), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["activity"] ?? null), "author", array()), "displayName", array()), "html", null, true);
echo "</a> >
\t\t <a href=\"";
// line 90
echo twig_escape_filter($this->env, $this->env->getExtension('Membership_Users_Twig')->profileUrl($this->getAttribute(($context["activity"] ?? null), "target", array())), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["activity"] ?? null), "target", array()), "displayName", array()), "html", null, true);
echo "</a>
\t ";
}
// line 92
echo "\t
\t ";
// line 93
if (($this->getAttribute(($context["activity"] ?? null), "type", array()) == "group_post")) {
// line 94
echo "\t\t <a href=\"";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('groupUrl')->getCallable(), array($this->getAttribute(($context["activity"] ?? null), "group", array()))), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["activity"] ?? null), "group", array()), "name", array()), "html", null, true);
echo "</a>
\t ";
}
// line 96
echo "\t
\t ";
// line 97
if (($this->getAttribute(($context["activity"] ?? null), "type", array()) == "group_user_post")) {
// line 98
echo "\t\t <a href=\"";
echo twig_escape_filter($this->env, $this->env->getExtension('Membership_Users_Twig')->profileUrl($this->getAttribute(($context["activity"] ?? null), "author", array())), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["activity"] ?? null), "author", array()), "displayName", array()), "html", null, true);
echo "</a> >
\t\t <a href=\"";
// line 99
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('groupUrl')->getCallable(), array($this->getAttribute(($context["activity"] ?? null), "group", array()))), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["activity"] ?? null), "group", array()), "name", array()), "html", null, true);
echo "</a>
\t ";
}
// line 101
echo "\t
\t ";
// line 102
if (($this->getAttribute(($context["activity"] ?? null), "type", array()) == "group_created")) {
// line 103
echo "\t\t ";
echo sprintf(call_user_func_array($this->env->getFunction('translate')->getCallable(), array("New group %s is created by %s.")), (((("<a href=\"" . call_user_func_array($this->env->getFunction('groupUrl')->getCallable(), array($this->getAttribute( // line 105
($context["activity"] ?? null), "group", array())))) . "\">") . $this->getAttribute($this->getAttribute(($context["activity"] ?? null), "group", array()), "name", array())) . "</a>"), (((("<a href=\"" . $this->env->getExtension('Membership_Users_Twig')->profileUrl($this->getAttribute( // line 106
($context["activity"] ?? null), "author", array()))) . "\">") . $this->getAttribute($this->getAttribute(($context["activity"] ?? null), "author", array()), "displayName", array())) . "</a>"));
// line 109
echo "
\t ";
}
// line 111
echo "
\t ";
// line 114
if ($this->getAttribute(($context["activity"] ?? null), "sharedActivity", array())) {
// line 115
echo "\t\t ";
if (twig_in_filter($this->getAttribute(($context["activity"] ?? null), "type", array()), array(0 => "shared_group_post", 1 => "shared_group_user_post"))) {
// line 116
echo "\t\t\t ";
echo sprintf(call_user_func_array($this->env->getFunction('translate')->getCallable(), array("%s shared %s post.")), (((("<a href=\"" . $this->env->getExtension('Membership_Users_Twig')->profileUrl($this->getAttribute( // line 118
($context["activity"] ?? null), "author", array()))) . "\">") . $this->getAttribute($this->getAttribute(($context["activity"] ?? null), "author", array()), "displayName", array())) . "</a>"), (((("<a href=\"" . call_user_func_array($this->env->getFunction('groupUrl')->getCallable(), array($this->getAttribute($this->getAttribute( // line 119
($context["activity"] ?? null), "sharedActivity", array()), "group", array())))) . "\">") . $this->getAttribute($this->getAttribute($this->getAttribute(($context["activity"] ?? null), "sharedActivity", array()), "group", array()), "name", array())) . "</a>"));
// line 122
echo "
\t\t ";
} else {
// line 124
echo "\t\t\t ";
echo sprintf(call_user_func_array($this->env->getFunction('translate')->getCallable(), array("%s shared %s post.")), (((("<a href=\"" . $this->env->getExtension('Membership_Users_Twig')->profileUrl($this->getAttribute( // line 126
($context["activity"] ?? null), "author", array()))) . "\">") . $this->getAttribute($this->getAttribute(($context["activity"] ?? null), "author", array()), "displayName", array())) . "</a>"), (((("<a href=\"" . $this->env->getExtension('Membership_Users_Twig')->profileUrl($this->getAttribute($this->getAttribute( // line 127
($context["activity"] ?? null), "sharedActivity", array()), "author", array()))) . "\">") . $this->getAttribute($this->getAttribute($this->getAttribute(($context["activity"] ?? null), "sharedActivity", array()), "author", array()), "displayName", array())) . "</a>"));
// line 130
echo "
\t\t ";
}
// line 132
echo "\t ";
}
// line 133
echo "
\t\t\t\t\t";
// line 134
if ($this->getAttribute(($context["activity"] ?? null), "friendPost", array())) {
// line 135
echo "\t\t\t\t\t\t";
if (($this->getAttribute(($context["activity"] ?? null), "type", array()) == "friend_post")) {
// line 136
echo "\t\t\t\t\t\t\t";
echo sprintf(call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Posted from %s activity.")), (((("<a href=\"" . $this->env->getExtension('Membership_Users_Twig')->profileUrl($this->getAttribute($this->getAttribute( // line 138
($context["activity"] ?? null), "friendPost", array()), "author", array()))) . "\">") . $this->getAttribute($this->getAttribute($this->getAttribute(($context["activity"] ?? null), "friendPost", array()), "author", array()), "displayName", array())) . "</a>"));
// line 140
echo "
\t\t\t\t\t\t";
}
// line 142
echo "\t\t\t\t\t";
}
// line 143
echo "
<div class=\"date\">";
// line 144
echo twig_escape_filter($this->env, $this->getAttribute(($context["activity"] ?? null), "updated_at", array()), "html", null, true);
echo "</div>
</div>
</div>
\t\t\t";
// line 148
if ((($this->getAttribute($this->getAttribute(($context["relatedActivity"] ?? null), "relatedActivity", array()), "status", array()) == "deleted") || ($this->getAttribute(($context["activity"] ?? null), "status", array()) == "deleted"))) {
// line 149
echo "\t\t\t\t";
$context["postDeleted"] = 1;
// line 150
echo "\t\t\t";
}
// line 151
echo " <div class=\"mp-activity-content ";
echo (((($context["postDeleted"] ?? null) == 1)) ? ("mp-activity-removed") : (""));
echo "\" data-activity-data=\"";
echo twig_escape_filter($this->env, $this->getAttribute(($context["activity"] ?? null), "data", array()));
echo "\">
\t\t\t\t";
// line 152
if (($context["postDeleted"] ?? null)) {
// line 153
echo "\t\t\t\t\t";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Sorry, the original post was deleted by its author.")), "html", null, true);
echo "
\t\t\t\t";
} else {
// line 155
echo "\t\t\t\t\t";
if (twig_length_filter($this->env, $this->getAttribute(($context["activity"] ?? null), "data", array()))) {
// line 156
echo "\t\t\t\t\t\t<div class=\"mp-activity-content-text\">";
echo $this->env->getExtension('Membership_Activity_Twig')->activityContent(($context["activity"] ?? null));
echo "</div>
\t\t\t\t\t";
}
// line 158
echo "
\t\t\t\t\t";
// line 159
if ($this->getAttribute(($context["activity"] ?? null), "link", array())) {
// line 160
echo "\t\t\t\t\t\t";
$this->loadTemplate("@activity/partials/activity-attachment-link.twig", "@activity/partials/activities.twig", 160)->display(array_merge($context, array("link" => $this->getAttribute(($context["activity"] ?? null), "link", array()))));
// line 161
echo "\t\t\t\t\t";
}
// line 162
echo "
\t\t\t\t\t";
// line 163
if ($this->getAttribute(($context["activity"] ?? null), "images", array())) {
// line 164
echo "\t\t\t\t\t\t<div class=\"mp-activity-gallery\" data-gallery-id=\"";
echo twig_escape_filter($this->env, $this->getAttribute(($context["activity"] ?? null), "id", array()), "html", null, true);
echo "\" style=\"display: none\">
\t\t\t\t\t\t\t";
// line 165
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_slice($this->env, $this->getAttribute($this->getAttribute(($context["activity"] ?? null), "images", array()), "thumbnails", array()), 0, 3, true));
$context['loop'] = array(
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
);
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["id"] => $context["thumbnails"]) {
// line 166
echo "\t\t\t\t\t\t\t\t<div class=\"mp-activity-gallery-image\" data-image-id=\"";
echo twig_escape_filter($this->env, $context["id"], "html", null, true);
echo "\">
\t\t\t\t\t\t\t\t\t<img src=\"";
// line 167
echo twig_escape_filter($this->env, $this->env->getExtension('Membership_Activity_Twig')->activityImage($context["thumbnails"], "large"), "html", null, true);
echo "\">
\t\t\t\t\t\t\t\t\t";
// line 168
if ((($this->getAttribute($context["loop"], "index0", array()) == 2) && ($this->getAttribute($this->getAttribute(($context["activity"] ?? null), "images", array()), "total", array()) > 3))) {
// line 169
echo "\t\t\t\t\t\t\t\t\t\t<div class=\"mp-activity-gallery-image-overlay\">
\t\t\t\t\t\t\t\t\t\t\t<div>+";
// line 170
echo twig_escape_filter($this->env, ($this->getAttribute($this->getAttribute(($context["activity"] ?? null), "images", array()), "total", array()) - 3), "html", null, true);
echo "</div>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t";
}
// line 173
echo "\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['id'], $context['thumbnails'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 175
echo "\t\t\t\t\t\t</div>
\t\t\t\t\t";
}
// line 177
echo "\t\t\t\t\t";
if ($this->getAttribute(($context["activity"] ?? null), "attachmentFiles", array())) {
// line 178
echo "\t\t\t\t\t\t<div class=\"mbsActivAttachFilesWr\" data-activity-id=\"";
echo twig_escape_filter($this->env, $this->getAttribute(($context["activity"] ?? null), "id", array()), "html", null, true);
echo "\">
\t\t\t\t\t\t\t";
// line 179
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["activity"] ?? null), "attachmentFiles", array()));
foreach ($context['_seq'] as $context["oneAttachId"] => $context["oneAttach"]) {
// line 180
echo "\t\t\t\t\t\t\t\t<a class=\"mbsOneAttachItem\" title=\"";
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["oneAttach"], "file_info", array(), "array"), "name", array(), "array"), "html", null, true);
echo "\" href=\"";
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["oneAttach"], "file_info", array(), "array"), "url", array(), "array"), "html", null, true);
echo "\" target=\"_blank\" data-id=\"";
echo twig_escape_filter($this->env, $this->getAttribute($context["oneAttach"], "attachment_all_id", array(), "array"), "html", null, true);
echo "\">
\t\t\t\t\t\t\t\t\t<i class=\"icon attach mbsOneAttachIcon\"></i>
\t\t\t\t\t\t\t\t\t<span class=\"mbsOneAttachCaption\">";
// line 182
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["oneAttach"], "file_info", array(), "array"), "name", array(), "array"), "html", null, true);
echo "</span>
\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['oneAttachId'], $context['oneAttach'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 185
echo "\t\t\t\t\t\t</div>
\t\t\t\t\t";
}
// line 187
echo "
\t\t\t\t\t";
// line 188
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["environment"] ?? null), "dispatcher", array()), "dispatch", array(0 => "activity.view.activityContent", 1 => array(0 => ($context["activity"] ?? null))), "method"), "html", null, true);
echo "
\t\t\t\t\t";
// line 190
if ((is_string($__internal_98ae0ed8a994f2b65d18dad5aad9543af559811c0d975e2ec03d557ea802f4a5 = $this->getAttribute(($context["activity"] ?? null), "type", array())) && is_string($__internal_d049373f1ae8b1a2afa63bca85123268ac16e6418abe96eae14b044d279151d2 = "shared_") && ('' === $__internal_d049373f1ae8b1a2afa63bca85123268ac16e6418abe96eae14b044d279151d2 || 0 === strpos($__internal_98ae0ed8a994f2b65d18dad5aad9543af559811c0d975e2ec03d557ea802f4a5, $__internal_d049373f1ae8b1a2afa63bca85123268ac16e6418abe96eae14b044d279151d2)))) {
// line 191
echo "\t\t\t\t\t\t<div class=\"mp-shared-activity\">
\t\t\t\t\t\t\t";
// line 192
echo $context["this"]->getactivity($this->getAttribute(($context["activity"] ?? null), "sharedActivity", array()), "sharedActivity");
echo "
\t\t\t\t\t\t</div>
\t\t\t\t\t";
}
// line 195
echo "
\t\t\t\t\t";
// line 196
if (($this->getAttribute(($context["activity"] ?? null), "type", array()) == "friend_post")) {
// line 197
echo "\t\t\t\t\t\t<div class=\"mp-shared-activity\">
\t\t\t\t\t\t\t";
// line 198
echo $context["this"]->getactivity($this->getAttribute(($context["activity"] ?? null), "friendPost", array()), "friendPost");
echo "
\t\t\t\t\t\t</div>
\t\t\t\t\t";
}
// line 201
echo "\t\t\t\t";
}
// line 202
echo " </div>
</div>
\t\t";
// line 205
if (($this->getAttribute($this->getAttribute(($context["relatedActivity"] ?? null), "relatedActivity", array()), "status", array()) != "deleted")) {
// line 206
echo "
\t\t\t";
// line 207
if (((((($context["activityType"] ?? null) != "sharedActivity") && (($context["activityType"] ?? null) != "friendPost")) && ($context["userLoggedIn"] ?? null)) && ($this->getAttribute(($context["params"] ?? null), "isReadPostPage", array()) != true))) {
// line 208
echo "\t\t\t\t";
ob_start();
// line 209
if (twig_in_filter($this->getAttribute(($context["activity"] ?? null), "type", array()), array(0 => "post", 1 => "group_post", 2 => "shared_post", 3 => "shared_group_post"))) {
// line 210
echo "<a href=\"";
echo twig_escape_filter($this->env, $this->env->getExtension('Membership_Activity_Twig')->getActivityUrl($this->getAttribute(($context["activity"] ?? null), "id", array())), "html", null, true);
echo "\" class=\"item menu-link-action\">";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Read this post")), "html", null, true);
echo "</a>";
}
// line 212
if (twig_in_filter($this->getAttribute(($context["activity"] ?? null), "type", array()), array(0 => "group_post", 1 => "group_user_post", 2 => "group_created"))) {
// line 213
if (!twig_in_filter($this->getAttribute(($context["activity"] ?? null), "type", array()), array(0 => "group_created"))) {
// line 214
if (($this->env->getExtension('Membership_Users_Twig')->isCurrentUser($this->getAttribute(($context["activity"] ?? null), "author", array())) || call_user_func_array($this->env->getFunction('currentUserCan')->getCallable(), array("edit-activity")))) {
// line 215
echo "<div class=\"item edit-action\">";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Edit")), "html", null, true);
echo "</div>";
}
// line 217
if ((($this->env->getExtension('Membership_Groups_Twig')->canEditGroup($this->getAttribute(($context["activity"] ?? null), "group", array())) || $this->env->getExtension('Membership_Users_Twig')->isCurrentUser($this->getAttribute(($context["activity"] ?? null), "author", array()))) || call_user_func_array($this->env->getFunction('currentUserCan')->getCallable(), array("edit-activity")))) {
// line 218
echo "<div class=\"item group-delete-action\">";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Delete")), "html", null, true);
echo "</div>";
}
}
} else {
// line 222
if (($this->env->getExtension('Membership_Users_Twig')->isCurrentUser($this->getAttribute(($context["activity"] ?? null), "author", array())) || call_user_func_array($this->env->getFunction('currentUserCan')->getCallable(), array("edit-activity")))) {
// line 223
if (!twig_in_filter($this->getAttribute(($context["activity"] ?? null), "type", array()), array(0 => "user_registered", 1 => "follow", 2 => "friendship"))) {
// line 224
echo "<div class=\"item edit-action\">";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Edit")), "html", null, true);
echo "</div>
\t\t\t\t\t\t\t\t<div class=\"item delete-action\">";
// line 225
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Delete")), "html", null, true);
echo "</div>";
}
}
}
// line 229
if ( !$this->env->getExtension('Membership_Users_Twig')->isCurrentUser($this->getAttribute(($context["activity"] ?? null), "author", array()))) {
// line 230
echo "<div class=\"item report-action\">";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Report")), "html", null, true);
echo "</div>";
}
$context["menuHtml"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
// line 235
echo "\t\t\t\t";
if (twig_length_filter($this->env, ($context["menuHtml"] ?? null))) {
// line 236
echo "\t\t\t\t\t<div class=\"mp-activity-menu ui top right pointing dropdown item\">
\t\t\t\t\t\t<i class=\"ellipsis horizontal icon\"></i>
\t\t\t\t\t\t<div class=\"menu\">
\t\t\t\t\t\t\t";
// line 239
echo ($context["menuHtml"] ?? null);
echo "
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t";
}
// line 243
echo "\t\t\t";
}
// line 244
echo "
\t\t\t";
// line 245
if ((( !($context["userLoggedIn"] ?? null) && (($context["activityType"] ?? null) != "sharedActivity")) && (($context["activityType"] ?? null) != "friendPost"))) {
// line 246
echo "\t\t\t\t<div class=\"ui segment\">
\t\t\t\t\t";
// line 247
echo sprintf(call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Please <a href=\"%s\">sign up</a> or <a href=\"%s\">sign in</a> to like or write comments on this post.")), call_user_func_array($this->env->getFunction('getRouteUrl')->getCallable(), array("registration")), call_user_func_array($this->env->getFunction('getRouteUrl')->getCallable(), array("login")));
// line 249
echo "
\t\t\t\t</div>
\t\t\t";
}
// line 252
echo "
\t\t\t";
// line 253
if ((((($context["activityType"] ?? null) != "sharedActivity") && (($context["activityType"] ?? null) != "friendPost")) && ($this->getAttribute(($context["relatedActivity"] ?? null), "type", array()) != "favorite"))) {
// line 254
echo "\t\t\t\t<div class=\"ui segment mp-activity-actions\">
\t\t\t\t\t<a class=\"like-action ";
// line 256
if ($this->getAttribute($this->getAttribute(($context["activity"] ?? null), "likes", array()), "likedByCurrentUser", array())) {
echo "mp-liked-activity";
}
echo "\">
\t\t\t\t\t\t<i class=\"like icon\"></i> ";
// line 257
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Like")), "html", null, true);
echo " <span>";
if ($this->getAttribute(($context["activity"] ?? null), "likes", array())) {
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["activity"] ?? null), "likes", array()), "count", array()), "html", null, true);
}
echo "</span>
\t\t\t\t\t</a>
";
// line 260
if (call_user_func_array($this->env->getFunction('isPostComment')->getCallable(), array($this->getAttribute(($context["activity"] ?? null), "group", array())))) {
// line 261
echo " ";
if (((is_string($__internal_6eed77c2460f56d810ebf387ad68bea05e0382b3d546c47cf46193519cdeb31e = $this->getAttribute(($context["activity"] ?? null), "type", array())) && is_string($__internal_1b3a943f02a8d3fde0724b555eacbaac42dc05d56471874708ef643e7ab9af22 = "group") && ('' === $__internal_1b3a943f02a8d3fde0724b555eacbaac42dc05d56471874708ef643e7ab9af22 || 0 === strpos($__internal_6eed77c2460f56d810ebf387ad68bea05e0382b3d546c47cf46193519cdeb31e, $__internal_1b3a943f02a8d3fde0724b555eacbaac42dc05d56471874708ef643e7ab9af22))) || call_user_func_array($this->env->getFunction('currentUserHasPermission')->getCallable(), array("view-comments", $this->getAttribute(($context["activity"] ?? null), "author", array()))))) {
// line 262
echo " <a class=\"comment-action\"><i class=\"comment icon\"></i> ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Comments")), "html", null, true);
echo " <span>";
if ($this->getAttribute(($context["activity"] ?? null), "comments", array())) {
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["activity"] ?? null), "comments", array()), "count", array()), "html", null, true);
}
echo "</span></a>
";
}
// line 264
echo " ";
}
// line 265
echo "
\t\t\t\t\t<a class=\"share-action ";
// line 266
if ($this->getAttribute($this->getAttribute(($context["activity"] ?? null), "shares", array()), "sharedByCurrentUser", array())) {
echo "mp-shared-activity";
}
echo "\">
\t\t\t\t\t\t<i class=\"share icon\"></i> ";
// line 267
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Share")), "html", null, true);
echo " <span>";
if ($this->getAttribute(($context["activity"] ?? null), "shares", array())) {
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["activity"] ?? null), "shares", array()), "count", array()), "html", null, true);
}
echo "</span>
\t\t\t\t\t</a>
\t\t\t\t\t";
// line 270
if (($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["settings"] ?? null), "design", array()), "activity", array()), "type", array()), "favorite", array()) == "true")) {
// line 271
echo "\t\t\t\t\t\t<a class=\"favorite-action
\t\t\t\t\t\t\t\t";
// line 272
if (($this->getAttribute($this->getAttribute(($context["activity"] ?? null), "favorite", array()), "currentUserInFavorite", array()) != 0)) {
echo "mp-favorited-activity";
}
// line 273
echo "\t\t\t\t\t\t\t\t";
if ($this->env->getExtension('Membership_Users_Twig')->isCurrentUser($this->getAttribute(($context["activity"] ?? null), "author", array()))) {
echo "mbsCurrentUserActivity";
}
// line 274
echo "\t\t\t\t\t\t\t\">
\t\t\t\t\t\t\t<i class=\"star icon\"></i>
\t\t\t\t\t\t\t";
// line 276
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Favorite")), "html", null, true);
echo "
\t\t\t\t\t\t\t<span>";
// line 277
if ($this->getAttribute(($context["activity"] ?? null), "favorite", array())) {
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["activity"] ?? null), "favorite", array()), "count", array()), "html", null, true);
}
echo "</span>
\t\t\t\t\t\t</a>
\t\t\t\t\t";
}
// line 280
echo "
\t\t\t\t\t<div>
\t\t\t\t\t\t<div class=\"ui flowing popup small inverted mp-like-popup\">
\t\t\t\t\t\t\t<div class=\"popup-count\">
\t\t\t\t\t\t\t\t<small>
\t\t\t\t\t\t\t\t\t";
// line 285
echo sprintf(call_user_func_array($this->env->getFunction('translate')->getCallable(), array("%s people liked this")), (("<span>" . $this->getAttribute($this->getAttribute(($context["activity"] ?? null), "likes", array()), "count", array())) . "</span>"));
echo "
\t\t\t\t\t\t\t\t</small>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"ui basic vertical segment popup-loader\">
\t\t\t\t\t\t\t\t<div class=\"ui active centered inline mini loader\"></div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"ui mini horizontal divided list popup-users\" style=\"display: none\"></div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"sc-membership ui small modal long mp-like-modal\">
\t\t\t\t\t\t\t<i class=\"close icon\"></i>
\t\t\t\t\t\t\t<div class=\"header\">
\t\t\t\t\t\t\t ";
// line 297
echo sprintf(call_user_func_array($this->env->getFunction('translate')->getCallable(), array("%s people liked this")), (("<span>" . $this->getAttribute($this->getAttribute(($context["activity"] ?? null), "likes", array()), "count", array())) . "</span>"));
echo "
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"content\">
\t\t\t\t\t\t\t\t<div class=\"ui grid centered modal-users\"></div>
\t\t\t\t\t\t\t\t<div class=\"ui basic vertical segment modal-loader\">
\t\t\t\t\t\t\t\t\t<div class=\"ui active centered inline loader\"></div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"ui flowing popup small inverted mp-share-popup\">
\t\t\t\t\t\t\t<div class=\"popup-count\">
\t\t\t\t\t\t\t\t<small>
\t\t\t\t\t\t\t\t\t";
// line 310
echo sprintf(call_user_func_array($this->env->getFunction('translate')->getCallable(), array("%s people shared this")), (("<span>" . $this->getAttribute($this->getAttribute(($context["activity"] ?? null), "shares", array()), "count", array())) . "</span>"));
echo "
\t\t\t\t\t\t\t\t</small>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"ui basic vertical segment popup-loader\">
\t\t\t\t\t\t\t\t<div class=\"ui active centered inline mini loader\"></div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"ui mini horizontal divided list popup-users\" style=\"display: none\"></div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"sc-membership ui small modal long mp-share-modal\">
\t\t\t\t\t\t\t<i class=\"close icon\"></i>
\t\t\t\t\t\t\t<div class=\"header\">
\t\t\t\t\t\t\t\t";
// line 322
echo sprintf(call_user_func_array($this->env->getFunction('translate')->getCallable(), array("%s people shared this")), (("<span>" . $this->getAttribute($this->getAttribute(($context["activity"] ?? null), "shares", array()), "count", array())) . "</span>"));
echo "
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"content\">
\t\t\t\t\t\t\t\t<div class=\"ui grid centered modal-users\"></div>
\t\t\t\t\t\t\t\t<div class=\"ui basic vertical segment modal-loader\">
\t\t\t\t\t\t\t\t\t<div class=\"ui active centered inline loader\"></div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t";
// line 332
if (($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["settings"] ?? null), "design", array()), "activity", array()), "type", array()), "favorite", array()) == "true")) {
// line 333
echo "\t\t\t\t\t\t\t<div class=\"ui flowing popup small inverted mp-favorite-popup\">
\t\t\t\t\t\t\t\t<div class=\"popup-count\">
\t\t\t\t\t\t\t\t\t<small>
\t\t\t\t\t\t\t\t\t\t";
// line 336
echo sprintf(call_user_func_array($this->env->getFunction('translate')->getCallable(), array("%s people added this to favorite")), (("<span>" . $this->getAttribute($this->getAttribute(($context["activity"] ?? null), "favorite", array()), "count", array())) . "</span>"));
echo "
\t\t\t\t\t\t\t\t\t</small>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div class=\"ui basic vertical segment popup-loader\">
\t\t\t\t\t\t\t\t\t<div class=\"ui active centered inline mini loader\"></div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div class=\"ui mini horizontal divided list popup-users\" style=\"display: none\"></div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"sc-membership ui small modal long mp-favorite-modal\">
\t\t\t\t\t\t\t\t<i class=\"close icon\"></i>
\t\t\t\t\t\t\t\t<div class=\"header\">
\t\t\t\t\t\t\t\t\t";
// line 348
echo sprintf(call_user_func_array($this->env->getFunction('translate')->getCallable(), array("%s people added this to favorite")), (("<span>" . $this->getAttribute($this->getAttribute(($context["activity"] ?? null), "favorite", array()), "count", array())) . "</span>"));
echo "
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div class=\"content\">
\t\t\t\t\t\t\t\t\t<div class=\"ui grid centered modal-users\"></div>
\t\t\t\t\t\t\t\t\t<div class=\"ui basic vertical segment modal-loader\">
\t\t\t\t\t\t\t\t\t\t<div class=\"ui active centered inline loader\"></div>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t";
}
// line 358
echo "\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t";
}
// line 361
echo "\t\t\t";
if ((($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["settings"] ?? null), "base", array()), "plugins", array()), "socialShare", array()), "enabled", array()) == 1) && twig_length_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["settings"] ?? null), "base", array()), "plugins", array()), "socialShare", array()), "ids", array())))) {
// line 362
echo "\t\t\t\t<div class=\"ui segment mbsSocShareContainer\">
\t\t\t\t\t";
// line 363
echo $this->env->getExtension('Membership_Activity_Twig')->getSocShareProject(array("projectId" => $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute( // line 364
($context["settings"] ?? null), "base", array()), "plugins", array()), "socialShare", array()), "ids", array()), 0, array(), "array"), "url" => $this->env->getExtension('Membership_Activity_Twig')->getActivityUrl($this->getAttribute( // line 365
($context["activity"] ?? null), "id", array())), "type" => "pa", "id" => $this->getAttribute( // line 367
($context["activity"] ?? null), "id", array())));
// line 368
echo "
\t\t\t\t</div>
\t\t\t";
}
// line 371
echo "\t\t";
}
// line 372
echo "
\t\t";
// line 373
if ((((($context["activityType"] ?? null) != "sharedActivity") && (($context["activityType"] ?? null) != "friendPost")) && ($context["userLoggedIn"] ?? null))) {
// line 374
echo "\t\t\t";
if (((is_string($__internal_a08854b78f8275d39aaf72ab20c4c86287904479dc3108bdcf17dde3f7d86fae = $this->getAttribute(($context["activity"] ?? null), "type", array())) && is_string($__internal_273bfb2acb04765389241360c09f28815bd2e61be42841e45fff376e66d2fad0 = "group") && ('' === $__internal_273bfb2acb04765389241360c09f28815bd2e61be42841e45fff376e66d2fad0 || 0 === strpos($__internal_a08854b78f8275d39aaf72ab20c4c86287904479dc3108bdcf17dde3f7d86fae, $__internal_273bfb2acb04765389241360c09f28815bd2e61be42841e45fff376e66d2fad0))) || call_user_func_array($this->env->getFunction('currentUserHasPermission')->getCallable(), array("view-comments", $this->getAttribute(($context["activity"] ?? null), "author", array()))))) {
// line 375
echo "\t\t\t\t<div class=\"ui secondary segment mp-activity-comments\" ";
if ( !$this->getAttribute(($context["activity"] ?? null), "comments", array())) {
echo "style=\"display: none\"";
}
echo ">
\t\t\t\t\t<div class=\"ui equal width grid mp-previous-comments\" ";
// line 376
if ((twig_length_filter($this->env, $this->getAttribute($this->getAttribute(($context["activity"] ?? null), "comments", array()), "comments", array())) == $this->getAttribute($this->getAttribute(($context["activity"] ?? null), "comments", array()), "count", array()))) {
echo "style=\"display: none\"";
}
echo ">
\t\t\t\t\t\t<div class=\"left floated column\">
\t\t\t\t\t\t\t<div class=\"mp-more-comments\">";
// line 378
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("View previous comments")), "html", null, true);
echo " <div class=\"ui active mini inline loader\" style=\"display: none\"></div></div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"right floated right aligned column mp-comments-count\">
\t\t\t\t\t\t\t<div class=\"ui floated right\">
\t\t\t\t\t\t\t\t<span class=\"showed-comments\">";
// line 382
echo twig_escape_filter($this->env, twig_length_filter($this->env, $this->getAttribute($this->getAttribute(($context["activity"] ?? null), "comments", array()), "comments", array())), "html", null, true);
echo "</span> ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("of")), "html", null, true);
echo " <span class=\"total-comments\">";
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["activity"] ?? null), "comments", array()), "count", array()), "html", null, true);
echo "</span>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"ui threaded comments\" ";
// line 387
if ( !$this->getAttribute(($context["activity"] ?? null), "comments", array())) {
echo "style=\"display: none\"";
}
echo ">
\t\t\t\t\t\t";
// line 388
$this->loadTemplate("@activity/partials/activity-comments.twig", "@activity/partials/activities.twig", 388)->display(array_merge($context, array("comments" => $this->getAttribute($this->getAttribute(($context["activity"] ?? null), "comments", array()), "comments", array()), "relatedActivity" => $this->getAttribute(($context["relatedActivity"] ?? null), "relatedActivity", array()))));
// line 389
echo "\t\t\t\t\t</div>
\t\t\t\t\t";
// line 391
if (($this->getAttribute($this->getAttribute(($context["relatedActivity"] ?? null), "relatedActivity", array()), "status", array()) != "deleted")) {
// line 392
echo "\t\t\t\t\t\t";
if (((is_string($__internal_30f53eb15df3f1f96a9c84bbbaacdd6e185cb6cee18bb2f35fde5c4e3b97abb3 = $this->getAttribute(($context["activity"] ?? null), "type", array())) && is_string($__internal_6204dfce49a1998d38e47a8a44b0d9e811223e20ae214372c0200b4ae1cac7c6 = "group") && ('' === $__internal_6204dfce49a1998d38e47a8a44b0d9e811223e20ae214372c0200b4ae1cac7c6 || 0 === strpos($__internal_30f53eb15df3f1f96a9c84bbbaacdd6e185cb6cee18bb2f35fde5c4e3b97abb3, $__internal_6204dfce49a1998d38e47a8a44b0d9e811223e20ae214372c0200b4ae1cac7c6))) || call_user_func_array($this->env->getFunction('currentUserHasPermission')->getCallable(), array("post-comments", $this->getAttribute(($context["activity"] ?? null), "author", array()))))) {
// line 393
echo "\t\t\t\t\t\t\t";
$this->loadTemplate("@activity/partials/activity-comment-form.twig", "@activity/partials/activities.twig", 393)->display(array_merge($context, array("context" => ($context["activityContext"] ?? null))));
// line 394
echo "\t\t\t\t\t\t";
}
// line 395
echo "\t\t\t\t\t";
}
// line 396
echo "\t\t\t\t</div>
\t\t\t";
}
// line 398
echo "\t\t";
}
// line 399
echo " </div>
";
} catch (Exception $e) {
ob_end_clean();
throw $e;
} catch (Throwable $e) {
ob_end_clean();
throw $e;
}
return ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
}
public function getTemplateName()
{
return "@activity/partials/activities.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 922 => 399, 919 => 398, 915 => 396, 912 => 395, 909 => 394, 906 => 393, 903 => 392, 901 => 391, 897 => 389, 895 => 388, 889 => 387, 877 => 382, 870 => 378, 863 => 376, 856 => 375, 853 => 374, 851 => 373, 848 => 372, 845 => 371, 840 => 368, 838 => 367, 837 => 365, 836 => 364, 835 => 363, 832 => 362, 829 => 361, 824 => 358, 811 => 348, 796 => 336, 791 => 333, 789 => 332, 776 => 322, 761 => 310, 745 => 297, 730 => 285, 723 => 280, 715 => 277, 711 => 276, 707 => 274, 702 => 273, 698 => 272, 695 => 271, 693 => 270, 683 => 267, 677 => 266, 674 => 265, 671 => 264, 661 => 262, 658 => 261, 656 => 260, 646 => 257, 640 => 256, 636 => 254, 634 => 253, 631 => 252, 626 => 249, 624 => 247, 621 => 246, 619 => 245, 616 => 244, 613 => 243, 606 => 239, 601 => 236, 598 => 235, 592 => 230, 590 => 229, 584 => 225, 579 => 224, 577 => 223, 575 => 222, 568 => 218, 566 => 217, 561 => 215, 559 => 214, 557 => 213, 555 => 212, 548 => 210, 546 => 209, 543 => 208, 541 => 207, 538 => 206, 536 => 205, 531 => 202, 528 => 201, 522 => 198, 519 => 197, 517 => 196, 514 => 195, 508 => 192, 505 => 191, 503 => 190, 498 => 188, 495 => 187, 491 => 185, 482 => 182, 472 => 180, 468 => 179, 463 => 178, 460 => 177, 456 => 175, 441 => 173, 435 => 170, 432 => 169, 430 => 168, 426 => 167, 421 => 166, 404 => 165, 399 => 164, 397 => 163, 394 => 162, 391 => 161, 388 => 160, 386 => 159, 383 => 158, 377 => 156, 374 => 155, 368 => 153, 366 => 152, 359 => 151, 356 => 150, 353 => 149, 351 => 148, 344 => 144, 341 => 143, 338 => 142, 334 => 140, 332 => 138, 330 => 136, 327 => 135, 325 => 134, 322 => 133, 319 => 132, 315 => 130, 313 => 127, 312 => 126, 310 => 124, 306 => 122, 304 => 119, 303 => 118, 301 => 116, 298 => 115, 296 => 114, 291 => 111, 287 => 109, 285 => 106, 284 => 105, 282 => 103, 280 => 102, 277 => 101, 270 => 99, 263 => 98, 261 => 97, 258 => 96, 250 => 94, 248 => 93, 245 => 92, 238 => 90, 231 => 89, 229 => 88, 226 => 87, 222 => 85, 220 => 83, 218 => 82, 216 => 81, 213 => 80, 205 => 78, 203 => 77, 198 => 75, 193 => 72, 189 => 70, 183 => 68, 177 => 66, 175 => 65, 170 => 64, 166 => 62, 160 => 60, 154 => 58, 152 => 57, 147 => 56, 145 => 55, 140 => 54, 138 => 53, 129 => 49, 126 => 48, 122 => 46, 118 => 44, 116 => 42, 115 => 41, 114 => 40, 112 => 38, 110 => 37, 107 => 36, 103 => 34, 101 => 31, 100 => 30, 99 => 29, 97 => 27, 94 => 26, 90 => 24, 88 => 21, 87 => 20, 86 => 19, 84 => 17, 82 => 16, 79 => 15, 77 => 14, 72 => 13, 69 => 12, 52 => 11, 47 => 10, 37 => 7, 31 => 5, 28 => 4, 24 => 3, 21 => 2, 19 => 1,);
}
/** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
public function getSource()
{
@trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
return $this->getSourceContext()->getCode();
}
public function getSourceContext()
{
return new Twig_Source("{% import _self as this %}
{% for activity in activities %}
\t{% if activity.relatedActivity %}
\t\t{{ this.activity(activity.relatedActivity, 'relatedActivity', activity, context, params, settings) }}
\t{% else %}
\t\t{{ this.activity(activity, null, null, context, params, settings) }}
\t{% endif %}
{% endfor %}
{% macro activity(activity, activityType, relatedActivity, activityContext, params, settings) %}
{% import _self as this %}
<div class=\"ui segments mp-activity\" data-activity-id=\"{{ activity.id }}\">
\t {% if relatedActivity %}
\t\t <div class=\"ui basic segment\">
\t\t\t {% if relatedActivity.type == 'activity_comment' %}
\t\t\t\t {{ translate('%s commented post from %s on %s.')
\t\t\t\t\t |format(
\t\t\t\t\t \t'<a href=\"' ~ profileUrl(relatedActivity.author) ~ '\">' ~ relatedActivity.author.displayName ~ '</a>',
\t\t\t\t\t\t\t'<b><a href=\"' ~ profileUrl(relatedActivity.relatedActivity.author) ~ '\">' ~ relatedActivity.relatedActivity.author.display_name ~ '</a></b>',
\t\t\t\t\t\t\trelatedActivity.relatedActivity.created_at|date('Y-m-d')
\t\t\t\t\t )
\t\t\t\t\t |raw
\t\t\t\t }}
\t\t\t {% endif %}
\t\t\t {% if relatedActivity.type == 'like' %}
\t\t\t {{ translate('%s liked post from %s on %s.')
\t\t |format(
\t\t \t'<a href=\"' ~ profileUrl(relatedActivity.author) ~ '\">' ~ relatedActivity.author.displayName ~ '</a>',
\t\t\t\t\t\t\t'<b><a href=\"' ~ profileUrl(relatedActivity.relatedActivity.author) ~ '\">' ~ relatedActivity.relatedActivity.author.display_name ~ '</a></b>',
\t\t\t\t\t\t\trelatedActivity.relatedActivity.created_at|date('Y-m-d')
\t\t )
\t\t |raw
\t }}
\t\t\t {% endif %}
\t\t\t\t{% if relatedActivity.type == 'favorite' %}
\t\t\t\t\t{{ translate('%s add to favorite post from %s on %s.')
\t\t\t\t\t\t| format(
\t\t\t\t\t\t\t'<a href=\"' ~ profileUrl(relatedActivity.author) ~ '\">' ~ relatedActivity.author.displayName ~ '</a>',
\t\t\t\t\t\t\t'<b><a href=\"' ~ profileUrl(relatedActivity.relatedActivity.author) ~ '\">' ~ relatedActivity.relatedActivity.author.display_name ~ '</a></b>',
\t\t\t\t\t\t\trelatedActivity.relatedActivity.created_at|date('Y-m-d')
\t\t\t\t\t\t) | raw
\t\t\t\t\t}}
\t\t\t\t{% endif %}
\t\t </div>
\t {% endif %}
\t
<div class=\"ui segment\"{% if activityType == 'sharedActivity' %} class=\"shared\"{% endif %}>
<div class=\"mp-activity-header\">
<div class=\"mp-activity-header-image\">
\t {% if activity.type != 'group_post' %}
\t\t <a href=\"{{ profileUrl(activity.author) }}\">
\t\t\t\t\t\t\t{% if not activity.friendPost %}
\t\t\t\t\t\t\t\t<img src=\"{{ userAvatar(activity.author, 'small') }}\" alt=\"\">
\t\t\t\t\t\t\t{% elseif not activity.sharedActivity %}
\t\t\t\t <img src=\"{{ userAvatar(activity.author, 'medium') }}\" alt=\"\">
\t\t\t {% else %}
\t\t\t\t <img src=\"{{ userAvatar(activity.author, 'small') }}\" alt=\"\">
\t\t\t {% endif %}
\t\t </a>
\t {% else %}
\t\t <a href=\"{{ groupUrl(activity.group) }}\">
\t\t\t {% if not activity.sharedActivity %}
\t\t\t\t <img src=\"{{ groupLogo(activity.group, 'medium') }}\" alt=\"\">
\t\t\t {% else %}
\t\t\t\t <img src=\"{{ groupLogo(activity.group, 'small') }}\" alt=\"\">
\t\t\t {% endif %}
\t\t </a>
\t {% endif %}
</div>
<div class=\"mp-activity-header-title\">
{{ environment.dispatcher.dispatch('activity.view.activityTitle', [activity]) }}
\t
\t {% if activity.type == 'post' %}
\t\t <a href=\"{{ profileUrl(activity.author) }}\">{{ activity.author.displayName }}</a>
\t {% endif %}
\t
\t {% if activity.type == 'user_registered' %}
\t\t {{ translate('%s registered')
\t\t\t |format('<a href=\"' ~ profileUrl(activity.author) ~ '\">' ~ activity.author.displayName ~ '</a>')
\t\t\t |raw
\t\t }}
\t {% endif %}
\t
\t {% if activity.type == 'related_post' %}
\t\t <a href=\"{{ profileUrl(activity.author) }}\">{{ activity.author.displayName }}</a> >
\t\t <a href=\"{{ profileUrl(activity.target) }}\">{{ activity.target.displayName }}</a>
\t {% endif %}
\t
\t {% if activity.type == 'group_post' %}
\t\t <a href=\"{{ groupUrl(activity.group) }}\">{{ activity.group.name }}</a>
\t {% endif %}
\t
\t {% if activity.type == 'group_user_post' %}
\t\t <a href=\"{{ profileUrl(activity.author) }}\">{{ activity.author.displayName }}</a> >
\t\t <a href=\"{{ groupUrl(activity.group) }}\">{{ activity.group.name }}</a>
\t {% endif %}
\t
\t {% if activity.type == 'group_created' %}
\t\t {{ translate('New group %s is created by %s.')
\t\t\t |format(
\t\t \t\t'<a href=\"' ~ groupUrl(activity.group) ~ '\">' ~ activity.group.name ~ '</a>',
\t\t \t\t'<a href=\"' ~ profileUrl(activity.author) ~ '\">' ~ activity.author.displayName ~ '</a>'
\t\t\t )
\t\t\t |raw
\t\t }}
\t {% endif %}
\t {% if activity.sharedActivity %}
\t\t {% if activity.type in ['shared_group_post', 'shared_group_user_post'] %}
\t\t\t {{ translate('%s shared %s post.')
\t\t\t\t |format(
\t\t\t\t\t '<a href=\"' ~ profileUrl(activity.author) ~ '\">' ~ activity.author.displayName ~ '</a>',
\t\t\t\t\t '<a href=\"' ~ groupUrl(activity.sharedActivity.group) ~ '\">' ~ activity.sharedActivity.group.name ~ '</a>'
\t\t\t\t )
\t\t\t\t |raw
\t\t\t }}
\t\t {% else %}
\t\t\t {{ translate('%s shared %s post.')
\t\t\t\t |format(
\t\t\t\t\t '<a href=\"' ~ profileUrl(activity.author) ~ '\">' ~ activity.author.displayName ~ '</a>',
\t\t\t\t\t '<a href=\"' ~ profileUrl(activity.sharedActivity.author) ~ '\">' ~ activity.sharedActivity.author.displayName ~ '</a>'
\t\t\t\t )
\t\t\t\t |raw
\t\t\t }}
\t\t {% endif %}
\t {% endif %}
\t\t\t\t\t{% if activity.friendPost %}
\t\t\t\t\t\t{% if activity.type == 'friend_post' %}
\t\t\t\t\t\t\t{{ translate('Posted from %s activity.')
\t\t\t\t\t\t\t\t| format(
\t\t\t\t\t\t\t\t\t'<a href=\"' ~ profileUrl(activity.friendPost.author) ~ '\">' ~ activity.friendPost.author.displayName ~ '</a>'
\t\t\t\t\t\t\t\t) | raw
\t\t\t\t\t\t\t}}
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t{% endif %}
<div class=\"date\">{{ activity.updated_at }}</div>
</div>
</div>
\t\t\t{% if relatedActivity.relatedActivity.status == 'deleted' or activity.status == 'deleted' %}
\t\t\t\t{% set postDeleted = 1 %}
\t\t\t{% endif %}
<div class=\"mp-activity-content {{ (postDeleted == 1) ? 'mp-activity-removed' : '' }}\" data-activity-data=\"{{ activity.data|e }}\">
\t\t\t\t{% if postDeleted %}
\t\t\t\t\t{{ translate('Sorry, the original post was deleted by its author.') }}
\t\t\t\t{% else %}
\t\t\t\t\t{% if activity.data|length %}
\t\t\t\t\t\t<div class=\"mp-activity-content-text\">{{ activityContent(activity)|raw }}</div>
\t\t\t\t\t{% endif %}
\t\t\t\t\t{% if activity.link %}
\t\t\t\t\t\t{% include '@activity/partials/activity-attachment-link.twig' with {'link': activity.link} %}
\t\t\t\t\t{% endif %}
\t\t\t\t\t{% if activity.images %}
\t\t\t\t\t\t<div class=\"mp-activity-gallery\" data-gallery-id=\"{{ activity.id }}\" style=\"display: none\">
\t\t\t\t\t\t\t{% for id, thumbnails in activity.images.thumbnails|slice(0, 3, true) %}
\t\t\t\t\t\t\t\t<div class=\"mp-activity-gallery-image\" data-image-id=\"{{ id }}\">
\t\t\t\t\t\t\t\t\t<img src=\"{{ activityImage(thumbnails, 'large') }}\">
\t\t\t\t\t\t\t\t\t{% if loop.index0 == 2 and activity.images.total > 3 %}
\t\t\t\t\t\t\t\t\t\t<div class=\"mp-activity-gallery-image-overlay\">
\t\t\t\t\t\t\t\t\t\t\t<div>+{{ activity.images.total - 3 }}</div>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t</div>
\t\t\t\t\t{% endif %}
\t\t\t\t\t{% if activity.attachmentFiles %}
\t\t\t\t\t\t<div class=\"mbsActivAttachFilesWr\" data-activity-id=\"{{ activity.id }}\">
\t\t\t\t\t\t\t{% for oneAttachId, oneAttach in activity.attachmentFiles %}
\t\t\t\t\t\t\t\t<a class=\"mbsOneAttachItem\" title=\"{{ oneAttach['file_info']['name'] }}\" href=\"{{ oneAttach['file_info']['url'] }}\" target=\"_blank\" data-id=\"{{ oneAttach['attachment_all_id'] }}\">
\t\t\t\t\t\t\t\t\t<i class=\"icon attach mbsOneAttachIcon\"></i>
\t\t\t\t\t\t\t\t\t<span class=\"mbsOneAttachCaption\">{{ oneAttach['file_info']['name'] }}</span>
\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t</div>
\t\t\t\t\t{% endif %}
\t\t\t\t\t{{ environment.dispatcher.dispatch('activity.view.activityContent', [activity]) }}
\t\t\t\t\t{% if activity.type starts with 'shared_' %}
\t\t\t\t\t\t<div class=\"mp-shared-activity\">
\t\t\t\t\t\t\t{{ this.activity(activity.sharedActivity, 'sharedActivity') }}
\t\t\t\t\t\t</div>
\t\t\t\t\t{% endif %}
\t\t\t\t\t{% if activity.type == 'friend_post' %}
\t\t\t\t\t\t<div class=\"mp-shared-activity\">
\t\t\t\t\t\t\t{{ this.activity(activity.friendPost, 'friendPost') }}
\t\t\t\t\t\t</div>
\t\t\t\t\t{% endif %}
\t\t\t\t{% endif %}
</div>
</div>
\t\t{% if relatedActivity.relatedActivity.status != 'deleted' %}
\t\t\t{% if activityType != 'sharedActivity' and activityType != 'friendPost' and userLoggedIn and params.isReadPostPage != true %}
\t\t\t\t{% set menuHtml %}
\t\t\t\t\t{%- if activity.type in ['post', 'group_post', 'shared_post', 'shared_group_post'] -%}
\t\t\t\t\t\t<a href=\"{{ getActivityUrl(activity.id) }}\" class=\"item menu-link-action\">{{ translate('Read this post') }}</a>
\t\t\t\t\t{%- endif -%}
\t\t\t\t\t{%- if activity.type in ['group_post', 'group_user_post', 'group_created'] -%}
\t\t\t\t\t\t{%- if activity.type not in ['group_created',] -%}
\t\t\t\t\t\t\t{%- if isCurrentUser(activity.author) or currentUserCan('edit-activity') -%}
\t\t\t\t\t\t\t\t<div class=\"item edit-action\">{{ translate('Edit') }}</div>
\t\t\t\t\t\t\t{%- endif -%}
\t\t\t\t\t\t\t{%- if canEditGroup(activity.group) or isCurrentUser(activity.author) or currentUserCan('edit-activity') -%}
\t\t\t\t\t\t\t\t<div class=\"item group-delete-action\">{{ translate('Delete') }}</div>
\t\t\t\t\t\t\t{%- endif -%}
\t\t\t\t\t\t{%- endif -%}
\t\t\t\t\t{%- else -%}
\t\t\t\t\t\t{%- if isCurrentUser(activity.author) or currentUserCan('edit-activity') -%}
\t\t\t\t\t\t\t{%- if activity.type not in ['user_registered', 'follow', 'friendship'] -%}
\t\t\t\t\t\t\t\t<div class=\"item edit-action\">{{ translate('Edit') }}</div>
\t\t\t\t\t\t\t\t<div class=\"item delete-action\">{{ translate('Delete') }}</div>
\t\t\t\t\t\t\t{%- endif -%}
\t\t\t\t\t\t{%- endif -%}
\t\t\t\t\t{%- endif -%}
\t\t\t\t\t{%- if not isCurrentUser(activity.author) -%}
\t\t\t\t\t\t<div class=\"item report-action\">{{ translate('Report') }}</div>
\t\t\t\t\t{%- endif -%}
\t\t\t\t{%- endset -%}
\t\t\t\t{# if menu exists #}
\t\t\t\t{% if menuHtml | length %}
\t\t\t\t\t<div class=\"mp-activity-menu ui top right pointing dropdown item\">
\t\t\t\t\t\t<i class=\"ellipsis horizontal icon\"></i>
\t\t\t\t\t\t<div class=\"menu\">
\t\t\t\t\t\t\t{{ menuHtml|raw }}
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t{% endif %}
\t\t\t{% endif %}
\t\t\t{% if not userLoggedIn and activityType != 'sharedActivity' and activityType != 'friendPost' %}
\t\t\t\t<div class=\"ui segment\">
\t\t\t\t\t{{ translate('Please <a href=\"%s\">sign up</a> or <a href=\"%s\">sign in</a> to like or write comments on this post.')
\t\t\t\t\t\t|format(getRouteUrl('registration'), getRouteUrl('login'))
\t\t\t\t\t\t|raw }}
\t\t\t\t</div>
\t\t\t{% endif %}
\t\t\t{% if activityType != 'sharedActivity' and activityType != 'friendPost' and relatedActivity.type != 'favorite' %}
\t\t\t\t<div class=\"ui segment mp-activity-actions\">
\t\t\t\t\t<a class=\"like-action {% if activity.likes.likedByCurrentUser %}mp-liked-activity{% endif %}\">
\t\t\t\t\t\t<i class=\"like icon\"></i> {{ translate('Like') }} <span>{% if activity.likes %}{{ activity.likes.count }}{% endif %}</span>
\t\t\t\t\t</a>
{% if isPostComment(activity.group) %}
{% if activity.type starts with 'group' or currentUserHasPermission('view-comments', activity.author) %}
<a class=\"comment-action\"><i class=\"comment icon\"></i> {{ translate('Comments') }} <span>{% if activity.comments %}{{ activity.comments.count }}{% endif %}</span></a>
{% endif %}
{% endif %}
\t\t\t\t\t<a class=\"share-action {% if activity.shares.sharedByCurrentUser %}mp-shared-activity{% endif %}\">
\t\t\t\t\t\t<i class=\"share icon\"></i> {{ translate('Share') }} <span>{% if activity.shares %}{{ activity.shares.count }}{% endif %}</span>
\t\t\t\t\t</a>
\t\t\t\t\t{% if settings.design.activity.type.favorite == 'true' %}
\t\t\t\t\t\t<a class=\"favorite-action
\t\t\t\t\t\t\t\t{% if activity.favorite.currentUserInFavorite != 0 %}{{ 'mp-favorited-activity' }}{% endif %}
\t\t\t\t\t\t\t\t{% if isCurrentUser(activity.author) %}{{ 'mbsCurrentUserActivity' }}{% endif %}
\t\t\t\t\t\t\t\">
\t\t\t\t\t\t\t<i class=\"star icon\"></i>
\t\t\t\t\t\t\t{{ translate('Favorite') }}
\t\t\t\t\t\t\t<span>{% if activity.favorite %}{{ activity.favorite.count }}{% endif %}</span>
\t\t\t\t\t\t</a>
\t\t\t\t\t{% endif %}
\t\t\t\t\t<div>
\t\t\t\t\t\t<div class=\"ui flowing popup small inverted mp-like-popup\">
\t\t\t\t\t\t\t<div class=\"popup-count\">
\t\t\t\t\t\t\t\t<small>
\t\t\t\t\t\t\t\t\t{{ translate('%s people liked this')|format('<span>' ~ activity.likes.count ~ '</span>')|raw }}
\t\t\t\t\t\t\t\t</small>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"ui basic vertical segment popup-loader\">
\t\t\t\t\t\t\t\t<div class=\"ui active centered inline mini loader\"></div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"ui mini horizontal divided list popup-users\" style=\"display: none\"></div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"sc-membership ui small modal long mp-like-modal\">
\t\t\t\t\t\t\t<i class=\"close icon\"></i>
\t\t\t\t\t\t\t<div class=\"header\">
\t\t\t\t\t\t\t {{ translate('%s people liked this')|format('<span>' ~ activity.likes.count ~ '</span>')|raw }}
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"content\">
\t\t\t\t\t\t\t\t<div class=\"ui grid centered modal-users\"></div>
\t\t\t\t\t\t\t\t<div class=\"ui basic vertical segment modal-loader\">
\t\t\t\t\t\t\t\t\t<div class=\"ui active centered inline loader\"></div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"ui flowing popup small inverted mp-share-popup\">
\t\t\t\t\t\t\t<div class=\"popup-count\">
\t\t\t\t\t\t\t\t<small>
\t\t\t\t\t\t\t\t\t{{ translate('%s people shared this')|format('<span>' ~ activity.shares.count ~ '</span>')|raw }}
\t\t\t\t\t\t\t\t</small>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"ui basic vertical segment popup-loader\">
\t\t\t\t\t\t\t\t<div class=\"ui active centered inline mini loader\"></div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"ui mini horizontal divided list popup-users\" style=\"display: none\"></div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"sc-membership ui small modal long mp-share-modal\">
\t\t\t\t\t\t\t<i class=\"close icon\"></i>
\t\t\t\t\t\t\t<div class=\"header\">
\t\t\t\t\t\t\t\t{{ translate('%s people shared this')|format('<span>' ~ activity.shares.count ~ '</span>')|raw }}
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"content\">
\t\t\t\t\t\t\t\t<div class=\"ui grid centered modal-users\"></div>
\t\t\t\t\t\t\t\t<div class=\"ui basic vertical segment modal-loader\">
\t\t\t\t\t\t\t\t\t<div class=\"ui active centered inline loader\"></div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t{% if settings.design.activity.type.favorite == 'true' %}
\t\t\t\t\t\t\t<div class=\"ui flowing popup small inverted mp-favorite-popup\">
\t\t\t\t\t\t\t\t<div class=\"popup-count\">
\t\t\t\t\t\t\t\t\t<small>
\t\t\t\t\t\t\t\t\t\t{{ translate('%s people added this to favorite')|format('<span>' ~ activity.favorite.count ~ '</span>')|raw }}
\t\t\t\t\t\t\t\t\t</small>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div class=\"ui basic vertical segment popup-loader\">
\t\t\t\t\t\t\t\t\t<div class=\"ui active centered inline mini loader\"></div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div class=\"ui mini horizontal divided list popup-users\" style=\"display: none\"></div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"sc-membership ui small modal long mp-favorite-modal\">
\t\t\t\t\t\t\t\t<i class=\"close icon\"></i>
\t\t\t\t\t\t\t\t<div class=\"header\">
\t\t\t\t\t\t\t\t\t{{ translate('%s people added this to favorite')|format('<span>' ~ activity.favorite.count ~ '</span>')|raw }}
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<div class=\"content\">
\t\t\t\t\t\t\t\t\t<div class=\"ui grid centered modal-users\"></div>
\t\t\t\t\t\t\t\t\t<div class=\"ui basic vertical segment modal-loader\">
\t\t\t\t\t\t\t\t\t\t<div class=\"ui active centered inline loader\"></div>
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t{% endif %}
\t\t\t{% if settings.base.plugins.socialShare.enabled == 1 and settings.base.plugins.socialShare.ids | length %}
\t\t\t\t<div class=\"ui segment mbsSocShareContainer\">
\t\t\t\t\t{{ getSocShareProject({
\t\t\t\t\t\t'projectId': settings.base.plugins.socialShare.ids[0],
\t\t\t\t\t\t'url': getActivityUrl(activity.id),
\t\t\t\t\t\t'type': 'pa',
\t\t\t\t\t\t'id': activity.id,
\t\t\t\t\t}) | raw }}
\t\t\t\t</div>
\t\t\t{% endif %}
\t\t{% endif %}
\t\t{% if activityType != 'sharedActivity' and activityType != 'friendPost' and userLoggedIn %}
\t\t\t{% if activity.type starts with 'group' or currentUserHasPermission('view-comments', activity.author) %}
\t\t\t\t<div class=\"ui secondary segment mp-activity-comments\" {% if not activity.comments %}style=\"display: none\"{% endif %}>
\t\t\t\t\t<div class=\"ui equal width grid mp-previous-comments\" {% if activity.comments.comments|length == activity.comments.count %}style=\"display: none\"{% endif %}>
\t\t\t\t\t\t<div class=\"left floated column\">
\t\t\t\t\t\t\t<div class=\"mp-more-comments\">{{ translate('View previous comments') }} <div class=\"ui active mini inline loader\" style=\"display: none\"></div></div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"right floated right aligned column mp-comments-count\">
\t\t\t\t\t\t\t<div class=\"ui floated right\">
\t\t\t\t\t\t\t\t<span class=\"showed-comments\">{{ activity.comments.comments|length }}</span> {{ translate('of') }} <span class=\"total-comments\">{{ activity.comments.count }}</span>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"ui threaded comments\" {% if not activity.comments %}style=\"display: none\"{% endif %}>
\t\t\t\t\t\t{% include '@activity/partials/activity-comments.twig' with {'comments': activity.comments.comments, 'relatedActivity': relatedActivity.relatedActivity} %}
\t\t\t\t\t</div>
\t\t\t\t\t{% if relatedActivity.relatedActivity.status != 'deleted' %}
\t\t\t\t\t\t{% if activity.type starts with 'group' or currentUserHasPermission('post-comments', activity.author) %}
\t\t\t\t\t\t\t{% include '@activity/partials/activity-comment-form.twig' with {'context': activityContext} %}
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t{% endif %}
\t\t\t\t</div>
\t\t\t{% endif %}
\t\t{% endif %}
</div>
{% endmacro %}", "@activity/partials/activities.twig", "D:\\projects\\htdocs\\wordpress\\wp-content\\plugins\\membership-by-supsystic\\src\\Membership\\Activity\\views\\partials\\activities.twig");
}
}
<?php
/* @users/partials/users-send-message-modal.twig */
class __TwigTemplate_48b99120d1e68130b40ae72b702631e9b2709dfcb905a097f6f6a029d6bd899b extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
);
}
protected function doDisplay(array $context, array $blocks = array())
{
// line 1
echo "<div class=\"ui small modal\" id=\"send-message-modal\">
<i class=\"close icon\"></i>
<div class=\"header\">
";
// line 4
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Send message to")), "html", null, true);
echo " <span class=\"recipient-name\"></span>
</div>
<div class=\"content\">
<div class=\"ui form\">
<div class=\"field\">
<label>";
// line 9
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Message")), "html", null, true);
echo "</label>
<textarea rows=\"5\"></textarea>
</div>
</div>
\t\t";
// line 13
if ((($context["useAttachment"] ?? null) == 1)) {
// line 14
echo "\t\t\t<div class=\"mbs-all-attachment-list\"></div>
\t\t";
}
// line 16
echo "\t</div>
<div class=\"actions\">
\t\t";
// line 18
if ((($context["useAttachment"] ?? null) == 1)) {
// line 19
echo "\t\t\t<button class=\"mbs-add-attachment ui button mini\"><span class=\"mbs-invisible\">_</span><i class=\"icon attach\"></i></button>
\t\t";
}
// line 21
echo " <button class=\"ui button mini secondary cancel\">";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Cancel")), "html", null, true);
echo "</button>
<button class=\"ui positive mini primary button mbsAttMessSendBtn\">";
// line 22
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Send")), "html", null, true);
echo "</button>
</div>
</div>
";
// line 25
if ((($context["useAttachment"] ?? null) == 1)) {
// line 26
echo "\t";
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["environment"] ?? null), "dispatcher", array()), "dispatch", array(0 => "users.send.message.attachment.template"), "method"), "html", null, true);
echo "
";
}
}
public function getTemplateName()
{
return "@users/partials/users-send-message-modal.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 68 => 26, 66 => 25, 60 => 22, 55 => 21, 51 => 19, 49 => 18, 45 => 16, 41 => 14, 39 => 13, 32 => 9, 24 => 4, 19 => 1,);
}
/** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
public function getSource()
{
@trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
return $this->getSourceContext()->getCode();
}
public function getSourceContext()
{
return new Twig_Source("<div class=\"ui small modal\" id=\"send-message-modal\">
<i class=\"close icon\"></i>
<div class=\"header\">
{{ translate('Send message to') }} <span class=\"recipient-name\"></span>
</div>
<div class=\"content\">
<div class=\"ui form\">
<div class=\"field\">
<label>{{ translate('Message') }}</label>
<textarea rows=\"5\"></textarea>
</div>
</div>
\t\t{% if useAttachment == 1 %}
\t\t\t<div class=\"mbs-all-attachment-list\"></div>
\t\t{% endif %}
\t</div>
<div class=\"actions\">
\t\t{% if useAttachment == 1 %}
\t\t\t<button class=\"mbs-add-attachment ui button mini\"><span class=\"mbs-invisible\">_</span><i class=\"icon attach\"></i></button>
\t\t{% endif %}
<button class=\"ui button mini secondary cancel\">{{ translate('Cancel') }}</button>
<button class=\"ui positive mini primary button mbsAttMessSendBtn\">{{ translate('Send') }}</button>
</div>
</div>
{% if useAttachment == 1 %}
\t{{ environment.dispatcher.dispatch('users.send.message.attachment.template') }}
{% endif %}", "@users/partials/users-send-message-modal.twig", "D:\\projects\\htdocs\\wordpress\\wp-content\\plugins\\membership-by-supsystic\\src\\Membership\\Users\\views\\partials\\users-send-message-modal.twig");
}
}
<?php
/* @users/partials/users-send-message-attachment-template.twig */
class __TwigTemplate_d98f46f84954420adb230b72ddece4ad22dd38ea37d53077aac93e62546306e4 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
);
}
protected function doDisplay(array $context, array $blocks = array())
{
// line 1
echo "<script class=\"mbs-all-attachment-template\" type=\"text/html\">
\t<div class=\"mbs-one-any-attachment\" title=\"\">
\t\t<img class=\"ui image mbs-att-image\" src=\"";
// line 3
echo twig_escape_filter($this->env, ($context["attachmentIcon"] ?? null), "html", null, true);
echo "\">
\t\t<span class=\"mbs-image-caption\"></span>
\t\t<div class=\"mbs-attachment-image-overlay\"></div>
\t\t<div class=\"mbs-progress-bar\">
\t\t\t<div class=\"ui tiny indicating progress active\">
\t\t\t\t<div class=\"bar\" style=\"width: 1%; transition-duration: 300ms;\"></div>
\t\t\t</div>
\t\t</div>
\t\t<i class=\"close icon\"></i>
\t</div>
</script>";
}
public function getTemplateName()
{
return "@users/partials/users-send-message-attachment-template.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 23 => 3, 19 => 1,);
}
/** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
public function getSource()
{
@trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
return $this->getSourceContext()->getCode();
}
public function getSourceContext()
{
return new Twig_Source("<script class=\"mbs-all-attachment-template\" type=\"text/html\">
\t<div class=\"mbs-one-any-attachment\" title=\"\">
\t\t<img class=\"ui image mbs-att-image\" src=\"{{ attachmentIcon }}\">
\t\t<span class=\"mbs-image-caption\"></span>
\t\t<div class=\"mbs-attachment-image-overlay\"></div>
\t\t<div class=\"mbs-progress-bar\">
\t\t\t<div class=\"ui tiny indicating progress active\">
\t\t\t\t<div class=\"bar\" style=\"width: 1%; transition-duration: 300ms;\"></div>
\t\t\t</div>
\t\t</div>
\t\t<i class=\"close icon\"></i>
\t</div>
</script>", "@users/partials/users-send-message-attachment-template.twig", "D:\\projects\\htdocs\\wordpress\\wp-content\\plugins\\membership-by-supsystic\\src\\Membership\\Users\\views\\partials\\users-send-message-attachment-template.twig");
}
}
<?php
/* @users/partials/users-report-modal.twig */
class __TwigTemplate_6cd6d0bf73e16bb2fd384d5c858abd4c8e141964c90120449aa11a68d8601576 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
);
}
protected function doDisplay(array $context, array $blocks = array())
{
// line 1
echo "<div class=\"ui small modal\" id=\"report-user-modal\">
<i class=\"close icon\"></i>
<div class=\"header\">";
// line 3
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Report")), "html", null, true);
echo " <span class=\"recipient-name\"></span>
</div>
<div class=\"content\">
<div class=\"ui form\">
<div class=\"field\">
<label>";
// line 8
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Message")), "html", null, true);
echo "</label>
<textarea rows=\"5\"></textarea>
</div>
</div>
</div>
<div class=\"actions\">
<button class=\"ui button mini secondary cancel\">";
// line 14
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Cancel")), "html", null, true);
echo "</button>
<button class=\"ui positive mini primary button\">";
// line 15
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Send")), "html", null, true);
echo "</button>
</div>
</div>";
}
public function getTemplateName()
{
return "@users/partials/users-report-modal.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 44 => 15, 40 => 14, 31 => 8, 23 => 3, 19 => 1,);
}
/** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
public function getSource()
{
@trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
return $this->getSourceContext()->getCode();
}
public function getSourceContext()
{
return new Twig_Source("<div class=\"ui small modal\" id=\"report-user-modal\">
<i class=\"close icon\"></i>
<div class=\"header\">{{ translate('Report') }} <span class=\"recipient-name\"></span>
</div>
<div class=\"content\">
<div class=\"ui form\">
<div class=\"field\">
<label>{{ translate('Message') }}</label>
<textarea rows=\"5\"></textarea>
</div>
</div>
</div>
<div class=\"actions\">
<button class=\"ui button mini secondary cancel\">{{ translate('Cancel') }}</button>
<button class=\"ui positive mini primary button\">{{ translate('Send') }}</button>
</div>
</div>", "@users/partials/users-report-modal.twig", "D:\\projects\\htdocs\\wordpress\\wp-content\\plugins\\membership-by-supsystic\\src\\Membership\\Users\\views\\partials\\users-report-modal.twig");
}
}
<?php
/* @activity/partials/activity-post-form.twig */
class __TwigTemplate_3d7239904169258d61f9e13dae5c10c7ce60a4a7f19ab4a2fcabc10a9482ebcd extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
);
}
protected function doDisplay(array $context, array $blocks = array())
{
// line 1
echo "<div class=\"ui segments mp-activity-post-form\" style=\"display:none;\">
<div class=\"ui segment\">
<div class=\"ui divided items\">
<div class=\"item\">
";
// line 5
if (((($context["context"] ?? null) == "group") && $this->env->getExtension('Membership_Groups_Twig')->canEditGroup(($context["requestedGroup"] ?? null)))) {
// line 6
echo " <img class=\"mp-activity-post-avatar activity-author-group\" src=\"";
echo twig_escape_filter($this->env, $this->env->getExtension('Membership_Groups_Twig')->groupsLogo(($context["requestedGroup"] ?? null), "medium"), "html", null, true);
echo "\" alt=\"\">
\t <img class=\"mp-activity-post-avatar activity-author-user\" src=\"";
// line 7
echo twig_escape_filter($this->env, $this->env->getExtension('Membership_Users_Twig')->userAvatar(($context["currentUser"] ?? null), "medium"), "html", null, true);
echo "\" style=\"display: none\" alt=\"\">
";
} else {
// line 9
echo " <img class=\"mp-activity-post-avatar activity-author-user\" src=\"";
echo twig_escape_filter($this->env, $this->env->getExtension('Membership_Users_Twig')->userAvatar(($context["currentUser"] ?? null), "medium"), "html", null, true);
echo "\" alt=\"\">
";
}
// line 11
echo " <div class=\"middle aligned content\">
<form class=\"ui reply form\">
<div class=\"field\">
\t\t\t\t\t\t\t<textarea class=\"mp-form-textarea\" rows=\"2\" placeholder=\"";
// line 14
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("What's new?")), "html", null, true);
echo "\"></textarea>
</div>
</form>
</div>
</div>
</div>
</div>
\t<div class=\"ui segment mp-attachment-images\" style=\"display:none;\"></div>
\t";
// line 24
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["environment"] ?? null), "dispatcher", array()), "dispatch", array(0 => "activity.form.photoGalleryContainer"), "method"), "html", null, true);
echo "
\t";
// line 25
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["environment"] ?? null), "dispatcher", array()), "dispatch", array(0 => "activity.form.sliderContainer"), "method"), "html", null, true);
echo "
\t";
// line 26
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["environment"] ?? null), "dispatcher", array()), "dispatch", array(0 => "activity.form.googleMapsContainer"), "method"), "html", null, true);
echo "
<div class=\"ui segment mp-attachment-link\" style=\"display:none;\">
<div class=\"ui active centered inline loader\" style=\"display:none;\"></div>
</div>
\t
<div class=\"ui secondary basic segment clearing post-form-buttons\">
\t <div class=\"post-activity-buttons\">
\t\t\t<button class=\"ui icon button secondary mini mbsActivityAttachmentBtn\" data-action=\"mbs-add-attachment\"><i class=\"icon attach\"></i></button>
\t\t <button class=\"ui icon button primary mini right floated\" data-action=\"post-activity\">
\t\t\t <span><i class=\"send icon\"></i>";
// line 37
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Post")), "html", null, true);
echo "</span>
\t\t </button>
\t\t\t";
// line 39
if ((twig_length_filter($this->env, ($context["smilesList"] ?? null)) > 0)) {
// line 40
echo "\t\t\t\t<div class=\"mbs-smile-btn-wrapper\">
\t\t\t\t\t<button class=\"ui button mini\" data-action=\"add-smile-to-text\">:D</button>
\t\t\t\t\t<div class=\"mp-smiles-window mbs-displ-hidden\">
\t\t\t\t\t\t<div class=\"mbs-smiles-wrapper\">
\t\t\t\t\t\t\t";
// line 44
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["smilesList"] ?? null));
foreach ($context['_seq'] as $context["scIndex"] => $context["smileCode"]) {
// line 45
echo "\t\t\t\t\t\t\t\t<div class=\"mbs-sw-one-smile\" data-id=\"";
echo twig_escape_filter($this->env, $context["scIndex"], "html", null, true);
echo "\" data-code=\"";
echo twig_escape_filter($this->env, $context["smileCode"], "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $context["smileCode"], "html", null, true);
echo "</div>
\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['scIndex'], $context['smileCode'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 47
echo "\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t";
}
// line 51
echo "
";
// line 52
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["environment"] ?? null), "dispatcher", array()), "dispatch", array(0 => "activity.form.actions"), "method"), "html", null, true);
echo "
\t\t
\t\t ";
// line 54
if (((($context["context"] ?? null) == "group") && $this->env->getExtension('Membership_Groups_Twig')->canEditGroup(($context["requestedGroup"] ?? null)))) {
// line 55
echo "\t\t\t <div class=\"ui pointing left top dropdown mp-activity-author right floated\">
\t\t\t\t <div class=\"text\">
\t\t\t\t\t <img class=\"ui mini image activity-author-group\" src=\"";
// line 57
echo twig_escape_filter($this->env, $this->env->getExtension('Membership_Groups_Twig')->groupsLogo(($context["requestedGroup"] ?? null), "small"), "html", null, true);
echo "\" >
\t\t\t\t\t <img class=\"ui mini image activity-author-user\" src=\"";
// line 58
echo twig_escape_filter($this->env, $this->env->getExtension('Membership_Users_Twig')->userAvatar(($context["currentUser"] ?? null), "small"), "html", null, true);
echo "\" style=\"display: none\">
\t\t\t\t </div>
\t\t\t\t <i class=\"dropdown icon\"></i>
\t\t\t\t <div class=\"menu\">
\t\t\t\t\t <div class=\"header\">Post as</div>
\t\t\t\t\t <div class=\"divider\"></div>
\t\t\t\t\t <div class=\"item\" data-value=\"user\">
\t\t\t\t\t\t <img class=\"ui avatar image\" src=\"";
// line 65
echo twig_escape_filter($this->env, $this->env->getExtension('Membership_Users_Twig')->userAvatar(($context["currentUser"] ?? null), "small"), "html", null, true);
echo "\">
\t\t\t\t\t\t ";
// line 66
echo twig_escape_filter($this->env, $this->getAttribute(($context["currentUser"] ?? null), "displayName", array()), "html", null, true);
echo "
\t\t\t\t\t </div>
\t\t\t\t\t <div class=\"item\" data-value=\"group\">
\t\t\t\t\t\t <img class=\"ui avatar image\" src=\"";
// line 69
echo twig_escape_filter($this->env, $this->env->getExtension('Membership_Groups_Twig')->groupsLogo(($context["requestedGroup"] ?? null), "small"), "html", null, true);
echo "\">
\t\t\t\t\t\t ";
// line 70
echo twig_escape_filter($this->env, $this->getAttribute(($context["requestedGroup"] ?? null), "name", array()), "html", null, true);
echo "
\t\t\t\t\t </div>
\t\t\t\t </div>
\t\t\t </div>
\t\t ";
}
// line 75
echo "\t </div>
\t
\t <div class=\"edit-activity-buttons\" style=\"display:none;\">
\t\t <div class=\"post-activity-buttons edit-activity-buttons\" style=\"display: inline-block;\">
\t\t\t <button class=\"ui icon button secondary mini mbsActivityAttachmentBtn\" data-action=\"mbs-add-attachment\"><i class=\"icon attach\"></i></button>
\t\t\t ";
// line 80
if ((twig_length_filter($this->env, ($context["smilesList"] ?? null)) > 0)) {
// line 81
echo "\t\t\t\t <div class=\"mbs-smile-btn-wrapper\">
\t\t\t\t\t <button class=\"ui button mini\" data-action=\"add-smile-to-text\">:D</button>
\t\t\t\t\t <div class=\"mp-smiles-window mbs-displ-hidden\">
\t\t\t\t\t\t <div class=\"mbs-smiles-wrapper\">
\t\t\t\t\t\t\t ";
// line 85
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["smilesList"] ?? null));
foreach ($context['_seq'] as $context["scIndex"] => $context["smileCode"]) {
// line 86
echo "\t\t\t\t\t\t\t\t <div class=\"mbs-sw-one-smile\" data-id=\"";
echo twig_escape_filter($this->env, $context["scIndex"], "html", null, true);
echo "\" data-code=\"";
echo twig_escape_filter($this->env, $context["smileCode"], "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $context["smileCode"], "html", null, true);
echo "</div>
\t\t\t\t\t\t\t ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['scIndex'], $context['smileCode'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 88
echo "\t\t\t\t\t\t </div>
\t\t\t\t\t </div>
\t\t\t\t </div>
\t\t\t ";
}
// line 92
echo "\t\t </div>
\t\t <button class=\"ui floating icon button mini right floated primary\" data-action=\"save\">";
// line 93
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Save")), "html", null, true);
echo "</button>
\t\t <button class=\"ui floating icon button mini right floated secondary\" data-action=\"cancel\">";
// line 94
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Cancel")), "html", null, true);
echo "</button>
\t\t</div>
\t
</div>
</div>";
}
public function getTemplateName()
{
return "@activity/partials/activity-post-form.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 214 => 94, 210 => 93, 207 => 92, 201 => 88, 188 => 86, 184 => 85, 178 => 81, 176 => 80, 169 => 75, 161 => 70, 157 => 69, 151 => 66, 147 => 65, 137 => 58, 133 => 57, 129 => 55, 127 => 54, 122 => 52, 119 => 51, 113 => 47, 100 => 45, 96 => 44, 90 => 40, 88 => 39, 83 => 37, 69 => 26, 65 => 25, 61 => 24, 48 => 14, 43 => 11, 37 => 9, 32 => 7, 27 => 6, 25 => 5, 19 => 1,);
}
/** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
public function getSource()
{
@trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
return $this->getSourceContext()->getCode();
}
public function getSourceContext()
{
return new Twig_Source("<div class=\"ui segments mp-activity-post-form\" style=\"display:none;\">
<div class=\"ui segment\">
<div class=\"ui divided items\">
<div class=\"item\">
{% if context == 'group' and canEditGroup(requestedGroup) %}
<img class=\"mp-activity-post-avatar activity-author-group\" src=\"{{ groupLogo(requestedGroup, 'medium') }}\" alt=\"\">
\t <img class=\"mp-activity-post-avatar activity-author-user\" src=\"{{ userAvatar(currentUser, 'medium') }}\" style=\"display: none\" alt=\"\">
{% else %}
<img class=\"mp-activity-post-avatar activity-author-user\" src=\"{{ userAvatar(currentUser, 'medium') }}\" alt=\"\">
{% endif %}
<div class=\"middle aligned content\">
<form class=\"ui reply form\">
<div class=\"field\">
\t\t\t\t\t\t\t<textarea class=\"mp-form-textarea\" rows=\"2\" placeholder=\"{{ translate(\"What's new?\") }}\"></textarea>
</div>
</form>
</div>
</div>
</div>
</div>
\t<div class=\"ui segment mp-attachment-images\" style=\"display:none;\"></div>
\t{{ environment.dispatcher.dispatch('activity.form.photoGalleryContainer') }}
\t{{ environment.dispatcher.dispatch('activity.form.sliderContainer') }}
\t{{ environment.dispatcher.dispatch('activity.form.googleMapsContainer') }}
<div class=\"ui segment mp-attachment-link\" style=\"display:none;\">
<div class=\"ui active centered inline loader\" style=\"display:none;\"></div>
</div>
\t
<div class=\"ui secondary basic segment clearing post-form-buttons\">
\t <div class=\"post-activity-buttons\">
\t\t\t<button class=\"ui icon button secondary mini mbsActivityAttachmentBtn\" data-action=\"mbs-add-attachment\"><i class=\"icon attach\"></i></button>
\t\t <button class=\"ui icon button primary mini right floated\" data-action=\"post-activity\">
\t\t\t <span><i class=\"send icon\"></i>{{ translate('Post') }}</span>
\t\t </button>
\t\t\t{% if smilesList|length > 0 %}
\t\t\t\t<div class=\"mbs-smile-btn-wrapper\">
\t\t\t\t\t<button class=\"ui button mini\" data-action=\"add-smile-to-text\">:D</button>
\t\t\t\t\t<div class=\"mp-smiles-window mbs-displ-hidden\">
\t\t\t\t\t\t<div class=\"mbs-smiles-wrapper\">
\t\t\t\t\t\t\t{% for scIndex, smileCode in smilesList %}
\t\t\t\t\t\t\t\t<div class=\"mbs-sw-one-smile\" data-id=\"{{ scIndex }}\" data-code=\"{{ smileCode }}\">{{ smileCode }}</div>
\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t</div>
\t\t\t{% endif %}
{{ environment.dispatcher.dispatch('activity.form.actions') }}
\t\t
\t\t {% if context == 'group' and canEditGroup(requestedGroup) %}
\t\t\t <div class=\"ui pointing left top dropdown mp-activity-author right floated\">
\t\t\t\t <div class=\"text\">
\t\t\t\t\t <img class=\"ui mini image activity-author-group\" src=\"{{ groupLogo(requestedGroup, 'small') }}\" >
\t\t\t\t\t <img class=\"ui mini image activity-author-user\" src=\"{{ userAvatar(currentUser, 'small') }}\" style=\"display: none\">
\t\t\t\t </div>
\t\t\t\t <i class=\"dropdown icon\"></i>
\t\t\t\t <div class=\"menu\">
\t\t\t\t\t <div class=\"header\">Post as</div>
\t\t\t\t\t <div class=\"divider\"></div>
\t\t\t\t\t <div class=\"item\" data-value=\"user\">
\t\t\t\t\t\t <img class=\"ui avatar image\" src=\"{{ userAvatar(currentUser, 'small') }}\">
\t\t\t\t\t\t {{ currentUser.displayName }}
\t\t\t\t\t </div>
\t\t\t\t\t <div class=\"item\" data-value=\"group\">
\t\t\t\t\t\t <img class=\"ui avatar image\" src=\"{{ groupLogo(requestedGroup, 'small') }}\">
\t\t\t\t\t\t {{ requestedGroup.name }}
\t\t\t\t\t </div>
\t\t\t\t </div>
\t\t\t </div>
\t\t {% endif %}
\t </div>
\t
\t <div class=\"edit-activity-buttons\" style=\"display:none;\">
\t\t <div class=\"post-activity-buttons edit-activity-buttons\" style=\"display: inline-block;\">
\t\t\t <button class=\"ui icon button secondary mini mbsActivityAttachmentBtn\" data-action=\"mbs-add-attachment\"><i class=\"icon attach\"></i></button>
\t\t\t {% if smilesList|length > 0 %}
\t\t\t\t <div class=\"mbs-smile-btn-wrapper\">
\t\t\t\t\t <button class=\"ui button mini\" data-action=\"add-smile-to-text\">:D</button>
\t\t\t\t\t <div class=\"mp-smiles-window mbs-displ-hidden\">
\t\t\t\t\t\t <div class=\"mbs-smiles-wrapper\">
\t\t\t\t\t\t\t {% for scIndex, smileCode in smilesList %}
\t\t\t\t\t\t\t\t <div class=\"mbs-sw-one-smile\" data-id=\"{{ scIndex }}\" data-code=\"{{ smileCode }}\">{{ smileCode }}</div>
\t\t\t\t\t\t\t {% endfor %}
\t\t\t\t\t\t </div>
\t\t\t\t\t </div>
\t\t\t\t </div>
\t\t\t {% endif %}
\t\t </div>
\t\t <button class=\"ui floating icon button mini right floated primary\" data-action=\"save\">{{ translate('Save') }}</button>
\t\t <button class=\"ui floating icon button mini right floated secondary\" data-action=\"cancel\">{{ translate('Cancel') }}</button>
\t\t</div>
\t
</div>
</div>", "@activity/partials/activity-post-form.twig", "D:\\projects\\htdocs\\wordpress\\wp-content\\plugins\\membership-by-supsystic\\src\\Membership\\Activity\\views\\partials\\activity-post-form.twig");
}
}
<?php
/* @users/posts.twig */
class __TwigTemplate_2c996870025e2ee93d8b962dd1d937190810f7a3965aaaed77de9ea4489b3ccb extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
// line 1
$this->parent = $this->loadTemplate("@users/profile.twig", "@users/posts.twig", 1);
$this->blocks = array(
'content' => array($this, 'block_content'),
);
}
protected function doGetParent(array $context)
{
return "@users/profile.twig";
}
protected function doDisplay(array $context, array $blocks = array())
{
$this->parent->display($context, array_merge($this->blocks, $blocks));
}
// line 3
public function block_content($context, array $blocks = array())
{
// line 4
echo "\t<div id=\"mp-posts\" class=\"ui basic vertical segment\">
\t\t";
// line 5
if (((($this->env->getExtension('Membership_Users_Twig')->isCurrentUser(($context["requestedUser"] ?? null)) && (($context["createNewPostUrl"] ?? null) != null)) && ($context["canUserCreatePost"] ?? null)) && ($this->getAttribute($this->getAttribute(($context["requestedUser"] ?? null), "permissions", array(), "array"), "can-access-wp-admin", array(), "array") == "true"))) {
// line 6
echo "\t\t\t<a href=\"";
echo twig_escape_filter($this->env, ($context["createNewPostUrl"] ?? null), "html", null, true);
echo "\" class=\"ui primary button\">";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Add new post")), "html", null, true);
echo "</a>
\t\t";
}
// line 8
echo "\t\t";
if (($context["posts"] ?? null)) {
// line 9
echo "\t\t\t<div class=\"ui divided items\">
\t\t\t\t";
// line 10
$this->loadTemplate("@users/partials/posts.twig", "@users/posts.twig", 10)->display(array_merge($context, array("posts" => ($context["posts"] ?? null))));
// line 11
echo "\t\t\t</div>
\t\t\t<div class=\"ui basic vertical segment posts-loader\" style=\"display: none\">
\t\t\t\t<div class=\"ui active centered inline loader\"></div>
\t\t\t</div>
\t\t";
} else {
// line 16
echo "\t\t\t<div class=\"ui message\">
\t\t\t\t<p>";
// line 17
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("No posts to show.")), "html", null, true);
echo "</p>
\t\t\t</div>
\t\t";
}
// line 20
echo "\t</div>
";
}
public function getTemplateName()
{
return "@users/posts.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 68 => 20, 62 => 17, 59 => 16, 52 => 11, 50 => 10, 47 => 9, 44 => 8, 36 => 6, 34 => 5, 31 => 4, 28 => 3, 11 => 1,);
}
/** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
public function getSource()
{
@trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
return $this->getSourceContext()->getCode();
}
public function getSourceContext()
{
return new Twig_Source("{% extends '@users/profile.twig' %}
{% block content %}
\t<div id=\"mp-posts\" class=\"ui basic vertical segment\">
\t\t{% if isCurrentUser(requestedUser) and createNewPostUrl != null and canUserCreatePost and requestedUser['permissions']['can-access-wp-admin'] == 'true' %}
\t\t\t<a href=\"{{ createNewPostUrl }}\" class=\"ui primary button\">{{ translate('Add new post') }}</a>
\t\t{% endif %}
\t\t{% if posts %}
\t\t\t<div class=\"ui divided items\">
\t\t\t\t{% include '@users/partials/posts.twig' with {'posts': posts} %}
\t\t\t</div>
\t\t\t<div class=\"ui basic vertical segment posts-loader\" style=\"display: none\">
\t\t\t\t<div class=\"ui active centered inline loader\"></div>
\t\t\t</div>
\t\t{% else %}
\t\t\t<div class=\"ui message\">
\t\t\t\t<p>{{ translate('No posts to show.') }}</p>
\t\t\t</div>
\t\t{% endif %}
\t</div>
{% endblock %}", "@users/posts.twig", "D:\\projects\\htdocs\\wordpress\\wp-content\\plugins\\membership-by-supsystic\\src\\Membership\\Users\\views\\posts.twig");
}
}
<?php
/* @activity/partials/activities-container.twig */
class __TwigTemplate_d46a358a6c68a397160a64d849fbdbb9e1ec1d7608ffb9f7fb4b4fd5337fe6d7 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
);
}
protected function doDisplay(array $context, array $blocks = array())
{
// line 1
echo "<div class=\"ui segment vertical basic mp-activity-container\" data-activity-context=\"";
echo twig_escape_filter($this->env, ($context["context"] ?? null), "html", null, true);
echo "\" data-single=\"";
if (array_key_exists("singleView", $context)) {
echo "1";
} else {
echo "0";
}
echo "\">
\t";
// line 3
if ((($context["userLoggedIn"] ?? null) && !($context["disablePostForm"] ?? null))) {
// line 4
echo "\t\t";
$this->loadTemplate("@activity/partials/activity-post-form.twig", "@activity/partials/activities-container.twig", 4)->display($context);
// line 5
echo "\t";
}
// line 6
echo "\t
\t<div class=\"mp-activity-list \">
\t\t";
// line 8
$this->loadTemplate("@activity/partials/activities.twig", "@activity/partials/activities-container.twig", 8)->display(array_merge($context, array("activities" => ($context["activities"] ?? null), "settings" => ($context["settings"] ?? null))));
// line 9
echo "\t</div>
\t
\t<div class=\"ui message no-activities\" ";
// line 11
if (($context["activities"] ?? null)) {
echo "style=\"display: none\"";
}
echo ">";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("There's no any activity yet")), "html", null, true);
echo "</div>
\t<div class=\"ui basic segment activity-loader\" style=\"display: none\">
\t\t<div class=\"ui active loader\"></div>
\t</div>
\t
\t";
// line 17
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["environment"] ?? null), "dispatcher", array()), "dispatch", array(0 => "activity.view.actachmentTemplate"), "method"), "html", null, true);
echo "
</div>
";
// line 21
$this->loadTemplate("@activity/partials/activity-gallery-modal.twig", "@activity/partials/activities-container.twig", 21)->display($context);
// line 22
$this->loadTemplate("@activity/partials/activity-report-modal.twig", "@activity/partials/activities-container.twig", 22)->display($context);
// line 23
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["environment"] ?? null), "dispatcher", array()), "dispatch", array(0 => "activity.view.galleryModal"), "method"), "html", null, true);
echo "
";
// line 24
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["environment"] ?? null), "dispatcher", array()), "dispatch", array(0 => "activity.view.sliderModal"), "method"), "html", null, true);
echo "
";
// line 25
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["environment"] ?? null), "dispatcher", array()), "dispatch", array(0 => "activity.view.googleMapsModal"), "method"), "html", null, true);
}
public function getTemplateName()
{
return "@activity/partials/activities-container.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 81 => 25, 77 => 24, 73 => 23, 71 => 22, 69 => 21, 62 => 17, 49 => 11, 45 => 9, 43 => 8, 39 => 6, 36 => 5, 33 => 4, 31 => 3, 19 => 1,);
}
/** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
public function getSource()
{
@trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
return $this->getSourceContext()->getCode();
}
public function getSourceContext()
{
return new Twig_Source("<div class=\"ui segment vertical basic mp-activity-container\" data-activity-context=\"{{ context }}\" data-single=\"{% if singleView is defined %}{{ \"1\" }}{% else %}{{ \"0\" }}{% endif %}\">
\t{% if userLoggedIn and not disablePostForm %}
\t\t{% include '@activity/partials/activity-post-form.twig' %}
\t{% endif %}
\t
\t<div class=\"mp-activity-list \">
\t\t{% include '@activity/partials/activities.twig' with {'activities': activities, 'settings': settings,} %}
\t</div>
\t
\t<div class=\"ui message no-activities\" {% if activities %}style=\"display: none\"{% endif %}>{{ translate('There\\'s no any activity yet') }}</div>
\t<div class=\"ui basic segment activity-loader\" style=\"display: none\">
\t\t<div class=\"ui active loader\"></div>
\t</div>
\t
\t{{ environment.dispatcher.dispatch('activity.view.actachmentTemplate') }}
</div>
{% include '@activity/partials/activity-gallery-modal.twig' %}
{% include '@activity/partials/activity-report-modal.twig' %}
{{ environment.dispatcher.dispatch('activity.view.galleryModal') }}
{{ environment.dispatcher.dispatch('activity.view.sliderModal') }}
{{ environment.dispatcher.dispatch('activity.view.googleMapsModal') }}", "@activity/partials/activities-container.twig", "D:\\projects\\htdocs\\wordpress\\wp-content\\plugins\\membership-by-supsystic\\src\\Membership\\Activity\\views\\partials\\activities-container.twig");
}
}
<?php
/* @auth/partials/login-form.twig */
class __TwigTemplate_68cedde303a6bf17d81e9417fae84a77f8a8dc4a6585656f4f766d889d736229 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
);
}
protected function doDisplay(array $context, array $blocks = array())
{
// line 1
echo "<form class=\"ui form left membership-login-form\"
method=\"post\"
data-validation-rules=\"";
// line 3
echo twig_escape_filter($this->env, sprintf(twig_jsonencode_filter(array("username" => array("presence" => array("message" => "%s")), "password" => array("presence" => array("message" => "%s")))), call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Username or E-mail is required")), call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Password is required"))), "html", null, true);
// line 9
echo "\"
class=\"membership-login-form\"
>
\t
\t";
// line 13
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["environment"] ?? null), "dispatcher", array()), "dispatch", array(0 => "auth.view.loginFormBefore"), "method"), "html", null, true);
echo "
\t";
// line 14
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["environment"] ?? null), "dispatcher", array()), "dispatch", array(0 => "loginFormBefore"), "method"), "html", null, true);
echo "
\t
\t<div class=\"field ui left\" data-name=\"username\">
\t\t<label>";
// line 17
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Username or E-mail")), "html", null, true);
echo "</label>
\t\t<input type=\"text\" name=\"username\">
\t</div>
\t<div class=\"field\" data-name=\"password\">
\t\t<label>";
// line 21
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Password")), "html", null, true);
echo "</label>
\t\t<input type=\"password\" name=\"password\">
\t</div>
\t<div class=\"ui equal width grid\">
\t\t<div class=\"field left aligned column\">
\t\t\t";
// line 26
if ($this->getAttribute($this->getAttribute($this->getAttribute(($context["settings"] ?? null), "design", array()), "auth", array()), "login-show-remember-me", array(), "array")) {
// line 27
echo "\t\t\t\t<div class=\"ui checkbox\">
\t\t\t\t\t<input type=\"checkbox\" id=\"remember-user-checkbox\" value=\"true\" name=\"remember\" class=\"hidden\">
\t\t\t\t\t<label for=\"remember-user-checkbox\"><small>";
// line 29
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Remember me")), "html", null, true);
echo "</small></label>
\t\t\t\t</div>
\t\t\t";
}
// line 32
echo "\t\t</div>
\t\t<div class=\"field right aligned column\">
\t\t\t<a href=\"";
// line 34
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('getRouteUrl')->getCallable(), array("login", array("action" => "reset-password"))), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Forgot your password?")), "html", null, true);
echo "</a>
\t\t</div>
\t</div>
\t
\t";
// line 38
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["environment"] ?? null), "dispatcher", array()), "dispatch", array(0 => "auth.view.loginFormAfter"), "method"), "html", null, true);
echo "
\t
\t<div class=\"mp-login-form-action-buttons ui basic vertical clearing segment\">
\t\t<a class=\"submit ui left floated button primary mini\">";
// line 41
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(($context["settings"] ?? null), "design", array()), "auth", array()), "login-primary-button-text", array(), "array"), "html", null, true);
echo "</a>
\t\t";
// line 43
$context["registrationButtonUrl"] = call_user_func_array($this->env->getFunction('getRouteUrl')->getCallable(), array("registration"));
// line 44
echo "\t\t";
if ((twig_length_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(($context["settings"] ?? null), "design", array()), "auth", array()), "login-secondary-button-url", array(), "array")) && ($this->getAttribute($this->getAttribute($this->getAttribute(($context["settings"] ?? null), "design", array()), "auth", array()), "login-secondary-button-url", array(), "array") != "/registration"))) {
// line 45
echo "\t\t\t";
$context["registrationButtonUrl"] = $this->getAttribute($this->getAttribute($this->getAttribute(($context["settings"] ?? null), "design", array()), "auth", array()), "login-secondary-button-url", array(), "array");
// line 46
echo "\t\t";
}
// line 47
echo "
\t\t<a class=\"mp-login-secondary-button ui right floated button secondary mini\" href=\"";
// line 48
echo twig_escape_filter($this->env, ($context["registrationButtonUrl"] ?? null), "html", null, true);
echo "\">
\t\t\t";
// line 49
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(($context["settings"] ?? null), "design", array()), "auth", array()), "login-secondary-button-text", array(), "array"), "html", null, true);
echo "
\t\t</a>
\t</div>
\t
\t<input type=\"submit\" style=\"display: none;\">
</form>";
}
public function getTemplateName()
{
return "@auth/partials/login-form.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 110 => 49, 106 => 48, 103 => 47, 100 => 46, 97 => 45, 94 => 44, 92 => 43, 87 => 41, 81 => 38, 72 => 34, 68 => 32, 62 => 29, 58 => 27, 56 => 26, 48 => 21, 41 => 17, 35 => 14, 31 => 13, 25 => 9, 23 => 3, 19 => 1,);
}
/** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
public function getSource()
{
@trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
return $this->getSourceContext()->getCode();
}
public function getSourceContext()
{
return new Twig_Source("<form class=\"ui form left membership-login-form\"
method=\"post\"
data-validation-rules=\"{{
{
\t 'username': {\"presence\":{\"message\":\"%s\"}},
\t 'password': {\"presence\":{\"message\":\"%s\"}}
}
|json_encode
|format(translate('Username or E-mail is required'), translate('Password is required')) }}\"
class=\"membership-login-form\"
>
\t
\t{{ environment.dispatcher.dispatch('auth.view.loginFormBefore') }}
\t{{ environment.dispatcher.dispatch('loginFormBefore') }}
\t
\t<div class=\"field ui left\" data-name=\"username\">
\t\t<label>{{ translate('Username or E-mail') }}</label>
\t\t<input type=\"text\" name=\"username\">
\t</div>
\t<div class=\"field\" data-name=\"password\">
\t\t<label>{{ translate('Password') }}</label>
\t\t<input type=\"password\" name=\"password\">
\t</div>
\t<div class=\"ui equal width grid\">
\t\t<div class=\"field left aligned column\">
\t\t\t{% if settings.design.auth['login-show-remember-me'] %}
\t\t\t\t<div class=\"ui checkbox\">
\t\t\t\t\t<input type=\"checkbox\" id=\"remember-user-checkbox\" value=\"true\" name=\"remember\" class=\"hidden\">
\t\t\t\t\t<label for=\"remember-user-checkbox\"><small>{{ translate('Remember me') }}</small></label>
\t\t\t\t</div>
\t\t\t{% endif %}
\t\t</div>
\t\t<div class=\"field right aligned column\">
\t\t\t<a href=\"{{ getRouteUrl('login', {'action':'reset-password'}) }}\">{{ translate('Forgot your password?') }}</a>
\t\t</div>
\t</div>
\t
\t{{ environment.dispatcher.dispatch('auth.view.loginFormAfter') }}
\t
\t<div class=\"mp-login-form-action-buttons ui basic vertical clearing segment\">
\t\t<a class=\"submit ui left floated button primary mini\">{{ settings.design.auth['login-primary-button-text'] }}</a>
\t\t{% set registrationButtonUrl = getRouteUrl('registration') %}
\t\t{% if settings.design.auth['login-secondary-button-url'] | length and settings.design.auth['login-secondary-button-url'] != '/registration' %}
\t\t\t{% set registrationButtonUrl = settings.design.auth['login-secondary-button-url'] %}
\t\t{% endif %}
\t\t<a class=\"mp-login-secondary-button ui right floated button secondary mini\" href=\"{{ registrationButtonUrl }}\">
\t\t\t{{ settings.design.auth['login-secondary-button-text'] }}
\t\t</a>
\t</div>
\t
\t<input type=\"submit\" style=\"display: none;\">
</form>", "@auth/partials/login-form.twig", "D:\\projects\\htdocs\\wordpress\\wp-content\\plugins\\membership-by-supsystic\\src\\Membership\\Auth\\views\\partials\\login-form.twig");
}
}
<?php
/* @auth/registration.twig */
class __TwigTemplate_1251f081435108daf86e74880bacc51b10f8b8bf919ad2d1e5a43dcb271c8d42 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
);
}
protected function doDisplay(array $context, array $blocks = array())
{
// line 1
echo "<div class=\"sc-membership\">
\t<div class=\"ui centered grid\">
\t\t<div class=\"column left aligned\">
\t\t\t<div class=\"ui message success\" style=\"display: none\"></div>
\t\t\t<form method=\"post\" data-validation-rules=\"";
// line 5
echo twig_escape_filter($this->env, twig_jsonencode_filter(($context["validationRules"] ?? null)), "html", null, true);
echo "\" class=\"ui large form left membership-registration-form\">
\t\t\t\t
\t\t\t\t";
// line 7
$context["sections"] = array();
// line 8
echo "
\t\t\t\t";
// line 9
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["environment"] ?? null), "dispatcher", array()), "dispatch", array(0 => "auth.view.registrationFormBefore"), "method"), "html", null, true);
echo "
\t\t\t\t";
// line 10
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["environment"] ?? null), "dispatcher", array()), "dispatch", array(0 => "registrationFormBefore"), "method"), "html", null, true);
echo "
\t\t\t\t
\t\t\t\t";
// line 12
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["fields"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["field"]) {
// line 13
echo "\t\t\t\t\t";
if (($this->getAttribute($context["field"], "enabled", array()) && $this->getAttribute($context["field"], "registration", array()))) {
// line 14
echo "\t\t\t\t\t\t";
if (!twig_in_filter($this->getAttribute($context["field"], "section", array()), ($context["sections"] ?? null))) {
// line 15
echo "\t\t\t\t\t\t\t";
$context["sections"] = twig_array_merge(($context["sections"] ?? null), array(0 => $this->getAttribute($context["field"], "section", array())));
// line 16
echo "\t\t\t\t\t\t";
}
// line 17
echo "
\t\t\t\t\t\t";
// line 18
$context["ipStr"] = "";
// line 19
echo "\t\t\t\t\t\t";
if ((($this->getAttribute($context["field"], "name", array()) == "country") && ($this->getAttribute($context["field"], "ipSelection", array()) == "1"))) {
// line 20
echo "\t\t\t\t\t\t\t";
$context["ipStr"] = "data-ip-selection=1";
// line 21
echo "\t\t\t\t\t\t";
}
// line 22
echo "
";
// line 23
$context["addNoneStr"] = "";
// line 24
echo "\t\t\t\t\t\t";
if ((($this->getAttribute($context["field"], "name", array()) == "country") && ($this->getAttribute($context["field"], "addNone", array()) == "1"))) {
// line 25
echo "\t\t\t\t\t\t\t";
$context["addNoneStr"] = "data-add-none=1";
// line 26
echo "\t\t\t\t\t\t";
}
// line 27
echo "
\t\t\t\t\t\t\t<div class=\"field\" data-name=\"";
// line 28
echo twig_escape_filter($this->env, $this->getAttribute($context["field"], "name", array()), "html", null, true);
echo "\" ";
echo twig_escape_filter($this->env, ($context["ipStr"] ?? null), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, ($context["addNoneStr"] ?? null), "html", null, true);
echo ">
\t\t\t\t\t\t\t<glabel>";
// line 29
echo twig_escape_filter($this->env, $this->getAttribute($context["field"], "label", array()), "html", null, true);
echo " ";
if ((($this->getAttribute($context["field"], "required", array()) && $this->getAttribute($context["field"], "asterisk", array(), "any", true, true)) && ($this->getAttribute($context["field"], "asterisk", array()) == true))) {
echo "<span class=\"gg-required-field\" style=\"color: ";
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(($context["settings"] ?? null), "design", array(), "array"), "general", array(), "array"), "asterisk-color", array(), "array"), "html", null, true);
echo ";\">*</span>";
}
echo " </glabel>
\t\t\t\t\t\t\t
\t\t\t\t\t\t\t";
// line 31
if (($this->getAttribute($context["field"], "type", array()) == "text")) {
// line 32
echo "\t\t\t\t\t\t\t\t<input type=\"text\" name=\"";
echo twig_escape_filter($this->env, $this->getAttribute($context["field"], "name", array()), "html", null, true);
echo "\">
\t\t\t\t\t\t\t";
} elseif (($this->getAttribute( // line 33
$context["field"], "type", array()) == "email")) {
// line 34
echo "\t\t\t\t\t\t\t\t<input type=\"email\" name=\"";
echo twig_escape_filter($this->env, $this->getAttribute($context["field"], "name", array()), "html", null, true);
echo "\">
\t\t\t\t\t\t\t";
} elseif (($this->getAttribute( // line 35
$context["field"], "type", array()) == "password")) {
// line 36
echo "\t\t\t\t\t\t\t\t<input type=\"password\" name=\"";
echo twig_escape_filter($this->env, $this->getAttribute($context["field"], "name", array()), "html", null, true);
echo "\">
\t\t\t\t\t\t\t";
} elseif (($this->getAttribute( // line 37
$context["field"], "type", array()) == "numeric")) {
// line 38
echo "\t\t\t\t\t\t\t\t<input type=\"number\" name=\"";
echo twig_escape_filter($this->env, $this->getAttribute($context["field"], "name", array()), "html", null, true);
echo "\">
\t\t\t\t\t\t\t";
} elseif (($this->getAttribute( // line 39
$context["field"], "type", array()) == "date")) {
// line 40
echo "\t\t\t\t\t\t\t\t<input
\t\t\t\t\t\t\t\t\t\tclass=\"date-field\"
\t\t\t\t\t\t\t\t\t\tdata-format=\"";
// line 42
echo twig_escape_filter($this->env, $this->getAttribute($context["field"], "format", array(), "array"), "html", null, true);
echo "\"
\t\t\t\t\t\t\t\t\t\tdata-field-name=\"";
// line 43
echo twig_escape_filter($this->env, $this->getAttribute($context["field"], "name", array()), "html", null, true);
echo "\"
\t\t\t\t\t\t\t\t\t\ttype=\"text\"
\t\t\t\t\t\t\t\t>
\t\t\t\t\t\t\t\t<input name=\"";
// line 46
echo twig_escape_filter($this->env, $this->getAttribute($context["field"], "name", array()), "html", null, true);
echo "\" type=\"hidden\">
\t\t\t\t\t\t\t";
} elseif (($this->getAttribute( // line 47
$context["field"], "type", array()) == "scroll")) {
// line 48
echo "\t\t\t\t\t\t\t\t<select multiple class=\"ui fluid multiple search selection dropdown\" name=\"";
echo twig_escape_filter($this->env, $this->getAttribute($context["field"], "name", array()), "html", null, true);
echo "[]\">
\t\t\t\t\t\t\t\t\t";
// line 49
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute($context["field"], "options", array()));
foreach ($context['_seq'] as $context["_key"] => $context["option"]) {
// line 50
echo "\t\t\t\t\t\t\t\t\t\t";
$context["checked"] = false;
// line 51
echo "\t\t\t\t\t\t\t\t\t\t";
if (($this->getAttribute($context["field"], "data", array()) && !twig_test_empty($this->getAttribute($context["field"], "data", array())))) {
// line 52
echo "\t\t\t\t\t\t\t\t\t\t\t";
if (twig_in_filter($this->getAttribute($context["option"], "id", array()), $this->getAttribute($context["field"], "data", array()))) {
// line 53
echo "\t\t\t\t\t\t\t\t\t\t\t\t";
$context["checked"] = true;
// line 54
echo "\t\t\t\t\t\t\t\t\t\t\t";
}
// line 55
echo "\t\t\t\t\t\t\t\t\t\t";
} else {
// line 56
echo "\t\t\t\t\t\t\t\t\t\t\tno data
\t\t\t\t\t\t\t\t\t\t\t";
// line 57
if ($this->getAttribute($context["option"], "checked", array())) {
// line 58
echo "\t\t\t\t\t\t\t\t\t\t\t\t";
$context["checked"] = true;
// line 59
echo "\t\t\t\t\t\t\t\t\t\t\t";
}
// line 60
echo "\t\t\t\t\t\t\t\t\t\t";
}
// line 61
echo "\t\t\t\t\t\t\t\t\t\t<option value=\"";
echo twig_escape_filter($this->env, $this->getAttribute($context["option"], "id", array()), "html", null, true);
echo "\" ";
if (($context["checked"] ?? null)) {
echo "selected";
}
echo ">";
echo twig_escape_filter($this->env, $this->getAttribute($context["option"], "name", array()), "html", null, true);
echo "</option>
\t\t\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['option'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 63
echo "\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t";
} elseif (($this->getAttribute( // line 64
$context["field"], "type", array()) == "drop")) {
// line 65
echo "\t\t\t\t\t\t\t\t<select class=\"ui fluid search single dropdown\" name=\"";
echo twig_escape_filter($this->env, $this->getAttribute($context["field"], "name", array()), "html", null, true);
echo "\">
\t\t\t\t\t\t\t\t\t";
// line 66
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute($context["field"], "options", array()));
foreach ($context['_seq'] as $context["_key"] => $context["option"]) {
// line 67
echo "\t\t\t\t\t\t\t\t\t\t";
$context["checked"] = false;
// line 68
echo "\t\t\t\t\t\t\t\t\t\t";
if (($this->getAttribute($context["field"], "data", array()) && !twig_test_empty($this->getAttribute($context["field"], "data", array())))) {
// line 69
echo "\t\t\t\t\t\t\t\t\t\t\t";
if (($this->getAttribute($context["option"], "id", array()) == $this->getAttribute($context["field"], "data", array()))) {
// line 70
echo "\t\t\t\t\t\t\t\t\t\t\t\t";
$context["checked"] = true;
// line 71
echo "\t\t\t\t\t\t\t\t\t\t\t";
}
// line 72
echo "\t\t\t\t\t\t\t\t\t\t";
} else {
// line 73
echo "\t\t\t\t\t\t\t\t\t\t\t";
if ($this->getAttribute($context["option"], "checked", array())) {
// line 74
echo "\t\t\t\t\t\t\t\t\t\t\t\t";
$context["checked"] = true;
// line 75
echo "\t\t\t\t\t\t\t\t\t\t\t";
}
// line 76
echo "\t\t\t\t\t\t\t\t\t\t";
}
// line 77
echo "\t\t\t\t\t\t\t\t\t\t<option value=\"";
echo twig_escape_filter($this->env, $this->getAttribute($context["option"], "id", array()), "html", null, true);
echo "\" ";
if (($context["checked"] ?? null)) {
echo "selected";
}
echo ">";
echo twig_escape_filter($this->env, $this->getAttribute($context["option"], "name", array()), "html", null, true);
echo "</option>
\t\t\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['option'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 79
echo "\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t";
} elseif (($this->getAttribute( // line 80
$context["field"], "type", array()) == "radio")) {
// line 81
echo "\t\t\t\t\t\t\t\t<div class=\"inline fields\">
\t\t\t\t\t\t\t\t\t";
// line 82
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute($context["field"], "options", array()));
foreach ($context['_seq'] as $context["_key"] => $context["option"]) {
// line 83
echo "\t\t\t\t\t\t\t\t\t\t<div class=\"field\">
\t\t\t\t\t\t\t\t\t\t\t<div class=\"ui radio checkbox\">
\t\t\t\t\t\t\t\t\t\t\t\t";
// line 85
$context["checked"] = false;
// line 86
echo "\t\t\t\t\t\t\t\t\t\t\t\t";
if (($this->getAttribute($context["field"], "data", array()) && !twig_test_empty($this->getAttribute($context["field"], "data", array())))) {
// line 87
echo "\t\t\t\t\t\t\t\t\t\t\t\t\t";
if (twig_in_filter($this->getAttribute($context["option"], "id", array()), $this->getAttribute($context["field"], "data", array()))) {
// line 88
echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["checked"] = true;
// line 89
echo "\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 90
echo "\t\t\t\t\t\t\t\t\t\t\t\t";
} else {
// line 91
echo "\t\t\t\t\t\t\t\t\t\t\t\t\t";
if ($this->getAttribute($context["option"], "checked", array())) {
// line 92
echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["checked"] = true;
// line 93
echo "\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 94
echo "\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 95
echo "\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"radio\" name=\"";
echo twig_escape_filter($this->env, $this->getAttribute($context["field"], "name", array()), "html", null, true);
echo "\" id=\"";
echo twig_escape_filter($this->env, $this->getAttribute($context["field"], "name", array()), "html", null, true);
echo "-";
echo twig_escape_filter($this->env, $this->getAttribute($context["option"], "id", array()), "html", null, true);
echo "\" value=\"";
echo twig_escape_filter($this->env, $this->getAttribute($context["option"], "id", array()), "html", null, true);
echo "\" ";
if (($context["checked"] ?? null)) {
echo "checked";
}
echo " class=\"hidden\">
\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"";
// line 96
echo twig_escape_filter($this->env, $this->getAttribute($context["field"], "name", array()), "html", null, true);
echo "-";
echo twig_escape_filter($this->env, $this->getAttribute($context["option"], "id", array()), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->getAttribute($context["option"], "name", array()), "html", null, true);
echo "</label>
\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['option'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 100
echo "\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t";
} elseif (($this->getAttribute( // line 101
$context["field"], "type", array()) == "checkbox")) {
// line 102
echo "\t\t\t\t\t\t\t\t<div class=\"inline fields\">
\t\t\t\t\t\t\t\t\t";
// line 103
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute($context["field"], "options", array()));
foreach ($context['_seq'] as $context["_key"] => $context["option"]) {
// line 104
echo "\t\t\t\t\t\t\t\t\t\t<div class=\"field\">
\t\t\t\t\t\t\t\t\t\t\t<div class=\"ui checkbox\">
\t\t\t\t\t\t\t\t\t\t\t\t";
// line 106
$context["checked"] = false;
// line 107
echo "\t\t\t\t\t\t\t\t\t\t\t\t";
if (($this->getAttribute($context["field"], "data", array()) && !twig_test_empty($this->getAttribute($context["field"], "data", array())))) {
// line 108
echo "\t\t\t\t\t\t\t\t\t\t\t\t\t";
if (twig_in_filter($this->getAttribute($context["option"], "id", array()), $this->getAttribute($context["field"], "data", array()))) {
// line 109
echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["checked"] = true;
// line 110
echo "\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 111
echo "\t\t\t\t\t\t\t\t\t\t\t\t";
} else {
// line 112
echo "\t\t\t\t\t\t\t\t\t\t\t\t\t";
if ($this->getAttribute($context["option"], "checked", array())) {
// line 113
echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
$context["checked"] = true;
// line 114
echo "\t\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 115
echo "\t\t\t\t\t\t\t\t\t\t\t\t";
}
// line 116
echo "\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"";
echo twig_escape_filter($this->env, $this->getAttribute($context["field"], "name", array()), "html", null, true);
echo "[]\" id=\"";
echo twig_escape_filter($this->env, $this->getAttribute($context["field"], "name", array()), "html", null, true);
echo "-";
echo twig_escape_filter($this->env, $this->getAttribute($context["option"], "id", array()), "html", null, true);
echo "\" value=\"";
echo twig_escape_filter($this->env, $this->getAttribute($context["option"], "id", array()), "html", null, true);
echo "\" ";
if (($context["checked"] ?? null)) {
echo "checked";
}
echo " class=\"hidden\">
\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"";
// line 117
echo twig_escape_filter($this->env, $this->getAttribute($context["field"], "name", array()), "html", null, true);
echo "-";
echo twig_escape_filter($this->env, $this->getAttribute($context["option"], "id", array()), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->getAttribute($context["option"], "name", array()), "html", null, true);
echo "</label>
\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['option'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 121
echo "\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t";
} elseif (($this->getAttribute( // line 122
$context["field"], "type", array()) == "g-recaptcha-response")) {
// line 123
echo "\t\t\t\t\t\t\t\t<div class=\"g-recaptcha\"
\t\t\t\t\t\t\t\t data-sitekey=\"";
// line 124
echo twig_escape_filter($this->env, $this->getAttribute($context["field"], "google-re-captcha-site-key", array(), "array"), "html", null, true);
echo "\"
\t\t\t\t\t\t\t\t data-theme=\"";
// line 125
echo twig_escape_filter($this->env, $this->getAttribute($context["field"], "google-re-captcha-theme", array(), "array"), "html", null, true);
echo "\"
\t\t\t\t\t\t\t\t data-type=\"";
// line 126
echo twig_escape_filter($this->env, $this->getAttribute($context["field"], "google-re-captcha-type", array(), "array"), "html", null, true);
echo "\"
\t\t\t\t\t\t\t\t data-size=\"";
// line 127
echo twig_escape_filter($this->env, $this->getAttribute($context["field"], "google-re-captcha-size", array(), "array"), "html", null, true);
echo "\"
\t\t\t\t\t\t\t\t data-callback=\"MembershipRecaptchaResponseCallback\"
\t\t\t\t\t\t\t\t></div>
\t\t\t\t\t\t\t";
}
// line 131
echo "\t\t\t\t\t\t
\t\t\t\t\t\t\t";
// line 132
if ($this->getAttribute($context["field"], "description", array())) {
// line 133
echo "\t\t\t\t\t\t\t\t<p><small><em>";
echo twig_escape_filter($this->env, $this->getAttribute($context["field"], "description", array()), "html", null, true);
echo "</em></small></p>
\t\t\t\t\t\t\t";
}
// line 135
echo "\t\t\t\t\t\t</div>
\t\t\t\t\t\t
\t\t\t\t\t\t
\t\t\t\t\t";
}
// line 139
echo "\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['field'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 140
echo "
\t\t\t\t";
// line 141
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["environment"] ?? null), "dispatcher", array()), "dispatch", array(0 => "auth.view.registrationFormAfter"), "method"), "html", null, true);
echo "
\t\t\t\t";
// line 142
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["environment"] ?? null), "dispatcher", array()), "dispatch", array(0 => "registrationFormAfter"), "method"), "html", null, true);
echo "
\t\t\t\t
\t\t\t\t<div class=\"ui error message\" style=\"display: none\">
\t\t\t\t\t<i class=\"close icon\"></i>
\t\t\t\t\t<div class=\"header\">
\t\t\t\t\t\t";
// line 147
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("There were some errors with your data")), "html", null, true);
echo "
\t\t\t\t\t</div>
\t\t\t\t\t<ul class=\"list\"></ul>
\t\t\t\t</div>
\t\t\t\t
\t\t\t\t<div class=\"mp-action-buttons\">
\t\t\t\t\t<button class=\"registration-submit ui button mini primary\" type=\"submit\" value=\"\">";
// line 153
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(($context["settings"] ?? null), "design", array()), "auth", array()), "registration-primary-button-text", array(), "array"), "html", null, true);
echo "</button>
\t\t\t\t</div>
\t\t\t\t<input type=\"hidden\" id=\"_wpnonce\" name=\"_wpnonce\" value=\"";
// line 156
echo twig_escape_filter($this->env, ($context["nonce"] ?? null), "html", null, true);
echo "\" />
\t\t\t</form>
\t\t</div>
\t</div>
</div>";
}
public function getTemplateName()
{
return "@auth/registration.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 503 => 156, 497 => 153, 488 => 147, 480 => 142, 476 => 141, 473 => 140, 467 => 139, 461 => 135, 455 => 133, 453 => 132, 450 => 131, 443 => 127, 439 => 126, 435 => 125, 431 => 124, 428 => 123, 426 => 122, 423 => 121, 409 => 117, 394 => 116, 391 => 115, 388 => 114, 385 => 113, 382 => 112, 379 => 111, 376 => 110, 373 => 109, 370 => 108, 367 => 107, 365 => 106, 361 => 104, 357 => 103, 354 => 102, 352 => 101, 349 => 100, 335 => 96, 320 => 95, 317 => 94, 314 => 93, 311 => 92, 308 => 91, 305 => 90, 302 => 89, 299 => 88, 296 => 87, 293 => 86, 291 => 85, 287 => 83, 283 => 82, 280 => 81, 278 => 80, 275 => 79, 260 => 77, 257 => 76, 254 => 75, 251 => 74, 248 => 73, 245 => 72, 242 => 71, 239 => 70, 236 => 69, 233 => 68, 230 => 67, 226 => 66, 221 => 65, 219 => 64, 216 => 63, 201 => 61, 198 => 60, 195 => 59, 192 => 58, 190 => 57, 187 => 56, 184 => 55, 181 => 54, 178 => 53, 175 => 52, 172 => 51, 169 => 50, 165 => 49, 160 => 48, 158 => 47, 154 => 46, 148 => 43, 144 => 42, 140 => 40, 138 => 39, 133 => 38, 131 => 37, 126 => 36, 124 => 35, 119 => 34, 117 => 33, 112 => 32, 110 => 31, 99 => 29, 91 => 28, 88 => 27, 85 => 26, 82 => 25, 79 => 24, 77 => 23, 74 => 22, 71 => 21, 68 => 20, 65 => 19, 63 => 18, 60 => 17, 57 => 16, 54 => 15, 51 => 14, 48 => 13, 44 => 12, 39 => 10, 35 => 9, 32 => 8, 30 => 7, 25 => 5, 19 => 1,);
}
/** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
public function getSource()
{
@trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
return $this->getSourceContext()->getCode();
}
public function getSourceContext()
{
return new Twig_Source("<div class=\"sc-membership\">
\t<div class=\"ui centered grid\">
\t\t<div class=\"column left aligned\">
\t\t\t<div class=\"ui message success\" style=\"display: none\"></div>
\t\t\t<form method=\"post\" data-validation-rules=\"{{ validationRules|json_encode }}\" class=\"ui large form left membership-registration-form\">
\t\t\t\t
\t\t\t\t{% set sections = [] %}
\t\t\t\t{{ environment.dispatcher.dispatch('auth.view.registrationFormBefore') }}
\t\t\t\t{{ environment.dispatcher.dispatch('registrationFormBefore') }}
\t\t\t\t
\t\t\t\t{% for field in fields %}
\t\t\t\t\t{% if field.enabled and field.registration %}
\t\t\t\t\t\t{% if field.section not in sections %}
\t\t\t\t\t\t\t{% set sections = sections|merge([field.section]) %}
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t{% set ipStr = '' %}
\t\t\t\t\t\t{% if field.name == 'country' and field.ipSelection == '1' %}
\t\t\t\t\t\t\t{% set ipStr = 'data-ip-selection=1' %}
\t\t\t\t\t\t{% endif %}
{% set addNoneStr = '' %}
\t\t\t\t\t\t{% if field.name == 'country' and field.addNone == '1' %}
\t\t\t\t\t\t\t{% set addNoneStr = 'data-add-none=1' %}
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t<div class=\"field\" data-name=\"{{ field.name }}\" {{ ipStr }} {{ addNoneStr }}>
\t\t\t\t\t\t\t<glabel>{{ field.label }} {% if field.required and field.asterisk is defined and field.asterisk == true %}<span class=\"gg-required-field\" style=\"color: {{ settings['design']['general']['asterisk-color'] }};\">*</span>{% endif %} </glabel>
\t\t\t\t\t\t\t
\t\t\t\t\t\t\t{% if field.type == 'text' %}
\t\t\t\t\t\t\t\t<input type=\"text\" name=\"{{ field.name }}\">
\t\t\t\t\t\t\t{% elseif field.type == 'email' %}
\t\t\t\t\t\t\t\t<input type=\"email\" name=\"{{ field.name }}\">
\t\t\t\t\t\t\t{% elseif field.type == 'password' %}
\t\t\t\t\t\t\t\t<input type=\"password\" name=\"{{ field.name }}\">
\t\t\t\t\t\t\t{% elseif field.type == 'numeric' %}
\t\t\t\t\t\t\t\t<input type=\"number\" name=\"{{ field.name }}\">
\t\t\t\t\t\t\t{% elseif field.type == 'date' %}
\t\t\t\t\t\t\t\t<input
\t\t\t\t\t\t\t\t\t\tclass=\"date-field\"
\t\t\t\t\t\t\t\t\t\tdata-format=\"{{ field['format'] }}\"
\t\t\t\t\t\t\t\t\t\tdata-field-name=\"{{ field.name }}\"
\t\t\t\t\t\t\t\t\t\ttype=\"text\"
\t\t\t\t\t\t\t\t>
\t\t\t\t\t\t\t\t<input name=\"{{ field.name }}\" type=\"hidden\">
\t\t\t\t\t\t\t{% elseif field.type == 'scroll' %}
\t\t\t\t\t\t\t\t<select multiple class=\"ui fluid multiple search selection dropdown\" name=\"{{ field.name }}[]\">
\t\t\t\t\t\t\t\t\t{% for option in field.options %}
\t\t\t\t\t\t\t\t\t\t{% set checked = false %}
\t\t\t\t\t\t\t\t\t\t{% if field.data and field.data is not empty %}
\t\t\t\t\t\t\t\t\t\t\t{% if option.id in field.data %}
\t\t\t\t\t\t\t\t\t\t\t\t{% set checked = true %}
\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t\t\tno data
\t\t\t\t\t\t\t\t\t\t\t{% if option.checked %}
\t\t\t\t\t\t\t\t\t\t\t\t{% set checked = true %}
\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t<option value=\"{{ option.id }}\" {% if checked %}selected{% endif %}>{{ option.name }}</option>
\t\t\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t{% elseif field.type == 'drop' %}
\t\t\t\t\t\t\t\t<select class=\"ui fluid search single dropdown\" name=\"{{ field.name }}\">
\t\t\t\t\t\t\t\t\t{% for option in field.options %}
\t\t\t\t\t\t\t\t\t\t{% set checked = false %}
\t\t\t\t\t\t\t\t\t\t{% if field.data and field.data is not empty %}
\t\t\t\t\t\t\t\t\t\t\t{% if option.id == field.data %}
\t\t\t\t\t\t\t\t\t\t\t\t{% set checked = true %}
\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t\t\t{% if option.checked %}
\t\t\t\t\t\t\t\t\t\t\t\t{% set checked = true %}
\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t<option value=\"{{ option.id }}\" {% if checked %}selected{% endif %}>{{ option.name }}</option>
\t\t\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t\t{% elseif field.type == 'radio' %}
\t\t\t\t\t\t\t\t<div class=\"inline fields\">
\t\t\t\t\t\t\t\t\t{% for option in field.options %}
\t\t\t\t\t\t\t\t\t\t<div class=\"field\">
\t\t\t\t\t\t\t\t\t\t\t<div class=\"ui radio checkbox\">
\t\t\t\t\t\t\t\t\t\t\t\t{% set checked = false %}
\t\t\t\t\t\t\t\t\t\t\t\t{% if field.data and field.data is not empty %}
\t\t\t\t\t\t\t\t\t\t\t\t\t{% if option.id in field.data %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set checked = true %}
\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t\t\t\t\t{% if option.checked %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set checked = true %}
\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"radio\" name=\"{{ field.name }}\" id=\"{{ field.name }}-{{ option.id }}\" value=\"{{ option.id }}\" {% if checked %}checked{% endif %} class=\"hidden\">
\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"{{ field.name }}-{{ option.id }}\">{{ option.name }}</label>
\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t{% elseif field.type == 'checkbox' %}
\t\t\t\t\t\t\t\t<div class=\"inline fields\">
\t\t\t\t\t\t\t\t\t{% for option in field.options %}
\t\t\t\t\t\t\t\t\t\t<div class=\"field\">
\t\t\t\t\t\t\t\t\t\t\t<div class=\"ui checkbox\">
\t\t\t\t\t\t\t\t\t\t\t\t{% set checked = false %}
\t\t\t\t\t\t\t\t\t\t\t\t{% if field.data and field.data is not empty %}
\t\t\t\t\t\t\t\t\t\t\t\t\t{% if option.id in field.data %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set checked = true %}
\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t{% else %}
\t\t\t\t\t\t\t\t\t\t\t\t\t{% if option.checked %}
\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set checked = true %}
\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"{{ field.name }}[]\" id=\"{{ field.name }}-{{ option.id }}\" value=\"{{ option.id }}\" {% if checked %}checked{% endif %} class=\"hidden\">
\t\t\t\t\t\t\t\t\t\t\t\t<label for=\"{{ field.name }}-{{ option.id }}\">{{ option.name }}</label>
\t\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t{% elseif field.type == 'g-recaptcha-response' %}
\t\t\t\t\t\t\t\t<div class=\"g-recaptcha\"
\t\t\t\t\t\t\t\t data-sitekey=\"{{ field['google-re-captcha-site-key'] }}\"
\t\t\t\t\t\t\t\t data-theme=\"{{ field['google-re-captcha-theme'] }}\"
\t\t\t\t\t\t\t\t data-type=\"{{ field['google-re-captcha-type'] }}\"
\t\t\t\t\t\t\t\t data-size=\"{{ field['google-re-captcha-size'] }}\"
\t\t\t\t\t\t\t\t data-callback=\"MembershipRecaptchaResponseCallback\"
\t\t\t\t\t\t\t\t></div>
\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t
\t\t\t\t\t\t\t{% if field.description %}
\t\t\t\t\t\t\t\t<p><small><em>{{ field.description }}</em></small></p>
\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t</div>
\t\t\t\t\t\t
\t\t\t\t\t\t
\t\t\t\t\t{% endif %}
\t\t\t\t{% endfor %}
\t\t\t\t{{ environment.dispatcher.dispatch('auth.view.registrationFormAfter') }}
\t\t\t\t{{ environment.dispatcher.dispatch('registrationFormAfter') }}
\t\t\t\t
\t\t\t\t<div class=\"ui error message\" style=\"display: none\">
\t\t\t\t\t<i class=\"close icon\"></i>
\t\t\t\t\t<div class=\"header\">
\t\t\t\t\t\t{{ translate('There were some errors with your data') }}
\t\t\t\t\t</div>
\t\t\t\t\t<ul class=\"list\"></ul>
\t\t\t\t</div>
\t\t\t\t
\t\t\t\t<div class=\"mp-action-buttons\">
\t\t\t\t\t<button class=\"registration-submit ui button mini primary\" type=\"submit\" value=\"\">{{ settings.design.auth['registration-primary-button-text'] }}</button>
\t\t\t\t</div>
\t\t\t\t<input type=\"hidden\" id=\"_wpnonce\" name=\"_wpnonce\" value=\"{{ nonce }}\" />
\t\t\t</form>
\t\t</div>
\t</div>
</div>", "@auth/registration.twig", "D:\\projects\\htdocs\\wordpress\\wp-content\\plugins\\membership-by-supsystic\\src\\Membership\\Auth\\views\\registration.twig");
}
}
<?php
/* @users/profile.twig */
class __TwigTemplate_085d81b18430f0acd493c4c26709fea495aca3b25c04593abea124eb0707305e extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
'content' => array($this, 'block_content'),
);
}
protected function doDisplay(array $context, array $blocks = array())
{
// line 1
echo "<div id=\"membership-profile\" class=\"sc-membership\">
<div class=\"mp-cover-container\">
<div class=\"ui inverted dimmer cover-loader\">
<div class=\"ui loader\"></div>
</div>
<div class=\"mp-cover\">
<img width=\"";
// line 8
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(($context["settings"] ?? null), "profile", array()), "cover-size", array(), "array"), "width", array()), "html", null, true);
echo "\"
height=\"";
// line 9
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(($context["settings"] ?? null), "profile", array()), "cover-size", array(), "array"), "height", array()), "html", null, true);
echo "\"
class=\"ui fluid image cover-image\"
src=\"";
// line 11
echo twig_escape_filter($this->env, $this->env->getExtension('Membership_Users_Twig')->userCover(($context["requestedUser"] ?? null), "default"), "html", null, true);
echo "\">
</div>
";
// line 14
if (($this->env->getExtension('Membership_Users_Twig')->isCurrentUser(($context["requestedUser"] ?? null)) && ($context["unreadNotifications"] ?? null))) {
// line 15
echo " <div class=\"mp-unread-notifications\">
<a href=\"";
// line 16
echo twig_escape_filter($this->env, $this->env->getExtension('Membership_Users_Twig')->profileUrl(($context["requestedUser"] ?? null), array("action" => "notifications")), "html", null, true);
echo "\"><i class=\"alarm icon\"></i></a>
</div>
";
}
// line 19
echo "
";
// line 20
if (($this->env->getExtension('Membership_Users_Twig')->isCurrentUser(($context["requestedUser"] ?? null)) && ($this->getAttribute($this->getAttribute(($context["settings"] ?? null), "profile", array(), "array"), "use-cover", array(), "array") == "yes"))) {
// line 21
echo " <div class=\"mp-update-cover ";
if ($this->env->getExtension('Membership_Users_Twig')->isDefaultCover(($context["requestedUser"] ?? null))) {
echo "default";
}
echo "\">
<div class=\"ui top right pointing dropdown item\">
<i class=\"photo icon\"></i>
<div class=\"menu\">
<a class=\"item\" data-action=\"upload-photo\">";
// line 25
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Upload photo")), "html", null, true);
echo "</a>
<a class=\"item\" data-action=\"remove-photo\">";
// line 26
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Remove")), "html", null, true);
echo "</a>
</div>
</div>
</div>
<div class=\"mp-crop-cover-action\">
<button class=\"ui mini primary button\" data-action=\"save-photo\">";
// line 32
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Save")), "html", null, true);
echo "</button>
<button class=\"ui mini secondary button\" data-action=\"cancel\">";
// line 33
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Cancel")), "html", null, true);
echo "</button>
</div>
";
}
// line 36
echo " <div class=\"mp-user-display-name\">";
echo twig_escape_filter($this->env, $this->getAttribute(($context["requestedUser"] ?? null), "displayName", array()), "html", null, true);
echo "
";
// line 37
if (($this->getAttribute(($context["requestedUser"] ?? null), "badge_src", array()) && ($this->getAttribute($this->getAttribute($this->getAttribute(($context["settings"] ?? null), "base", array()), "main", array()), "badges", array()) == "true"))) {
// line 38
echo "\t <img class=\"mp-single-badge\" src=\"";
echo twig_escape_filter($this->env, $this->getAttribute(($context["requestedUser"] ?? null), "badge_src", array()), "html", null, true);
echo "\" />
";
}
// line 40
echo " </div>
<div class=\"mp-avatar-container\">
<div class=\"mp-avatar ";
// line 43
if ($this->env->getExtension('Membership_Users_Twig')->isDefaultAvatar(($context["requestedUser"] ?? null))) {
echo "default";
}
echo " update-avatar-menu\">
<img width=\"";
// line 44
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(($context["settings"] ?? null), "profile", array()), "avatar-size", array(), "array"), "width", array()), "html", null, true);
echo "\"
height=\"";
// line 45
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(($context["settings"] ?? null), "profile", array()), "avatar-size", array(), "array"), "height", array()), "html", null, true);
echo "\"
src=\"";
// line 46
echo twig_escape_filter($this->env, $this->env->getExtension('Membership_Users_Twig')->userAvatar(($context["requestedUser"] ?? null), "default"), "html", null, true);
echo "\"
class=\"avatar-image\">
";
// line 48
if ($this->env->getExtension('Membership_Users_Twig')->isCurrentUser(($context["requestedUser"] ?? null))) {
// line 49
echo " <div class=\"mp-update-avatar-overlay\">
<span>";
// line 50
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Change profile image")), "html", null, true);
echo "</span>
</div>
<div class=\"ui inverted dimmer avatar-loader\">
<div class=\"ui loader\"></div>
</div>
<div class=\"ui top left pointing dropdown item\">
<div class=\"menu\">
<a class=\"item\" data-action=\"upload-photo\">";
// line 57
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Upload photo")), "html", null, true);
echo "</a>
<a class=\"item\" data-action=\"remove-photo\">";
// line 58
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Remove")), "html", null, true);
echo "</a>
</div>
</div>
";
}
// line 62
echo " </div>
</div>
</div>
<div class=\"mp-container\">
<div class=\"mp-profile-social-stats social-stats ";
// line 66
if ( !($context["userLoggedIn"] ?? null)) {
echo "not-logged-in";
}
echo "\">
\t ";
// line 67
if (($context["friendsActive"] ?? null)) {
// line 68
echo "\t <a href=\"";
echo twig_escape_filter($this->env, $this->env->getExtension('Membership_Users_Twig')->profileUrl(($context["requestedUser"] ?? null), array("action" => "friends")), "html", null, true);
echo "\" class=\"ui statistic tiny\">
\t <div class=\"value mp-social-stats-friends\">";
// line 69
echo twig_escape_filter($this->env, $this->getAttribute(($context["requestedUser"] ?? null), "friends", array()), "html", null, true);
echo "</div>
\t <div class=\"label\">";
// line 70
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Friends")), "html", null, true);
echo "</div>
\t </a>
\t ";
}
// line 73
echo "\t ";
if (($context["followersActive"] ?? null)) {
// line 74
echo "\t <a href=\"";
echo twig_escape_filter($this->env, $this->env->getExtension('Membership_Users_Twig')->profileUrl(($context["requestedUser"] ?? null), array("action" => "followers")), "html", null, true);
echo "\" class=\"ui statistic tiny\">
\t <div class=\"value mp-social-stats-follows\">";
// line 75
echo twig_escape_filter($this->env, $this->getAttribute(($context["requestedUser"] ?? null), "follows", array()), "html", null, true);
echo "</div>
\t <div class=\"label\">";
// line 76
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Follows")), "html", null, true);
echo "</div>
\t </a>
\t ";
}
// line 79
echo "\t ";
if (($context["followersActive"] ?? null)) {
// line 80
echo "\t <a href=\"";
echo twig_escape_filter($this->env, $this->env->getExtension('Membership_Users_Twig')->profileUrl(($context["requestedUser"] ?? null), array("action" => "followers")), "html", null, true);
echo "\" class=\"ui statistic tiny\">
\t <div class=\"value mp-social-stats-followers\">";
// line 81
echo twig_escape_filter($this->env, $this->getAttribute(($context["requestedUser"] ?? null), "followers", array()), "html", null, true);
echo "</div>
\t <div class=\"label\">";
// line 82
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Followers")), "html", null, true);
echo "</div>
\t </a>
\t ";
}
// line 85
echo " </div>
\t
";
// line 87
if (($context["userLoggedIn"] ?? null)) {
// line 88
echo "\t <div class=\"ui secondary mini menu right floated mp-user-action-menu\">
\t <div class=\"right menu\" style=\"display: none\">
\t ";
// line 90
if ( !$this->env->getExtension('Membership_Users_Twig')->isCurrentUser(($context["requestedUser"] ?? null))) {
// line 91
echo "\t ";
if ((($context["friendsActive"] ?? null) && call_user_func_array($this->env->getFunction('currentUserCan')->getCallable(), array("add-friends")))) {
// line 92
echo "\t ";
if (( !$this->env->getExtension('Membership_Users_Twig')->isFriendOfCurrentUser(($context["requestedUser"] ?? null)) && !$this->env->getExtension('Membership_Users_Twig')->currentUserIsFriendOf(($context["requestedUser"] ?? null)))) {
// line 93
echo "\t <div class=\"horizontally fitted item\">
\t <button class=\"ui mini primary button\" data-action=\"add-friend\">";
// line 94
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Add Friend")), "html", null, true);
echo "</button>
\t </div>
\t ";
}
// line 97
echo "\t ";
if (($this->env->getExtension('Membership_Users_Twig')->currentUserIsFriendOf(($context["requestedUser"] ?? null)) && $this->env->getExtension('Membership_Users_Twig')->isFriendOfCurrentUser(($context["requestedUser"] ?? null)))) {
// line 98
echo "\t <div class=\"horizontally fitted item\">
\t <button class=\"ui mini primary button\" data-action=\"remove-friend\">";
// line 99
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Unfriend")), "html", null, true);
echo "</button>
\t </div>
\t ";
}
// line 102
echo "\t ";
if (($this->env->getExtension('Membership_Users_Twig')->currentUserIsFriendOf(($context["requestedUser"] ?? null)) && !$this->env->getExtension('Membership_Users_Twig')->isFriendOfCurrentUser(($context["requestedUser"] ?? null)))) {
// line 103
echo "\t <div class=\"horizontally fitted item\">
\t <button class=\"ui mini primary button\" data-action=\"add-friend\">";
// line 104
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Accept Friend Request")), "html", null, true);
echo "</button>
\t </div>
\t <div class=\"horizontally fitted item\">
\t <button class=\"ui mini primary button\" data-action=\"remove-friend\">";
// line 107
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Decline Friend Request")), "html", null, true);
echo "</button>
\t </div>
\t ";
}
// line 110
echo "\t ";
if (( !$this->env->getExtension('Membership_Users_Twig')->currentUserIsFriendOf(($context["requestedUser"] ?? null)) && $this->env->getExtension('Membership_Users_Twig')->isFriendOfCurrentUser(($context["requestedUser"] ?? null)))) {
// line 111
echo "\t <div class=\"horizontally fitted item\">
\t <button class=\"ui mini primary button\" data-action=\"cancel-friend-request\">";
// line 112
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Cancel Friend Request")), "html", null, true);
echo "</button>
\t </div>
\t ";
}
// line 115
echo "\t ";
}
// line 116
echo "\t ";
if ((($context["messagesActive"] ?? null) && call_user_func_array($this->env->getFunction('currentUserHasPermission')->getCallable(), array("send-messages", ($context["requestedUser"] ?? null))))) {
// line 117
echo "\t <div class=\"horizontally fitted item\">
\t <button class=\"ui mini primary button\" data-action=\"message\">";
// line 118
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Message")), "html", null, true);
echo "</button>
\t </div>
\t ";
}
// line 121
echo "\t ";
if ((($context["followersActive"] ?? null) && call_user_func_array($this->env->getFunction('currentUserCan')->getCallable(), array("follow")))) {
// line 122
echo "\t ";
if ( !$this->env->getExtension('Membership_Users_Twig')->isCurrentUserFollow(($context["requestedUser"] ?? null))) {
// line 123
echo "\t <div class=\"horizontally fitted item\">
\t <button class=\"ui mini primary button\" data-action=\"follow\">";
// line 124
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Follow")), "html", null, true);
echo "</button>
\t </div>
\t ";
} else {
// line 127
echo "\t <div class=\"horizontally fitted item\">
\t <button class=\"ui mini primary button\" data-action=\"unfollow\">";
// line 128
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Unfollow")), "html", null, true);
echo "</button>
\t </div>
\t ";
}
// line 131
echo "\t ";
}
// line 132
echo "\t <div class=\"horizontally fitted item\">
\t <button class=\"ui mini primary button\" data-action=\"report\">";
// line 133
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Report")), "html", null, true);
echo "</button>
\t </div>
\t <div class=\"ui dropdown item\">
\t <i class=\"ellipsis vertical icon\"></i>
\t <div class=\"menu\"></div>
\t </div>
\t ";
} else {
// line 140
echo "\t <a href=\"";
echo twig_escape_filter($this->env, $this->env->getExtension('Membership_Users_Twig')->profileUrl(($context["requestedUser"] ?? null), array("action" => "settings")), "html", null, true);
echo "\" class=\"horizontally fitted item\">
\t <button class=\"ui primary button\">";
// line 141
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Settings")), "html", null, true);
echo "</button>
\t </a>
\t <a href=\"";
// line 143
echo ($context["logoutUrl"] ?? null);
echo "\" class=\"horizontally fitted item\">
\t <button class=\"ui primary button\">";
// line 144
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Logout")), "html", null, true);
echo "</button>
\t </a>
\t ";
}
// line 147
echo "\t </div>
\t </div>
";
} else {
// line 150
echo "\t <div class=\"ui secondary mini menu right floated mp-user-action-menu\">
\t <div class=\"right menu\" style=\"display: none\">
\t <div class=\"horizontally fitted item\">
\t <button class=\"ui mini primary button\" data-action=\"login\">";
// line 153
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Add Friend")), "html", null, true);
echo "</button>
\t </div>
\t <div class=\"horizontally fitted item\">
\t <button class=\"ui mini primary button\" data-action=\"login\">";
// line 156
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Follow")), "html", null, true);
echo "</button>
\t </div>
\t <div class=\"horizontally fitted item\">
\t <button class=\"ui mini primary button\" data-action=\"login\">";
// line 159
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Message")), "html", null, true);
echo "</button>
\t </div>
\t <div class=\"horizontally fitted item\">
\t <button class=\"ui mini primary button\" data-action=\"login\">";
// line 162
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Report")), "html", null, true);
echo "</button>
\t </div>
\t <div class=\"ui dropdown item\">
\t <i class=\"ellipsis vertical icon\"></i>
\t <div class=\"menu\"></div>
\t </div>
\t </div>
\t </div>
";
}
// line 171
echo " </div>
\t
<div class=\"mp-profile-nav-menu\">
<div class=\"ui secondary pointing menu profile-nav-menu\" style=\"display: none\">
\t
";
// line 176
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->env->getExtension('Membership_Users_Twig')->profileMenuItems());
foreach ($context['_seq'] as $context["id"] => $context["title"]) {
// line 177
echo " <a class=\"item";
if ((($context["action"] ?? null) == $context["id"])) {
echo " active";
}
echo "\"
href=\"";
// line 178
echo twig_escape_filter($this->env, $this->env->getExtension('Membership_Users_Twig')->profileUrl(($context["requestedUser"] ?? null), array("action" => $context["id"])), "html", null, true);
echo "\"
>";
// line 179
echo twig_escape_filter($this->env, $context["title"], "html", null, true);
echo " ";
if (twig_in_filter($context["id"], twig_get_array_keys_filter(($context["unreadNotifications"] ?? null)))) {
echo "<div class=\"ui mini label red\">";
echo twig_escape_filter($this->env, $this->getAttribute(($context["unreadNotifications"] ?? null), $context["id"], array(), "array"), "html", null, true);
echo "</div>";
}
echo "</a>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['id'], $context['title'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 181
echo "
";
// line 182
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["environment"] ?? null), "dispatcher", array()), "dispatch", array(0 => "profileMenuItems"), "method"), "html", null, true);
echo "
\t
<div class=\"ui dropdown item\" style=\"display:none;\">
<i class=\"ellipsis horizontal icon\"></i>
<div class=\"menu\"></div>
</div>
</div>
</div>
<div class=\"ui modal sc-membership\" id=\"avatar-modal\">
<i class=\"close icon\"></i>
<div class=\"header\">
";
// line 194
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Profile picture")), "html", null, true);
echo "
</div>
<div class=\"content\">
<div class=\"ui basic segment blurring avatar-image-container\">
<div class=\"ui inverted dimmer\">
<div class=\"ui loader\"></div>
</div>
<div class=\"mp-avatar-modal-image\">
<img class=\"avatar-modal-image\">
</div>
</div>
</div>
<div class=\"actions\">
<button class=\"ui mini secondary button cancel\" data-action=\"cancel\">";
// line 207
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Cancel")), "html", null, true);
echo "</button>
<button class=\"ui mini primary button primary\" data-action=\"save-photo\">";
// line 208
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Save")), "html", null, true);
echo "</button>
</div>
</div>
\t
\t";
// line 212
if ( !($context["userLoggedIn"] ?? null)) {
// line 213
echo "\t\t";
$this->loadTemplate("@auth/partials/login-modal.twig", "@users/profile.twig", 213)->display($context);
// line 214
echo "\t";
}
// line 215
echo "\t
";
// line 216
$this->displayBlock('content', $context, $blocks);
// line 217
echo "</div>
";
// line 219
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["environment"] ?? null), "dispatcher", array()), "dispatch", array(0 => "users.send.message.modal.wnd"), "method"), "html", null, true);
echo "
";
// line 220
$this->loadTemplate("@users/partials/users-report-modal.twig", "@users/profile.twig", 220)->display($context);
}
// line 216
public function block_content($context, array $blocks = array())
{
}
public function getTemplateName()
{
return "@users/profile.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 511 => 216, 507 => 220, 503 => 219, 499 => 217, 497 => 216, 494 => 215, 491 => 214, 488 => 213, 486 => 212, 479 => 208, 475 => 207, 459 => 194, 444 => 182, 441 => 181, 427 => 179, 423 => 178, 416 => 177, 412 => 176, 405 => 171, 393 => 162, 387 => 159, 381 => 156, 375 => 153, 370 => 150, 365 => 147, 359 => 144, 355 => 143, 350 => 141, 345 => 140, 335 => 133, 332 => 132, 329 => 131, 323 => 128, 320 => 127, 314 => 124, 311 => 123, 308 => 122, 305 => 121, 299 => 118, 296 => 117, 293 => 116, 290 => 115, 284 => 112, 281 => 111, 278 => 110, 272 => 107, 266 => 104, 263 => 103, 260 => 102, 254 => 99, 251 => 98, 248 => 97, 242 => 94, 239 => 93, 236 => 92, 233 => 91, 231 => 90, 227 => 88, 225 => 87, 221 => 85, 215 => 82, 211 => 81, 206 => 80, 203 => 79, 197 => 76, 193 => 75, 188 => 74, 185 => 73, 179 => 70, 175 => 69, 170 => 68, 168 => 67, 162 => 66, 156 => 62, 149 => 58, 145 => 57, 135 => 50, 132 => 49, 130 => 48, 125 => 46, 121 => 45, 117 => 44, 111 => 43, 106 => 40, 100 => 38, 98 => 37, 93 => 36, 87 => 33, 83 => 32, 74 => 26, 70 => 25, 60 => 21, 58 => 20, 55 => 19, 49 => 16, 46 => 15, 44 => 14, 38 => 11, 33 => 9, 29 => 8, 20 => 1,);
}
/** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
public function getSource()
{
@trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
return $this->getSourceContext()->getCode();
}
public function getSourceContext()
{
return new Twig_Source("<div id=\"membership-profile\" class=\"sc-membership\">
<div class=\"mp-cover-container\">
<div class=\"ui inverted dimmer cover-loader\">
<div class=\"ui loader\"></div>
</div>
<div class=\"mp-cover\">
<img width=\"{{ settings.profile['cover-size'].width }}\"
height=\"{{ settings.profile['cover-size'].height }}\"
class=\"ui fluid image cover-image\"
src=\"{{ userCover(requestedUser, 'default') }}\">
</div>
{% if isCurrentUser(requestedUser) and unreadNotifications %}
<div class=\"mp-unread-notifications\">
<a href=\"{{ profileUrl(requestedUser, {'action': 'notifications'}) }}\"><i class=\"alarm icon\"></i></a>
</div>
{% endif %}
{% if isCurrentUser(requestedUser) and settings['profile']['use-cover'] == 'yes' %}
<div class=\"mp-update-cover {% if isDefaultCover(requestedUser) %}default{% endif %}\">
<div class=\"ui top right pointing dropdown item\">
<i class=\"photo icon\"></i>
<div class=\"menu\">
<a class=\"item\" data-action=\"upload-photo\">{{ translate('Upload photo') }}</a>
<a class=\"item\" data-action=\"remove-photo\">{{ translate('Remove') }}</a>
</div>
</div>
</div>
<div class=\"mp-crop-cover-action\">
<button class=\"ui mini primary button\" data-action=\"save-photo\">{{ translate('Save') }}</button>
<button class=\"ui mini secondary button\" data-action=\"cancel\">{{ translate('Cancel') }}</button>
</div>
{% endif %}
<div class=\"mp-user-display-name\">{{ requestedUser.displayName }}
{% if(requestedUser.badge_src and settings.base.main.badges == 'true') %}
\t <img class=\"mp-single-badge\" src=\"{{ requestedUser.badge_src }}\" />
{% endif %}
</div>
<div class=\"mp-avatar-container\">
<div class=\"mp-avatar {% if isDefaultAvatar(requestedUser) %}default{% endif %} update-avatar-menu\">
<img width=\"{{ settings.profile['avatar-size'].width }}\"
height=\"{{ settings.profile['avatar-size'].height }}\"
src=\"{{ userAvatar(requestedUser, 'default') }}\"
class=\"avatar-image\">
{% if isCurrentUser(requestedUser) %}
<div class=\"mp-update-avatar-overlay\">
<span>{{ translate('Change profile image') }}</span>
</div>
<div class=\"ui inverted dimmer avatar-loader\">
<div class=\"ui loader\"></div>
</div>
<div class=\"ui top left pointing dropdown item\">
<div class=\"menu\">
<a class=\"item\" data-action=\"upload-photo\">{{ translate('Upload photo') }}</a>
<a class=\"item\" data-action=\"remove-photo\">{{ translate('Remove') }}</a>
</div>
</div>
{% endif %}
</div>
</div>
</div>
<div class=\"mp-container\">
<div class=\"mp-profile-social-stats social-stats {% if not userLoggedIn %}not-logged-in{% endif %}\">
\t {% if friendsActive %}
\t <a href=\"{{ profileUrl(requestedUser, {'action': 'friends'}) }}\" class=\"ui statistic tiny\">
\t <div class=\"value mp-social-stats-friends\">{{ requestedUser.friends }}</div>
\t <div class=\"label\">{{ translate('Friends') }}</div>
\t </a>
\t {% endif %}
\t {% if followersActive %}
\t <a href=\"{{ profileUrl(requestedUser, {'action': 'followers'}) }}\" class=\"ui statistic tiny\">
\t <div class=\"value mp-social-stats-follows\">{{ requestedUser.follows }}</div>
\t <div class=\"label\">{{ translate('Follows') }}</div>
\t </a>
\t {% endif %}
\t {% if followersActive %}
\t <a href=\"{{ profileUrl(requestedUser, {'action': 'followers'}) }}\" class=\"ui statistic tiny\">
\t <div class=\"value mp-social-stats-followers\">{{ requestedUser.followers }}</div>
\t <div class=\"label\">{{ translate('Followers') }}</div>
\t </a>
\t {% endif %}
</div>
\t
{% if userLoggedIn %}
\t <div class=\"ui secondary mini menu right floated mp-user-action-menu\">
\t <div class=\"right menu\" style=\"display: none\">
\t {% if not isCurrentUser(requestedUser) %}
\t {% if friendsActive and currentUserCan('add-friends') %}
\t {% if not isFriendOfCurrentUser(requestedUser) and not currentUserIsFriendOf(requestedUser) %}
\t <div class=\"horizontally fitted item\">
\t <button class=\"ui mini primary button\" data-action=\"add-friend\">{{ translate('Add Friend') }}</button>
\t </div>
\t {% endif %}
\t {% if currentUserIsFriendOf(requestedUser) and isFriendOfCurrentUser(requestedUser) %}
\t <div class=\"horizontally fitted item\">
\t <button class=\"ui mini primary button\" data-action=\"remove-friend\">{{ translate('Unfriend') }}</button>
\t </div>
\t {% endif %}
\t {% if currentUserIsFriendOf(requestedUser) and not isFriendOfCurrentUser(requestedUser) %}
\t <div class=\"horizontally fitted item\">
\t <button class=\"ui mini primary button\" data-action=\"add-friend\">{{ translate('Accept Friend Request') }}</button>
\t </div>
\t <div class=\"horizontally fitted item\">
\t <button class=\"ui mini primary button\" data-action=\"remove-friend\">{{ translate('Decline Friend Request') }}</button>
\t </div>
\t {% endif %}
\t {% if not currentUserIsFriendOf(requestedUser) and isFriendOfCurrentUser(requestedUser) %}
\t <div class=\"horizontally fitted item\">
\t <button class=\"ui mini primary button\" data-action=\"cancel-friend-request\">{{ translate('Cancel Friend Request') }}</button>
\t </div>
\t {% endif %}
\t {% endif %}
\t {% if messagesActive and currentUserHasPermission('send-messages', requestedUser) %}
\t <div class=\"horizontally fitted item\">
\t <button class=\"ui mini primary button\" data-action=\"message\">{{ translate('Message') }}</button>
\t </div>
\t {% endif %}
\t {% if followersActive and currentUserCan('follow') %}
\t {% if not isCurrentUserFollow(requestedUser) %}
\t <div class=\"horizontally fitted item\">
\t <button class=\"ui mini primary button\" data-action=\"follow\">{{ translate('Follow') }}</button>
\t </div>
\t {% else %}
\t <div class=\"horizontally fitted item\">
\t <button class=\"ui mini primary button\" data-action=\"unfollow\">{{ translate('Unfollow') }}</button>
\t </div>
\t {% endif %}
\t {% endif %}
\t <div class=\"horizontally fitted item\">
\t <button class=\"ui mini primary button\" data-action=\"report\">{{ translate('Report') }}</button>
\t </div>
\t <div class=\"ui dropdown item\">
\t <i class=\"ellipsis vertical icon\"></i>
\t <div class=\"menu\"></div>
\t </div>
\t {% else %}
\t <a href=\"{{ profileUrl(requestedUser, {'action': 'settings'}) }}\" class=\"horizontally fitted item\">
\t <button class=\"ui primary button\">{{ translate('Settings') }}</button>
\t </a>
\t <a href=\"{{ logoutUrl|raw }}\" class=\"horizontally fitted item\">
\t <button class=\"ui primary button\">{{ translate('Logout') }}</button>
\t </a>
\t {% endif %}
\t </div>
\t </div>
{% else %}
\t <div class=\"ui secondary mini menu right floated mp-user-action-menu\">
\t <div class=\"right menu\" style=\"display: none\">
\t <div class=\"horizontally fitted item\">
\t <button class=\"ui mini primary button\" data-action=\"login\">{{ translate('Add Friend') }}</button>
\t </div>
\t <div class=\"horizontally fitted item\">
\t <button class=\"ui mini primary button\" data-action=\"login\">{{ translate('Follow') }}</button>
\t </div>
\t <div class=\"horizontally fitted item\">
\t <button class=\"ui mini primary button\" data-action=\"login\">{{ translate('Message') }}</button>
\t </div>
\t <div class=\"horizontally fitted item\">
\t <button class=\"ui mini primary button\" data-action=\"login\">{{ translate('Report') }}</button>
\t </div>
\t <div class=\"ui dropdown item\">
\t <i class=\"ellipsis vertical icon\"></i>
\t <div class=\"menu\"></div>
\t </div>
\t </div>
\t </div>
{% endif %}
</div>
\t
<div class=\"mp-profile-nav-menu\">
<div class=\"ui secondary pointing menu profile-nav-menu\" style=\"display: none\">
\t
{% for id, title in profileMenuItems() %}
<a class=\"item{% if action == id %} active{% endif %}\"
href=\"{{ profileUrl(requestedUser, {'action': id}) }}\"
>{{ title }} {% if id in unreadNotifications|keys %}<div class=\"ui mini label red\">{{ unreadNotifications[id] }}</div>{% endif %}</a>
{% endfor %}
{{ environment.dispatcher.dispatch('profileMenuItems') }}
\t
<div class=\"ui dropdown item\" style=\"display:none;\">
<i class=\"ellipsis horizontal icon\"></i>
<div class=\"menu\"></div>
</div>
</div>
</div>
<div class=\"ui modal sc-membership\" id=\"avatar-modal\">
<i class=\"close icon\"></i>
<div class=\"header\">
{{ translate('Profile picture') }}
</div>
<div class=\"content\">
<div class=\"ui basic segment blurring avatar-image-container\">
<div class=\"ui inverted dimmer\">
<div class=\"ui loader\"></div>
</div>
<div class=\"mp-avatar-modal-image\">
<img class=\"avatar-modal-image\">
</div>
</div>
</div>
<div class=\"actions\">
<button class=\"ui mini secondary button cancel\" data-action=\"cancel\">{{ translate('Cancel') }}</button>
<button class=\"ui mini primary button primary\" data-action=\"save-photo\">{{ translate('Save') }}</button>
</div>
</div>
\t
\t{% if not userLoggedIn %}
\t\t{% include '@auth/partials/login-modal.twig' %}
\t{% endif %}
\t
{% block content %}{% endblock %}
</div>
{{ environment.dispatcher.dispatch('users.send.message.modal.wnd') }}
{% include '@users/partials/users-report-modal.twig' %}", "@users/profile.twig", "D:\\projects\\htdocs\\wordpress\\wp-content\\plugins\\membership-by-supsystic\\src\\Membership\\Users\\views\\profile.twig");
}
}
<?php
/* @activity/partials/activity-gallery-modal.twig */
class __TwigTemplate_33772a4b7e8adedeaaee356b25f8be3fb50c661a7e57a26022c1531b6beec255 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
);
}
protected function doDisplay(array $context, array $blocks = array())
{
// line 1
echo "<div class=\" sc-membership ui basic modal mp-gallery-modal\">
\t<div class=\"ui active dimmer modal-loader\">
\t\t<div class=\"ui loader\"></div>
\t</div>
\t<div class=\"image-index\"><span class=\"current-index\"></span> ";
// line 5
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("of")), "html", null, true);
echo " <span class=\"total\"></span></div>
\t<div class=\"controls\" style=\"display: none\">
\t\t<div class=\"prev-button\">
\t\t\t<i class=\"chevron left icon\"></i>
\t\t</div>
\t\t<div class=\"next-button\">
\t\t\t<i class=\"chevron right icon\"></i>
\t\t</div>
\t</div>
\t<i class=\"close icon\"></i>
\t<div class=\"image-content\">
\t\t<div class=\"image\">
\t\t\t<img alt=\"\"/>
\t\t</div>
\t</div>
</div>
";
}
public function getTemplateName()
{
return "@activity/partials/activity-gallery-modal.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 25 => 5, 19 => 1,);
}
/** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
public function getSource()
{
@trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
return $this->getSourceContext()->getCode();
}
public function getSourceContext()
{
return new Twig_Source("<div class=\" sc-membership ui basic modal mp-gallery-modal\">
\t<div class=\"ui active dimmer modal-loader\">
\t\t<div class=\"ui loader\"></div>
\t</div>
\t<div class=\"image-index\"><span class=\"current-index\"></span> {{ translate('of') }} <span class=\"total\"></span></div>
\t<div class=\"controls\" style=\"display: none\">
\t\t<div class=\"prev-button\">
\t\t\t<i class=\"chevron left icon\"></i>
\t\t</div>
\t\t<div class=\"next-button\">
\t\t\t<i class=\"chevron right icon\"></i>
\t\t</div>
\t</div>
\t<i class=\"close icon\"></i>
\t<div class=\"image-content\">
\t\t<div class=\"image\">
\t\t\t<img alt=\"\"/>
\t\t</div>
\t</div>
</div>
{#<script type=\"text/javascript\" src=\"{{ assets('base', '/lib/jquery.history.js') }}\"></script>#}", "@activity/partials/activity-gallery-modal.twig", "D:\\projects\\htdocs\\wordpress\\wp-content\\plugins\\membership-by-supsystic\\src\\Membership\\Activity\\views\\partials\\activity-gallery-modal.twig");
}
}
<?php
/* @activity/partials/activity-report-modal.twig */
class __TwigTemplate_e0b491b964d37f7e1640f25cd3e2ce5658d3c227d0aa2c06ffc323b997cb1ba6 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
);
}
protected function doDisplay(array $context, array $blocks = array())
{
// line 1
echo "<div class=\"ui small modal\" id=\"report-activity-modal\">
\t<i class=\"close icon\"></i>
\t<div class=\"header\">
\t\t";
// line 4
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Report post")), "html", null, true);
echo "
\t</div>
\t<div class=\"content\">
\t\t<div class=\"ui form\">
\t\t\t<div class=\"field\">
\t\t\t\t<label>";
// line 9
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Message")), "html", null, true);
echo "</label>
\t\t\t\t<textarea rows=\"5\"></textarea>
\t\t\t</div>
\t\t</div>
\t</div>
\t<div class=\"actions\">
\t\t<button class=\"ui button mini secondary cancel\">";
// line 15
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Cancel")), "html", null, true);
echo "</button>
\t\t<button class=\"ui positive mini primary button\">";
// line 16
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Send")), "html", null, true);
echo "</button>
\t</div>
</div>";
}
public function getTemplateName()
{
return "@activity/partials/activity-report-modal.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 45 => 16, 41 => 15, 32 => 9, 24 => 4, 19 => 1,);
}
/** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
public function getSource()
{
@trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
return $this->getSourceContext()->getCode();
}
public function getSourceContext()
{
return new Twig_Source("<div class=\"ui small modal\" id=\"report-activity-modal\">
\t<i class=\"close icon\"></i>
\t<div class=\"header\">
\t\t{{ translate('Report post') }}
\t</div>
\t<div class=\"content\">
\t\t<div class=\"ui form\">
\t\t\t<div class=\"field\">
\t\t\t\t<label>{{ translate('Message') }}</label>
\t\t\t\t<textarea rows=\"5\"></textarea>
\t\t\t</div>
\t\t</div>
\t</div>
\t<div class=\"actions\">
\t\t<button class=\"ui button mini secondary cancel\">{{ translate('Cancel') }}</button>
\t\t<button class=\"ui positive mini primary button\">{{ translate('Send') }}</button>
\t</div>
</div>", "@activity/partials/activity-report-modal.twig", "D:\\projects\\htdocs\\wordpress\\wp-content\\plugins\\membership-by-supsystic\\src\\Membership\\Activity\\views\\partials\\activity-report-modal.twig");
}
}
<?php
/* @users/activities.twig */
class __TwigTemplate_7eec9b7d2878d3c0570554db2c7a0ddf5d87d04d2ca635b2c876f7650affe9d4 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
// line 1
$this->parent = $this->loadTemplate("@users/profile.twig", "@users/activities.twig", 1);
$this->blocks = array(
'content' => array($this, 'block_content'),
);
}
protected function doGetParent(array $context)
{
return "@users/profile.twig";
}
protected function doDisplay(array $context, array $blocks = array())
{
$this->parent->display($context, array_merge($this->blocks, $blocks));
}
// line 3
public function block_content($context, array $blocks = array())
{
// line 4
echo "\t";
$this->loadTemplate("@activity/partials/activities-container.twig", "@users/activities.twig", 4)->display(array_merge($context, array("disablePostForm" => ($context["disablePostForm"] ?? null), "activities" => ($context["activities"] ?? null), "context" => ($context["contextParam"] ?? null))));
}
public function getTemplateName()
{
return "@users/activities.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 31 => 4, 28 => 3, 11 => 1,);
}
/** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
public function getSource()
{
@trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
return $this->getSourceContext()->getCode();
}
public function getSourceContext()
{
return new Twig_Source("{% extends '@users/profile.twig' %}
{% block content %}
\t{% include '@activity/partials/activities-container.twig' with {'disablePostForm': disablePostForm, 'activities': activities, 'context': contextParam } %}
{% endblock %}", "@users/activities.twig", "D:\\projects\\htdocs\\wordpress\\wp-content\\plugins\\membership-by-supsystic\\src\\Membership\\Users\\views\\activities.twig");
}
}
<?php
/* @activity/partials/activity-attachment-template.twig */
class __TwigTemplate_6f34d866ebaa215ea57148c505654e9e0515d5637f72cdfb68375e2b60e285b3 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
);
}
protected function doDisplay(array $context, array $blocks = array())
{
// line 1
echo "<script id=\"mbsImageAttachmentTemplate\" type=\"text/html\">
\t<div class=\"mbs-one-any-attachment\" title=\"\">
\t\t<img class=\"ui image mbs-att-image\" src=\"";
// line 3
echo twig_escape_filter($this->env, ($context["attachmentIcon"] ?? null), "html", null, true);
echo "\">
\t\t<span class=\"mbs-image-caption\"></span>
\t\t<div class=\"mp-attachment-image-overlay\"></div>
\t\t<div class=\"mp-progress-bar\">
\t\t\t<div class=\"ui tiny indicating progress active\">
\t\t\t\t<div class=\"bar\" style=\"width: 1%; transition-duration: 300ms;\"></div>
\t\t\t</div>
\t\t</div>
\t\t<i class=\"close icon\"></i>
\t</div>
</script>";
}
public function getTemplateName()
{
return "@activity/partials/activity-attachment-template.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 23 => 3, 19 => 1,);
}
/** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
public function getSource()
{
@trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
return $this->getSourceContext()->getCode();
}
public function getSourceContext()
{
return new Twig_Source("<script id=\"mbsImageAttachmentTemplate\" type=\"text/html\">
\t<div class=\"mbs-one-any-attachment\" title=\"\">
\t\t<img class=\"ui image mbs-att-image\" src=\"{{ attachmentIcon }}\">
\t\t<span class=\"mbs-image-caption\"></span>
\t\t<div class=\"mp-attachment-image-overlay\"></div>
\t\t<div class=\"mp-progress-bar\">
\t\t\t<div class=\"ui tiny indicating progress active\">
\t\t\t\t<div class=\"bar\" style=\"width: 1%; transition-duration: 300ms;\"></div>
\t\t\t</div>
\t\t</div>
\t\t<i class=\"close icon\"></i>
\t</div>
</script>", "@activity/partials/activity-attachment-template.twig", "D:\\projects\\htdocs\\wordpress\\wp-content\\plugins\\membership-by-supsystic\\src\\Membership\\Activity\\views\\partials\\activity-attachment-template.twig");
}
}
<?php
/* @auth/login.twig */
class __TwigTemplate_ce6fa280974dffea4dc1a1a690dc5389624f94cf7e7582ea09f0b414efe94bb1 extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
);
}
protected function doDisplay(array $context, array $blocks = array())
{
// line 1
echo "<div class=\"sc-membership\">
\t<div class=\"ui centered grid\">
\t\t<div class=\"column left aligned\">
\t\t\t";
// line 4
$this->loadTemplate("@auth/partials/login-form.twig", "@auth/login.twig", 4)->display($context);
// line 5
echo "\t\t</div>
\t</div>
</div>";
}
public function getTemplateName()
{
return "@auth/login.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 26 => 5, 24 => 4, 19 => 1,);
}
/** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
public function getSource()
{
@trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
return $this->getSourceContext()->getCode();
}
public function getSourceContext()
{
return new Twig_Source("<div class=\"sc-membership\">
\t<div class=\"ui centered grid\">
\t\t<div class=\"column left aligned\">
\t\t\t{% include '@auth/partials/login-form.twig' %}
\t\t</div>
\t</div>
</div>", "@auth/login.twig", "D:\\projects\\htdocs\\wordpress\\wp-content\\plugins\\membership-by-supsystic\\src\\Membership\\Auth\\views\\login.twig");
}
}
2019-01-22T07:59:31+00:00 CRITICAL D:\projects\htdocs\wordpress\wp-admin\includes\class-wp-list-table-compat.php 中第 15 行的 Maximum execution time of 30 seconds exceeded
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment