Skip to content
Permalink
Browse files

Try to use layout

Try to use layout
  • Loading branch information
tipsun91
tipsun91 committed Sep 16, 2015
1 parent bae5551 commit d6c4027c8d47e3b4be21c369b85961643ef8e9b5
Showing with 173 additions and 123 deletions.
  1. +1 −1 config.php
  2. +3 −2 include/template/wap/wap/tpls/delete.tpl
  3. +3 −2 include/template/wap/wap/tpls/edit.tpl
  4. +3 −2 include/template/wap/wap/tpls/filemap.tpl
  5. +5 −0 include/template/wap/wap/tpls/head.tpl
  6. +0 −18 include/template/wap/wap/tpls/header.tpl
  7. +3 −2 include/template/wap/wap/tpls/help.1.tpl
  8. +3 −2 include/template/wap/wap/tpls/help.2.tpl
  9. +3 −2 include/template/wap/wap/tpls/help.3.tpl
  10. +3 −2 include/template/wap/wap/tpls/help.4.tpl
  11. +3 −2 include/template/wap/wap/tpls/help.tpl
  12. +3 −2 include/template/wap/wap/tpls/hide.tpl
  13. +3 −2 include/template/wap/wap/tpls/index.tpl
  14. +3 −2 include/template/wap/wap/tpls/karma.tpl
  15. +6 −0 include/template/wap/wap/tpls/layout.html.tpl
  16. +11 −4 include/template/wap/wap/tpls/{footer.tpl → layout.scheme.tpl}
  17. +3 −2 include/template/wap/wap/tpls/login.forget.tpl
  18. +3 −2 include/template/wap/wap/tpls/login.tpl
  19. +3 −2 include/template/wap/wap/tpls/message.tpl
  20. +3 −2 include/template/wap/wap/tpls/message_delete.tpl
  21. +3 −2 include/template/wap/wap/tpls/message_list.def.tpl
  22. +3 −2 include/template/wap/wap/tpls/message_list.delete_messages.tpl
  23. +3 −2 include/template/wap/wap/tpls/message_list.options.tpl
  24. +3 −2 include/template/wap/wap/tpls/message_list.tpl
  25. +3 −2 include/template/wap/wap/tpls/message_send.tpl
  26. +3 −2 include/template/wap/wap/tpls/misc.email.tpl
  27. +3 −2 include/template/wap/wap/tpls/misc.report.tpl
  28. +3 −2 include/template/wap/wap/tpls/misc.rules.tpl
  29. +3 −2 include/template/wap/wap/tpls/moderate.delete_posts.tpl
  30. +3 −2 include/template/wap/wap/tpls/moderate.delete_topics.tpl
  31. +3 −2 include/template/wap/wap/tpls/moderate.get_host.tpl
  32. +3 −2 include/template/wap/wap/tpls/moderate.move_topic.tpl
  33. +3 −2 include/template/wap/wap/tpls/moderate.show_delete_posts.tpl
  34. +3 −2 include/template/wap/wap/tpls/moderate.tpl
  35. +3 −2 include/template/wap/wap/tpls/post.tpl
  36. +3 −2 include/template/wap/wap/tpls/profile.admin.tpl
  37. +3 −2 include/template/wap/wap/tpls/profile.avatar.tpl
  38. +3 −2 include/template/wap/wap/tpls/profile.delete.tpl
  39. +3 −2 include/template/wap/wap/tpls/profile.display.tpl
  40. +3 −2 include/template/wap/wap/tpls/profile.email.tpl
  41. +3 −2 include/template/wap/wap/tpls/profile.general.tpl
  42. +3 −2 include/template/wap/wap/tpls/profile.messaging.tpl
  43. +3 −2 include/template/wap/wap/tpls/profile.password.tpl
  44. +3 −2 include/template/wap/wap/tpls/profile.personal.tpl
  45. +3 −2 include/template/wap/wap/tpls/profile.personality.tpl
  46. +3 −2 include/template/wap/wap/tpls/profile.privacy.tpl
  47. +3 −2 include/template/wap/wap/tpls/profile.view.tpl
  48. +3 −2 include/template/wap/wap/tpls/register.agree.tpl
  49. +3 −2 include/template/wap/wap/tpls/register.tpl
  50. +3 −2 include/template/wap/wap/tpls/search.result.tpl
  51. +3 −2 include/template/wap/wap/tpls/search.tpl
  52. +3 −2 include/template/wap/wap/tpls/uploads.tpl
  53. +3 −2 include/template/wap/wap/tpls/userlist.tpl
  54. +3 −2 include/template/wap/wap/tpls/viewforum.tpl
  55. +3 −2 include/template/wap/wap/tpls/viewtopic.tpl
