include "/modules/indexmodules/_printbreadcrumbs.php"; ?> <div class="row"> <div class="col-xs-12"> <h2 class="articleInner-heading mainheading"><?php echo htmlspecialchars($searchtitle); ?> </h2> <div class="content"> <ol> <?if(!empty($sarr)){?> <?foreach ($sarr AS $item):?> <li><a href="<?php echo $item['url']; ?> "><?php echo $item['title']; ?> </a></li> <?endforeach;?> <?}else{?> <p><?php echo t_('Поиск не дал результатов:('); ?> </p> <?}?> </ol> </div> </div> </div> </div>
/** * Get definitions for editable params * * @see Plugin::GetDefaultSettings() * @param local params like 'for_editing' => true */ function get_param_definitions($params) { $r = array_merge(array('title' => array('label' => t_('Block title'), 'note' => T_('Title to display in your skin.'), 'size' => 40, 'defaultvalue' => T_('User tools')), 'user_login_link' => array('label' => T_('Login link'), 'size' => 40, 'note' => T_('Link text to display'), 'type' => 'text', 'defaultvalue' => T_('Login')), 'user_logout_link' => array('label' => T_('Logout link'), 'size' => 40, 'note' => T_('Link text to display'), 'type' => 'text', 'defaultvalue' => T_('Logout')), 'user_profile_link' => array('label' => T_('Profile link'), 'size' => 40, 'note' => T_('Link text to display'), 'type' => 'text', 'defaultvalue' => T_('Profile')), 'user_subs_link' => array('label' => T_('Subscriptions link'), 'size' => 40, 'note' => T_('Link text to display'), 'type' => 'text', 'defaultvalue' => T_('Subscriptions')), 'user_admin_link' => array('label' => T_('Admin link'), 'size' => 40, 'note' => T_('Link text to display'), 'type' => 'text', 'defaultvalue' => T_('Admin')), 'user_register_link' => array('label' => T_('Register link'), 'size' => 40, 'note' => T_('Link text to display'), 'type' => 'text', 'defaultvalue' => T_('Register'))), parent::get_param_definitions($params)); return $r; }