PBHS SHORTCODES

This post contains a collection of our shortcodes. They have been grouped into the following categories:


Human Touch Modules

All of the following modules have align attributes available to them. Available alignments include: left, right, center, and none.

Example





Shortcodes






Mini Modules

All of the following modules have align attributes available to them. Available alignments include: left, right, center, and none. The default alignment is right.

Example





Shortcodes






Silent Animations

All of the following modules have align attributes available to them. Available alignments include: left, right, center, and none.

Example





Shortcodes






Maps

Use the

[MAP]
shortcode to embed Map services. Defaults to Google Maps if a specific src is not provided. Use the
[STATIC_MAP]
shortcode to generate a static image map (Google Maps Only).

MAP Attributes

container(optional) – Whether or not to include the .highlight div wrapper

  • Default: true
  • Options: true, false

address(optional) – Address To Reference in the Map

  • Default: Address saved in the website admin

zoom(optional) – Map zoom level (Google Maps only)
Decrease the number to zoom out, Increase to zoom in

  • Default: 15

cid(optional) – Google Business CID number

  • Default: none

src(optional) – Full src url to use in the iframe (Use when trying to load a map service other than Google Maps)
This attribute will override the address, zoom, and cid attributes

  • Default: Google Maps src

id(optional) – The 4-digit Office ID that the location is assigned in Admin > Settings
This attribute is overridden by the address, zoom, and cid attributes

  • Default: none

help_text(optional) -Whether or not to include help text for linking directly to the map service

  • Default: true
  • Options: true, false

searchbar(optional) – Whether or not to include the directions search form under the Map

  • Default: true
  • Options: true, false

width(optional) – Map Width

  • Default: 100%

height(optional) – Map Height

  • Default: 100%

class(optional) – Additional class names to add to the container div

  • Default: none

STATIC_MAP Attributes

address(optional) – Address To Reference in the Map

  • Default: Address saved in the website admin

width(optional) – Image Width

  • Default: 150

height(optional) – Image Height

  • Default: 150

zoom(optional) – Map zoom level
Decrease the number to zoom out, Increase to zoom in

  • Default: 11

marker(optional) – Whether or not to include the marker on the image

  • Default: true
  • Options: true, false

class(optional) – Image class names

  • Default: static-map

Examples

[MAP address="3785 Brickway Blvd., Santa Rosa, Ca 95403"]

[STATIC_MAP address="3785 Brickway Blvd., Santa Rosa, Ca 95403"]


Social Media

Use the [ADDTHIS] short code to display social media icons for like buttons or sharing buttons.

Attributes

type – used to select like or sharing button

  • Default: like
  • Options: like, share
  • Example: type=like

custom – used to pass a custom set of buttons to display. To use multiple custom buttons, separate each option with a space.

  • Default: false (display default button selections)
  • Options: facebook, twitter, google, email, favorites, more (email and favorites are only usable if button type is set to share)
  • Example: custom=”facebook twitter more”

size – used to select small or large buttons (Only usable if button type is set to share)

  • Default: large
  • Options: small, large
  • Example: size=small

likecouter – used to show and hide counter bubble for like buttons (Only usable if button type is set to like)

  • Default: no
  • Options: yes, no
  • Example: likecounter=yes

Examples

Simple

[ADDTHIS]

Customized

[ADDTHIS type=share custom="facebook twitter email more" size=small]


Social Icons

Use the [SOCIAL_ICONS] short code to display a row of social icons.

Attributes

links: –Used to link to url.

  • facebook
  • twitter
  • google plus
  • youtube
  • blog
  • reviews

The base or domain of the link is prefilled out except for blog and reviews.

Example facebook=PBHSInc will link to: https://www.facebook.com/PBHSInc

If you do not fill out a link attribute it will not display icon, so if you don’t want a youtube, just don’t add it’s attribute.

size – Used to change size of icons.

  • Default: 32
  • Options: 1-64
  • Example: size=42

class – Used to add custom class for styling

  • Default: none
  • Options: any single word
  • Example: class=footerIcons

Example

[SOCIAL_ICONS facebook=PBHSInc twitter=dentistwebsites google=+PbhsInc/posts youtube=playlist?list=PLE99150DDD02E920C blog=/blog/ reviews=/reviews/ ]


Demandforce

Use the [DEMANDFORCE] short code to display Demandforce Reviews and Scheduler widgets or buttons.

Attributes