@@ -2,7 +2,7 @@
// Настройки
//$_SERVER['REMOTE_ADDR'] = (isset($_SERVER['HTTP_X_REAL_IP']) && preg_match('/^([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])(\.([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])){3}$/', $_SERVER['HTTP_X_REAL_IP'])) ? $_SERVER['HTTP_X_REAL_IP'] : $_SERVER['REMOTE_ADDR']; //nginx

$db_host = 'localhost'; // Хост
$db_host = '127.0.0.1'; // Хост
$db_name = 'forum'; // Имя БД
$db_username = 'mysql'; // Имя пользователя БД
$db_password = 'mysql'; // Пароль пользователя БД
@@ -1,4 +1,5 @@
{include file='header.tpl'}
{extends file='layout.scheme.tpl'}
{block name='center'}

{assign var='Delete_post' value='Delete post'}

@@ -18,4 +19,4 @@
</div>
</form>

{include file='footer.tpl'}
{/block}
@@ -1,4 +1,5 @@
{include file='header.tpl'}
{extends file='layout.scheme.tpl'}
{block name='center'}

{assign var='Post_errors' value='Post errors'}
{assign var='Post_errors_info' value='Post errors info'}
@@ -87,4 +88,4 @@
</div>
</form>

{include file='footer.tpl'}
{/block}
@@ -1,4 +1,5 @@
{include file='header.tpl'}
{extends file='layout.scheme.tpl'}
{block name='center'}

{assign var='cur_category' value=0}
{assign var='cur_forum' value=0}
@@ -58,4 +59,4 @@

<div class="con">{$lang_common.Pages}:&#160;{$paging_links}</div>

{include file='footer.tpl'}
{/block}
@@ -0,0 +1,5 @@
<meta name="viewport" content="width=device-width"/>
<meta http-equiv="Content-Type" content="{$pun_xhtml}; charset=UTF-8"/>
<title>{$page_title|escape}</title>
<link rel="stylesheet" type="text/css" href="{$pun_config.o_base_url}/style/wap/{if $pun_user}{$pun_user.style_wap}{else}{$pun_config.o_default_style_wap}{/if}/style.css"/>
<link rel="alternate" type="application/rss+xml" title="{$pun_config.o_board_title}" href="{$smarty.const.PUN_ROOT}rss.xml"/>

This file was deleted.

@@ -1,4 +1,5 @@
{include file='header.tpl'}
{extends file='layout.scheme.tpl'}
{block name='center'}

{assign var='Text_style' value='Text style'}
{assign var='Text_style_info' value='Text style info'}
@@ -71,4 +72,4 @@
<input type="text" value="[b][u][/u][/b]" size="9"/>
</div>

{include file='footer.tpl'}
{/block}
@@ -1,4 +1,5 @@
{include file='header.tpl'}
{extends file='layout.scheme.tpl'}
{block name='center'}

{assign var='Links_and_images' value='Links and images'}
{assign var='Links_info' value='Links info'}
@@ -36,4 +37,4 @@
<input type="text" value="[img]{$pun_config.o_base_url}/img/punbb.gif[/img]" size="15"/>
</div>

{include file='footer.tpl'}
{/block}
@@ -1,4 +1,5 @@
{include file='header.tpl'}
{extends file='layout.scheme.tpl'}
{block name='center'}

