Changeset 2029777
- Timestamp:
- 02/13/2019 10:13:56 AM (7 years ago)
- Location:
- wp-directory-listing
- Files:
-
- 134 added
- 7 edited
-
tags/1.0.0 (added)
-
tags/1.0.0/assets (added)
-
tags/1.0.0/assets/admin (added)
-
tags/1.0.0/assets/admin/css (added)
-
tags/1.0.0/assets/admin/css/meta-box.css (added)
-
tags/1.0.0/assets/admin/css/meta-fields.css (added)
-
tags/1.0.0/assets/admin/css/style.css (added)
-
tags/1.0.0/assets/admin/js (added)
-
tags/1.0.0/assets/admin/js/scripts.js (added)
-
tags/1.0.0/assets/fonts (added)
-
tags/1.0.0/assets/fonts/icofont.eot (added)
-
tags/1.0.0/assets/fonts/icofont.min.css (added)
-
tags/1.0.0/assets/fonts/icofont.svg (added)
-
tags/1.0.0/assets/fonts/icofont.ttf (added)
-
tags/1.0.0/assets/fonts/icofont.woff (added)
-
tags/1.0.0/assets/fonts/icofont.woff2 (added)
-
tags/1.0.0/assets/front (added)
-
tags/1.0.0/assets/front/css (added)
-
tags/1.0.0/assets/front/css/single-directory.css (added)
-
tags/1.0.0/assets/front/css/slick.min.css (added)
-
tags/1.0.0/assets/front/css/style.css (added)
-
tags/1.0.0/assets/front/js (added)
-
tags/1.0.0/assets/front/js/scripts.js (added)
-
tags/1.0.0/assets/front/js/slick.min.js (added)
-
tags/1.0.0/assets/i18n (added)
-
tags/1.0.0/assets/i18n/countries.php (added)
-
tags/1.0.0/assets/i18n/states (added)
-
tags/1.0.0/assets/i18n/states/AO.php (added)
-
tags/1.0.0/assets/i18n/states/AR.php (added)
-
tags/1.0.0/assets/i18n/states/AU.php (added)
-
tags/1.0.0/assets/i18n/states/BD.php (added)
-
tags/1.0.0/assets/i18n/states/BG.php (added)
-
tags/1.0.0/assets/i18n/states/BO.php (added)
-
tags/1.0.0/assets/i18n/states/BR.php (added)
-
tags/1.0.0/assets/i18n/states/CA.php (added)
-
tags/1.0.0/assets/i18n/states/CH.php (added)
-
tags/1.0.0/assets/i18n/states/CN.php (added)
-
tags/1.0.0/assets/i18n/states/ES.php (added)
-
tags/1.0.0/assets/i18n/states/GR.php (added)
-
tags/1.0.0/assets/i18n/states/HK.php (added)
-
tags/1.0.0/assets/i18n/states/HU.php (added)
-
tags/1.0.0/assets/i18n/states/ID.php (added)
-
tags/1.0.0/assets/i18n/states/IE.php (added)
-
tags/1.0.0/assets/i18n/states/IN.php (added)
-
tags/1.0.0/assets/i18n/states/IR.php (added)
-
tags/1.0.0/assets/i18n/states/IT.php (added)
-
tags/1.0.0/assets/i18n/states/JP.php (added)
-
tags/1.0.0/assets/i18n/states/LR.php (added)
-
tags/1.0.0/assets/i18n/states/MD.php (added)
-
tags/1.0.0/assets/i18n/states/MX.php (added)
-
tags/1.0.0/assets/i18n/states/MY.php (added)
-
tags/1.0.0/assets/i18n/states/NG.php (added)
-
tags/1.0.0/assets/i18n/states/NP.php (added)
-
tags/1.0.0/assets/i18n/states/NZ.php (added)
-
tags/1.0.0/assets/i18n/states/PE.php (added)
-
tags/1.0.0/assets/i18n/states/PH.php (added)
-
tags/1.0.0/assets/i18n/states/PK.php (added)
-
tags/1.0.0/assets/i18n/states/PY.php (added)
-
tags/1.0.0/assets/i18n/states/RO.php (added)
-
tags/1.0.0/assets/i18n/states/TH.php (added)
-
tags/1.0.0/assets/i18n/states/TR.php (added)
-
tags/1.0.0/assets/i18n/states/TZ.php (added)
-
tags/1.0.0/assets/i18n/states/US.php (added)
-
tags/1.0.0/assets/i18n/states/ZA.php (added)
-
tags/1.0.0/assets/images (added)
-
tags/1.0.0/assets/images/directory.png (added)
-
tags/1.0.0/assets/tool-tip.min.css (added)
-
tags/1.0.0/includes (added)
-
tags/1.0.0/includes/admin-templates (added)
-
tags/1.0.0/includes/admin-templates/meta-box-directory.php (added)
-
tags/1.0.0/includes/admin-templates/meta-box-location.php (added)
-
tags/1.0.0/includes/admin-templates/settings-box-metabox.php (added)
-
tags/1.0.0/includes/classes (added)
-
tags/1.0.0/includes/classes/class-column-directory.php (added)
-
tags/1.0.0/includes/classes/class-directory.php (added)
-
tags/1.0.0/includes/classes/class-functions.php (added)
-
tags/1.0.0/includes/classes/class-hooks.php (added)
-
tags/1.0.0/includes/classes/class-post-meta.php (added)
-
tags/1.0.0/includes/classes/class-post-types.php (added)
-
tags/1.0.0/includes/classes/class-responses-list.php (added)
-
tags/1.0.0/includes/classes/class-shortcodes.php (added)
-
tags/1.0.0/includes/classes/class-template-loader.php (added)
-
tags/1.0.0/includes/classes/class-wp-settings.php (added)
-
tags/1.0.0/includes/functions-ajax.php (added)
-
tags/1.0.0/includes/functions-settings.php (added)
-
tags/1.0.0/includes/functions.php (added)
-
tags/1.0.0/includes/wpdl-template-functions.php (added)
-
tags/1.0.0/includes/wpdl-template-hooks.php (added)
-
tags/1.0.0/index.php (added)
-
tags/1.0.0/readme.txt (added)
-
tags/1.0.0/templates (added)
-
tags/1.0.0/templates/content-directory-archive.php (added)
-
tags/1.0.0/templates/content-directory.php (added)
-
tags/1.0.0/templates/content-single-directory.php (added)
-
tags/1.0.0/templates/form (added)
-
tags/1.0.0/templates/form/login.php (added)
-
tags/1.0.0/templates/form/new-directory.php (added)
-
tags/1.0.0/templates/form/register.php (added)
-
tags/1.0.0/templates/index.php (added)
-
tags/1.0.0/templates/loop (added)
-
tags/1.0.0/templates/loop/date.php (added)
-
tags/1.0.0/templates/loop/no-item.php (added)
-
tags/1.0.0/templates/loop/pagination.php (added)
-
tags/1.0.0/templates/loop/price.php (added)
-
tags/1.0.0/templates/loop/rating.php (added)
-
tags/1.0.0/templates/loop/results-count.php (added)
-
tags/1.0.0/templates/loop/sorting.php (added)
-
tags/1.0.0/templates/loop/thumbnail.php (added)
-
tags/1.0.0/templates/loop/title.php (added)
-
tags/1.0.0/templates/my-account (added)
-
tags/1.0.0/templates/my-account/dashboard.php (added)
-
tags/1.0.0/templates/my-account/directories.php (added)
-
tags/1.0.0/templates/my-account/logout.php (added)
-
tags/1.0.0/templates/my-account/my-account.php (added)
-
tags/1.0.0/templates/my-account/navigation.php (added)
-
tags/1.0.0/templates/single-directory (added)
-
tags/1.0.0/templates/single-directory-comments.php (added)
-
tags/1.0.0/templates/single-directory/categories.php (added)
-
tags/1.0.0/templates/single-directory/gallery.php (added)
-
tags/1.0.0/templates/single-directory/head-meta.php (added)
-
tags/1.0.0/templates/single-directory/keywords.php (added)
-
tags/1.0.0/templates/single-directory/price.php (added)
-
tags/1.0.0/templates/single-directory/rating.php (added)
-
tags/1.0.0/templates/single-directory/review-form.php (added)
-
tags/1.0.0/templates/single-directory/review-single.php (added)
-
tags/1.0.0/templates/single-directory/share.php (added)
-
tags/1.0.0/templates/single-directory/sidebar.php (added)
-
tags/1.0.0/templates/single-directory/tabs (added)
-
tags/1.0.0/templates/single-directory/tabs/additional-information.php (added)
-
tags/1.0.0/templates/single-directory/tabs/description.php (added)
-
tags/1.0.0/templates/single-directory/tabs/reviews.php (added)
-
tags/1.0.0/templates/single-directory/tabs/tabs.php (added)
-
tags/1.0.0/templates/single-directory/title.php (added)
-
tags/1.0.0/wp-directory-listing.php (added)
-
trunk/includes/classes/class-functions.php (modified) (2 diffs)
-
trunk/includes/classes/class-hooks.php (modified) (4 diffs)
-
trunk/includes/classes/class-wp-settings.php (modified) (3 diffs)
-
trunk/includes/functions-settings.php (modified) (3 diffs)
-
trunk/includes/functions.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/wp-directory-listing.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-directory-listing/trunk/includes/classes/class-functions.php
r2028054 r2029777 19 19 $this->init_query_vars(); 20 20 } 21 22 21 23 22 /** … … 440 439 public function set_pages(){ 441 440 442 $this->page_myaccount = $this->get_option( 'wpdl_page_myaccount' , 36);443 $this->page_directory_archive = $this->get_option( 'wpdl_page_directory_archive' , 2);441 $this->page_myaccount = $this->get_option( 'wpdl_page_myaccount' ); 442 $this->page_directory_archive = $this->get_option( 'wpdl_page_directory_archive' ); 444 443 } 445 444 } -
wp-directory-listing/trunk/includes/classes/class-hooks.php
r2028054 r2029777 23 23 add_action( 'init', array( $this, 'ob_start' ) ); 24 24 add_action( 'wp_footer', array( $this, 'ob_end' ) ); 25 add_action( 'the_content', array( $this, 'print_notice ' ), 1, 1 );26 25 add_action( 'the_content', array( $this, 'print_notice_and_content' ), 1, 1 ); 26 27 27 add_filter( 'query_vars', array( $this , 'add_query_vars' ), 10 ); 28 28 add_filter( 'the_title', array( $this, 'myaccount_page_title' ), 10, 2 ); … … 85 85 global $wp_query; 86 86 87 if ( ! is_null( $wp_query ) && ! is_admin() && is_main_query() && in_the_loop() && is_page() && get_post_type( $post ) == 'page' ) {87 if ( ! is_null( $wp_query ) && ! is_admin() && is_main_query() && in_the_loop() && is_page() && get_post_type( $post ) == 'page' && wpdl_is_myaccount_page() ) { 88 88 $endpoint = wpdl_get_current_endpoint(); 89 89 $endpoint_title = $this->get_endpoint_title( $endpoint ); … … 296 296 */ 297 297 298 public function print_notice ( $content ){298 public function print_notice_and_content( $content ){ 299 299 300 300 ob_start(); … … 305 305 306 306 printf( '</div>' ); 307 308 if( wpdl_is_page( 'myaccount' ) ) { 309 310 remove_filter( 'the_content', 'wpautop' ); 311 echo do_shortcode( '[wpdl_my_account]' ); 312 } 313 314 if( wpdl_is_page('directory_archive' ) ) { 315 remove_filter( 'the_content', 'wpautop' ); 316 echo do_shortcode( '[directory_archive]' ); 317 } 307 318 308 319 return ob_get_clean() . $content; -
wp-directory-listing/trunk/includes/classes/class-wp-settings.php
r2028029 r2029777 83 83 foreach( $this->get_settings_fields() as $key => $setting ): 84 84 85 add_settings_section( 86 $key,isset( $setting['title'] ) ? $setting['title'] : "", 87 array( $this, 'wp_settings_section_callback' ), 88 $this->get_current_page() 89 ); 85 add_settings_section( $key,isset( $setting['title'] ) ? $setting['title'] : "", array( $this, 'section_callback' ), $this->get_current_page() ); 90 86 91 87 foreach( $setting['options'] as $option ) : … … 458 454 endforeach; 459 455 456 457 460 458 return $whitelist_options; 461 459 } … … 494 492 do_action( 'wp_settings_page_' . $this->get_current_page() ); 495 493 496 settings_fields( $this->get_menu_slug());494 settings_fields( $this->get_current_page()); 497 495 do_settings_sections($this->get_current_page()); 498 496 -
wp-directory-listing/trunk/includes/functions-settings.php
r2028054 r2029777 15 15 ); 16 16 17 $meta_generator = array( 18 'page_nav' => __( 'Configure Meta', TTDD ), 19 'show_submit' => true, 17 $options = array( 18 'page_nav' => __( 'Options', TTDD ), 19 'page_settings' => array( 20 21 'section_pages' => array( 22 'title' => __('Pages', TTDD), 23 'options' => array( 24 array( 25 'id' => 'wpdl_page_myaccount', 26 'title' => __('My account page',TTDD), 27 'details' => __('Select my account page',TTDD), 28 'type' => 'select2', 29 'args' => 'PAGES', 30 ), 31 array( 32 'id' => 'wpdl_page_directory_archive', 33 'title' => __('Directory archive page',TTDD), 34 'details' => __('Select directory archive page',TTDD), 35 'type' => 'select2', 36 'args' => 'PAGES', 37 ), 38 ), 39 ), 40 41 ), 20 42 ); 21 43 … … 30 52 'menu_slug' => "wpdl", 31 53 'pages' => array( 32 'meta' => $meta_generator, 54 'wpdl_meta' => $meta_generator, 55 'wpdl_options' => $options, 33 56 ), 34 57 ); … … 47 70 } 48 71 } 49 add_action('wp_settings_page_ meta', 'wpdl_wp_settings_page_meta');72 add_action('wp_settings_page_wpdl_meta', 'wpdl_wp_settings_page_meta'); 50 73 51 74 -
wp-directory-listing/trunk/includes/functions.php
r2028054 r2029777 10 10 11 11 12 12 13 /** 13 14 * Return query var value inside custom endpoints … … 64 65 function wpdl_is_page( $page_name = '' ){ 65 66 66 global $wp_query ;67 global $wp_query, $wpdl; 67 68 68 69 $current_endpoint = wpdl_get_current_endpoint(); 69 $query_vars = $wp_query ->query_vars;70 $query_vars = $wp_query ? $wp_query->query_vars : array(); 70 71 $bool_result = false; 71 72 … … 77 78 } 78 79 break; 80 81 case 'myaccount' : 82 if( get_the_ID() == $wpdl->page_myaccount ) { 83 $bool_result = true; 84 } 85 break; 86 87 case 'directory_archive' : 88 if( get_the_ID() == $wpdl->page_directory_archive ) { 89 $bool_result = true; 90 } 91 break; 79 92 } 80 93 -
wp-directory-listing/trunk/readme.txt
r2028051 r2029777 6 6 Tested up to: 5.0.3 7 7 Requires PHP: 5.6 8 Stable tag: 1.0. 08 Stable tag: 1.0.1 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html -
wp-directory-listing/trunk/wp-directory-listing.php
r2028051 r2029777 4 4 Plugin URI: https://pluginrox.com/plugin/wp-directory-listing/ 5 5 Description: Directory Listing Plugin for WordPress 6 Version: 1.0. 06 Version: 1.0.1 7 7 Author: PluginRox 8 8 Author URI: https://pluginrox.com/
Note: See TracChangeset
for help on using the changeset viewer.