diff --git a/functions.php b/functions.php index 886e67d..5384878 100644 --- a/functions.php +++ b/functions.php @@ -369,6 +369,19 @@ classes: { ); $form->addInput($mdrPray); + + $RandomLinks = new Typecho_Widget_Helper_Form_Element_Radio( + 'RandomLinks', + array( + true => _t('开'), + false => _t('关') + ), + ture, + _t('友情链接随机排序'), + _t('开启后友情链接将按照随机顺序排列') + ); + $form->addInput($RandomLinks); + $mdrHitokoto = new Typecho_Widget_Helper_Form_Element_Radio( 'mdrHitokoto', array( diff --git a/page-links.php b/page-links.php index 6076d66..a816903 100644 --- a/page-links.php +++ b/page-links.php @@ -31,6 +31,7 @@ need('comments.php'); ?> need('footer.php'); ?> +options->RandomLinks): ?> \ No newline at end of file + + \ No newline at end of file diff --git a/style.css b/style.css index 1ba4171..47d658c 100644 --- a/style.css +++ b/style.css @@ -730,13 +730,13 @@ button, input[type=submit], .menu-parent a, .rewards a { margin:0 } #catalog-col.catalog { - right:50px; + right:80px; margin:0 } } @media(max-width:990px) { #catalog-col.catalog { - right:45px + right:70px } } @media(max-width:768px) {