В папке templates три файла для дефолтного шаблона. Можно вставить все файлы у себя (если у вас там нет своих правок), либо вручную вставить хуки в файлы. 


Пример хука для шаблона вывода контента (templates/default/content/default_item.tpl.php):

<?php echo cmsEventsManager::hook("ilikeit_show_button",
        array(
            'target_controller'=>'content',
            'target_subject'=>$ctype['name'],
            'target_id'=>$item['id'],
            'target_title'=>htmlspecialchars($item['title']), 
            'target_url'=>href_to($ctype['name'], $item['slug'].'.html'),
            'target_user_id'    =>  $item['user']['id'],
            ));?>  
            
            
Пример хука для шаблона комментария(templates/default/controllers/comments/comment.tpl.php):

            <?php echo cmsEventsManager::hook("ilikeit_show_button",
                    array('target_controller'=>'comments',
                        'target_subject'=>'comment',
                        'target_id'=>$entry['id'],
                        'target_title'=>htmlspecialchars($entry['content_html']), 
                        'target_url'=>'/'.$entry['target_url'].'#comment_'.$entry['id'],
                        'target_user_id'=>$entry['user']['id']
                    ));?>
                    
                    
Пример хука для шаблона стены (templates/default/controllers/wall/entry.tpl.php)

            <?php echo cmsEventsManager::hook("ilikeit_show_button",
                    array('target_controller'=>'users',
                        'target_subject'=>'wall',
                        'target_id'=>$entry['id'],
                        'target_title'=>htmlspecialchars($entry['content_html']), 
                        'target_url'=>href_to('users', $entry['user']['id'].'#entry_'.$entry['user']['id']),
                        'target_user_id'=>$entry['user']['id'],
                        ));?>