Skip to content
This repository has been archived by the owner on Jul 4, 2020. It is now read-only.

Commit

Permalink
v1.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
aik27 committed Mar 14, 2020
1 parent 890f7f7 commit 6d22ee5
Show file tree
Hide file tree
Showing 23 changed files with 1,533 additions and 1,425 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -190,14 +190,14 @@ try {
'langPath' => $_SERVER['DOCUMENT_ROOT'].'/inwidget/langs/',
);

$inWidget = new \inWidget\Core($config);
$inWidget = new \InWidget\Core($config);

// Also, you may change default values of properties

/*
$inWidget->width = 800; // widget width in pixels
$inWidget->inline = 6; // number of images in single line
$inWidget->view = 18; // number of images in widget
$inWidget->view = 18; // number of images in widget
$inWidget->toolbar = false; // show profile avatar, statistic and action button
$inWidget->preview = 'large'; // quality of images: small, large, fullsize
$inWidget->adaptive = false; // enable adaptive mode
Expand Down
22 changes: 12 additions & 10 deletions classes/Autoload.php
@@ -1,14 +1,16 @@
<?php

class inWidgetAutoloader
class InWidgetAutoloader
{
private static $_lastLoadedFilename;
public static function loadPackages($className)
{
$className = str_replace("\\", "/", $className);
$pathParts = explode('_', $className);
self::$_lastLoadedFilename = implode('/', $pathParts) . '.php';
require_once(__DIR__.'/'.self::$_lastLoadedFilename);
}
private static $lastLoadedFilename;

public static function loadPackages($className)
{
$className = str_replace("\\", "/", $className);
$pathParts = explode('_', $className);
self::$lastLoadedFilename = implode('/', $pathParts) . '.php';
require_once(__DIR__ . '/' . self::$lastLoadedFilename);
}
}
spl_autoload_register(array('inWidgetAutoloader', 'loadPackages'));

spl_autoload_register(array('InWidgetAutoloader', 'loadPackages'));
10 changes: 5 additions & 5 deletions classes/InWidget.php
@@ -1,7 +1,7 @@
<?php

require_once __DIR__ . '/InWidget/Exception/inWidgetException.php';
require_once __DIR__ . '/InWidget/API/apiModel.php';
require_once __DIR__ . '/InWidget/API/apiScraper.php';
require_once __DIR__ . '/InWidget/API/apiOfficial.php';
require_once __DIR__ . '/InWidget/Core.php';
require_once __DIR__ . '/InWidget/Exception/InWidgetException.php';
require_once __DIR__ . '/InWidget/Api/ApiModel.php';
require_once __DIR__ . '/InWidget/Api/ApiScraper.php';
require_once __DIR__ . '/InWidget/Api/ApiOfficial.php';
require_once __DIR__ . '/InWidget/Core.php';
121 changes: 0 additions & 121 deletions classes/InWidget/API/apiModel.php

This file was deleted.

0 comments on commit 6d22ee5

Please sign in to comment.