Ejemplo n.º 1
0
function recentMoves()
{
    global $moduleName, $iConfig;
    $tooltipTheme = $iConfig['tooltip_theme'];
    $inlineJS = '<script type="text/javascript">
      $j = jQuery.noConflict();
      $j(document).ready(function(){
        $j(".thumb-target").tooltip();
      });
    </script>' . PHP_EOL;
    AddCSSToHead('modules/' . $moduleName . '/includes/jquery/jquery.tooltip/themes/' . $tooltipTheme . '/jquery.tooltip.css', 'file');
    AddJSToHead('includes/jquery/jquery.js', 'file');
    AddJSToHead('modules/' . $moduleName . '/includes/jquery/jquery.tooltip.js', 'file');
    AddJSToHead($inlineJS, 'inline');
    galleryHeader();
    echo '<h2 class="top-pics">' . _IG_LATESTPICS . '</h2>' . PHP_EOL;
    showTopPics('Popular', 'Recent');
    echo '<h2 class="top-pics">' . _IG_RECENTLYRATEDPICS . '</h2>' . PHP_EOL;
    showTopPics('Rated', 'Recent');
    echo '<h2 class="top-pics">' . _IG_RECENTLYCOMMPICS . '</h2>' . PHP_EOL;
    showTopPics('Commented', 'Recent');
    galleryFooter();
}
Ejemplo n.º 2
0
 *	This program is distributed in the hope that it will be useful,
 *	but WITHOUT ANY WARRANTY; without even the implied warranty of
 *	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *	GNU General Public License for more details.
 *
 *	You should have received a copy of the GNU General Public License
 *	along with this program; if not, write to the Free Software
 *	Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 *	MA 02110-1301, USA.
 */
$modname = 'iGallery';
$moduleName = basename(dirname(dirname(__FILE__)));
define('IN_IGM', TRUE);
require_once NUKE_BASE_DIR . 'modules/' . $moduleName . '/includes/settings.php';
include_once NUKE_BASE_DIR . 'modules/' . $moduleName . '/includes/functions.php';
AddCSSToHead('modules/' . $moduleName . '/includes/style.css', 'file');
get_lang($moduleName);
if (isset($_GET['op'])) {
    $op = $_GET['op'];
} elseif (isset($_POST['op'])) {
    $op = $_POST['op'];
} else {
    $op = 'galAdmin';
}
$pag = isset($_GET['pag']) ? $_GET['pag'] : 1;
switch ($op) {
    case 'galAbout':
        galAbout();
        break;
    case 'galAdmin':
        galAdmin();