Beispiel #1
0
You should have received a copy of the GNU General Public License,
and the GNU Lesser General Public License along with this program.
If not, see http://www.gnu.org/licenses/.

You may contact the copyright holder through XOOPS Project:
http://xoops.org
EOT;
echo '<h4>Extracted Description</h4>';
// get the intro of the article to use as the description
$description = Metagen::generateDescription($article, 50);
echo '<p>' . $description . '</p>';
echo '<h4>SEO Slug</h4>';
// turn title into a slug
echo '<p>' . Metagen::generateSeoTitle($title) . '</p>';
// highlight keywords in article
echo '<h4>Article with Top 25 Keywords Highlighted</h4>';
// get important words from title
$title_keywords = Metagen::generateKeywords($title, 25, 3);
//Debug::dump($title_keywords);
// get top 25 keywords, but always keep keywords from title
$keywords = Metagen::generateKeywords($article, 25, 4, $title_keywords);
Debug::dump($keywords, true);
echo Highlighter::apply($keywords, $article);
// add to the page
Metagen::assignTitle($title);
Metagen::assignKeywords($keywords);
Metagen::assignDescription($description);
// dump our source
echo '<br /><h2>Source code</h2>';
\Xoops\Utils::dumpFile(__FILE__);
$xoops->footer();
Beispiel #2
0
<?php

/*
You may not change or alter any portion of this comment or credits
of supporting developers from this source code or any supporting source code
which is considered copyrighted (c) material of the original comment or credit authors.

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.
*/
/**
 * @copyright       XOOPS Project (http://xoops.org)
 * @license         GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
 * @author          trabis <*****@*****.**>
 * @version         $Id$
 */
include dirname(dirname(__DIR__)) . '/mainfile.php';
$xoops = Xoops::getInstance();
$xoops->header();
echo "\nSince 2.6.0, the search functionality was removed from core.<br />\nNow you need to install the 'Search' Module to get search functionality<br />\n<br />\nThe method for implementing search does no longer uses xoops_version.php<br />\nThe 'Search' module provides a 'Plugin' interface that modules should implement<br />\nThe new class \\Xoops\\Module\\Plugin is the class that makes using plugins simple and effective!<br />\n<br />\nSee how Codex module hooks into the search module just by using this codex/class/plugin/search.php\n";
\Xoops\Utils::dumpFile(__DIR__ . '/class/plugin/search.php');
$xoops->footer();
Beispiel #3
0
<?php

/*
You may not change or alter any portion of this comment or credits
of supporting developers from this source code or any supporting source code
which is considered copyrighted (c) material of the original comment or credit authors.

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.
*/
/**
 * @copyright       XOOPS Project (http://xoops.org)
 * @license         GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
 * @author          trabis <*****@*****.**>
 * @version         $Id$
 */
include dirname(dirname(__DIR__)) . '/mainfile.php';
$xoops = Xoops::getInstance();
$xoops->header();
echo "\nYou need to install the 'Menus' Module to get menus functionality<br />\n<br />\nThe 'Menus' module provides a 'Plugin' interface that modules should implement<br />\nThe new class \\Xoops\\Module\\Plugin is the class that makes using plugins simple and effective!<br />\n<br />\nSee how Codex module hooks into the menus module just by using this codex/class/plugin/menus.php\n";
\Xoops\Utils::dumpFile(__DIR__ . '/class/plugin/menus.php');
$xoops->footer();
Beispiel #4
0
<?php

/*
You may not change or alter any portion of this comment or credits
of supporting developers from this source code or any supporting source code
which is considered copyrighted (c) material of the original comment or credit authors.

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.
*/
/**
 * @copyright       XOOPS Project (http://xoops.org)
 * @license         GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
 * @author          Laurent JEN (aka DuGris)
 * @version         $Id$
 */
include dirname(dirname(__DIR__)) . '/mainfile.php';
$xoops = Xoops::getInstance();
$xoops->header();
echo "\n<strong>backend for your module</strong><br /><br />\nSince 2.6.0, the backend functionality use a 'Plugin' interface.<br />\nThe new class \\Xoops\\Module\\Plugin is the class that makes using plugins simple and effective!<br />\n<br />\n<ul>\n    <li>Copy the file <strong><i>root_path/backend.php</i></strong> in to your module folder</li>\n    <li>Copy the file <strong><i>root_path/modules/system/templates/system_rss.tpl</i></strong> to in your module templates folder</li>\n    <li>Create backend plugin <i>see the <a href='system-plugin.php' title='System plugin sample'><strong>System plugin sample</strong></a></li>\n</ul>\n";
\Xoops\Utils::dumpFile(__DIR__ . '/class/plugin/system.php');
$xoops->footer();
Beispiel #5
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.
*/
/**
 * @copyright       XOOPS Project (http://xoops.org)
 * @license         GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
 * @author          Richard Griffith <*****@*****.**>
 */
require dirname(dirname(__DIR__)) . '/mainfile.php';
$xoops = Xoops::getInstance();
$xoops->header();
// set custom filters for outputing scss and less assets
$xoops->theme()->setNamedAsset('testscss', 'modules/codex/assets/scss/test.scss', 'scssphp');
$xoops->theme()->setNamedAsset('testless', 'modules/codex/assets/less/test.less', 'lessphp');
// add custom filtered assets just like any other assets
$xoops->theme()->addStylesheetAssets(array('@testscss', '@testless'));
echo <<<EOT
    <p class="scss-example">This is an example of new asset managment capabilities
        using styles created directly from SCSS and LESS sources.</p>
    <div class="shape" id="shape1"></div>
    <div class="shape" id="shape2"></div>
    <div class="shape" id="shape3"></div>
EOT;
\Xoops\Utils::dumpFile(__FILE__);
echo '<h3>Simple SCSS example - assets/scss/test.scss</h3>';
\Xoops\Utils::dumpFile($xoops->path('modules/codex/assets/scss/test.scss'));
echo '<h3>Simple Less example - assets/less/test.less</h3>';
\Xoops\Utils::dumpFile($xoops->path('modules/codex/assets/less/test.less'));
$xoops->footer();