only screen and (max-device-width : 530px){ .mm-extension {width: 46%;} .header h1 {font-size: 28px;} } @media only screen and (max-width : 320px), only screen and (max-device-width : 320px){ .mm-extension {width: 96%;} .mm-extension img {width: 96%;} .mm-extension h3 {font-size: 18px;} .mm-extension p, .header p {font-size: 18px;} .header h1 {font-size: 70px;} } </style> <div class="mm-extension-outer"> <?php if (!empty($submodule)) { $extension = MM_ExtensionsFactory::getExtension($submodule); if (!is_null($extension)) { echo $extension->displayConfigScreen(); } else { echo "<em>{$submodule}</em> is not a valid extension"; } } else { $extensionList = MM_ExtensionsFactory::getAvailableExtensions(); foreach ($extensionList as $anExtension) { $anExtension->displayListingItem(); } } ?> </div>
exit; } throw new Exception($response->message, "1001014"); } //end signup block exit; } try { $request = $_GET + $_POST; if (!isset($request['cmd']) || !isset($request['provider'])) { //script called incorrectly throw new Exception("Social login authenticator called incorrectly", "1001003"); } $providerToken = ucfirst(strtolower(htmlentities($request['provider']))); //hybridauth requires providers be all lowercase with the first letter capitalized $provider = MM_ExtensionsFactory::getExtension($providerToken); if (is_null($provider) || !$provider instanceof MM_AbstractSocialLoginExtension || !$provider->isActive()) { //can't access requested provider throw new Exception("Requested Social Login Provider not found", "1001004"); } if ($request['cmd'] == "login") { processLogin($request, $provider); exit; } else { if ($request['cmd'] == "signup") { processSignup($request, $provider); exit; } } } catch (Exception $e) { //redirect to error page