type – Used to choose between demandforce reviews or scheduler

  • Default: reviews
  • Options: reviews, scheduler
  • Example: type=scheduler

display – Used to choose between placing the widget directly on the page or inserting a button that will open a pop up window
IMPORTANT!: Using the “widget” type requires that the url attribute is also filled out.
IMPORTANT!: Using the “button” type requires the exid attribute to be filled out.
SEE url AND exid ATTRIBUTE NOTES BELOW

  • Default: widget
  • Options: widget, button
  • Example: display=button

url – The doctors Demandforce page url

  • Default: false
  • Example: url=http://www.demandforce.com/b/Avalon-Family-and-Cosmetic-Dentistry

exid – The doctors Demandforce exid (typically the ending part of their page url. e.g. Avalon-Family-and-Cosmetic-Dentistry in the url example above)

  • Default: false
  • Example: exid=Avalon-Family-and-Cosmetic-Dentistry

Examples

Widget

Displays a schedular widget on the page

[DEMANDFORCE type=scheduler url=http://www.demandforce.com/b/Avalon-Family-and-Cosmetic-Dentistry]

Button

Displays a reviews button that opens their reviews widget in a shadowbox window

[DEMANDFORCE display=button exid=Avalon-Family-and-Cosmetic-Dentistry]


TruForm Assist Flash Link

Use the [TRUFORM_ASSIST] short code to display the TruForm Assist Flash based link

Attributes

url(required) – Used to specify the link url for the button

  • Default: false
  • Example: url=”https://www.truformassist.com/client/Main.aspx?237″

Examples

[TRUFORM_ASSIST url="https://www.truformassist.com/client/Main.aspx?237"]


Image Galleries

[gallery]

short code to display image galleries. By default, image thumbnails are shown in a column layout which will open up the full sized image in a shadowbox gallery when clicked. By using type=”slider”, an image gallery slider will be output instead.

The images can be easily managed using the built in wordpress media manager on the Edit Page dashboard. For more information about using the wordpress media manager see this post How to Create WordPress Photo Galleries with the New 3.5 Media Manager.

Attributes

ids(optional) – A list of image ids to be used in the gallery

  • Default: false – (if no image ids are provided, the shortcode will default to all the images currently attached to the page)
  • Example: ids=”30,31,32,34″

type(optional) – What type of gallery to display

  • Default: default
  • Options: default, slider, carousel
    (the carousel slider is only available on bootstrap themes)
  • Example: type=”slider”

transition(optional) – Type of photo transition
(only for use with slider gallery type)

  • Default: move
  • Options: move, fade
  • Example: transition=”fade”

columns(optional) – How many columns to use when displaying the images
(only for use with default gallery type)

  • Default: 3
  • Example: columns=”4″

height(optional) – How tall the slider image area should be
(only for use with slider gallery type)

  • Default: 550
  • Example: height=”600″

autoplay(optional) – Whether or not to autoplay the slideshow
(only for use with slider gallery type)

  • Default: true
  • Options: false
  • Example: autoplay=”false”

orderby(optional) – How to order the images, defaults to the order of the ids provided. Can be passed a value of “rand” to randomize the order of the pictures

  • Default: NULL (order of the ids provided)
  • Options: rand
  • Example: orderby=”rand”

captions(optional) – Whether or not to use display captions
(only for use with slider gallery type)

  • Default: false
  • Options: true
  • Example: captions=”true”

Examples

[gallery ids="30,31,32,33" type="slider" height="600"]


Gravity Form

[gravityform id="1"]


Bootstrap Rows and Spans (Grid/Column Layouts)

Use the [ROW][/ROW] and [SPAN][/SPAN] shortcodes to build bootstrap grid layouts

ROW Attributes

classes(optional) – additional classes to add to the container

  • Default: NULL

SPAN Attributes

classes(optional) – additional classes to add to the container

  • Default: NULL

length(optional) – Size of the span column

  • Default: 3
  • Options: 1-12 (A number value from 1 to 12)
  • Example: length=”4″

first(optional) – Adds margin-left: 0 to the div to override default left margin
Span layouts typically depend on the spans being the first and immediate children of a ROW. This attribute provides a work around for that behavior.

  • Default: false
  • Options: true, false
  • Example: first=”true”

Example

Creates a 3 column Layout

[ROW][SPAN length="4"]Your Content Here![/SPAN][SPAN length="4"]Your Content Here![/SPAN][SPAN length="4"]Your Content Here![/SPAN][/ROW]


Collapsible Content Areas

Use the [COLLAPSIBLE][/COLLAPSIBLE] shortcode to create collapsible content areas

Attributes

title(optional) – Title for the collapsible content area

  • Default: Collapsible (Slide Number)

siblings(optional) – How to handle sibling collapsible areas when target collapsible is activated

  • Default: NULL (do nothing)
  • Options: hide

divider(optional) – Whether or not to output divider underneath collapsible

  • Default: true
  • Options: true, false

Examples

[COLLAPSIBLE title="Click Me To See Hidden Content!"]My Cool Collapsible Content![/COLLAPSIBLE]


ADA Patient Education Library


Use the [ADA_LIBRARY] shortcode to display the ADA Patient Education Library

Attributes

inverse(optional) – Reverse the color scheme to a dark grey background and white text

  • Default: false
  • Options: true, false

Examples

[ADA_LIBRARY inverse="true"]


ADA Patient Education Library Button

Use the [ADA_LIBRARY_BUTTON] shortcode to display a pre styled button linking to your chosen ADA Library Page

Attributes

page(required) – url link or page ID for the ADA Library page

  • Default: NULL
  • Example: page=”12″ OR page=”http://www.domain.com/ada-patient-education”

inverse(optional) – Reverse the color scheme to a dark grey background and white text

  • Default: false
  • Options: true, false

mini(optional) – Use the “mini” button layout (provides a smaller logo graphic and reduced text)
Good to use when trying to place the button in an area with a small width (Such as the sidebar)

  • Default: false
  • Options: true, false

Examples

[ADA_LIBRARY_BUTTON page="12" mini="true"]


Full Name Shortcode

[FULL_NAME]

Optional attributes for this shortcode are:

  • id (string): the id of the doctor you wish to render the name for. If no id is specified, all names will be rendered.
  • format (prefix, postfix, nofix): Renders the prefix, postfix or nofix with the name of the doctor.
  • link (true/false): Renders the doctor’s name as a link, or not.
  • markup (true/false): Renders span tags with specific classes around each part of a doctor’s name so that styles can be applied accordingly.

    For example markup=true will display like this: <span class="sc-name”> John M. Smith</span>, <span class="sc-postfix">DDS, MS</span> or <span class="sc-name">David W. Parks</span>, <span class="sc-postfix">DMD</span>

  • conjunction (string): If using this shortcode with multiple members the string passed in to this attribute will conjoin them.

    - For example conjunction=‘with’ will display like this: - John M. Smith, DDS, MS with David W. Parks, DMD

  • append (string): Appends the string to the end of the shortcode.

    - For example append=‘offers’ will display like this: - John M. Smith, DDS, MS or David W. Parks, DMD offers

  • bold (true/false): Renders the doctor name(s) in bold.
  •  


    Office Hours Shortcode

    [OFFICE_HOURS]

    The mark up for office hours will be rendered with schema only if the “Enable Schema” setting is enabled.

    Office Hours are also available for SEO Footer enable themes as a snippet.

    The optional attributes for this shortcode are:

    • id (string): the id of the office you wish to render the hours for. If no id is specified, the hours for the first office will be rendered.
    • show_name (true/false): render the office name above the hours. Default is false.
    • label (string): The heading that will appear above the hours. Default is “Office Hours”.
    • grouping (true/false): when grouping is true, the hours will be render in a more compact manner as opposed to a list item for every day of the week. Default is true.

      For example if the hours are entered as “8:00AM-4:30PM” for Monday, Tuesday, Wednesday, Thursday and “9:00AM-3:30PM” for Friday, the office hours will render like:

      Monday through Thursday: 8:00 AM - 4:30 PM

      Friday: 9:00 AM - 3:30 PM


Informed Consent Videos List Version Shortcode

[INFORMED_CONSENT_LIST_PANEL]

Prints a list of videos instead of the module version.

The optional attributes for this shortcode are:

  • disable (string): List the videos you do not wish to appear in the generated list of videos.

    Example: [INFORMED_CONSENT_LIST_PANEL disable=“tmj,ortho”]

    implant = multiple implants

    single_stage = single implant


Braces Color Picker

[BRACES_COLOR_PICKER]


Color Picker

Click on the image below to launch the braces color picker. It will launch our module in a separate window and may help you select which colors you'd like your braces to be.


Launch the Color Picker

Instructions: Click on a color, then click either directly on the teeth or on one of the tooth selections to change the color.

Replaces the old braces color picker with a more versatile version.