Skip to content
This repository has been archived by the owner on Jan 28, 2024. It is now read-only.

Commit

Permalink
LTR Support
Browse files Browse the repository at this point in the history
  • Loading branch information
qasedak committed Jan 1, 2021
1 parent 58f37a2 commit 14447c5
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 13 deletions.
40 changes: 28 additions & 12 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
42 changes: 42 additions & 0 deletions ltr.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1271,7 +1271,7 @@ resize: none;
}

#post-close {
font-size: 20px;
font-size: 25px;
position: fixed;
left: 40px;
top: -3px;
Expand Down

0 comments on commit 14447c5

Please sign in to comment.