<?php $plugin['name'] = 'sed_section_index'; $plugin['version'] = '0.1'; $plugin['author'] = 'Netcarver'; $plugin['author_uri'] = 'http://txp-plugins.netcarving.com'; $plugin['description'] = 'Provides indexed access to sections.'; $plugin['type'] = '1'; $plugin['order'] = 3; @(include_once '../zem_tpl.php'); # --- BEGIN PLUGIN CODE --- @require_plugin('sed_plugin_library'); if (!defined('sed_si_prefix')) { define('sed_si_prefix', 'sed_si'); } #=============================================================================== # Admin interface features... #=============================================================================== if (@txpinterface === 'admin') { add_privs('sed_si', '1,2,3,4,5,6'); global $prefs, $textarray, $_sed_si_l18n, $sed_si_prefs; #=========================================================================== # Strings for internationalisation... #=========================================================================== $_sed_si_l18n = array('alter_section_tab' => 'Alter Presentation > Section tab?', 'filter_label' => 'Filter…', 'filter_limit' => 'Show section index filter after how many sections?'); $mlp = new sed_lib_mlp('sed_section_index', $_sed_si_l18n, '', 'admin'); #=========================================================================== # Plugin preferences... #=========================================================================== $sed_si_prefs = array('alter_section_tab' => array('type' => 'yesnoradio', 'val' => '0'), 'filter_limit' => array('type' => 'text_input', 'val' => '18')); foreach ($sed_si_prefs as $key => $data) {
h1. gbp_permanent_links. There is no plugin documentation. For help please use the "forum thread":http://forum.textpattern.com/viewtopic.php?id=18918. # --- END PLUGIN HELP --- --> <?php } # --- BEGIN PLUGIN CODE --- // Constants @define('gbp_save', 'save'); @define('gbp_post', 'post'); @define('gbp_separator', '&~&~&'); // require_plugin() will reset the $txp_current_plugin global global $txp_current_plugin; $gbp_current_plugin = $txp_current_plugin; require_plugin('gbp_admin_library'); $txp_current_plugin = $gbp_current_plugin; class PermanentLinks extends GBPPlugin { var $preferences = array('show_prefix' => array('value' => 0, 'type' => 'yesnoradio'), 'show_suffix' => array('value' => 0, 'type' => 'yesnoradio'), 'omit_trailing_slash' => array('value' => 0, 'type' => 'yesnoradio'), 'redirect_mt_style_links' => array('value' => 1, 'type' => 'yesnoradio'), 'clean_page_archive_links' => array('value' => 1, 'type' => 'yesnoradio'), 'join_pretext_to_pagelinks' => array('value' => 1, 'type' => 'yesnoradio'), 'check_pretext_category_context' => array('value' => 0, 'type' => 'yesnoradio'), 'check_pretext_section_context' => array('value' => 0, 'type' => 'yesnoradio'), 'force_lowercase_urls' => array('value' => 1, 'type' => 'yesnoradio'), 'automatically_append_title' => array('value' => 1, 'type' => 'yesnoradio'), 'use_cleaver_partial_matches' => array('value' => 1, 'type' => 'yesnoradio'), 'permlink_redirect_http_status' => array('value' => '301', 'type' => 'text_input'), 'url_redirect_http_status' => array('value' => '302', 'type' => 'text_input'), 'text_and_regex_segment_scores' => array('value' => '0', 'type' => 'text_input'), 'debug' => array('value' => 0, 'type' => 'yesnoradio')); var $matched_permlink = array(); var $partial_matches = array(); var $cleaver_partial_match; var $buffer_debug = array(); function preload() { new PermanentLinksListTabView('list', 'list', $this); new PermanentLinksBuildTabView('build', 'build', $this); new GBPPreferenceTabView($this); } function main()
<txp:else /> I'm sorry, but we do not have a record for this user. </txp:mem_profile></code> p. Example for logged in user <code>Welcome back <txp:mem_profile var="RealName" /></code> # --- END PLUGIN HELP --- <?php } # --- BEGIN PLUGIN CODE --- //////////////////////////////////////////////////////////// // Plugin mem_self_register // Author: Michael Manfre (http://manfre.net/) //////////////////////////////////////////////////////////// require_plugin('mem_form'); // MLP global $mem_self_lang; if (!is_array($mem_self_lang)) { $mem_self_lang = array('account_created_mail_failed' => 'Your account has been created, but an error was encountered while attempting to email your the account information. Please contact the site administrator for help.', 'admin_name' => 'Admin Name', 'admin_email' => 'Admin Email', 'error_adding_new_author' => 'Error adding new author', 'greeting' => 'Hello {name}', 'invalid_form_tags' => 'Invalid form tags provided to form "{form}"', 'log_in_at' => 'Log in at {url}', 'log_added_pref' => 'Added pref {name}', 'log_pref_failed' => 'Failed to add pref {name}. {error}', 'log_pref_exists' => 'Pref {name} is already installed. Current value is "{value}"', 'log_col_added' => 'Added column {name} to user table {table}', 'log_col_failed' => 'Failed to add column {name} to table {table}. {error}', 'log_col_exists' => 'Table {table} already has column {name}', 'log_form_added' => 'Added form {name}', 'log_form_failed' => 'Failed to add form {name}. {error}<br>You need to manually create a form template. Here is an example.', 'log_form_found' => 'Found form {name}. Skipping installation of default form.', 'log_xmpl_tag' => 'Example tag to use in your page template.', 'mail_sorry' => 'Our mail system is currently down. Please try again later.', 'missing_form_field' => 'The required form field {name} is empty or missing.', 'password_changed' => 'Password changed', 'password_change_failed' => 'Failed to change password', 'password_invalid' => 'Invalid password', 'password_sent_to' => 'Password sent to {email}', 'saved_user_profile' => 'Saved User Profile', 'user_exists' => 'Username already exists. Please try another name', 'user_not_found' => 'A user account could not be found with the provided information.', 'your_login_info' => 'Your Login Info', 'your_new_password' => 'Your new password', 'your_password_is' => 'Your password is {password}'); } define('MEM_SELF_PREFIX', 'mem_self'); register_callback('mem_self_enumerate_strings', 'l10n.enumerate_strings'); function mem_self_enumerate_strings($event, $step = '', $pre = 0) { global $mem_self_lang; $r = array('owner' => 'mem_self_register', 'prefix' => MEM_SELF_PREFIX, 'lang' => 'en-gb', 'event' => 'public', 'strings' => $mem_self_lang); return $r; } function mem_self_gTxt($what, $args = array()) {
function wet_quickopen_jslink($event, $step) { echo '<script src="?wet_rsrc=quickopen_js" type="text/javascript"></script>' . n; require_plugin('wet_peex'); // won't help for loading wet_peex on time, but point out the lack of it to unwary users. }
* -> Article image of one of the articles is used as cover art * -> Automatic TOC generation and page breaks from Textiled markup * -> Support for book description and other meta data * * @author Stef Dawson * @link http://stefdawson.com/ */ // TODO: // * Stop preview CSS affecting Stage 2 UI layout (mobi) // * Allow preview CSS to be loaded (epub) global $smd_ebook_prefs; smd_ebook_get_prefs(); if (@txpinterface === 'admin') { // Silence warnings because, although the plugin requires smd_crunchers for // ePub creation, it'll function in a reduced capacity without it @require_plugin('smd_crunchers'); global $smd_ebook_event; $smd_ebook_event = 'smd_ebook'; $pub_prv = get_pref('smd_ebook_privs', $smd_ebook_prefs['smd_ebook_privs']['default']); add_privs($smd_ebook_event, '1' . ($pub_prv ? ',' . $pub_prv : '')); add_privs('plugin_prefs.' . $smd_ebook_event, '1'); register_tab('content', $smd_ebook_event, gTxt('smd_ebook_tab_name')); register_callback('smd_ebook_dispatcher', $smd_ebook_event); register_callback('smd_ebook_inject_css', 'admin_side', 'head_end'); register_callback('smd_ebook_dispatcher', 'plugin_prefs.' . $smd_ebook_event); register_callback('smd_ebook_welcome', 'plugin_lifecycle.' . $smd_ebook_event); } // ******************** // ADMIN SIDE INTERFACE // ******************** // -------------------------------------------------------------