User Tools

Site Tools


ru:how_to:theme_editor

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
ru:how_to:theme_editor [2013/09/30 05:04]
Arkady [Troubleshooting]
ru:how_to:theme_editor [2013/10/09 04:38]
Arkady [Sitemap (карта сайта)]
Line 1: Line 1:
 ====== Вкладка Тема ====== ====== Вкладка Тема ======
  
-=====Choose Theme=====+=====Как выбрать тему=====
  
-Themes present in the //Theme// folder will show in the drop-down listSelect a theme and click the **Activate Theme** buttonIf the theme folder includes a screenshot it will be displayed as a preview when the theme is selected.+Темы, расположенные в папке ​//theme// системы,​ перечислены в раскрывающемся списке в форме **Управление темами**Выберите в нем нужную тему и нажмите кнопку ​**Активировать тему**. Если с темой есть файл скриншота,​ он будет показан в панели при выборе темы в списке.
  
-{{:​how_to:​choosetheme.jpg|}}+{{:ru:​how_to:​choosetheme.png|}}
  
-=====Edit Theme ===== 
  
-GetSimple provides you a simple way to quickly edit any theme you currently have installed on your system. It does NOT have to be enabled to be able to edit it.+=====Как редактировать тему =====
  
-Simply goto **Theme ​-> Edit Theme** and choose the theme you want to edit. The drop down list will display all the editable files, including templates and partial template .inc.php files, .css files, .js files, .txt files and any functions.php file. Be warned that there are no backups taken before or after these edits and there is no //undo// function. You can make a backup of the file you wish to edit by the [[how_to:​backup_pages#​website_archives|Site Archive]] function, by ftp or by Copy & Paste of the file contents.+GetSimple предоставляет пользователю возможность быстрого редактирования файлов установленных в системе тем. Такая возможность присутствует по умолчанию и не требует какой-либо активации.
  
-{{:​how_to:​edittheme.jpg|}}+Выберите вкладку **Тема** ​ и кликните кнопку в правом меню **Редактировать тему**, затем выберите файл для редактирования. Имейте ввиду, что при редактировании файлов темы резервные копии этих файлов не создаются. Если вы допустите ошибку,​ вам придется исправлять ее самому либо загрузив на сервер резервный файл темы (если таковой имеется) взамен испорченного,​ либо поправив код.
  
-=====Edit Components=====+{{:​ru:​how_to:​edittheme.png|}} 
 + 
 + 
 +=====Как редактировать компоненты=====
  
 Components are separately saved pieces of text or code which can be inserted into page templates. Typically they might be used for the following: Components are separately saved pieces of text or code which can be inserted into page templates. Typically they might be used for the following:
Line 24: Line 26:
   * To alter the <​head>​ section of a page or template, for instance to control the robots text or to add or alter an internal stylesheet.   * To alter the <​head>​ section of a page or template, for instance to control the robots text or to add or alter an internal stylesheet.
  
-You can put components inside of other components. You can have [[:​components-depending-on-the_page|different components for different pages]].+You can put components inside of other components. You can have [[ru:​components-depending-on-the_page|different components for different pages]].
  
 GetSimple components are created, edited and saved here. GetSimple components are created, edited and saved here.
 Saved components are shown in the sidebar so that you can jump to the component you want to edit. The php **get_component** tag for each component is shown for easy copy and paste. Saved components are shown in the sidebar so that you can jump to the component you want to edit. The php **get_component** tag for each component is shown for easy copy and paste.
  
-{{:​how_to:​editcomp.jpg|}}+{{:ru:​how_to:​editcomp.png|}} 
 + 
 +=====Sitemap (карта сайта)=====
  
-=====View ​Sitemap=====+GetSimple обладает встроенным генератором файла //Sitemap//. Файл создается автоматически,​ сохраняется под именем //​sitemap.xml//​ в корневом каталоге сайта и обновляется при изменении настроек сайта или страниц. Просмотр и обновление файла доступны через вкладку **Тема** ->​**Просмотр карты сайта**
  
-GetSimple has a built in sitemap ​generatorAn xml sitemap is generated automatically,​ saved as //​sitemap.xml//​ in the root of your site and updated every time either a page or site-setting is changed. You can view and refresh the sitemap via **Theme -> View Sitemap**. ​+==== Возможные проблемы с файлом ​sitemap.xml ​====
  
 +Если при первоначальном создании файла //​sitemap.xml//​ возникают проблемы,​ убедитесь,​ что на сервере установлены корректные права доступа (либо дайте корневому каталогу системы права ''​0755''​ или ''​0777''​). В случае,​ если установка прав не помогла,​ создайте в корневом каталоге системы (там, где располагается [[ru:​config:​gsconfig|gsconfig.php]]) пустой файл с именем //​sitemap.xml//,​ дайте ему права доступа ''​0777''​ и попробуйте сгенерировать карту сайта заново,​ кликнув пункт меню **Тема** -> **Просмотр карты сайта**
 +==== Пинг поисковых систем ====
  
-==== Troubleshooting ==== +По умолчаниюпри создании карты сайта ​(sitemap.xml), система пингует несколько основных поисковиковЭта опция может быть выключена в файле ​[[ru:​config:​gsconfig|gsconfig.php]], ​для этого достаточно раскомментировать строку ​ **GSDONOTPING**.
-if you are having trouble creating your first sitemapensure that your server has the correct permissions ​(try CHMODing the root installation folder to either ''​0755''​ or ''​0777''​). If that doesn'​t work, create a blank file within the root of your instllation (next to [[ru:​config:​gsconfig|gsconfig.php]]) with the filename of ''​sitemap.xml''​. CHMOD that file to ''​0777''​then go back and try to regenerate the sitemap using the menu link shown above.+
  
-==== Advanced ==== +Отключить автоматическое создание карты сайта (sitemap) можно с помощью включения настройки **GSNOSITEMAP** в том же файле ​[[ru:​config:​gsconfig|gsconfig.php]]
-By default, when you create a sitemap, the system pings all the major search engines. You can turn this off within ​[[ru:​config:​gsconfig|gsconfig.php]] ​file by enabling the constant **GSDONOTPING**+
  
-You can disable sitemap generation in [[ru:​config:​gsconfig|gsconfig.php]] with **GSNOSITEMAP** 
  
  
ru/how_to/theme_editor.txt · Last modified: 2013/10/09 04:41 by Arkady