{assign var='j' value=false}

@@ -36,4 +37,4 @@
{/if}
{/foreach}

{include file='footer.tpl'}
{/block}
@@ -1,4 +1,5 @@
{include file='header.tpl'}
{extends file='layout.scheme.tpl'}
{block name='center'}

{assign var='img_tag' value='img tag'}
{assign var='Images_info' value='Images info'}
@@ -14,4 +15,4 @@
<input type="text" value="[img]{$pun_config.o_base_url}/img/punbb.gif[/img]" size="15"/>
</div>

{include file='footer.tpl'}
{/block}
@@ -1,4 +1,5 @@
{include file='header.tpl'}
{extends file='layout.scheme.tpl'}
{block name='center'}

{assign var='Links_and_images' value='Links and images'}

@@ -10,4 +11,4 @@
<div class="msg2">&#187; <a href="help.php?id=1">{$lang_common.BBCode}</a></div>
<div class="msg">&#187; <a href="help.php?id=2">{$lang_help.$Links_and_images}</a></div>

{include file='footer.tpl'}
{/block}
@@ -1,4 +1,5 @@
{include file='header.tpl'}
{extends file='layout.scheme.tpl'}
{block name='center'}

{* Ключи массивов с пробелами *}
{assign var='Last_edit' value='Last edit'}
@@ -128,4 +129,4 @@

</div>

{include file='footer.tpl'}
{/block}
@@ -1,4 +1,5 @@
{include file='header.tpl'}
{extends file='layout.scheme.tpl'}
{block name='center'}

{assign var='Link_separator_m' value='Link separator_m'}
{assign var='Empty_board' value='Empty board'}
@@ -102,4 +103,4 @@
{/if}
</div>

{include file='footer.tpl'}
{/block}
@@ -1,4 +1,5 @@
{include file='header.tpl'}
{extends file='layout.scheme.tpl'}
{block name='center'}

<div class="inbox">
<a href="index.php">{$lang_common.Index}</a>&#160;&#187;&#160;{$lang_common.Karma}
@@ -41,4 +42,4 @@
<div class="con">{$lang_common.Pages}: {$page_links}</div>
{/if}

{include file='footer.tpl'}
{/block}
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="{$lang_common.lang_direction}">
<head>{block name='head'}{/block}</head>
<body>{block name='body'}{/block}</body>
</html>
@@ -1,3 +1,12 @@
{extends file='layout.html.tpl'}

{block name='head'}{include file='head.tpl'}{/block}

{block name='body'}
{if 'index.php' != $basename}
{include file='notification.tpl'}
{/if}
{block name='center'}{/block}
{assign var='Moderate_forum' value='Moderate forum'}
{assign var='Delete_posts' value='Delete posts'}
{assign var='Move_topic' value='Move topic'}
@@ -75,9 +84,7 @@ $basename == 'index.php'}
</div>

<div class="copy">
<a href="{$pun_config.o_base_url}">PunBB Mod v{$pun_config.o_show_version}</a><br/>
<a href="http://forum.wapinet.ru">PunBB Mod v{$pun_config.o_show_version}</a><br/>
<span class="red">{sprintf('%.3f', microtime(true) - $pun_start)} s</span>
</div>

</body>
</html>
{/block}
@@ -1,4 +1,5 @@
{include file='header.tpl'}
{extends file='layout.scheme.tpl'}
{block name='center'}

{assign var='Request_pass' value='Request pass'}
{assign var='Request_pass_legend' value='Request pass legend'}
@@ -19,4 +20,4 @@
</div>
</form>

{include file='footer.tpl'}
{/block}
@@ -1,4 +1,5 @@
{include file='header.tpl'}
{extends file='layout.scheme.tpl'}
{block name='center'}

