ÿØÿà JFIF    ÿÛ „  ( %"1!%)+...383,7(-.+  -+++--++++---+-+-----+---------------+---+-++7-----ÿÀ  ß â" ÿÄ     ÿÄ H    !1AQaq"‘¡2B±ÁÑð#R“Ò Tbr‚²á3csƒ’ÂñDS¢³$CÿÄ   ÿÄ %  !1AQa"23‘ÿÚ   ? ôÿ ¨pŸªáÿ —åYõõ\?àÒü©ŠÄï¨pŸªáÿ —åYõõ\?àÓü©ŠÄá 0Ÿªáÿ Ÿå[úƒ ú®ði~TÁbqÐ8OÕpÿ ƒOò¤Oè`–RÂáœá™êi€ßÉ< FtŸI“öÌ8úDf´°å}“¾œ6  öFá°y¥jñÇh†ˆ¢ã/ÃÐ:ªcÈ "Y¡ðÑl>ÿ ”ÏËte:qž\oäŠe÷󲍷˜HT4&ÿ ÓÐü6ö®¿øþßèô Ÿ•7Ñi’•j|“ñì>b…þS?*Óôÿ ÓÐü*h¥£ír¶ü UãS炟[AÐaè[ûª•õ&õj?†Éö+EzP—WeÒírJFt ‘BŒ†Ï‡%#tE Øz ¥OÛ«!1›üä±Í™%ºÍãö]°î(–:@<‹ŒÊö×òÆt¦ãº+‡¦%ÌÁ²h´OƒJŒtMÜ>ÀÜÊw3Y´•牋4ǍýʏTì>œú=Íwhyë,¾Ôò×õ¿ßÊa»«þˆѪQ|%6ž™A õ%:øj<>É—ÿ Å_ˆCbõ¥š±ý¯Ýƒï…¶|RëócÍf溪“t.СøTÿ *Ä¿-{†çàczůŽ_–^XþŒ±miB[X±d 1,é”zEù»& î9gœf™9Ð'.;—™i}!ôšåîqêÛ٤ёý£½ÆA–àôe"A$˝Úsäÿ ÷Û #°xŸëí(l »ý3—¥5m! rt`†0~'j2(]S¦¦kv,ÚÇ l¦øJA£Šƒ J3E8ÙiŽ:cÉžúeZ°€¯\®kÖ(79«Ž:¯X”¾³Š&¡* ….‰Ž(ÜíŸ2¥ª‡×Hi²TF¤ò[¨íÈRëÉ䢍mgÑ.Ÿ<öäS0í„ǹÁU´f#Vß;Õ–…P@3ío<ä-±»Ž.L|kªÀê›fÂ6@»eu‚|ÓaÞÆŸ…¨ááå>åŠ?cKü6ùTÍÆ”†sĤÚ;H2RÚ†õ\Ö·Ÿn'¾ ñ#ºI¤Å´%çÁ­‚â7›‹qT3Iï¨ÖÚ5I7Ë!ÅOóŸ¶øÝñØôת¦$Tcö‘[«Ö³šÒ';Aþ ¸èíg A2Z"i¸vdÄ÷.iõ®§)¿]¤À†–‡É&ä{V¶iŽ”.Ó×Õÿ û?h¬Mt–íª[ÿ Ñÿ ÌV(í}=ibÔ¡›¥¢±b Lô¥‡piη_Z<‡z§èŒ)iÖwiÇ 2hÙ3·=’d÷8éŽ1¦¸c¤µ€7›7Ø ð\á)} ¹fËí›pAÃL%âc2 í§æQz¿;T8sæ°qø)QFMð‰XŒÂ±N¢aF¨…8¯!U  Z©RÊ ÖPVÄÀÍin™Ì-GˆªÅËŠ›•zË}º±ŽÍFò¹}Uw×#ä5B¤{î}Ð<ÙD é©¤&‡ïDbàÁôMÁ. $tablink, 'icon' => 'fa fa-cog', 'link' => 'edit.php?post_type=wpdmpro&page=settings&tab=' . $tablink, 'title' => $newtab, 'callback' => $func); } /** * @param $tabid * @param $tabtitle * @param $callback * @param string $icon * @return array */ function wpdm_create_settings_tab($tabid, $tabtitle, $callback, $icon = 'fa fa-cog') { return \WPDM\Admin\Menu\Settings::createMenu($tabid, $tabtitle, $callback, $icon); } /** * @usage Check user's download limit * @param $id * @return bool */ function wpdm_is_download_limit_exceed($id) { return WPDM()->package->userDownloadLimitExceeded($id); } /** * @param (int|array) $package Package ID (INT) or Complete Package Data (Array) * @param string $ext * @return string|void */ function wpdm_download_url($package, $params = array()) { if (!is_array($package)) $package = intval($package); $id = is_int($package) ? $package : $package['ID']; return WPDM()->package->getDownloadURL($id, $params); } /** * @usage Check if a download manager category has child * @param $parent * @return bool */ function wpdm_cat_has_child($parent) { $termchildren = get_term_children($parent, 'wpdmcategory'); if (count($termchildren) > 0) return count($termchildren); return false; } /** * @usage Get category checkbox list * @param int $parent * @param int $level * @param array $sel */ function wpdm_cblist_categories($parent = 0, $level = 0, $sel = array()) { $cats = get_terms('wpdmcategory', array('hide_empty' => false, 'parent' => $parent)); if (!$cats) $cats = array(); if ($parent != '') echo ""; } /** * @usage Get category dropdown list * @param string $name * @param string $selected * @param string $id * @param int $echo * @return string */ function wpdm_dropdown_categories($name = '', $selected = '', $id = '', $echo = 1) { return wp_dropdown_categories(array('show_option_none' => __( "Select category" , "download-manager" ), 'hierarchical' => 1, 'show_count' => 0, 'orderby' => 'name', 'echo' => $echo, 'class' => 'form-control selectpicker', 'taxonomy' => 'wpdmcategory', 'hide_empty' => 0, 'name' => $name, 'id' => $id, 'selected' => $selected)); } /** * @usage Post with cURL * @param $url * @param $data (array) * @param $headers (array) * @return bool|mixed|string */ function wpdm_remote_post($url, $data, $headers = []) { $response = wp_remote_post($url, array( 'method' => 'POST', 'sslverify' => false, 'timeout' => 5, 'redirection' => 5, 'httpversion' => '1.0', 'blocking' => true, 'headers' => $headers, 'body' => $data, 'cookies' => array() ) ); $body = wp_remote_retrieve_body($response); return $body; } /** * @usage Get with cURL * @param $url * @param $headers (array) * @return bool|mixed|string */ function wpdm_remote_get($url, $headers = []) { $content = ""; $response = wp_remote_get($url, array('timeout' => 5, 'sslverify' => false, 'headers' => $headers)); if (is_array($response)) { $content = $response['body']; } else $content = Messages::error($response->get_error_message(), -1); return $content; } function wpdm_plugin_data($dir) { $plugins = get_plugins(); foreach ($plugins as $plugin => $data) { $data['plugin_index_file'] = $plugin; $plugin = explode("/", $plugin); if ($plugin[0] == $dir) return $data; } return false; } function wpdm_access_token(){ return get_option("__wpdm_access_token", false); } function wpdm_plugin_update_email($plugin_name, $version, $update_url) { $admin_email = get_option('admin_email'); $hash = "__wpdm_" . md5($plugin_name . $version); $sent = get_option($hash, false); if (!$sent) { $message = 'New version available. Please update your copy.
Plugin NameVersion
' . $plugin_name . '' . $version . '
Update Now
'; $params = array( 'subject' => sprintf(__("[%s] Update Available"), $plugin_name, 'download-manager'), 'to_email' => get_option('admin_email'), 'from_name' => 'WordPress Download Manager', 'from_email' => 'support@wpdownloadmanager.com', 'message' => $message ); \WPDM\__\Email::send("default", $params); update_option($hash, 1, false); } } function wpdmpro_required(){ ?>
This option is only available with the WordPress Download Manager Pro!