webelion 133 Posted March 23, 2014 Report Share Posted March 23, 2014 На форуме cmf хочу убрать заголовок h1 function template_body_above(){ global $context, $settings, $options, $scripturl, $txt, $modSettings; echo !empty($settings['forum_width']) ? '<div id="wrapper" style="width: ' . $settings['forum_width'] . '">' : '', ' <div id="header"><div class="frame"> <div id="top_section"> <h1 class="forumtitle"> <a href="', $scripturl, '">', empty($context['header_logo_url_html_safe']) ? $context['forum_name'] : '<img src="' . $context['header_logo_url_html_safe'] . '" alt="' . $context['forum_name'] . '" />', '</a> </h1>'; // the upshrink image, right-floated echo ' <img id="upshrink" src="', $settings['images_url'], '/upshrink.png" alt="*" title="', $txt['upshrink_description'], '" style="display: none;" />'; echo ' ', empty($settings['site_slogan']) ? '<img id="smflogo" src="' . $settings['images_url'] . '/smflogo.png" alt="Simple Machines Forum" title="Simple Machines Forum" />' : '<div id="siteslogan" class="floatright">' . $settings['site_slogan'] . '</div>', ' </div> <div id="upper_section" class="middletext"', empty($options['collapse_header']) ? '' : ' style="display: none;"', '> <div class="user">'; // If the user is logged in, display stuff like their name, new messages, etc. if ($context['user']['is_logged']) --------------------------------------------------------------------------------------------------------------------------------------------- из кода убираю и перестает работать шаблон, как правильно вырезать эту часть?? <h1 class="forumtitle"> <a href="', $scripturl, '">', empty($context['header_logo_url_html_safe']) ? $context['forum_name'] : '<img src="' . $context['header_logo_url_html_safe'] . '" alt="' . $context['forum_name'] . '" />', '</a> </h1>'; Quote Link to post Share on other sites
VIP CRYPO 79 Posted March 23, 2014 VIP Report Share Posted March 23, 2014 <class="forumtitle"> <a href="', $scripturl, '">', empty($context['header_logo_url_html_safe']) ? $context['forum_name'] : '<img src="' . $context['header_logo_url_html_safe'] . '" alt="' . $context['forum_name'] . '" />', '</a>'; Не? Quote Link to post Share on other sites
webelion 133 Posted March 23, 2014 Author Report Share Posted March 23, 2014 H1 остается.. Quote Link to post Share on other sites
WQP 360 Posted March 23, 2014 Report Share Posted March 23, 2014 1) Смотри стили forumtitle и делай пустой блок с этими стилями. или 2) Создай класс и за место h1 добавь его. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.