plugin-icon

WP Admin Buttons

Displays WordPress admin style buttons in the front end.
Beoordelingen
Laatst bijgewerkt
February 1, 2015
Versie
1.0.2
Actieve installaties
30
WP Admin Buttons

Features

  • Widget
  • Shortcode – for the parameters see the Other Notes section.
  • Custom Colors – set your favorite colors.

Shortcode and Function Parameters

The following parameters can be used for the shortcode or the PHP function of the plugin, printWPAdminButton()

  • href – the link url.

    [wp_admin_button href=”http://my-download-url/file.zip”]

    ‘http://my-download-url/file.zip’) ); ?>

  • label – the text label shown in the button.

    [wp_admin_button label=”Get” href=”http://my-download-url/file.zip”]

    ‘Get’, ‘href’ => ‘http://my-download-url/file.zip’ ) ); ?>

  • size – the button size. This argument accepts either large, medium, small.

    [wp_admin_button size=”large” href=”http://my-download-url/file.zip”]

    ‘large’, ‘href’ => ‘http://my-download-url/file.zip’ ) ); ?>

  • type – the button type. This argument accepts either button-primary, or buton-secondary.

    [wp_admin_button type=”button-secondary” href=”http://my-download-url/file.zip”]

    ‘button-secondary’, ‘href’ => ‘http://my-download-url/file.zip’ ) ); ?>

The follwoing color arguments can override the defult colors.

  • label_color – the label text color.
  • background_color – the button background color.
  • border_color – the button border color.

    [wp_admin_button label_color=”#ccc” background_color=”transparent” href=”http://my-download-url/file.zip”]

    ‘#ccc’, ‘background_color’ => ’transparent’, ‘href’ => ‘http://my-download-url/file.zip’, ) ); ?>

The following additional HTML tag attributes can be set.

  • title – the title attribute.
  • class – the class attribute.
  • style – the inline style attribute.
  • target – the target attribute.
  • rel – the rel attribute.

    [wp_admin_button title=”Get the file now!” class=”my-custom-class-selector” “style=”text-align:center;” target=”_blank” rel=”nofollow” href=”http://my-download-url/file.zip”]

    ‘button-secondary’, ’title’ => ‘Get the file now!’, ‘class’ => ‘my-custom-class-selector’, ‘style’ => ’text-align:center’, ’target’ => ‘_blank’, ‘href’ => ‘http://my-download-url/file.zip’, ) ); ?>

Gratisop Creator abonnement
Door te installeren, ga je akkoord met de Servicevoorwaarden van WordPress.com en de voorwaarden voor plugins van derden.
Actieve installaties
30
Getest tot
4.1.0
Deze plugin kan worden gedownload, zodat je hem op je zelf-gehoste WordPress-installatie kan gebruiken.