Jump to content
View in the app

A better way to browse. Learn more.

IPBMafia.ru - поддержка Invision Community, релизы, темы, плагины и приложения

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Помогите разобраться кнопкой свернуть категорию

Featured Replies

Posted

Мы имеем такой кусок 

 

<h2 class='maintitle'>
 
<a class='toggle right' href='#' title="{parse expression="sprintf( $this->lang->words['toggle_cat'], IPSText::striptags( IPSText::htmlspecialchars($_data['cat_data']['name'] ) ) )"}">{parse expression="sprintf( $this->lang->words['toggle_cat'], $_data['cat_data']['name'] )"}</a>
 
<a href="{parse url="showforum={$_data['cat_data']['id']}" seotitle="{$_data['cat_data']['name_seo']}" template="showforum" base="public"}" title='{parse expression="sprintf( $this->lang->words['view_cat'], IPSText::striptags( IPSText::htmlspecialchars($_data['cat_data']['name'] ) ) )"}'>{$_data['cat_data']['name']}</a>
 
</h2>
 
Мне нужно оставить в теге H2 только название категории. В представленном коде выглядит как  "свернуть (название форума)
<h2 class='maintitle'>
  <a href="{parse url="showforum={$_data['cat_data']['id']}" seotitle="{$_data['cat_data']['name_seo']}" template="showforum" base="public"}" title='{parse expression="sprintf( $this->lang->words['view_cat'], IPSText::striptags( IPSText::htmlspecialchars($_data['cat_data']['name'] ) ) )"}'>{$_data['cat_data']['name']}</a>
</h2>

Так что нужно ? Ты сказал:

 

 

Мне нужно оставить в теге H2 только название категории.

Я  тебе дал название категории.

 

Тебе нужно ФРАЗУ убрать "свернуть (название форума)" убрать?


И "свернуть (название форума)" у меня отображается только при наведении на кнопку свернуть.

 

Показывается кнопка "Свернуть", но во всплывающем сообщении только название категории:

<h2 class='maintitle'>
  <a class='toggle right' href='#' title="{parse expression="IPSText::striptags( IPSText::htmlspecialchars($_data['cat_data']['name'] ) )"}">{parse expression="$_data['cat_data']['name']"}</a>
  <a href="{parse url="showforum={$_data['cat_data']['id']}" seotitle="{$_data['cat_data']['name_seo']}" template="showforum" base="public"}" title='{parse expression="sprintf( $this->lang->words['view_cat'], IPSText::striptags( IPSText::htmlspecialchars($_data['cat_data']['name'] ) ) )"}'>{$_data['cat_data']['name']}</a>
</h2>
  • Author

 

Так что нужно ? Ты сказал:

 

 

Я  тебе дал название категории.

 

Тебе нужно ФРАЗУ убрать "свернуть (название форума)" убрать?

И "свернуть (название форума)" у меня отображается только при наведении на кнопку свернуть.

 

Показывается кнопка "Свернуть", но во всплывающем сообщении только название категории:

<h2 class='maintitle'>
  <a class='toggle right' href='#' title="{parse expression="IPSText::striptags( IPSText::htmlspecialchars($_data['cat_data']['name'] ) )"}">{parse expression="$_data['cat_data']['name']"}</a>
  <a href="{parse url="showforum={$_data['cat_data']['id']}" seotitle="{$_data['cat_data']['name_seo']}" template="showforum" base="public"}" title='{parse expression="sprintf( $this->lang->words['view_cat'], IPSText::striptags( IPSText::htmlspecialchars($_data['cat_data']['name'] ) ) )"}'>{$_data['cat_data']['name']}</a>
</h2>

 

Спасибо, то что нужно.

 

Вот такой код оставил

 

<h2 class='maintitle'>

  <a class='toggle right' href='#' title="{parse expression="IPSText::striptags( IPSText::htmlspecialchars($_data['cat_data']['name'] ) )"}">{parse expression="$_data['']['']"}</a>
  <a href="{parse url="showforum={$_data['cat_data']['id']}" seotitle="{$_data['cat_data']['name_seo']}" template="showforum" base="public"}" title='{parse expression="sprintf( $this->lang->words['view_cat'], IPSText::striptags( IPSText::htmlspecialchars($_data['cat_data']['name'] ) ) )"}'>{$_data['cat_data']['name']}</a>
</h2>

seoptimer_com говорит ок с заголовками теперь )

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Ответить в этой теме...

Последние посетители 0

  • No registered users viewing this page.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.