.leyka-scale-button a, .leyka-scale-button a:visited { display: inline-block; text-transform: uppercase; color: #fff; background: #1db318; padding: 0.5em 1.5em; -webkit-transition: all 0.3s ease; -moz-transition: all 0.3s ease; -ms-transition: all 0.3s ease; -o-transition: all 0.3s ease; transition: all 0.3s ease; } .leyka-scale-button a:hover, .leyka-scale-button a:focus, .leyka-scale-button a:active { background: #189414; } </style> </head> <body> <div id="embedded-donation-form"> <?php echo leyka_get_payment_form($cpost->ID); ?> </div> </body> </html>
function leyka_payment_form_screen($atts) { global $post; $a = shortcode_atts(array('id' => 0, 'template' => null), $atts); $campaign = $a['id'] > 0 ? get_post($a['id']) : $post; if ($campaign->post_type != Leyka_Campaign_Management::$post_type) { // Wrong campaign data return ''; } return leyka_get_payment_form($campaign, $a); }