| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* remove photo class from gravatar |
| 5 |
* |
| 6 |
* @author Alimir |
| 7 |
* @since 1.7 |
| 8 |
* @return String |
| 9 |
*/ |
| 10 |
add_filter('get_avatar', 'remove_photo_class'); |
| 11 |
function remove_photo_class($avatar) { |
| 12 |
return str_replace(' photo', ' gravatar', $avatar); |
| 13 |
} |
| 14 |
|
| 15 |
/** |
| 16 |
* Create WP ULike About page |
| 17 |
* |
| 18 |
* @author Alimir |
| 19 |
* @since 1.7 |
| 20 |
* @updated 2.1 |
| 21 |
* @return String |
| 22 |
*/ |
| 23 |
function wp_ulike_about_page() { |
| 24 |
?> |
| 25 |
|
| 26 |
<style> |
| 27 |
.ulike-badge{ |
| 28 |
background: url('<?php echo plugins_url('/assets', dirname(__FILE__)); ?>/img/wp-ulike-badge.png') no-repeat scroll center 24px / 95px 95px #F3643A; |
| 29 |
color: #fff; |
| 30 |
font-size: 14px; |
| 31 |
text-align: center; |
| 32 |
font-weight: 600; |
| 33 |
margin: 5px 0px 0px; |
| 34 |
padding-top: 120px; |
| 35 |
height: 40px; |
| 36 |
display: inline-block; |
| 37 |
width: 150px; |
| 38 |
text-rendering: optimizelegibility; |
| 39 |
box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.2); |
| 40 |
} |
| 41 |
.boxstyle { |
| 42 |
padding: 1px 12px; |
| 43 |
background-color: #FFF; |
| 44 |
box-shadow: 0px 1px 1px 0px rgba(0, 0, 0, 0.1); |
| 45 |
} |
| 46 |
.wp_ulike_version { |
| 47 |
display: inline-block; |
| 48 |
position: absolute; |
| 49 |
top: 54px; |
| 50 |
left:0; |
| 51 |
padding: 5px 10px; |
| 52 |
background: #e74c3c; |
| 53 |
color: #FFF; |
| 54 |
font-size: 13px; |
| 55 |
font-weight: normal; |
| 56 |
} |
| 57 |
<?php if(is_rtl()): ?> |
| 58 |
.about-wrap .ulike-badge { |
| 59 |
position: absolute; |
| 60 |
top: 0px; |
| 61 |
left: 0px; |
| 62 |
} |
| 63 |
<?php else: ?> |
| 64 |
.about-wrap .ulike-badge { |
| 65 |
position: absolute; |
| 66 |
top: 0px; |
| 67 |
right: 0px; |
| 68 |
} |
| 69 |
<?php endif; ?> |
| 70 |
</style> |
| 71 |
|
| 72 |
<div class="wrap about-wrap"> |
| 73 |
|
| 74 |
<h1><?php echo _e('Welcome to WP ULike','alimir') . ' ' . wp_ulike_get_version(); ?></h1> |
| 75 |
|
| 76 |
<div class="about-text"><?php echo _e('Thank you for choosing WP ULike! This version is our leanest and most powerful version yet.', 'alimir') ; ?><br /> |
| 77 |
<a target="_blank" href="http://preview.alimir.ir/developer/wp-ulike/"> <?php _e('Visit our homepage','alimir'); ?></a> |
| 78 |
</div> |
| 79 |
<div class="ulike-badge"><?php echo _e('Version','alimir') . ' ' . wp_ulike_get_version(); ?></div> |
| 80 |
|
| 81 |
<h2 class="nav-tab-wrapper"> |
| 82 |
<a class="nav-tab <?php if(!isset($_GET["credit"])) echo 'nav-tab-active'; ?>" href="admin.php?page=wp-ulike-about"><?php echo _e('Getting Started','alimir'); ?></a> |
| 83 |
<a class="nav-tab <?php if(isset($_GET["credit"])) echo 'nav-tab-active'; ?>" href="admin.php?page=wp-ulike-about&credit=true"><?php echo _e('Credits','alimir'); ?></a> |
| 84 |
<a target="_blank" class="nav-tab" href="https://wordpress.org/support/plugin/wp-ulike"><?php echo _e('Support','alimir'); ?></a> |
| 85 |
<a target="_blank" class="nav-tab" href="https://wordpress.org/plugins/wp-ulike/faq/"><?php echo _e('FAQ','alimir'); ?></a> |
| 86 |
<a target="_blank" class="nav-tab" href="https://wordpress.org/support/view/plugin-reviews/wp-ulike"><?php echo _e('Reviews','alimir'); ?></a> |
| 87 |
<a target="_blank" class="nav-tab" href="http://preview.alimir.ir/contact/"><?php echo _e('Contact','alimir'); ?></a> |
| 88 |
</h2> |
| 89 |
|
| 90 |
<?php if(!isset($_GET["credit"])): ?> |
| 91 |
|
| 92 |
<div class="changelog"> |
| 93 |
<img class="about-overview-img" src="<?php echo plugins_url('/assets', dirname(__FILE__)); ?>/img/wp-ulike-banner.png" alt="WP ULike" /> |
| 94 |
</div> |
| 95 |
|
| 96 |
<hr /> |
| 97 |
|
| 98 |
<div class="changelog"> |
| 99 |
<h2 class="about-headline-callout"><?php echo _e('Novelty Of WP ULike','alimir'); ?></h2> |
| 100 |
|
| 101 |
<div class="feature-section col two-col"> |
| 102 |
<div> |
| 103 |
<h4><?php echo _e('bbPress Likes Support + Options & Statistics Tools','alimir'); ?> <small class="wp_ulike_version">WP ULike 2.2</small></h4> |
| 104 |
<img style="width:100%" src="<?php echo plugins_url('/assets', dirname(__FILE__)); ?>/img/new-tools/bbpress-support.png" alt="WP ULike" /> |
| 105 |
</div> |
| 106 |
|
| 107 |
<div class="last-feature"> |
| 108 |
<h4><?php echo _e('Added More Than 20 Language Files','alimir'); ?> <small class="wp_ulike_version">WP ULike 2.2</small></h4> |
| 109 |
<a target="_blank" href="https://www.transifex.com/projects/p/wp-ulike/" title"WP-Translations"><img style="width:100%" src="<?php echo plugins_url('/assets', dirname(__FILE__)); ?>/img/new-tools/wp-translations.png" alt="WP ULike" /></a> |
| 110 |
</div> |
| 111 |
</div> |
| 112 |
|
| 113 |
|
| 114 |
<div class="feature-section col two-col"> |
| 115 |
<div> |
| 116 |
<h4><?php echo _e('New Statistics Design + Screen Option','alimir'); ?> <small class="wp_ulike_version">WP ULike 2.1</small></h4> |
| 117 |
<img style="width:100%" src="<?php echo plugins_url('/assets', dirname(__FILE__)); ?>/img/new-tools/new-statistics.jpg" alt="WP ULike" /> |
| 118 |
</div> |
| 119 |
|
| 120 |
<div class="last-feature"> |
| 121 |
<h4><?php echo _e('New Statistics Page','alimir'); ?> <small class="wp_ulike_version">WP ULike 2.0</small></h4> |
| 122 |
<img style="width:100%" src="<?php echo plugins_url('/assets', dirname(__FILE__)); ?>/img/new-tools/ulike-stats.png" alt="WP ULike" /> |
| 123 |
</div> |
| 124 |
</div> |
| 125 |
|
| 126 |
|
| 127 |
<div class="feature-section col two-col"> |
| 128 |
<div> |
| 129 |
<h4><?php echo _e('New Class-based programming','alimir'); ?> <small class="wp_ulike_version">WP ULike 2.0</small></h4> |
| 130 |
<img style="width:100%" src="<?php echo plugins_url('/assets', dirname(__FILE__)); ?>/img/new-tools/new-classes.jpg" alt="WP ULike" /> |
| 131 |
</div> |
| 132 |
|
| 133 |
<div class="last-feature"> |
| 134 |
<h4><?php echo _e('Most Liked Comments','alimir'); ?> <small class="wp_ulike_version">WP ULike 1.9</small></h4> |
| 135 |
<img style="width:100%" src="<?php echo plugins_url('/assets', dirname(__FILE__)); ?>/img/new-tools/most-liked-comments-widget.jpg" alt="WP ULike" /> |
| 136 |
</div> |
| 137 |
</div> |
| 138 |
|
| 139 |
<div class="feature-section col three-col"> |
| 140 |
<div> |
| 141 |
<h4><?php echo _e('Logging Method','alimir'); ?> <small class="wp_ulike_version">WP ULike 1.9</small></h4> |
| 142 |
<img style="width:100%" src="<?php echo plugins_url('/assets', dirname(__FILE__)); ?>/img/new-tools/loggin-method-option.jpg" alt="WP ULike" /> |
| 143 |
</div> |
| 144 |
|
| 145 |
<div> |
| 146 |
<h4><?php echo _e('New options in logs pages','alimir'); ?> <small class="wp_ulike_version">WP ULike 1.9</small></h4> |
| 147 |
<img style="width:100%" src="<?php echo plugins_url('/assets', dirname(__FILE__)); ?>/img/new-tools/logs-pages-options.jpg" alt="WP ULike" /> |
| 148 |
</div> |
| 149 |
|
| 150 |
<div class="last-feature"> |
| 151 |
<h4><?php echo _e('New setting panel','alimir'); ?> <small class="wp_ulike_version">WP ULike 1.8</small></h4> |
| 152 |
<img style="width:100%" src="<?php echo plugins_url('/assets', dirname(__FILE__)); ?>/img/new-tools/new-setting.png" alt="WP ULike" /> |
| 153 |
</div> |
| 154 |
</div> |
| 155 |
|
| 156 |
<div class="feature-section col three-col"> |
| 157 |
<div> |
| 158 |
<h4><?php echo _e('Better coding on plugin files','alimir'); ?> <small class="wp_ulike_version">WP ULike 1.8</small></h4> |
| 159 |
<img style="width:100%" src="<?php echo plugins_url('/assets', dirname(__FILE__)); ?>/img/new-tools/new-coding.png" alt="WP ULike" /> |
| 160 |
</div> |
| 161 |
|
| 162 |
<div> |
| 163 |
<h4><?php echo _e('Buddypress likes support','alimir'); ?> <small class="wp_ulike_version">WP ULike 1.7</small></h4> |
| 164 |
<img style="width:100%" src="<?php echo plugins_url('/assets', dirname(__FILE__)); ?>/img/new-tools/activity-likes.png" alt="WP ULike" /> |
| 165 |
</div> |
| 166 |
|
| 167 |
<div class="last-feature"> |
| 168 |
<h4><?php echo _e('Likes logs support','alimir'); ?> <small class="wp_ulike_version">WP ULike 1.7</small></h4> |
| 169 |
<img style="width:100%" src="<?php echo plugins_url('/assets', dirname(__FILE__)); ?>/img/new-tools/likes-logs.png" alt="WP ULike" /> |
| 170 |
</div> |
| 171 |
</div> |
| 172 |
|
| 173 |
</div> |
| 174 |
|
| 175 |
<?php else: ?> |
| 176 |
|
| 177 |
<p class="about-description"><?php echo _e('WP ULike is created by many love and time. Enjoy it :)','alimir'); ?></p> |
| 178 |
<h4 class="wp-people-group"><?php echo _e('Project Leaders','alimir'); ?></h4> |
| 179 |
<ul class="wp-people-group"> |
| 180 |
<li class="wp-person" id="wp-person-alimirzaei"> |
| 181 |
<a href="http://about.alimir.ir"><?php echo get_avatar( 'info@alimir.ir', 64 ); ?></a> |
| 182 |
<a class="web" href="https://profiles.wordpress.org/alimir/">Ali Mirzaei</a> |
| 183 |
<span class="title"><?php echo _e('Project Lead & Developer','alimir'); ?></span> |
| 184 |
</li> |
| 185 |
</ul> |
| 186 |
|
| 187 |
<h4 class="wp-people-group"><?php _e('Translations','alimir'); ?></h4> |
| 188 |
<ul> |
| 189 |
<li>English (United States)</li> |
| 190 |
<li>Persian (Iran)</li> |
| 191 |
<li>French (France)</li> |
| 192 |
<li>Chinese (China)</li> |
| 193 |
<li>Chinese (Taiwan)</li> |
| 194 |
<li>Dutch (Netherlands) </li> |
| 195 |
<li>Arabic</li> |
| 196 |
<li>Portuguese (Brazil)</li> |
| 197 |
<li>Turkish (Turkey)</li> |
| 198 |
<li>Greek</li> |
| 199 |
<li>Russian (Russia)</li> |
| 200 |
<li>Spanish (Spain)</li> |
| 201 |
<li>German (Germany)</li> |
| 202 |
<li>Japanese</li> |
| 203 |
<li>Romanian (Romania)</li> |
| 204 |
<li>Slovak (Slovakia)</li> |
| 205 |
<li>Czech (Czech Republic)</li> |
| 206 |
<li>Hebrew (Israel)</li> |
| 207 |
<li>Italian (Italy)</li> |
| 208 |
<li>Polish (Poland)</li> |
| 209 |
<li>Finnish</li> |
| 210 |
<li>Hungarian (Hungary)</li> |
| 211 |
<li>Lithuanian (Lithuania)</li> |
| 212 |
<li>Indonesian (Indonesia)</li> |
| 213 |
<li>Khmer</li> |
| 214 |
<li>Norwegian Bokmal (Norway)</li> |
| 215 |
<li>Portuguese (Portugal)</li> |
| 216 |
<li>Swedish (Sweden)</li> |
| 217 |
<li>Danish (Denmark)</li> |
| 218 |
<li>Estonian</li> |
| 219 |
<li>Korean (Korea)</li> |
| 220 |
<li>Vietnamese</li> |
| 221 |
<li>Basque</li> |
| 222 |
<li>Bosnian (Bosnia and Herzegovina)</li> |
| 223 |
<li>English (United Kingdom)</li> |
| 224 |
</ul> |
| 225 |
|
| 226 |
<p class="about-description"><?php _e('Would you like to help translate the plugin into more languages?','alimir'); ?> <a target="_blank" href="https://www.transifex.com/projects/p/wp-ulike/" title"WP-Translations">[<?php _e('Join our WP-Translations Community','alimir'); ?>]</a></p> |
| 227 |
|
| 228 |
<h4 class="wp-people-group"><?php echo _e('Other Plugins','alimir'); ?></h4> |
| 229 |
<ul class="wp-people-group"> |
| 230 |
<li class="wp-person" id="wp-person-alimirzaei"> |
| 231 |
<a target="_blank" href="https://wordpress.org/plugins/blue-login-style"><img class="gravatar" src="<?php echo plugins_url('/assets', dirname(__FILE__)); ?>/img/blue-login-themes.jpg" alt="Blue Login Themes" /></a> |
| 232 |
<a class="web" href="https://profiles.wordpress.org/alimir/">Ali Mirzaei</a> |
| 233 |
<span class="title">Blue Login Themes</span> |
| 234 |
</li> |
| 235 |
<li class="wp-person" id="wp-person-alimirzaei"> |
| 236 |
<a target="_blank" href="https://wordpress.org/plugins/custom-fields-notifications/"><img class="gravatar" src="<?php echo plugins_url('/assets', dirname(__FILE__)); ?>/img/custom-fileds-notifications.png" alt="Custom Fields Notifications" /></a> |
| 237 |
<a class="web" href="https://profiles.wordpress.org/alimir/">Ali Mirzaei</a> |
| 238 |
<span class="title">Custom Fields Notifications</span> |
| 239 |
</li> |
| 240 |
<li class="wp-person" id="wp-person-alimirzaei"> |
| 241 |
<a target="_blank" href="http://wordpress.org/plugins/ajax-bootmodal-login/"><img class="gravatar" src="<?php echo plugins_url('/assets', dirname(__FILE__)); ?>/img/ajax-bootmodal-login.jpg" alt="Ajax BootModal Login" /></a> |
| 242 |
<a class="web" href="https://profiles.wordpress.org/alimir/">Ali Mirzaei</a> |
| 243 |
<span class="title">Ajax BootModal Login</span> |
| 244 |
</li> |
| 245 |
</ul> |
| 246 |
|
| 247 |
<h4 class="wp-people-group"><?php _e('Like this plugin?','alimir'); ?></h4> |
| 248 |
<div class="boxstyle"><p><strong><?php _e('Show your support by Rating 5 Star in <a href="http://wordpress.org/plugins/wp-ulike"> Plugin Directory reviews</a>','alimir'); ?></strong></p></div> |
| 249 |
|
| 250 |
<?php endif; ?> |
| 251 |
|
| 252 |
</div> |
| 253 |
<?php |
| 254 |
} |