OneThird CMS v1.3x system theme from unbreakable is it was upgraded from v7 to v8
System theme is a common theme that provides the system management functions for the OneThird CMS
System toolbar, dialog, it will provide the basic functions and design such as bread crumb (CSS)
Files that make up the
/css/base.css
/css/onethird.8.css
/css/comm.less
/files/1/admin.tpl
/files/1/admin.css
/files/1/theme.php
It is
System theme, during the installation of OneThird CMS, will be copied from / tpl folder
System theme is backward compatible with the previous theme (v7) I can also be used
v8 system theme in the state that was previously installed remains v7, you can ensure the best in the state to leave before as long as you do not do the migration
In v8, is aware of the membership website, it now displays the shape of the system toolbar at the top of the page
as Changes from v7
onethird-pagination, which has been defined in onethird.7.css, the onethird-dialog, we have been moved to the theme.css
Program that controls the theme, are summarized in theme.php, system toolbar-related programs have been redesigned
In function custom_toolbar () in theme.php, I can be done menu Add / Remove toolbar
$ Html ['system_toolbar'] ['MENU'] Basic menu in ['1']
$ Html ['system_toolbar'] ['MENU'] Advanced menu to ['10']
$ Html ['system_toolbar'] ['MENU'] System menu in the '11']
It There is set
In function get_main_visual () in theme.php, you can set the image of the main visual
Settings can be done in the theme manager
In function get_main_catch_str () in theme.php, you can set the catch copy of the main visual next
Settings can be done in the theme manager
In function get_gnav in theme.php (), you can set the global navigation
Settings can be done in the theme manager
get_main_visual, get_main_catch_str, get_gnav if you do not use it you may want to remove
a site that has been built using the v7, do not be operating to influence remains v7 even overwrite the v1.30
To migrate v7 to v8, please change the following locations
I replaced the files / 1 / data / theme.php of system_toolbar () the v1.3x / tpl of theme.php of system_toolbar ()
At the same time, you want to copy the custom_toolbar ()
I want to copy over the comm.less of v1.3x / tpl to files / 1 / data /
Move to beginning position of of to ('system_toolbar') from position
Please change in the same way ※ also template admin.tpl for management screen
function in custom_toolbar (), you can freely change the menu
Change, please change the $ html ['system_toolbar'] of the global variable directly
$ Html hierarchy of ['system_toolbar'], you can make up to two hierarchy under one
Array of keys or in the sequence, it is treated as a title when you add the item called ['caption']
Example:
Add the item called Google on the menu bar, click Go to Google
$ Html ['system_toolbar'] [] = "<a href='http://google.com'> Google </a>";
Add the item called Google on the menu bar, click Go to Google
$ Html ['system_toolbar'] ['Google'] [] = "<a href='http://google.com'> Google </a>";
Add the item called Search in the menu bar, is displayed sub-menu containing the Google Click
$ Html ['system_toolbar'] ['Search'] [] = "<a href='http://google.com'> Google </a>";
Add the item called Search in the menu bar, is displayed sub-menu containing the Google Click
so that Yahoo can be selected when you click on the sub-menu of other
$ Html ['system_toolbar'] ['Search'] [] = "<a href='http://google.com'> Google </a>";
$ Html ['system_toolbar'] ['Search'] ['other'] [] = "<a href='http://Yahoo.co.jp'> Yahoo </a>";
expand it and put the option to expand the lower menu from the beginning
Further, when attaching a folder icon, it is possible to put the icon
$ Html ['system_toolbar'] ['Search'] [] = "<a href='http://google.com'> Google </a>";
$ Html ['system_toolbar'] ['Search'] ['other'] [] = "<a href='http://Yahoo.co.jp'> Yahoo </a>";
$ Html ['system_toolbar'] ['Search'] ['other'] ['expand'] = true;
$ Html ['system_toolbar'] ['Search'] ['other'] ['icon'] = $ ut-> icon ('folder');