/** * Main Function of shortcode * * @param type $param * @return string */ function odyno_google_groups_page_shortcode($param) { extract(shortcode_atts(array('id' => uniqid("", true), 'name' => ODY_GOOGLE_GROUPS_NOS, 'width' => '100%', 'height' => '800px', 'showsearch' => 'false', 'showtabs' => 'false', 'hideforumtitle' => 'true', 'hidesubject' => 'true', 'domain' => ODY_GOOGLE_GROUPS_NOS), $param)); do_action("pre_ogg_shortcode", $name, $id, $width, $height, $showsearch, $showtabs, $hideforumtitle, $hidesubject, $domain); $out = odyno_google_groups_get_page($name, $id, $width, $height, $showsearch, $showtabs, $hideforumtitle, $hidesubject, $domain); do_action("post_ogg_shortcode", $name, $id, $width, $height, $showsearch, $showtabs, $hideforumtitle, $hidesubject, $domain); return $out; }
/** * This function return the html code used to embed the Google Groups * * @param string $name, * @param int $id = null, * @param string $width = "100%", * @param string $height = "800px", * @param string $showsearch = "false", * @param string $showtabs = "false", * @param string $hideforumtitle = "true", * @param string $hidesubject = "true", * @param string $domain = null * * @return string The html Code * */ function do_odyno_google_groups($name, $id = null, $width = "100%", $height = "800px", $showsearch = "false", $showtabs = "false", $hideforumtitle = "true", $hidesubject = "true", $domain = null) { if ($id == null) { $id = uniqid("", true); } do_action("pre_ogg_show", $name, $id, $width, $height, $showsearch, $showtabs, $hideforumtitle, $hidesubject, $domain); echo odyno_google_groups_get_page($name, $id, $width, $height, $showsearch, $showtabs, $hideforumtitle, $hidesubject, $domain); do_action("post_ogg_show", $name, $id, $width, $height, $showsearch, $showtabs, $hideforumtitle, $hidesubject, $domain); }