[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fhrruIoHFLw4Ib7JPHD-KA4EiZ-SnInfz1o5i-_1fyrM":3},{"slug":4,"display_name":5,"profile_url":6,"plugin_count":7,"total_installs":8,"avg_security_score":9,"avg_patch_time_days":10,"trust_score":11,"computed_at":12,"plugins":13},"tubal","Tubal","https:\u002F\u002Fprofiles.wordpress.org\u002Ftubal\u002F",2,400,85,30,84,"2026-04-04T13:48:14.228Z",[14,38],{"slug":15,"name":16,"version":17,"author":5,"author_profile":6,"description":18,"short_description":19,"active_installs":20,"downloaded":21,"rating":22,"num_ratings":23,"last_updated":24,"tested_up_to":25,"requires_at_least":26,"requires_php":27,"tags":28,"homepage":27,"download_link":34,"security_score":9,"vuln_count":35,"unpatched_count":35,"last_vuln_date":36,"fetched_at":37},"mobile-detector","Mobile Detector","2.0.2","\u003Cp>A lightweight detector of mobile devices, OSs & browsers that, optionally, allows your site to switch to a mobile theme when a mobile device is detected or when your users feel like it.\u003C\u002Fp>\n\u003Cp>This plugin adds the class \u003Cstrong>MobileDTS\u003C\u002Fstrong> to WordPress.\u003C\u002Fp>\n\u003Ch4>Mobile Detection\u003C\u002Fh4>\n\u003Cp>On every request, this plugin will try to detect if the user is viewing your site with a mobile device or not. If he is, the detector will also give you some info about the device, browser and OS used.\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Who will be happy with this detector?\u003C\u002Fstrong>\u003C\u002Fp>\n\u003Cp>If you need a fast and reliable way to detect if a user is visiting your site with a mobile device, then you’ll be happy. However, if you need precise information about the device used (other than OS and browser) such as screen resolution you need a detector such as \u003Ca href=\"http:\u002F\u002Fdeviceatlas.com\u002F\" rel=\"nofollow ugc\">DeviceAtlas\u003C\u002Fa> or \u003Ca href=\"http:\u002F\u002Fwurfl.sourceforge.net\u002F\" rel=\"nofollow ugc\">WURFL\u003C\u002Fa>.\u003C\u002Fp>\n\u003Cp>\u003Cstrong>How to query the detector?\u003C\u002Fstrong>\u003C\u002Fp>\n\u003Cp>Use the method \u003Ccode>MobileDTS::is($key)\u003C\u002Fcode>. \u003Ccode>is()\u003C\u002Fcode> returns boolean \u003Ccode>true\u003C\u002Fcode> or \u003Ccode>false\u003C\u002Fcode>.\u003C\u002Fp>\n\u003Cp>Example:\u003C\u002Fp>\n\u003Cpre>\u003Ccode>\u003C?php\n\nif (MobileDTS::is('android')) {\n    \u002F\u002F User with a mobile device running Android OS\n} else if (MobileDTS::is('ios')) {\n    \u002F\u002F User with a mobile device running iOS\n} else if (MobileDTS::is('mobile')) {\n    \u002F\u002F User with a mobile device (any, even 10 years old mobile phones) \n} else {\n    \u002F\u002F User with a desktop device   \n}\n\n?>\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>\u003Cstrong>Available keys:\u003C\u002Fstrong>\u003C\u002Fp>\n\u003Cul>\n\u003Cli>\u003Ccode>mobile\u003C\u002Fcode> (Is it a mobile?)\u003C\u002Fli>\n\u003Cli>\u003Ccode>other\u003C\u002Fcode> (Any other mobile device)\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>Popular mobile devices\u003C\u002Fp>\n\u003Cul>\n\u003Cli>\u003Ccode>iphone\u003C\u002Fcode> (Apple iPhone)\u003C\u002Fli>\n\u003Cli>\u003Ccode>ipad\u003C\u002Fcode> (Apple iPad)\u003C\u002Fli>\n\u003Cli>\u003Ccode>kindle\u003C\u002Fcode> (Amazon Kindle)\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>Mobile OS\u003C\u002Fp>\n\u003Cul>\n\u003Cli>\u003Ccode>android\u003C\u002Fcode> (Android OS)\u003C\u002Fli>\n\u003Cli>\u003Ccode>bada\u003C\u002Fcode> (Bada OS)\u003C\u002Fli>\n\u003Cli>\u003Ccode>bbos\u003C\u002Fcode> (Blackberry OS)\u003C\u002Fli>\n\u003Cli>\u003Ccode>ios\u003C\u002Fcode> (Apple iOS)\u003C\u002Fli>\n\u003Cli>\u003Ccode>palmos\u003C\u002Fcode> (Palm OS)\u003C\u002Fli>\n\u003Cli>\u003Ccode>symbian\u003C\u002Fcode> (Symbian OS)\u003C\u002Fli>\n\u003Cli>\u003Ccode>webos\u003C\u002Fcode> (Hp WebOS)\u003C\u002Fli>\n\u003Cli>\u003Ccode>windows\u003C\u002Fcode> (Windows Phone OS and older)\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>Mobile browsers\u003C\u002Fp>\n\u003Cul>\n\u003Cli>\u003Ccode>ff_mobile\u003C\u002Fcode> (Mozilla Fennec & Firefox mobile)\u003C\u002Fli>\n\u003Cli>\u003Ccode>ie_mobile\u003C\u002Fcode> (IE mobile)\u003C\u002Fli>\n\u003Cli>\u003Ccode>netfront\u003C\u002Fcode> (NetFront)\u003C\u002Fli>\n\u003Cli>\u003Ccode>opera_mobile\u003C\u002Fcode> (Opera Mobile or Mini)\u003C\u002Fli>\n\u003Cli>\u003Ccode>uc_browser\u003C\u002Fcode> (UC Browser)\u003C\u002Fli>\n\u003Cli>\u003Ccode>webkit_mobile\u003C\u002Fcode> (Webkit mobile)\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch4>Theme Switching\u003C\u002Fh4>\n\u003Cp>You can configure your site to automatically switch to a mobile theme when a mobile device is detected or when the user requests it (on demand).\u003C\u002Fp>\n\u003Cp>Once the plugin is installed, a new submenu titled \u003Ccode>Mobile Detector\u003C\u002Fcode> is added under the \u003Ccode>Settings\u003C\u002Fcode> menu.\u003C\u002Fp>\n\u003Cp>Theme switching is disabled by default. To enable theme switching simply select a theme to use as your mobile theme and the plugin will take care of the rest.\u003C\u002Fp>\n\u003Cp>This plugin assumes your active theme is optimized for desktop screens only. So, if you’re using a responsive theme that adapts to any screen size you shouldn’t use the theme switching feature (don’t select a theme).\u003C\u002Fp>\n\u003Cp>\u003Cstrong>How it works:\u003C\u002Fstrong>\u003C\u002Fp>\n\u003Cul>\n\u003Cli>On each page load, this plugin checks for the existence of a cookie that stores which theme (mobile-optimized or desktop-optimized) the user prefers to browse.\u003C\u002Fli>\n\u003Cli>If the cookie exists, the theme the user expects will be displayed.\u003C\u002Fli>\n\u003Cli>If the cookie does not exist (first-time visitor), this plugin checks whether the user is visiting your site with a mobile device or not and, if he is, your mobile-optimized theme will be used. Afterwards, a cookie will be set to store the user’s “initial preference”.\u003C\u002Fli>\n\u003Cli>Anytime the user switches (you must create a link\u002Fbutton in your theme using the Template functions below) between themes, the cookie is updated with his preference so the site version (theme) the user expects will be displayed on future visits.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>\u003Cstrong>Template functions\u003C\u002Fstrong>\u003C\u002Fp>\n\u003Cul>\n\u003Cli>\n\u003Cp>\u003Ccode>MobileDTS::get_switch_theme_link()\u003C\u002Fcode> Returns the current URL with an additional \u003Ccode>switch_theme\u003C\u002Fcode> parameter (set automatically to ‘mobile’ or ‘desktop’). You’ll need this function to create a link\u002Fbutton that allows users to switch between the desktop and mobile themes. See example below.\u003C\u002Fp>\n\u003C\u002Fli>\n\u003Cli>\n\u003Cp>\u003Ccode>MobileDTS::switch_theme_link()\u003C\u002Fcode>: same as above but this one outputs the URL instead of returning it. URL is escaped.\u003C\u002Fp>\n\u003C\u002Fli>\n\u003Cli>\n\u003Cp>\u003Ccode>MobileDTS::get_switch_theme_name()\u003C\u002Fcode> returns the type of the theme to switch to (either ‘mobile’ or ‘desktop’). Use this method together with \u003Ccode>get_switch_theme_link()\u003C\u002Fcode>. The type can be translated to your language (plugin uses wp’s \u003Ccode>__()\u003C\u002Fcode> function for ‘mobile’ & ‘desktop’ strings).\u003C\u002Fp>\n\u003C\u002Fli>\n\u003Cli>\n\u003Cp>\u003Ccode>MobileDTS::switch_theme_name()\u003C\u002Fcode> same as above but this one outputs the type instead of returning it.\u003C\u002Fp>\n\u003C\u002Fli>\n\u003Cli>\n\u003Cp>\u003Ccode>MobileDTS::is_mobile_theme()\u003C\u002Fcode> tells you wether your site is displaying to the user the mobile theme or not. Returns boolean \u003Ccode>true\u003C\u002Fcode> or \u003Ccode>false\u003C\u002Fcode>.\u003C\u002Fp>\n\u003C\u002Fli>\n\u003Cli>\n\u003Cp>\u003Ccode>MobileDTS::is_switcher_enabled()\u003C\u002Fcode> tells you wether theme switching is disabled or not. Returns boolean \u003Ccode>true\u003C\u002Fcode> or \u003Ccode>false\u003C\u002Fcode>.\u003C\u002Fp>\n\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>\u003Cstrong>Creating a ‘Switch to …’ link\u003C\u002Fstrong>\u003C\u002Fp>\n\u003Cp>Let’s create a switch link to allow the user to switch between the 2 versions of a site (themes):\u003C\u002Fp>\n\u003Cpre>\u003Ccode>\u003C?php if (MobileDTS::is_switcher_enabled()): \u002F\u002F Optional but useful if you need to disable theme switching for a while. ?>\n\n\u003Ca href=\"\u003C?php MobileDTS::switch_theme_link() ?>\">Switch to the \u003C?php MobileDTS::switch_theme_name() ?> version of this site\u003C\u002Fa>\n\n\u003C?php endif; ?>\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>Paste that code in your templates (usually in \u003Ccode>header.php\u003C\u002Fcode> and\u002For \u003Ccode>footer.php\u003C\u002Fcode>), enable theme switching and play a little.\u003C\u002Fp>\n\u003Cp>Let’s suppose a user is viewing the site (http:\u002F\u002Fexample.com\u002Fhome) for the first time with a mobile device and theme switching is enabled. The above code would output this link:\u003C\u002Fp>\n\u003Cpre>\u003Ccode>\u003Ca href=\"http:\u002F\u002Fexample.com\u002Fhome?switch_theme=desktop\">Switch to the desktop version of this site\u003C\u002Fa>\n\u003C\u002Fcode>\u003C\u002Fpre>\n","Lightweight detector of mobile devices, OSs & browsers. Optionally a mobile theme switcher.",300,42207,100,4,"2012-12-21T01:52:00.000Z","3.5.2","3.0","",[29,30,31,32,33],"detector","device","mobile","switcher","theme","https:\u002F\u002Fdownloads.wordpress.org\u002Fplugin\u002Fmobile-detector.2.0.2.zip",0,null,"2026-03-15T15:16:48.613Z",{"slug":39,"name":40,"version":41,"author":5,"author_profile":6,"description":42,"short_description":43,"active_installs":22,"downloaded":44,"rating":22,"num_ratings":45,"last_updated":46,"tested_up_to":47,"requires_at_least":48,"requires_php":27,"tags":49,"homepage":55,"download_link":56,"security_score":9,"vuln_count":35,"unpatched_count":35,"last_vuln_date":36,"fetched_at":37},"sort-query-posts","Sort Query Posts","1.1","\u003Cp>A really simple and lightweight plugin (73 lines of code – comments included) to sort posts on-the-fly without making a new query to the database (improves performance).\u003C\u002Fp>\n\u003Ch4>Features:\u003C\u002Fh4>\n\u003Cul>\n\u003Cli>Supports \u003Cstrong>all \u003Ccode>order_by\u003C\u002Fcode> and \u003Ccode>order\u003C\u002Fcode> values of the \u003Ca href=\"https:\u002F\u002Fcodex.wordpress.org\u002FFunction_Reference\u002Fquery_posts#Orderby_Parameters\" rel=\"nofollow ugc\">query_posts function\u003C\u002Fa>\u003C\u002Fstrong> except \u003Ccode>meta_value\u003C\u002Fcode> and \u003Ccode>meta_value_num\u003C\u002Fcode> (which require a database query).\u003C\u002Fli>\n\u003Cli>Supports \u003Cstrong>changing the order of all types of posts\u003C\u002Fstrong>, including custom post type posts and custom post type “archive” posts.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch4>Documentation\u003C\u002Fh4>\n\u003Cp>This plugin adds the function \u003Ccode>sort_query_posts_by(string $order_by [, string $order])\u003C\u002Fcode> to the global context.\u003Cbr \u002F>\nThe second \u003Ccode>$order\u003C\u002Fcode> parameter is optional. Its default value is \u003Ccode>asc\u003C\u002Fcode> (ascending order).\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Call this function before \u003Ca href=\"https:\u002F\u002Fcodex.wordpress.org\u002FThe_Loop\" rel=\"nofollow ugc\">the loop\u003C\u002Fa> to change how posts are ordered.\u003C\u002Fstrong>\u003Cbr \u002F>\nAfter calling this function you can show the posts as you normally would.\u003C\u002Fp>\n\u003Cp>You can sort posts by:\u003C\u002Fp>\n\u003Cul>\n\u003Cli>author\u003C\u002Fli>\n\u003Cli>comment_count\u003C\u002Fli>\n\u003Cli>date\u003C\u002Fli>\n\u003Cli>id\u003C\u002Fli>\n\u003Cli>menu_order\u003C\u002Fli>\n\u003Cli>modified\u003C\u002Fli>\n\u003Cli>parent\u003C\u002Fli>\n\u003Cli>title\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>This is specially useful in two cases:\u003C\u002Fp>\n\u003Cul>\n\u003Cli>When you need to reorder the posts returned by the query that WordPress creates from your given URL. Custom post type “archive” posts are a great example of this case.\u003C\u002Fli>\n\u003Cli>When you need the posts returned by your customized query (e.g. \u003Ccode>query_posts()\u003C\u002Fcode>) to be shown more than once on the same page and ordered differently.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>\u003Cstrong>Examples:\u003C\u002Fstrong>\u003C\u002Fp>\n\u003Cpre>\u003Ccode>\u003C?php sort_query_posts_by('title', 'desc'); ?>\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>The example above will sort posts by their title in descending order without making a new query to the database.\u003Cbr \u002F>\nThis way sorting is performance friendly.\u003C\u002Fp>\n\u003Cpre>\u003Ccode>\u003C?php sort_query_posts_by('ID'); ?>\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>The example above will sort posts by their ID in ascending order.\u003C\u002Fp>\n\u003Cpre>\u003Ccode>\u003C?php sort_query_posts_by('rand'); ?>\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>The example above will sort posts randomly. When sorting randomly \u003Ccode>$order\u003C\u002Fcode> is ignored.\u003C\u002Fp>\n\u003Cp>Plugin developed by Túbal Martín at \u003Ca href=\"http:\u002F\u002Fwww.margenn.com\" rel=\"nofollow ugc\">www.margenn.com\u003C\u002Fa>.\u003C\u002Fp>\n","Sort posts on-the-fly without making a new SQL query",11890,3,"2012-09-04T12:11:00.000Z","3.4.2","2.5",[50,51,52,53,54],"order_by","post","query","reorder","sort","http:\u002F\u002Fwordpress.org\u002Fextend\u002Fplugins\u002Fsort-query-posts","https:\u002F\u002Fdownloads.wordpress.org\u002Fplugin\u002Fsort-query-posts.1.1.zip"]