Skip to content

Commit

Permalink
[WP-623] - Fill in Readme
Browse files Browse the repository at this point in the history
- fill in changelog
- add link to instructions page from plugins page
- style stuff better

branch:WP-623/add-zip-and-full-address
[WP-623](https://vendasta.jira.com/browse/WP-623)
  • Loading branch information
tbathgate-va committed May 8, 2020
1 parent 7f7b9b7 commit 3404093
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 16 deletions.
26 changes: 24 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,28 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

### Release

- Creates Shortcodes and Reusable Blocks for the business profile data.
- initial release supports the following business data:
- Company Name
- TODO: fill this in
- CompanyName
- FullAddress
- Address
- City
- State
- ZipCode
- Country
- WorkNumber
- TollFreeNumber
- HoursOfOperation
- CompanyDescription
- CompanyShortDescription
- PrimaryImage
- LogoImage
- Services
- Foursquare
- Twitter
- Instagram
- LinkedIn
- Pinterest
- Facebook
- Rss
- YouTube
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@

## Description

TODO: fill out description
This plugin provides tools to display business information easily and automatically.

## Installation
The hosting platform syncs the relevant business information to the WP Options table.
This plugin provides ways to automatically render this information on your site.
This includes both [Shortcodes](https://codex.wordpress.org/Shortcode)and reusable
[Blocks](https://wordpress.org/support/article/blocks/).

TODO: figure out zip file installation?
After the plugin is installed and activated please refer to the documentation page
provided under the Tools section of your site for more details about how to use it.
2 changes: 1 addition & 1 deletion business-data-display.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Plugin Name: Business Profile Data
* Plugin URI:
* Plugin URI: /wp-admin/tools.php?page=businessprofiledata
* Description: Tool to provide utilities for displaying synchronized Business Data
* Version: 1.0.0
* Author:
Expand Down
13 changes: 7 additions & 6 deletions includes/profile-fields/class-full-address.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,19 @@ protected static function readable_description(): string {
* @return array - return the values from the storage class
*/
protected function get_value( $storage ) {
$city = $storage->get( "city" );
$city = $storage->get( "city" );
$state = $storage->get( "state" );
$zip = $storage->get( "zip" );
if( $city !== "" && $state !== ""){
$zip = $storage->get( "zip" );
if ( $city !== "" && $state !== "" ) {
$city_state_zip = "$city, $state $zip";
} else {
$city_state_zip = "$city$state $zip";
}

return array(
"address" => $storage->get( "address" ),
"city_state_zip" => $city_state_zip,
"country" => $storage->get( "country" ),
"address" => $storage->get( "address" ),
"city_state_zip" => $city_state_zip,
"country" => $storage->get( "country" ),
);
}

Expand Down
13 changes: 9 additions & 4 deletions public/styles/admin-instruction.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,26 @@
border: 1px solid lightgrey;
}


.bpr-usage-heading {
font-size: 1.5em;
border: 1px solid lightgrey;
border-bottom: 1px solid lightgrey;
padding: 10px;
}

.bpr-usage-body {
padding: 10px;
}

.bpr-usage-instruction {
min-height: 80px;
max-width: 500px;
width: 500px;
}

.bpr-usage-value {
background: black;
color: #7e57c2;
max-width: 500px;
width: 500px;
padding: 10px;
white-space: pre-wrap;
}
}

0 comments on commit 3404093

Please sign in to comment.