Файловый менеджер - Редактировать - /var/www/html/components/com_community/templates/jomsocial/layouts/twitter.firstlogin.php
Ðазад
<?php /** * @copyright (C) 2013 iJoomla, Inc. - All rights reserved. * @license GNU General Public License, version 2 (http://www.gnu.org/licenses/gpl-2.0.html) * @author iJoomla.com <webmaster@ijoomla.com> * @url https://www.jomsocial.com/license-agreement * The PHP code portions are distributed under the GPL license. If not otherwise stated, all images, manuals, cascading style sheets, and included JavaScript *are NOT GPL, and are released under the IJOOMLA Proprietary Use License v1.0 * More info at https://www.jomsocial.com/license-agreement */ use Joomla\CMS\Component\ComponentHelper; use Joomla\CMS\Factory; use Joomla\CMS\Language\Text; defined('_JEXEC') or die(); $usersConfig = ComponentHelper::getParams('com_users'); ?> <div> <div class="joms-stream__header" style="padding:0"> <div class="joms-avatar--stream"> <img src="<?php echo $userInfo['profile_image_url_https']; ?>" alt="<?php echo $userInfo['name']; ?>" > </div> <div class="joms-stream__meta"> <span><?php echo Text::sprintf('COM_COMMUNITY_TWITTER_CONNECT_DESCRIPTION', $userInfo['name']); ?></span> </div> </div> </div> <div style="margin-top:15px"> <strong><?php echo Text::_('COM_COMMUNITY_I_AM_CURRENTLY'); ?></strong> <?php if ($usersConfig->get('allowUserRegistration')) { ?> <div class="joms-form__group" style="margin-top:15px; color:inherit"> <span style="width:30px"> <input type="radio" name="membertype" id="joms-js--fbc-newuser" value="1" checked="checked"> </span> <div> <label for="joms-js--fbc-newuser" style="font-size:inherit"> <strong><?php echo Text::_('COM_COMMUNITY_A_NEW_USER'); ?></strong> <p class="joms-help"><?php echo Text::_('COM_COMMUNITY_NEW_MEMBER_DESCRIPTION'); ?></p> </label> </div> </div> <?php } ?> <div class="joms-form__group" style="margin-top:15px; color:inherit"> <span style="width:30px"> <input type="radio" name="membertype" id="joms-js--fbc-existing" value="2" <?php echo (!$usersConfig->get('allowUserRegistration')) ? 'checked="checked"' : '';?> > </span> <div> <label for="joms-js--fbc-existing" style="font-size:inherit"> <strong><?php echo Text::_('COM_COMMUNITY_MEMBER_OF_SITE'); ?></strong> <p class="joms-help"><?php echo Text::_('COM_COMMUNITY_TWITTER_EXISTING_SITE_MEMBER_DESCRIPTION'); ?></p> </label> </div> </div> <?php if ( $config->get('enableterms') || $config->get('enablegdpr')) { ?> <?php $sitename = Factory::getConfig(); $sitename = $sitename->get( 'sitename' ); ?> <div class="joms-form__group joms-js--fbc-tnc" style="margin-top:15px; color:inherit"> <span style="width:30px"> <input type="checkbox" name="tnc" id="joms-js--fbc-tnc-checkbox" value="Y" class="required" style="margin:0"> </span> <div> <p class="joms-help joms-js--fbc-tnc-error" style="color:red; display:none"> <?php if ($config->get('enableterms') && !$config->get('enablegdpr')) { echo Text::_('COM_COMMUNITY_FACEBOOK_ACCEPT_TNC_ERROR'); } else if ( !$config->get('enableterms') && $config->get('enablegdpr')) { echo Text::sprintf('COM_COMMUNITY_FACEBOOK_ACCEPT_GDPR_ERROR', $sitename); } else if ($config->get('enableterms') && $config->get('enablegdpr')) { echo Text::_('COM_COMMUNITY_FACEBOOK_ACCEPT_TNC_ERROR').' '; echo Text::sprintf('COM_COMMUNITY_FACEBOOK_ACCEPT_GDPR_ERROR_AND', $sitename); } ?> </p> <label for="joms-js--fbc-tnc-checkbox" style="font-size:inherit; margin:0"> <?php if ($config->get('enableterms') && !$config->get('enablegdpr')) { echo Text::_('COM_COMMUNITY_I_HAVE_READ') . ' <a href="javascript:" class="joms-js--fbc-tnc-toggle">' . Text::_('COM_COMMUNITY_TERMS_AND_CONDITION') . '</a>.'; } else if (!$config->get('enableterms') && $config->get('enablegdpr')) { echo Text::sprintf('COM_COMMUNITY_I_AGREE_GDPR_TWITTER', $sitename); } else if ($config->get('enableterms') && $config->get('enablegdpr')) { echo Text::_('COM_COMMUNITY_I_HAVE_READ') . ' <a href="javascript:" class="joms-js--fbc-tnc-toggle">' . Text::_('COM_COMMUNITY_TERMS_AND_CONDITION') . '</a>. '; echo Text::sprintf('COM_COMMUNITY_I_AGREE_GDPR_TWITTER_AND', $sitename); } ?> </label> <div class="joms-help joms-js--fbc-tnc-desc" style="display:none;max-height:150px;overflow:auto"> <?php echo nl2br( $config->get('registrationTerms') ); ?> </div> </div> </div> <?php } ?> </div> <script> joms.jQuery('[name=membertype]').change(function() { joms.jQuery('.joms-js--fbc-tnc')[ this.value == 2 ? 'hide' : 'show' ](); joms.jQuery('.joms-js--fbc-gdpr')[ this.value == 2 ? 'hide' : 'show' ](); }); joms.jQuery('.joms-js--fbc-tnc-toggle').click(function() { joms.jQuery('.joms-js--fbc-tnc-desc').toggle(); }); </script>
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка