function vortex_system_render_dislike_button_buddypress($id) { /*dev use the same as below return '<div class="vortex-container-dislike"> <input type="hidden" value="'.get_the_ID().'" ></input> <div class="vortex-p-dislike '.get_the_ID().' '. vortex_system_add_dislike_class() .' '.vortex_system_get_dislike_icon().'"> '.vortex_system_dislike_counter().' </div> </div>'; */ return '<div class="vortex-container-dislike"><input type="hidden" value="' . $id . '" ></input><div class="vortex-p-dislike ' . $id . ' ' . vortex_system_add_dislike_class_buddypress($id) . ' ' . vortex_system_get_dislike_icon() . '">' . vortex_system_dislike_counter_buddypress($id) . '</div></div>'; }
function vortex_system_render_dislike_button($counter) { $dislike_counter = ""; if ($counter) { $dislike_counter = vortex_system_dislike_counter(); } if (function_exists('bbp_get_reply_id')) { if (bbp_get_reply_id() != null) { $id = bbp_get_reply_id(); } else { $id = get_the_ID(); } } else { $id = get_the_ID(); } return '<div class="vortex-container-dislike"><input type="hidden" value="' . $id . '" ></input><div class="vortex-p-dislike ' . $id . ' ' . vortex_system_add_dislike_class() . ' ' . vortex_system_get_dislike_icon() . '">' . $dislike_counter . '</div></div>'; }