1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
class EPL_Welcome {
public $minimum_capability = 'edit_published_posts';
public function __construct() {
add_action( 'admin_menu', array( $this, 'admin_menus' ) );
add_action( 'admin_head', array( $this, 'admin_head' ) );
add_action( 'admin_init', array( $this, 'epl_welcome' ) );
}
public function admin_menus() {
add_dashboard_page(
esc_html__( 'Welcome to Easy Property Listings', 'easy-property-listings' ),
esc_html__( 'Welcome to Easy Property Listings', 'easy-property-listings' ),
$this->minimum_capability,
'epl-about',
array( $this, 'about_screen' )
);
add_dashboard_page(
esc_html__( 'Getting started with Easy Property Listings', 'easy-property-listings' ),
esc_html__( 'Getting started with Easy Property Listings', 'easy-property-listings' ),
$this->minimum_capability,
'epl-getting-started',
array( $this, 'getting_started_screen' )
);
add_dashboard_page(
esc_html__( 'The people that build Easy Property Listings', 'easy-property-listings' ),
esc_html__( 'The people that build Easy Property Listings', 'easy-property-listings' ),
$this->minimum_capability,
'epl-credits',
array( $this, 'credits_screen' )
);
}
public function admin_head() {
remove_submenu_page( 'index.php', 'epl-about' );
remove_submenu_page( 'index.php', 'epl-getting-started' );
remove_submenu_page( 'index.php', 'epl-credits' );
$badge_url = EPL_PLUGIN_URL . 'lib/assets/images/epl-wp-badge.png';
?>
<style type="text/css" media="screen">
.epl-badge {
padding-top: 150px;
height: 52px;
width: 185px;
color:
font-weight: bold;
font-size: 14px;
text-align: center;
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
margin: 0 -5px;
background: url('<?php echo esc_url( $badge_url ); ?>') no-repeat;
}
.epl-about-wrap .epl-badge {
position: absolute;
top: 0;
right: 0;
}
.epl-welcome-screenshots {
float: right;
margin-left: 10px!important;
}
</style>
<?php
}
public function tabs() {
$selected = isset( $_GET['page'] ) ? sanitize_text_field( wp_unslash( $_GET['page'] ) ) : 'epl-about';
?>
<h2 class="nav-tab-wrapper">
<a class="nav-tab <?php echo 'epl-about' === $selected ? 'nav-tab-active' : ''; ?>" href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => 'epl-about' ), 'index.php' ) ) ); ?>">
<?php esc_html_e( "What's New", 'easy-property-listings' ); ?>
</a>
<a class="nav-tab <?php echo 'epl-getting-started' === $selected ? 'nav-tab-active' : ''; ?>" href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => 'epl-getting-started' ), 'index.php' ) ) ); ?>">
<?php esc_html_e( 'Getting Started', 'easy-property-listings' ); ?>
</a>
<a class="nav-tab <?php echo 'epl-credits' === $selected ? 'nav-tab-active' : ''; ?>" href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => 'epl-credits' ), 'index.php' ) ) ); ?>">
<?php esc_html_e( 'Credits', 'easy-property-listings' ); ?>
</a>
</h2>
<?php
}
public function parse_readme() {
$file = file_exists( EPL_PLUGIN_PATH . 'readme.txt' ) ? EPL_PLUGIN_PATH . 'readme.txt' : null;
if ( ! $file ) {
$readme = '<p>' . esc_html__( 'No valid changelog was found.', 'easy-property-listings' ) . '</p>';
} else {
$readme = file_get_contents( $file );
$readme = nl2br( esc_html( $readme ) );
$readme = explode( '== Changelog ==', $readme );
$readme = end( $readme );
$readme = preg_replace( '/`(.*?)`/', '<code>\\1</code>', $readme );
$readme = preg_replace( '/[\040]\*\*(.*?)\*\*/', ' <strong>\\1</strong>', $readme );
$readme = preg_replace( '/[\040]\*(.*?)\*/', ' <em>\\1</em>', $readme );
$readme = preg_replace( '/= (.*?) =/', '<h4>\\1</h4>', $readme );
$readme = preg_replace( '/\[(.*?)\]\((.*?)\)/', '<a href="\\2">\\1</a>', $readme );
}
return $readme;
}
public function about_screen() {
list( $display_version ) = explode( '-', EPL_PROPERTY_VER );
?>
<div class="wrap about-wrap epl-about-wrap">
<h1>
<?php
printf( esc_html__( 'Welcome to Easy Property Listings %s', 'easy-property-listings' ), esc_attr( $display_version ) );
?>
</h1>
<div class="about-text">
<?php
printf( esc_html__( 'Thank you for updating to the latest version! Easy Property Listings %s is ready to make your real estate website faster, safer and better!', 'easy-property-listings' ), esc_attr( $display_version ) );
?>
</div>
<div class="epl-badge">
<?php
printf( esc_html__( 'Version %s', 'easy-property-listings' ), esc_attr( $display_version ) );
?>
</div>
<?php $this->tabs(); ?>
<div class="changelog headline-feature epl-clearfix">
<h2><?php esc_html_e( 'Visit Easy Property Listings to Discover What\'s New', 'easy-property-listings' ); ?></h2>
<div class="feature-section">
<p class="lead-description"><?php esc_html_e( 'By removing the what\'s new page we can aid translators in translating the plugin into more languages.', 'easy-property-listings' ); ?></p>
</div>
</div>
<div class="changelog headline-feature">
<h2 id="guide-changelog"><?php esc_html_e( 'Full Change Log', 'easy-property-listings' ); ?></h2>
<div class="feature-section">
<?php echo wp_kses_post( $this->parse_readme() ); ?>
</div>
</div>
<div class="return-to-dashboard">
<a href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => 'epl-settings' ), 'admin.php' ) ) ); ?>"><?php esc_html_e( 'Go to Easy Property Listings Settings', 'easy-property-listings' ); ?></a>
</div>
</div>
<?php
}
public function getting_started_screen() {
list( $display_version ) = explode( '-', EPL_PROPERTY_VER );
?>
<div class="wrap about-wrap epl-about-wrap epl-clearfix">
<h1>
<?php
printf( esc_html__( 'Welcome to Easy Property Listings %s', 'easy-property-listings' ), esc_attr( $display_version ) );
?>
</h1>
<div class="about-text">
<?php
printf( esc_html__( 'Thank you for updating to the latest version! Easy Property Listings %s is ready to make your real estate website faster, safer and better!', 'easy-property-listings' ), esc_attr( $display_version ) );
?>
</div>
<div class="epl-badge">
<?php
printf( esc_html__( 'Version %s', 'easy-property-listings' ), esc_attr( $display_version ) );
?>
</div>
<?php $this->tabs(); ?>
<div class="changelog headline-feature epl-clearfix">
<h2><?php esc_html_e( 'Real Estate Tools for WordPress', 'easy-property-listings' ); ?></h2>
<div class="featured-image">
<img src="<?php echo esc_url( EPL_PLUGIN_URL . 'lib/assets/images/screenshots/epl-welcome.png' ); ?>" class="epl-welcome-featured-image"/>
</div>
</div>
<div class="changelog headline-feature epl-clearfix">
<h2><?php esc_html_e( 'Quick Start Guide', 'easy-property-listings' ); ?></h2>
<h3 class="about-description" style="text-align: center;"><?php esc_html_e( 'Use the tips below to get started using Easy Property Listings. You will be up and running in no time!', 'easy-property-listings' ); ?></h3>
<div class="feature-section">
<ul style="text-align: center;">
<li><a href="#guide-configure"><?php esc_html_e( 'Activate the listing types you need & configure the plugin general settings', 'easy-property-listings' ); ?></a></li>
<li><a href="#guide-page"><?php esc_html_e( 'Create a blank page for each activated listing type', 'easy-property-listings' ); ?></a></li>
<li><a href="#guide-first-listing"><?php esc_html_e( 'Publish your first listing for testing your theme setup', 'easy-property-listings' ); ?></a></li>
<li><a href="#guide-theme"><?php esc_html_e( 'Setup your theme to work with the plugin', 'easy-property-listings' ); ?></a></li>
<li><a href="<?php echo esc_url( admin_url( add_query_arg( array( 'page' => 'epl-about' ), 'index.php' ) ) ); ?>#guide-changelog"><?php esc_html_e( 'Full Change Log', 'easy-property-listings' ); ?></a></li>
<li><a href="#guide-help"><?php esc_html_e( 'Visit Support', 'easy-property-listings' ); ?></a></li>
</ul>
</div>
</div>
<div class="changelog headline-feature epl-clearfix">
<h2 id="guide-configure"><?php esc_html_e( 'Activate the listing types you need', 'easy-property-listings' ); ?></h2>
<div class="feature-section">
<div class="col">
<p><?php esc_html_e( 'Visit the general settings page and enable the listing types you need. Once you have pressed save visit the Permalinks page to re-fresh your sites permalinks.', 'easy-property-listings' ); ?></p>
<p><?php esc_html_e( 'Instead of classifying everything as a property, Easy Property Listings allows you to separate the different listing types which is better for SEO and RSS feeds.', 'easy-property-listings' ); ?></p>
<p><strong><?php esc_html_e( 'Supported Listing Types', 'easy-property-listings' ); ?></strong></p>
<ul>
<li><?php esc_html_e( 'Property (Residential)', 'easy-property-listings' ); ?></li>
<li><?php esc_html_e( 'Rental', 'easy-property-listings' ); ?></li>
<li><?php esc_html_e( 'Land', 'easy-property-listings' ); ?></li>
<li><?php esc_html_e( 'Rural', 'easy-property-listings' ); ?></li>
<li><?php esc_html_e( 'Commercial', 'easy-property-listings' ); ?></li>
<li><?php esc_html_e( 'Commercial Land', 'easy-property-listings' ); ?></li>
<li><?php esc_html_e( 'Business', 'easy-property-listings' ); ?></li>
</ul>
</div>
<div class="col">
<img src="<?php echo esc_url( EPL_PLUGIN_URL . 'lib/assets/images/screenshots/epl-general-settings.png' ); ?>" class="epl-welcome-screenshots"/>
</div>
</div>
</div>
<div class="changelog headline-feature epl-clearfix">
<h2 id="guide-page"><?php esc_html_e( 'Create a blank page for each activated listing type', 'easy-property-listings' ); ?></h2>
<div class="feature-section">
<div class="col">
<p><?php esc_html_e( 'Doing this allows you to add "Property", "Land" and "Rental" pages to your WordPress menu. Add a new page for each listing type you activated.', 'easy-property-listings' ); ?></p>
<p><?php esc_html_e( 'For example, lets say you have activated: Property, Rental and Land. Create three pages, one called "Property", another "Land" and the third "Rental" these will be the custom post type slugs/permalinks eg: property, rental and land.', 'easy-property-listings' ); ?></p>
<p><?php esc_html_e( 'Publish a test "Property Listing" and visit your new property page and you will see the new property and others you have created.', 'easy-property-listings' ); ?></p>
<p><?php esc_html_e( 'Now you can rename them to whatever you like eg: "For Sale", "For Rent" etc, but leave the slug/permalink as it was,', 'easy-property-listings' ); ?> <strong><?php esc_html_e( 'this is very important.', 'easy-property-listings' ); ?></strong></p>
</div>
<div class="col">
<img src="<?php echo esc_url( EPL_PLUGIN_URL . 'lib/assets/images/screenshots/epl-default-pages.png' ); ?>" class="epl-welcome-screenshots"/>
</div>
</div>
</div>
<div class="changelog headline-feature epl-clearfix">
<h2 id="guide-first-listing" class="epl-welcome-sub-heading"><?php esc_html_e( 'Publish Your First Listing', 'easy-property-listings' ); ?></h2>
<div class="featured-image">
<?php $video_add_listing_id = 'h6B8LLecfbw'; ?>
<div class="video-container">
<iframe width="640" height="360" src="//www.youtube.com/embed/<?php echo esc_attr( $video_add_listing_id ); ?>" frameborder="0" allowfullscreen ></iframe>
</div>
</div>
<h3 class="epl-welcome-sub-heading"><?php esc_html_e( 'Title & Author', 'easy-property-listings' ); ?></h3>
<div class="feature-section epl-clearfix">
<div class="col">
<h4><?php esc_html_e( 'Title', 'easy-property-listings' ); ?></h4>
<p><?php esc_html_e( 'Use the full listing address as the title.', 'easy-property-listings' ); ?>
<p><?php esc_html_e( 'When a property is being sold the "heading" is frequently changed and can cause permalink issues. Not to mention the search engine benefits.', 'easy-property-listings' ); ?></p>
<h4><?php esc_html_e( 'Author or Primary Real Estate Agent', 'easy-property-listings' ); ?></h4>
<p><?php esc_html_e( 'Select the author to show the name of the agent who has listed the property with their contact details. For best results each real estate agent should have their own WordPress user profile which allows for the output of their details on the listing and in widgets.', 'easy-property-listings' ); ?></p>
</div>
<div class="col">
<img src="<?php echo esc_url( EPL_PLUGIN_URL . 'lib/assets/images/screenshots/epl-add-listing-title.png' ); ?>" class="epl-welcome-screenshots"/>
</div>
</div>
<h3 class="epl-welcome-sub-heading"><?php esc_html_e( 'Gallery and Featured Image', 'easy-property-listings' ); ?></h3>
<div class="feature-section epl-clearfix">
<div class="col">
<h4><?php esc_html_e( 'Gallery', 'easy-property-listings' ); ?></h4>
<p><?php esc_html_e( 'Add a gallery of images to your listings with the WordPress Add Media button.', 'easy-property-listings' ); ?></p>
<p><?php esc_html_e( 'You can automatically output a gallery from the Display options page.', 'easy-property-listings' ); ?></p>
<p><?php esc_html_e( 'If set to automatic, just upload your images to the listing and press x to close the media upload box once the images are attached to the listing. You can also easily adjust the number of gallery columns from the plugin Display options.', 'easy-property-listings' ); ?></p>
<h4><?php esc_html_e( 'Gallery Light Box', 'easy-property-listings' ); ?></h4>
<p><?php esc_html_e( 'Using a light box plug-in like Easy FancyBox, your automatic gallery images will use the light box effect.', 'easy-property-listings' ); ?></p>
</div>
<div class="col">
<img src="<?php echo esc_url( EPL_PLUGIN_URL . 'lib/assets/images/screenshots/epl-add-listing-gallery.png' ); ?>" class="epl-welcome-screenshots"/>
</div>
</div>
<h3 class="epl-welcome-sub-heading"><?php esc_html_e( 'Listing Details', 'easy-property-listings' ); ?></h3>
<div class="feature-section epl-clearfix">
<div class="col">
<h4><?php esc_html_e( 'Heading', 'easy-property-listings' ); ?></h4>
<p><?php esc_html_e( 'Enter the descriptive listing headline like "Great Property with Views".', 'easy-property-listings' ); ?></p>
<h4><?php esc_html_e( 'Second Listing Agent', 'easy-property-listings' ); ?></h4>
<p><?php esc_html_e( 'If the listing has two real estate agents marketing it, enter their WordPress user name here. The primary agent is the post Author.', 'easy-property-listings' ); ?></p>
<h4><?php esc_html_e( 'Inspection Times', 'easy-property-listings' ); ?></h4>
<p><?php esc_html_e( 'Now supports multiple inspection times, add one per line. Past inspection dates will not display when using the new format.', 'easy-property-listings' ); ?></p>
<p><?php esc_html_e( 'The output is now wrapped in an iCal format so clicking on the date will open the users calendar.', 'easy-property-listings' ); ?></p>
</div>
<div class="col">
<img src="<?php echo esc_url( EPL_PLUGIN_URL . 'lib/assets/images/screenshots/epl-add-listing-details.png' ); ?>" class="epl-welcome-screenshots"/>
</div>
</div>
<h3 style="font-size: 1.8em; text-align: center;"><?php esc_html_e( 'Search by location', 'easy-property-listings' ); ?></h3>
<div class="feature-section epl-clearfix">
<div class="col">
<p><?php esc_html_e( 'Although the address details are added into the Property Address box the location search you also need to add the City/Suburb to the location search taxonomy.', 'easy-property-listings' ); ?></p>
<p><?php esc_html_e( 'This works like post tags and will populate the search widget/shortcode with your listings and it will automatically filter out options if no listings have that option.', 'easy-property-listings' ); ?></p>
</div>
<div class="col">
<img src="<?php echo esc_url( EPL_PLUGIN_URL . 'lib/assets/images/screenshots/epl-add-listing-details-location.png' ); ?>" class="epl-welcome-screenshots"/>
</div>
</div>
</div>
<hr/>
<div class="changelog headline-feature epl-clearfix">
<h2 id="guide-theme" class="epl-welcome-sub-heading"><?php esc_html_e( 'Configure your theme', 'easy-property-listings' ); ?></h2>
<h3 class="about-description" style="text-align: center;"><?php esc_html_e( 'We have done our best to integrate Easy Property Listings with all WordPress themes.', 'easy-property-listings' ); ?></h3>
<div class="feature-section col two-col">
<div class="col">
<h4><?php esc_html_e( 'Theme Compatibility', 'easy-property-listings' ); ?></h4>
<p><?php esc_html_e( 'Once you add a listing and if your page is really wide or your sidebar is under the content enable Theme Compatibility mode from settings.', 'easy-property-listings' ); ?></p>
<p><?php esc_html_e( 'Review your listing and if you are seeing double images, hop back over to Settings page and either disable the theme feature image or the one provided by Easy Property Listings.', 'easy-property-listings' ); ?></p>
<h4><?php esc_html_e( 'Shortcodes', 'easy-property-listings' ); ?></h4>
<p><?php esc_html_e( 'The featured image settings have no impact on the Easy Property Listings shortcodes and widgets.', 'easy-property-listings' ); ?></p>
</div>
<div class="col last-feature">
<h4><?php esc_html_e( 'Theme Compatibility not required for some themes', 'easy-property-listings' ); ?></h4>
<ul>
<li><a href="http://ithemes.com/member/go.php?r=15200&i=l37"><?php esc_html_e( 'iThemes Builder Themes', 'easy-property-listings' ); ?></a></li>
<li><?php esc_html_e( 'Genesis Framework by StudioPress', 'easy-property-listings' ); ?></li>
<li><?php esc_html_e( 'Headway Theme Framework', 'easy-property-listings' ); ?></li>
<li><?php esc_html_e( 'Twenty 11, 12, 13, 14, 15, 16, 17 & 19 by WordPress.', 'easy-property-listings' ); ?></li>
<li><?php esc_html_e( 'Divi by Elegant Themes.', 'easy-property-listings' ); ?></li>
<li><?php esc_html_e( 'Many others, add a listing and see how it looks.', 'easy-property-listings' ); ?></li>
</ul>
<p><?php esc_html_e( 'We have a selection of pre configured templates here for many popular themes', 'easy-property-listings' ); ?> <a href="https://codex.easypropertylistings.com.au/article/185-theme-templates"><?php esc_html_e( 'here', 'easy-property-listings' ); ?></a>.</p>
</div>
</div>
</div>
<hr/>
<div class="changelog headline-feature epl-clearfix">
<h2 id="theme-instructions" class="epl-welcome-sub-heading"><?php esc_html_e( 'Advanced instructions', 'easy-property-listings' ); ?></h2>
<div class="feature-section">
<?php $theme_instructions = '<a href="https://codex.easypropertylistings.com.au/article/49-theme-setup">' . esc_html__( 'theme setup instructions can be found here', 'easy-property-listings' ) . '</a>'; ?>
<?php $custom_template_link = '<a href="https://codex.easypropertylistings.com.au/article/121-how-to-create-your-own-custom-theme-templates-or-modify-existing-ones-using-the-theme-template-loader">' . esc_html__( 'custom templates', 'easy-property-listings' ) . '</a>'; ?>
<h4 style="text-align: center;">
<?php
printf( esc_html__( 'Detailed %s.', 'easy-property-listings' ), wp_kses_post( $theme_instructions ) );
?>
</h4>
<h4 style="text-align: center;">
<?php
printf( esc_html__( 'How to create your own %s.', 'easy-property-listings' ), wp_kses_post( $custom_template_link ) );
?>
</h4>
</div>
</div>
<hr/>
<div class="changelog headline-feature epl-clearfix">
<div class="feature-section">
<h2 class="about-description" style="text-align: center;"><?php esc_html_e( 'Stuck getting your theme to work?', 'easy-property-listings' ); ?></h2>
<p style="text-align: center;"><?php esc_html_e( 'Not all themes follow modern WordPress coding standards and these may take a little more time and experience to get working. If you just can not get it to work, visit', 'easy-property-listings' ); ?> <a href="https://easypropertylistings.com.au/support-ticket/"><?php esc_html_e( 'premium support', 'easy-property-listings' ); ?></a> <?php esc_html_e( 'and fill out a theme support request.', 'easy-property-listings' ); ?></p>
<p style="text-align:center;"><?php esc_html_e( 'If the theme is available in the WordPress.org theme directory let us know the theme name and URL where we can download it in your support ticket. If its a premium theme or are in a hurry submit a priority support ticket along with the theme in a zip or a download link to it on a file sharing site like Dropbox.', 'easy-property-listings' ); ?></p>
</div>
</div>
<hr/>
<div class="changelog headline-feature epl-clearfix">
<h2 id="guide-help" class="about-description" style="text-align: center;"><?php esc_html_e( 'Need Help?', 'easy-property-listings' ); ?></h2>
<div class="feature-section col three-col">
<div class="col">
<h4><?php esc_html_e( 'Premium Support', 'easy-property-listings' ); ?></h4>
<p>
<?php
printf( __( 'We do our best to provide the best support we can. If you encounter a problem or have a question, post a question in the <a href="%s">support forums</a>.', 'easy-property-listings' ), esc_url( 'https://easypropertylistings.com.au/support-ticket/' ) );
?>
</p>
</div>
<div class="col">
<h4><?php esc_html_e( 'Need Even Faster Support?', 'easy-property-listings' ); ?></h4>
<p><?php _e( '<a href="https://easypropertylistings.com.au/support-ticket/">Priority Support forums</a> are there for customers that need faster and/or more in-depth assistance.', 'easy-property-listings' );
<?php
printf( __( 'We do our best to provide the best support we can. If you encounter a problem or have a question, post a question in the <a href="%s">support forums</a>.', 'easy-property-listings' ), esc_url( 'https://easypropertylistings.com.au/support-ticket/' ) );
?>
</p>
</div>
<div class="col last-feature">
<h4><?php esc_html_e( 'Documentation and Short Codes', 'easy-property-listings' ); ?></h4>
<p><?php esc_html_e( 'Read the', 'easy-property-listings' ); ?> <a href="https://codex.easypropertylistings.com.au/"><?php esc_html_e( 'documentation', 'easy-property-listings' ); ?></a> <?php esc_html_e( ' and instructions on how to use the included', 'easy-property-listings' ); ?> <a href="https://codex.easypropertylistings.com.au/category/25-shortcodes"><?php esc_html_e( 'shortcodes', 'easy-property-listings' ); ?></a>.</p>
</div>
</div>
</div>
<hr/>
<div class="changelog headline-feature epl-clearfix">
<div class="feature-section col two-col">
<div class="col">
<h3><?php esc_html_e( 'Stay Up to Date', 'easy-property-listings' ); ?></h3>
<h4><?php esc_html_e( 'Get Notified of Extension Releases', 'easy-property-listings' ); ?></h4>
<p><?php _e( 'New extensions that make Easy Property Listings even more powerful are released nearly every single week. Subscribe to the newsletter to stay up to date with our latest releases. <a href="http://eepurl.com/TRO9f" target="_blank">Sign up now</a> to ensure you do not miss a release!', 'easy-property-listings' ); </p>
<h4><?php esc_html_e( 'Get Alerted About New Tutorials', 'easy-property-listings' ); ?></h4>
<p><?php _e( '<a href="http://eepurl.com/TRO9f" target="_blank">Sign up now</a> to hear about the latest tutorial releases that explain how to take Easy Property Listings further.', 'easy-property-listings' ); </p>
</div>
<?php $sl_link = '<a href="https://easypropertylistings.com.au/extensions/sliders/">' . esc_html__( 'Sliders', 'easy-property-listings' ) . '</a>'; ?>
<?php $br_link = '<a href="https://easypropertylistings.com.au/extensions/brochures/">' . esc_html__( 'Brochures', 'easy-property-listings' ) . '</a>'; ?>
<?php $am_link = '<a href="https://easypropertylistings.com.au/extensions/advanced-mapping/">' . esc_html__( 'Advanced Mapping', 'easy-property-listings' ) . '</a>'; ?>
<?php $tm_link = '<a href="https://easypropertylistings.com.au/extensions/testimonial-manager/">' . esc_html__( 'Testimonial Manager', 'easy-property-listings' ) . '</a>'; ?>
<?php $sd_link = '<a href="https://easypropertylistings.com.au/extensions/staff-directory/">' . esc_html__( 'Agent/Staff Directory', 'easy-property-listings' ) . '</a>'; ?>
<?php $lp_link = '<a href="https://easypropertylistings.com.au/extensions/location-profiles/">' . esc_html__( 'Location Profiles', 'easy-property-listings' ) . '</a>'; ?>
<?php $store = '<a href="https://easypropertylistings.com.au/extensions/">' . esc_html__( 'Add-On Store', 'easy-property-listings' ) . '</a>'; ?>
<div class="col last-feature">
<h3><?php esc_html_e( 'Extend With Extensions', 'easy-property-listings' ); ?></h3>
<h4><?php esc_html_e( '18 Extensions and many more coming', 'easy-property-listings' ); ?></h4>
<p>
<?php
printf( esc_html__( 'Add-on plug ins are available that greatly extend the default functionality of Easy Property Listings. There are extensions for %1$s, %2$s, %3$s, %4$s, %5$s, %6$s, and many, many more. Visit the %7$s to further enhance your real estate website.', 'easy-property-listings' ), wp_kses_post( $sl_link ), wp_kses_post( $br_link ), wp_kses_post( $am_link ), wp_kses_post( $tm_link ), wp_kses_post( $sd_link ), wp_kses_post( $lp_link ), wp_kses_post( $store ) );
?>
</p>
<h4><?php esc_html_e( 'Visit the Extension Store', 'easy-property-listings' ); ?></h4>
<p><a href="https://easypropertylistings.com.au/extensions/" target="_blank"><?php esc_html_e( 'The Extensions store', 'easy-property-listings' ); ?></a> <?php esc_html_e( 'has a list of all available extensions to make your real estate website even better.', 'easy-property-listings' ); ?></p>
</div>
</div>
</div>
</div>
<?php
}
public function credits_screen() {
list( $display_version ) = explode( '-', EPL_PROPERTY_VER );
?>
<div class="wrap about-wrap epl-about-wrap">
<h1>
<?php
printf( esc_html__( 'Welcome to Easy Property Listings %s', 'easy-property-listings' ), esc_attr( $display_version ) );
?>
</h1>
<div class="about-text">
<?php
printf( esc_html__( 'Thank you for updating to the latest version! Easy Property Listings %s is ready to make your real estate website faster, safer and better!', 'easy-property-listings' ), esc_attr( $display_version ) );
?>
</div>
<div class="epl-badge">
<?php
printf( esc_html__( 'Version %s', 'easy-property-listings' ), esc_attr( $display_version ) );
?>
</div>
<?php $this->tabs(); ?>
<p class="about-description"><?php esc_html_e( 'Easy Property Listings is created by a worldwide team of developers who aim to provide the #1 property listings platform for managing your real estate business through WordPress.', 'easy-property-listings' ); ?></p>
<?php echo wp_kses_post( $this->epl_contributors() ); ?>
</div>
<?php
}
public function epl_contributors() {
$contributors = $this->get_epl_contributors();
if ( empty( $contributors ) ) {
return '';
}
$contributor_list = '<ul class="wp-people-group">';
foreach ( $contributors as $contributor ) {
$contributor_list .= '<li class="wp-person">';
$contributor_list .= sprintf(
'<a href="%s" title="%s">',
esc_url( 'https://github.com/' . $contributor->login ),
esc_html( sprintf( esc_html__( 'View %s', 'easy-property-listings' ), esc_url( $contributor->login ) ) )
);
$contributor_list .= sprintf( '<img src="%s" width="64" height="64" class="gravatar" alt="%s" />', esc_url( $contributor->avatar_url ), esc_html( $contributor->login ) );
$contributor_list .= '</a>';
$contributor_list .= sprintf( '<a class="web" href="%s">%s</a>', esc_url( 'https://github.com/' . $contributor->login ), esc_html( $contributor->login ) );
$contributor_list .= '</a>';
$contributor_list .= '</li>';
}
$contributor_list .= '</ul>';
return $contributor_list;
}
public function get_epl_contributors() {
$contributors = get_transient( 'epl_contributors' );
if ( false !== $contributors ) {
return $contributors;
}
$response = wp_remote_get( 'https://api.github.com/repos/easypropertylistings/Easy-Property-Listings/contributors', array( 'sslverify' => false ) );
if ( is_wp_error( $response ) || 200 !== wp_remote_retrieve_response_code( $response ) ) {
return array();
}
$contributors = json_decode( wp_remote_retrieve_body( $response ) );
if ( ! is_array( $contributors ) ) {
return array();
}
set_transient( 'epl_contributors', $contributors, 3600 );
return $contributors;
}
public function epl_welcome() {
if ( ! get_transient( '_epl_activation_redirect' ) ) {
return;
}
delete_transient( '_epl_activation_redirect' );
if ( is_network_admin() || isset( $_GET['activate-multi'] ) ) {
return;
}
$upgrade = get_option( 'epl_version_upgraded_from' );
if ( ! $upgrade ) {
wp_safe_redirect( admin_url( 'index.php?page=epl-getting-started' ) );
exit;
} else {
wp_safe_redirect( admin_url( 'index.php?page=epl-about' ) );
exit;
}
}
}
new EPL_Welcome();