{assign var='Login_legend' value='Login legend'}
{assign var='Not_registered' value='Not registered'}
@@ -26,4 +27,4 @@
<div class="in2"> &#187; <a href="register.php">{$lang_login.$Not_registered}</a></div>
<div class="in"> &#187; <a href="login.php?action=forget">{$lang_login.$Forgotten_pass}</a></div>

{include file='footer.tpl'}
{/block}
@@ -1,8 +1,9 @@
{include file='header.tpl'}
{extends file='layout.scheme.tpl'}
{block name='center'}

{assign var='Go_back' value='Go back'}

<div class="in">{$message|escape}</div>
{if !$no_back_link}<p><a href="javascript:history.go(-1);">{$lang_common.$Go_back}</a></p>{/if}

{include file='footer.tpl'}
{/block}
@@ -1,4 +1,5 @@
{include file='header.tpl'}
{extends file='layout.scheme.tpl'}
{block name='center'}

{assign var='Private_Messages' value='Private Messages'}
{assign var='Delete_message' value='Delete message'}
@@ -27,4 +28,4 @@

{include file='message_list.navlinks.tpl'}

{include file='footer.tpl'}
{/block}
@@ -1,4 +1,5 @@
{include file='header.tpl'}
{extends file='layout.scheme.tpl'}
{block name='center'}

{assign var='New_icon_m' value='New icon_m'}
{assign var='No_messages' value='No messages'}
@@ -75,4 +76,4 @@
<div class="con">{$lang_common.Pages}: {$page_links}</div>

{include file='message_list.navlinks.tpl'}
{include file='footer.tpl'}
{/block}
@@ -1,4 +1,5 @@
{include file='header.tpl'}
{extends file='layout.scheme.tpl'}
{block name='center'}

{assign var='Delete_messages_comply' value='Delete messages comply'}
{assign var='Private_Messages' value='Private Messages'}
@@ -23,4 +24,4 @@

{include file='message_list.navlinks.tpl'}

{include file='footer.tpl'}
{/block}
@@ -1,4 +1,5 @@
{include file='header.tpl'}
{extends file='layout.scheme.tpl'}
{block name='center'}

{assign var='Options_PM' value='Options PM'}
{assign var='Use_popup' value='Use popup'}
@@ -28,4 +29,4 @@

{include file='message_list.navlinks.tpl'}

{include file='footer.tpl'}
{/block}
@@ -1,4 +1,5 @@
{include file='header.tpl'}
{extends file='layout.scheme.tpl'}
{block name='center'}

{assign var='Private_Messages' value='Private Messages'}
{assign var='Link_separator_m' value='Link separator_m'}
@@ -78,4 +79,4 @@
<div class="con">{$lang_common.Pages}: {$page_links}</div>

{include file='message_list.navlinks.tpl'}
{include file='footer.tpl'}
{/block}
@@ -1,4 +1,5 @@
{include file='header.tpl'}
{extends file='layout.scheme.tpl'}
{block name='center'}

{assign var='Send_a_message' value='Send a message'}
{assign var='Write_message_legend' value='Write message legend'}
@@ -54,4 +55,4 @@
<a href="message_list.php?box=2">{$lang_pms.Options}</a> | <a href="message_send.php">{$lang_pms.$New_message}</a>
</div>

{include file='footer.tpl'}
{/block}
@@ -1,4 +1,5 @@
{include file='header.tpl'}
{extends file='layout.scheme.tpl'}
{block name='center'}

{assign var='Send_email_to' value='Send e-mail to'}
{assign var='Write_email' value='Write e-mail'}
@@ -25,4 +26,4 @@
</div>
</form>

{include file='footer.tpl'}
{/block}
@@ -1,4 +1,5 @@
{include file='header.tpl'}
{extends file='layout.scheme.tpl'}
{block name='center'}

{assign var='Report_post' value='Report post'}
{assign var='Reason_desc' value='Reason desc'}
@@ -16,4 +17,4 @@
</div>
</form>

{include file='footer.tpl'}
{/block}

0 comments on commit d6c4027

Please sign in to comment.
You can’t perform that action at this time.