Permalink
Browse files

Исправление форматирования

  • Loading branch information...
stdex committed Feb 26, 2017
1 parent 34c8235 commit e7312f5791a722ad9c1f7bc19f0a750bb25fb9fd
Showing with 16 additions and 16 deletions.
  1. +1 −5 bookmarks/tpl/add.remove.links.style.tpl
  2. +15 −11 guestbook/guestbook.php
@@ -1,11 +1,7 @@
<span id="bookmarks_{{ news }}"><a href="{{ link }}" title="{{ link_title }}">{% if (found) %}
<img src="/engine/plugins/bookmarks/img/delete.gif"/>{% else %}
<img src="/engine/plugins/bookmarks/img/add.gif"/>{% endif %}</a> {{ counter }}</span>
<script>
<
script
type = "text/javascript" >
<script type="text/javascript">
var el = document.getElementById('bookmarks_{{ news }}').getElementsByTagName('a')[0];
el.setAttribute('href', '#');
el.setAttribute('onclick', 'bookmarks("{{ url }}","{{ news }}","{{ action }}"); return false;');
View
@@ -5,17 +5,7 @@
register_plugin_page('guestbook', 'edit', 'guestbook_edit');
register_plugin_page('guestbook', 'social', 'guestbook_social');
LoadPluginLang('guestbook', 'main', '', '', '#');
switch ($_REQUEST['action']) {
case 'add' :
msg_add_submit();
break;
case 'edit' :
msg_edit_submit();
break;
case 'delete' :
msg_delete_submit();
break;
}
/*
* Add message submit callback
*/
@@ -222,7 +212,21 @@ function msg_delete_submit() {
function guestbook_list($params = array()) {
global $template, $tpl, $twig, $userROW, $ip, $config, $mysql, $SYSTEM_FLAGS, $TemplateCache, $CurrentHandler, $lang;
$SYSTEM_FLAGS['info']['title']['group'] = $lang['guestbook']['title'];
switch ($_REQUEST['action']) {
case 'add' :
msg_add_submit();
break;
case 'edit' :
msg_edit_submit();
break;
case 'delete' :
msg_delete_submit();
break;
}
require_once(root . "/plugins/guestbook/lib/recaptchalib.php");
$publickey = pluginGetVariable('guestbook', 'public_key');
$privatekey = pluginGetVariable('guestbook', 'private_key');

0 comments on commit e7312f5

Please sign in to comment.