Skip to content

Commit

Permalink
2014/10/01 Fix bug and improve theme
Browse files Browse the repository at this point in the history
Fix bug that report error when MAIN_SITE_URL contains numbers.
Change theme icon into Web Font.
  • Loading branch information
qakcn committed Oct 1, 2014
1 parent 8848876 commit 2676009
Show file tree
Hide file tree
Showing 10 changed files with 107 additions and 335 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -3,3 +3,4 @@ thumbs/*
*~
apikey/*
config.timestamp
themes/default/fonts/iconfont.css
2 changes: 1 addition & 1 deletion engine.php
Expand Up @@ -64,7 +64,7 @@ function check_config() {
}
if(!(
defined('MAIN_SITE_URL') &&
preg_match('/^https?:\/\/[a-zA-Z_\-.]+(\/.*)?$/', MAIN_SITE_URL)
preg_match('/^https?:\/\/[a-zA-Z0-9_\-.]+(\/.*)?$/', MAIN_SITE_URL)
)) {
exit('MAIN_SITE_URL set incorrectly.');
}
Expand Down
Binary file added themes/default/fonts/iconfont.eot
Binary file not shown.
68 changes: 68 additions & 0 deletions themes/default/fonts/iconfont.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added themes/default/fonts/iconfont.ttf
Binary file not shown.
Binary file added themes/default/fonts/iconfont.woff
Binary file not shown.
4 changes: 2 additions & 2 deletions themes/default/header.php
Expand Up @@ -57,11 +57,11 @@
<div id="logo"></div>
<?php if(!is_page()) { ?>
<div id="upload_button_wrap">
<button class="affirmative" id="upload_button" title="<?=__('Upload files') ?>"><span id="add_mark">&#10133;</span><span id="close_mark">&#10060;</span><span class="hide_mobile">&nbsp;<?=__('Upload') ?></span></button>
<button class="affirmative" id="upload_button" title="<?=__('Upload files') ?>"><span class="hide_mobile">&nbsp;<?=__('Upload') ?></span></button>
</div>
<?php } ?>
<div id="lang_sel">
<img src="<?=get_url().theme_path() ?>images/WorldMap.svg"><span class="hide_mobile"><?=__('Language') ?></span>
<span class="hide_mobile"><?=__('Language') ?></span>
<ul><?=get_langlist() ?></ul>
</div>
</header>

0 comments on commit 2676009

Please sign in to comment.