{"id":34681,"date":"2015-02-20T23:37:54","date_gmt":"2015-02-20T23:37:54","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/mcjh-button-shortcode\/"},"modified":"2019-01-22T23:23:39","modified_gmt":"2019-01-22T23:23:39","slug":"mcjh-button-shortcode","status":"closed","type":"plugin","link":"https:\/\/tl.wordpress.org\/plugins\/mcjh-button-shortcode\/","author":14114026,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.6.4","stable_tag":"trunk","tested":"5.0.25","requires":"3.0.1","requires_php":"","requires_plugins":"","header_name":"mcjh Shortcode Buttons","header_author":"Marcus C. J. Hartmann","header_description":"","assets_banners_color":"","last_updated":"2019-01-22 23:23:39","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.com\/cgi-bin\/webscr?cmd=_s-xclick&hosted_button_id=AWUVYPCNHCC2E","header_plugin_uri":"https:\/\/www.mcjh-medien.de\/cta-button-shortcode\/","header_author_uri":"http:\/\/www.mcjh-medien.de\/","rating":5,"author_block_rating":0,"active_installs":50,"downloads":3221,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"1"},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":"1627286","resolution":"128x128","location":"assets"},"icon-256x256.png":{"filename":"icon-256x256.png","revision":"1627286","resolution":"256x256","location":"assets"}},"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.1","1.2","1.4"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1562816","resolution":"1","location":"assets"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1627285","resolution":"2","location":"assets"}},"screenshots":{"1":"A screenshot of the old documentation-page in the admin-dashboard. Still available, but deprecated","2":"The new backend with the simple generator interface and button preview"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[24365,172,8857,24246,42423],"plugin_category":[43],"plugin_contributors":[129241],"plugin_business_model":[],"class_list":["post-34681","plugin","type-plugin","status-closed","hentry","plugin_tags-button-shortcode","plugin_tags-buttons","plugin_tags-cta","plugin_tags-cta-button","plugin_tags-shortcode-button","plugin_category-customization","plugin_contributors-marcushartmann","plugin_committers-marcushartmann"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/mcjh-button-shortcode.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/mcjh-button-shortcode\/assets\/screenshot-1.png?rev=1562816","caption":"A screenshot of the old documentation-page in the admin-dashboard. Still available, but deprecated"},{"src":"https:\/\/ps.w.org\/mcjh-button-shortcode\/assets\/screenshot-2.png?rev=1627285","caption":"The new backend with the simple generator interface and button preview"}],"raw_content":"<!--section=description-->\n<p>Create nice call-to-action Buttons (cta buttons) in 12 predefined colors or whole hexadecimalcode, using own labelling and individual target-URLs. A special settings-page offers an easy-to-use shortcode-generator with preview feature.<\/p>\n\n<ul>\n<li>Define custom button text<\/li>\n<li>Set a custom text color<\/li>\n<li>Define custom link<\/li>\n<li>Define a custom link title<\/li>\n<li>Define, if target should be opened in a new window\/tab or the current one<\/li>\n<li>Use 12 predefined colors or custom hexadecimal color code<\/li>\n<li>Define a javascript onclick action<\/li>\n<li>Use Placeholders for page-id, button-id, target-url, text and current page as arguments in javascript functions<\/li>\n<li>Define inline button behavior<\/li>\n<li>Add custom css<\/li>\n<li>Activate\/deactivate rounded corners<\/li>\n<li>Make clicks trackable<\/li>\n<li>Usable in Widgets, Content and theme-parts<\/li>\n<li>Easy to use Shortcode Generator in backend with color picker<\/li>\n<\/ul>\n\n<p><strong>QuickDocs Shortcode<\/strong><\/p>\n\n<ul>\n<li><code>text<\/code>: defines the text of the button<\/li>\n<li><code>link<\/code>: the link your button points to, must start with \"http:\/\/\" to work properly<\/li>\n<li><code>color<\/code>: the color of your button<\/li>\n<li><code>title<\/code>: the mouse over title<\/li>\n<li><code>onclick<\/code>: an onclick action to be executed before switching to the given link<\/li>\n<li><code>target<\/code>: defines the target window of the link <\/li>\n<li><code>style<\/code>: defines the intext behavior for the button (float, block etc)<\/li>\n<li><code>rounded<\/code>: defines, if button corners are rounded, or not<\/li>\n<li><code>tcolor<\/code>: defines the text color by hexdec code<\/li>\n<li><code>css<\/code>: custom css for buttons<\/li>\n<\/ul>\n\n<p><strong>QuickDocs Javascript Placeholders<\/strong><\/p>\n\n<p>These placeholders only work in the \"onlick\" attribute and can be used as button-specific arguments in javacript functions.<\/p>\n\n<p>They generally would be used like this: <code>onclick=\"your_awesome_js_function({buttonid},{link},{pageurl})\"<\/code>;<\/p>\n\n<ul>\n<li><code>{link}<\/code> will be replaced by the button-link<\/li>\n<li><code>{pageid}<\/code> will be replaced by the page id that contains this button<\/li>\n<li><code>{pageurl}<\/code> will be replaced by the page url that contains this button<\/li>\n<li><code>{text}<\/code> will be replaced by the button text<\/li>\n<li><code>{buttonid}<\/code> will be replaced by the button id<\/li>\n<\/ul>\n\n<p><em>Important: Don't use quotes in combination with the placeholders, since they are rendered with quotes automatically!<\/em><\/p>\n\n<p><strong>Example shortcode<\/strong>\n    [createButton text=\"my text\" link=\"http:\/\/google.de\" color=\"gold\" title=\"my awesome button\" onclick=\"alert({url})\" target=\"_blank\" style=\"blockleft\" rounded=\"false\" tcolor=\"#123\" css=\"a{min-height:300px;}\" ]<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload folder <code>mcjh-buttons<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the <code>Plugins<\/code> menu in WordPress<\/li>\n<li>Ready. Now create your first button with [createButton]! See more Information in the Settings-Page<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Will there be more shapes available?<\/dt>\n<dd><p>Updates for more different shapes and styles are not excluded. But not promised, too.<\/p><\/dd>\n<dt>Is this plugin free with its full functionallity?<\/dt>\n<dd><p>Yes, it is. And for sure it will allways be.<\/p><\/dd>\n<dt>How can I track button-clicks?<\/dt>\n<dd><p>You can track button-clicks by using services like GoogleAnalytics and its Event Tracker. The docus of GoogleEventTracker with very good examples can be found under https:\/\/developers.google.com\/analytics\/devguides\/collection\/analyticsjs\/events<\/p><\/dd>\n<dt>How can I use this plugin in a theme part outside the loop?<\/dt>\n<dd><p>You can use the shortcode by calling the function <code>echo do_shortcode(\"[createButton]\")<\/code>;<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.6.4<\/h4>\n\n<ul>\n<li>restrucutred plugin folder structure<\/li>\n<li>reworked software architecture<\/li>\n<\/ul>\n\n<h4>1.6.3<\/h4>\n\n<ul>\n<li>moved generator page from options to menu<\/li>\n<li>added color picker to custom background color field<\/li>\n<li>added color picker to text color field<\/li>\n<li>userroles that can edit posts can now use the shortcode generator<\/li>\n<\/ul>\n\n<h4>1.6.2<\/h4>\n\n<ul>\n<li>fixed second admin notification bug in backend<\/li>\n<\/ul>\n\n<h4>1.6.1<\/h4>\n\n<ul>\n<li>fixed admin notification bug in backend<\/li>\n<\/ul>\n\n<h4>1.6<\/h4>\n\n<ul>\n<li>reworked id generating algorithm of buttons<\/li>\n<li>new attribute \"style\" to add predefined button behavior<\/li>\n<li>new attribute \"css\" to add custom css<\/li>\n<li>new attribute \"borderradius\" to set rounded corners<\/li>\n<li>new attribute \"tcolor\" to set custom text-color<\/li>\n<li>added placeholders for button-id, current page address, current page id, target url and text. They can be used as arguments in javascript functions within the \"onclick\"-attribute<\/li>\n<li>updated shortcode generator<\/li>\n<\/ul>\n\n<h4>1.5.5<\/h4>\n\n<ul>\n<li>the shortcode-attribute \"enabletracking\" has been disabled due to url parsing problems. Tracking can still be managed by using tracking services like GoogleEventTracker<\/li>\n<li>new attribute \"target\" can be used to define if a link should open a new tab, window or stay in the current window\/tab<\/li>\n<li>plugin backend documentation was replaced by a shortcode generator<\/li>\n<\/ul>\n\n<h4>1.5.4<\/h4>\n\n<ul>\n<li>removed auto-p-actions to prevent compatibility issues with other plugins<\/li>\n<\/ul>\n\n<h4>1.5.3<\/h4>\n\n<ul>\n<li>new attribute \"onclick\" to add a onclick javascript action: [createButton onclick=\"\"]<\/li>\n<li>changed generator of html ids, each button-id will now be absolutelly unique <\/li>\n<\/ul>\n\n<h4>1.5.2<\/h4>\n\n<ul>\n<li>reworked predefined colors\n\n<ul>\n<li>changed \"lightgrey\" to grey and \"grey\" to darkgrey<\/li>\n<li>added predefined color \"gold\"<\/li>\n<li>improved predefined colors<\/li>\n<li>reduced load of images by introducing combination of background-image and background-color<\/li>\n<\/ul><\/li>\n<li>improved error-handling on predefined colors<\/li>\n<li>userdefined hexadecimal colors can now be given with or without \"#\"<\/li>\n<li>improved userdefined button colors with algorithm to calculate suitable border colors<\/li>\n<li>new attribute \"title\" to add a custom title to the buttons. Default value is the button text<\/li>\n<li>reduced execution time of searching and matching predefined colors<\/li>\n<li>updated Plugin URI<\/li>\n<li>several little Bugfixes<\/li>\n<\/ul>\n\n<h4>1.5.1<\/h4>\n\n<ul>\n<li>bugfixes<\/li>\n<\/ul>\n\n<h4>1.5<\/h4>\n\n<ul>\n<li>fixed wrong behaviour on floating elements, added block behavior to button<\/li>\n<li>changed fix width to min-width of buttons<\/li>\n<li>fixed wrong admin css script enqueueing<\/li>\n<li>added tracking-values to urls\n\n<ul>\n<li>Tracking can be enabled by adding 'enableTracking=\"true\"' to the shortcode<\/li>\n<\/ul><\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>fixed Bugs and completed german language .mo and .po<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>plugin-Release on 20. February 2015<\/li>\n<\/ul>","raw_excerpt":"Create nice Buttons with one simple Shortcode, suitable for beginners and pros","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/tl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/34681","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/tl.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/tl.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=34681"}],"author":[{"embeddable":true,"href":"https:\/\/tl.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/marcushartmann"}],"wp:attachment":[{"href":"https:\/\/tl.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=34681"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/tl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=34681"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/tl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=34681"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/tl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=34681"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/tl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=34681"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/tl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=34681"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}