{"id":1003,"date":"2013-08-15T18:33:30","date_gmt":"2013-08-15T18:33:30","guid":{"rendered":"http:\/\/musilda.cz\/?p=1003"},"modified":"2013-08-15T18:33:30","modified_gmt":"2013-08-15T18:33:30","slug":"call-to-action-shortcode-tlacitko-video-navod","status":"publish","type":"post","link":"https:\/\/affinite.io\/cs\/call-to-action-shortcode-tlacitko-video-navod\/","title":{"rendered":"Call to action shortcode tla\u010d\u00edtko video n\u00e1vod"},"content":{"rendered":"

Shortcody jsou v\u00fdborn\u00fdm zp\u016fsobem, jak ve WordPressu m\u016f\u017eete jednodu\u0161e vytv\u00e1\u0159et prvky str\u00e1nek, bez nutnosti k\u00f3dov\u00e1n\u00ed. Pokud d\u00e1te sv\u00fdm u\u017eivatel\u016fm tuto mo\u017enost, usnadn\u00edte j\u00edm vytv\u00e1\u0159en\u00ed prvk\u016f str\u00e1nky. V tomto n\u00e1vodu v\u00e1m uk\u00e1\u017ei, jak vytvo\u0159it jednoduch\u00e9 call to action tla\u010d\u00edtko.<\/p>\n

\nfunction my_style_load(){\n    wp_register_style( 'shortcodes', get_template_directory_uri()\n    . '\/inc\/shortcodes\/shortcodes.css' );\n    wp_enqueue_style( 'shortcodes' );\n}\nadd_action( 'wp_enqueue_scripts', 'my_style_load' );\n\n\n\nfunction tut_button($atts,$content = null){\n      extract(shortcode_atts(array(\n        'url'     => '#',\n        'color'   => 'red',\n        'target'  => '_self'\n      ),$atts));\n\n      $out = ''.\n      do_shortcode($content).'<\/a>';\n\n      return $out;\n\n}\n\nadd_shortcode('bigbutton','tut_button');\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"

Shortcody jsou v\u00fdborn\u00fdm zp\u016fsobem, jak ve WordPressu m\u016f\u017eete jednodu\u0161e vytv\u00e1\u0159et prvky str\u00e1nek, bez nutnosti k\u00f3dov\u00e1n\u00ed. Pokud d\u00e1te sv\u00fdm u\u017eivatel\u016fm tuto mo\u017enost, usnadn\u00edte j\u00edm vytv\u00e1\u0159en\u00ed prvk\u016f str\u00e1nky. V tomto n\u00e1vodu v\u00e1m uk\u00e1\u017ei, jak vytvo\u0159it jednoduch\u00e9 call to action tla\u010d\u00edtko.<\/p>\n","protected":false},"author":1,"featured_media":1005,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[],"class_list":["post-1003","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-video-navody"],"_links":{"self":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/1003"}],"collection":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/comments?post=1003"}],"version-history":[{"count":0,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/1003\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/media\/1005"}],"wp:attachment":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/media?parent=1003"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/categories?post=1003"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/tags?post=1003"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}