terrorist0p - tak tej używam w wersji 1.3.1
MichaelKosa - tak wygląda plik
//<?php
/* To prevent PHP errors (extending class does not exist) revealing path */
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
{
exit;
}
class postnotes_hook_postNotes_template extends _HOOK_CLASS_
{
/* !Hook Data - DO NOT REMOVE */
public static function hookData() {
return array_merge_recursive( array (
'post' =>
array (
0 =>
array (
'selector' => 'div[data-controller=\'core.front.core.comment\'].ipsComment_content.ipsType_medium > div.cPost_contentWrap > div.ipsItemControls > ul.ipsComment_controls.ipsClearfix.ipsItemControls_left[data-role=\'commentControls\'] > li.ipsHide[data-role=\'commentLoading\']',
'type' => 'add_inside_end',
'content' => '{template="addNote" group="post" location="front" app="postnotes" params="$comment"}',
),
1 =>
array (
'selector' => 'div[data-controller=\'core.front.core.comment\'] > div.cPost_contentWrap > div.ipsItemControls',
'type' => 'add_after',
'content' => '{template="notes" group="post" location="front" app="postnotes" params="$comment"}',
),
),
'topic' =>
array (
0 =>
array (
'selector' => '#elClubContainer > div[data-controller=\'core.front.core.commentFeed,forums.front.topic.view, core.front.core.ignoredComments\']',
'type' => 'add_attribute',
'attributes_add' =>
array (
0 =>
array (
'key' => 'data-controller',
'value' => 'core.front.core.commentFeed,forums.front.topic.view, core.front.core.ignoredComments,postnotes.front.notes',
),
),
),
),
), parent::hookData() );
}
/* End Hook Data */
}
Nie usuwałem, stare się wyświetlają, ale nowych dodać nie można