diff --git a/functions.php b/functions.php index b3ab041..e63d0f5 100644 --- a/functions.php +++ b/functions.php @@ -4030,18 +4030,34 @@ function pinc_setup() } // predefined colors - wp_insert_term('آبی','color',array('slug' => 'blue',)); - wp_insert_term('قرمز','color',array('slug' => 'red',)); - wp_insert_term('بنفش','color',array('slug' => 'violet',)); - wp_insert_term('خاکستری','color',array('slug' => 'gray',)); - wp_insert_term('زرد','color',array('slug' => 'yellow',)); - wp_insert_term('سبز','color',array('slug' => 'green',)); - wp_insert_term('سفید','color',array('slug' => 'white',)); - wp_insert_term('سیاه','color',array('slug' => 'black',)); - wp_insert_term('صورتی','color',array('slug' => 'pink',)); - wp_insert_term('نارنجی','color',array('slug' => 'orange',)); - wp_insert_term('قهوه ای','color',array('slug' => 'brown',)); - wp_insert_term('کرم','color',array('slug' => 'Moccasin',)); + if (get_locale() == 'fa_IR') { + wp_insert_term('آبی', 'color', array('slug' => 'blue',)); + wp_insert_term('قرمز', 'color', array('slug' => 'red',)); + wp_insert_term('بنفش', 'color', array('slug' => 'violet',)); + wp_insert_term('خاکستری', 'color', array('slug' => 'gray',)); + wp_insert_term('زرد', 'color', array('slug' => 'yellow',)); + wp_insert_term('سبز', 'color', array('slug' => 'green',)); + wp_insert_term('سفید', 'color', array('slug' => 'white',)); + wp_insert_term('سیاه', 'color', array('slug' => 'black',)); + wp_insert_term('صورتی', 'color', array('slug' => 'pink',)); + wp_insert_term('نارنجی', 'color', array('slug' => 'orange',)); + wp_insert_term('قهوه ای', 'color', array('slug' => 'brown',)); + wp_insert_term('کرم', 'color', array('slug' => 'moccasin',)); + } else { + wp_insert_term('Blue', 'color', array('slug' => 'blue',)); + wp_insert_term('Red', 'color', array('slug' => 'red',)); + wp_insert_term('Violet', 'color', array('slug' => 'violet',)); + wp_insert_term('Gray', 'color', array('slug' => 'gray',)); + wp_insert_term('Yellow', 'color', array('slug' => 'yellow',)); + wp_insert_term('Green', 'color', array('slug' => 'green',)); + wp_insert_term('White', 'color', array('slug' => 'white',)); + wp_insert_term('Black', 'color', array('slug' => 'black',)); + wp_insert_term('Pink', 'color', array('slug' => 'pink',)); + wp_insert_term('Orange', 'color', array('slug' => 'orange',)); + wp_insert_term('Brown', 'color', array('slug' => 'brown',)); + wp_insert_term('Moccasin', 'color', array('slug' => 'moccasin',)); + } + update_option("pinc_version", "2.1"); add_action("admin_notices", "pinc_admin_notices"); diff --git a/ltr.css b/ltr.css index f6659b4..0153e3d 100644 --- a/ltr.css +++ b/ltr.css @@ -65,6 +65,14 @@ #masonry .masonry-actionbar { right: -5px; } +.pricewrapper { + right: -1px; + left: inherit; +} +#masonry .masonry-meta-comment { + margin-left: 39px; + margin-right: inherit; +} /* repost */ #post-repin-box .close { margin: 4px 8px 0 0; @@ -96,4 +104,38 @@ } .board-mini h4 { text-align: left; +} +.post-wrapper .post-author-wrapper-header { + margin-left: 60px; + margin-right: inherit; +} +.post-comments .comment-avatar { + float: left; + padding: 3px 10px 0 0; +} +#commentform .textarea-wrapper { + margin-left: 60px; + margin-right: inherit; +} +.post-wrapper #commentform #submit { + float: right; +} +#masonry .masonry-meta input[type="submit"], .post-comments #submit { + margin: 10px 0 10px 60px; +} +.post-wrapper .post-board-photo { + float: left; + margin: 0 5.5px 5.5px 0; +} +.board-mini .board-photo-wrapper { + float: left; + margin: 5px 6px 0 0; +} +.board-mini .board-photo-wrapper:nth-child(5) { + margin-right: 0; + margin-left: inherit; +} +#post-close { + right: 65px; + left: inherit; } \ No newline at end of file diff --git a/style.css b/style.css index 216cd8d..a90b3ef 100644 --- a/style.css +++ b/style.css @@ -1271,7 +1271,7 @@ resize: none; } #post-close { -font-size: 20px; +font-size: 25px; position: fixed; left: 40px; top: -3px;