html-about.php
205 lines
| 1 | <?php |
| 2 | |
| 3 | defined( 'ABSPATH' ) or exit( 'No direct script access allowed' ); |
| 4 | |
| 5 | /** |
| 6 | * To not show team members in GitHub Contributors, you must set the array ID equal to the GitHub username |
| 7 | * |
| 8 | * Available brand logos: |
| 9 | * behance |
| 10 | * codepen |
| 11 | |
| 12 | * github |
| 13 | |
| 14 | |
| 15 | |
| 16 | * medium |
| 17 | * stack-overflow |
| 18 | * telegram |
| 19 | * tiktok |
| 20 | |
| 21 | * wordpress |
| 22 | * x-twitter |
| 23 | * youtube |
| 24 | */ |
| 25 | $team_members = array( |
| 26 | 'man4toman' => array( |
| 27 | 'name' => esc_html__( 'Morteza Geransayeh', 'wp-parsidate' ), |
| 28 | 'role' => esc_html__( 'Developer', 'wp-parsidate' ), |
| 29 | 'avatar' => 'https://avatars.githubusercontent.com/u/935397', |
| 30 | 'social' => array( |
| 31 | 'x-twitter' => 'https://x.com/man4toman/', |
| 32 | 'linkedin' => 'https://www.linkedin.com/in/morteza-geransayeh-27a70829/', |
| 33 | 'github' => 'https://github.com/man4toman', |
| 34 | ), |
| 35 | ), |
| 36 | 'saeed_fard' => array( |
| 37 | 'name' => esc_html__( 'Saeed Fard', 'wp-parsidate' ), |
| 38 | 'role' => esc_html__( 'Developer', 'wp-parsidate' ), |
| 39 | 'avatar' => 'https://avatars.githubusercontent.com/u/8706783', |
| 40 | 'social' => array( |
| 41 | 'x-twitter' => 'https://x.com/saeed_fard', |
| 42 | 'linkedin' => 'https://www.linkedin.com/in/saeed-fard/', |
| 43 | 'github' => 'https://github.com/SaeedFard', |
| 44 | ) |
| 45 | ), |
| 46 | 'yazdaniwp' => array( |
| 47 | 'name' => esc_html__( 'HamidReza Yazdani', 'wp-parsidate' ), |
| 48 | 'role' => esc_html__( 'Developer', 'wp-parsidate' ), |
| 49 | 'avatar' => 'https://avatars.githubusercontent.com/u/40775953', |
| 50 | 'social' => array( |
| 51 | 'x-twitter' => '#https://twitter.com/yazdani_wp', |
| 52 | 'linkedin' => 'https://www.linkedin.com/in/hamid-reza-yazdani/', |
| 53 | 'github' => 'https://github.com/hamidrezayazdani', |
| 54 | ), |
| 55 | ), |
| 56 | 'lord_viper' => array( |
| 57 | 'name' => esc_html__( 'Mobin Ghasempoor', 'wp-parsidate' ), |
| 58 | 'role' => esc_html__( 'Developer', 'wp-parsidate' ), |
| 59 | 'avatar' => 'https://avatars.githubusercontent.com/u/5211249', |
| 60 | 'social' => array( |
| 61 | 'x-twitter' => 'https://twitter.com/GhasempoorMobin', |
| 62 | 'linkedin' => 'https://www.linkedin.com/in/mobin-ghasempoor-07580788/', |
| 63 | 'github' => 'https://github.com/lord-viper', |
| 64 | ) |
| 65 | ), |
| 66 | 'parsakafi' => array( |
| 67 | 'name' => esc_html__( 'Parsa Kafi', 'wp-parsidate' ), |
| 68 | 'role' => esc_html__( 'Developer', 'wp-parsidate' ), |
| 69 | 'avatar' => 'https://avatars.githubusercontent.com/u/7957513', |
| 70 | 'social' => array( |
| 71 | 'x-twitter' => 'https://x.com/parsakafi', |
| 72 | 'linkedin' => 'https://www.linkedin.com/in/parsakafi/', |
| 73 | 'github' => 'https://github.com/parsakafi', |
| 74 | ), |
| 75 | ), |
| 76 | 'mohsengham' => array( |
| 77 | 'name' => esc_html__( 'Mohsen Ghiasi', 'wp-parsidate' ), |
| 78 | 'role' => esc_html__( 'DevOps', 'wp-parsidate' ), |
| 79 | 'avatar' => 'https://secure.gravatar.com/avatar/64d4e212c9263a72b2fcadbe3951342f?s=300&d=mm&r=g', |
| 80 | 'social' => array( |
| 81 | 'x-twitter' => 'https://x.com/mohsengham', |
| 82 | 'linkedin' => 'https://www.linkedin.com/in/mohsen-ghiasi/', |
| 83 | ) |
| 84 | ) |
| 85 | // Add more team members as needed |
| 86 | ); |
| 87 | |
| 88 | $social_accounts = array( |
| 89 | 'instagram' => 'https://www.instagram.com/irwpmeetup', |
| 90 | 'telegram' => 'https://t.me/wp_Community', |
| 91 | 'x-twitter' => 'https://x.com/wpparsi', |
| 92 | 'linkedin' => 'https://www.linkedin.com/company/wp-parsi', |
| 93 | 'github' => 'https://github.com/wordpress-parsi/wp-parsidate/', |
| 94 | ); |
| 95 | ?> |
| 96 | <section class="about-us wpp-team"> |
| 97 | <h1><?php esc_html_e( 'About Us', 'wp-parsidate' ); ?></h1> |
| 98 | <p>افزونه ش� |
| 99 | سی ساز پارسی دیت یکی از ابزارهای کاربردی و � |
| 100 | فید برای کاربران وردپرس فارسی است که ا� |
| 101 | کان ش� |
| 102 | سی کردن تاریخ وردپرس را برای کاربرانش فراه� |
| 103 | � |
| 104 | یکند. این افزونه در سال ۱۳۹۲ توسط تی� |
| 105 | توسعه وردپرس پارسی ایجاد شد و با هدف سادهسازی فرآیند ن� |
| 106 | ایش تاریخها در وبسایتهای فارسی زبان به کار � |
| 107 | یرود.</p> |
| 108 | <p>این افزونه در طی سالها � |
| 109 | ورد استفاده � |
| 110 | حبوبترین سایتهای وردپرسی فارسی زبان بوده و افراد بسیاری در توسعه این افزونه � |
| 111 | شارکت داشتهاند. پارسیدیت در ت� |
| 112 | ا� |
| 113 | این � |
| 114 | دت به صورت رایگان توسعه داده شده و در اختیار کاربران بوده و توسط تی� |
| 115 | وردپرس پارسی پشتیبانی شده است.</p> |
| 116 | <p>این افزونه به صورت � |
| 117 | نظ� |
| 118 | آپدیت � |
| 119 | یشود و ه� |
| 120 | واره نیازهای کاربران وردپرس فارسی را تحت پوشش قرار � |
| 121 | یدهد.</p> |
| 122 | <p>برخی از ویژگیهای � |
| 123 | ه� |
| 124 | افزونه:<br> |
| 125 | - ش� |
| 126 | سیسازی تاریخ وردپرس و ووکا� |
| 127 | رس<br> |
| 128 | - ش� |
| 129 | سیسازی افزونههای پرطرفدار وردپرس<br> |
| 130 | - سازگاری با آخرین نسخههای وردپرس و ووکا� |
| 131 | رس<br> |
| 132 | - نصب و استفاده آسان و کاربردی<br> |
| 133 | - اضافه کردن ا� |
| 134 | کانات � |
| 135 | ورد نیاز برای وبسایتهای فارسی</p> |
| 136 | <div class="follow-us"> |
| 137 | <h3><?php esc_html_e( 'Follow Us', 'wp-parsidate' ); ?></h3> |
| 138 | <div class="social-links"> |
| 139 | <?php foreach ( $social_accounts as $platform => $url ) : ?> |
| 140 | <a href="<?php echo esc_url( $url ); ?>" target="_blank"><img src="<?php echo esc_url( WP_PARSI_URL . "assets/svg/$platform-brands-solid.svg" ); ?>" alt="<?php echo esc_attr( ucfirst( $platform ) ); ?>"></a> |
| 141 | <?php endforeach; ?> |
| 142 | </div> |
| 143 | </div> |
| 144 | </section> |
| 145 | |
| 146 | <section class="wpp-team"> |
| 147 | <h1><?php esc_html_e( 'Our Team', 'wp-parsidate' ); ?></h1> |
| 148 | |
| 149 | <div class="contributer-list"> |
| 150 | <div class="contributer-list__track"> |
| 151 | <div class="contributer-list__grid"> |
| 152 | |
| 153 | <?php foreach ( $team_members as $member ) : ?> |
| 154 | <div class="contributer-list-item"> |
| 155 | <div div="" class="contributer-list-info"> |
| 156 | <ul class="contributer-list-tags"> |
| 157 | <?php foreach ( $member['social'] as $platform => $url ) : ?> |
| 158 | <li class="contributer-list-tag"><a href="<?php echo esc_url( $url ); ?>"><img src="<?php echo esc_url( WP_PARSI_URL . "assets/svg/$platform-brands-solid.svg" ); ?>" width="15" height="15"></a></li> |
| 159 | <?php endforeach; ?> |
| 160 | </ul> |
| 161 | </div> |
| 162 | |
| 163 | <div div="" class="contributer-list-image"> |
| 164 | <img alt="<?php echo esc_attr( $member['name'] ); ?>" width="300" height="300" src="<?php echo esc_url( $member['avatar'] ); ?>" loading="lazy"> |
| 165 | </div> |
| 166 | |
| 167 | <div div="" class="contributer-list-name"><?php echo esc_html( $member['name'] ); ?></div> |
| 168 | <div div="" class="contributer-list-title"><?php echo esc_html( $member['role'] ); ?></div> |
| 169 | |
| 170 | </div> |
| 171 | <?php endforeach; ?> |
| 172 | </div> |
| 173 | </div> |
| 174 | </div> |
| 175 | |
| 176 | </section> |
| 177 | |
| 178 | <section class="wpp-contributors"> |
| 179 | <h2><?php esc_html_e( 'GitHub Contributors', 'wp-parsidate' ); ?></h2> |
| 180 | <div id="wpp-contributors-list"> |
| 181 | <?php |
| 182 | $response = wp_remote_get( 'https://api.github.com/repos/wordpress-parsi/wp-parsidate/contributors' ); |
| 183 | if ( is_array( $response ) && ! is_wp_error( $response ) ) { |
| 184 | $contributors = json_decode( wp_remote_retrieve_body( $response ) ); |
| 185 | |
| 186 | foreach ( $contributors as $contributor ) { |
| 187 | // Skip if the contributor is a team member |
| 188 | if ( array_key_exists( $contributor->login, $team_members ) ) { |
| 189 | continue; |
| 190 | } |
| 191 | |
| 192 | echo '<div class="wpp-contributor">'; |
| 193 | echo '<a href="' . esc_url( $contributor->html_url ) . '" target="_blank">'; |
| 194 | echo '<img src="' . esc_url( $contributor->avatar_url ) . '" alt="' . esc_attr( $contributor->login ) . '" loading="lazy">'; |
| 195 | echo '<div class="tooltip">' . esc_html( $contributor->login ) . '</div>'; |
| 196 | echo '</a>'; |
| 197 | echo '</div>'; |
| 198 | } |
| 199 | } else { |
| 200 | echo '<p>' . esc_html__( 'Unable to fetch contributors.', 'wp-parsidate' ) . '</p>'; |
| 201 | } |
| 202 | ?> |
| 203 | </div> |
| 204 | </section> |
| 205 |