XoopsModules25x /
news
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
| 1 | <?php |
||
| 2 | // |
||
| 3 | // Module Info |
||
| 4 | // The name of this module |
||
| 5 | define('_MI_NEWS_NAME', 'News'); |
||
| 6 | // A brief description of this module |
||
| 7 | define('_MI_NEWS_DESC', 'Creates a News/Blog section, where users can post news/comments.'); |
||
| 8 | // Names of blocks for this module (Not all module has blocks) |
||
| 9 | define('_MI_NEWS_BNAME1', 'News topics'); |
||
| 10 | define('_MI_NEWS_BNAME3', 'Big story'); |
||
| 11 | define('_MI_NEWS_BNAME4', 'Top news'); |
||
| 12 | define('_MI_NEWS_BNAME5', 'Recent news'); |
||
| 13 | define('_MI_NEWS_BNAME6', 'Moderate news'); |
||
| 14 | define('_MI_NEWS_BNAME7', 'Navigate through topics'); |
||
| 15 | // Sub menus in main menu block |
||
| 16 | define('_MI_NEWS_SMNAME1', 'Submit news'); |
||
| 17 | define('_MI_NEWS_SMNAME2', 'Archive'); |
||
| 18 | // Names of admin menu items |
||
| 19 | define('_MI_NEWS_ADMENU2', 'Topics manager'); |
||
| 20 | define('_MI_NEWS_ADMENU3', 'Post/Edit news'); |
||
| 21 | define('_MI_NEWS_GROUPPERMS', 'Permissions'); |
||
| 22 | // Added by Hervé for prune option |
||
| 23 | define('_MI_NEWS_PRUNENEWS', 'Prune news'); |
||
| 24 | // Added by Hervé |
||
| 25 | define('_MI_NEWS_EXPORT', 'News export'); |
||
| 26 | // Title of config items |
||
| 27 | define('_MI_STORYHOME', 'Select the number of news items to display on top page'); |
||
| 28 | define('_MI_NOTIFYSUBMIT', 'Select yes to send notification message to webmaster upon new submission'); |
||
| 29 | define('_MI_DISPLAYNAV', 'Select yes to display navigation box at the top of each news page'); |
||
| 30 | define('_MI_AUTOAPPROVE', 'Auto approve news stories without admin intervention?'); |
||
| 31 | define('_MI_ALLOWEDSUBMITGROUPS', 'Groups who can submit news'); |
||
| 32 | define('_MI_ALLOWEDAPPROVEGROUPS', 'Groups who can approve news'); |
||
| 33 | define('_MI_NEWSDISPLAY', 'News display layout'); |
||
| 34 | define('_MI_NAMEDISPLAY', "Author's name"); |
||
| 35 | define('_MI_COLUMNMODE', 'Columns'); |
||
| 36 | define('_MI_STORYCOUNTADMIN', 'Number of new articles to display in admin area (this option will be also used to limit the number of topics displayed in the admin area and it will be used in the statistics): '); |
||
| 37 | define('_MI_UPLOADFILESIZE', 'Max file size upload (KB) 1048576 = 1 Meg'); |
||
| 38 | define('_MI_UPLOADGROUPS', 'Authorized groups to upload'); |
||
| 39 | // Description of each config items |
||
| 40 | define('_MI_STORYHOMEDSC', ''); |
||
| 41 | define('_MI_NOTIFYSUBMITDSC', ''); |
||
| 42 | define('_MI_DISPLAYNAVDSC', ''); |
||
| 43 | define('_MI_AUTOAPPROVEDSC', ''); |
||
| 44 | define('_MI_ALLOWEDSUBMITGROUPSDESC', 'The selected groups will be able to submit news items'); |
||
| 45 | define('_MI_ALLOWEDAPPROVEGROUPSDESC', 'The selected groups will be able to approve news items'); |
||
| 46 | define('_MI_NEWSDISPLAYDESC', 'Classic shows all news ordered by date of publish. News by topic will group the news by topic with the latest story in full and the others with just the title'); |
||
| 47 | define('_MI_ADISPLAYNAMEDSC', "Select how to display the author's name"); |
||
| 48 | define('_MI_COLUMNMODE_DESC', 'You can choose the number of columns to display articles list'); |
||
| 49 | define('_MI_STORYCOUNTADMIN_DESC', ''); |
||
| 50 | define('_MI_UPLOADFILESIZE_DESC', ''); |
||
| 51 | define('_MI_UPLOADGROUPS_DESC', 'Select the groups who can upload to the server'); |
||
| 52 | // Name of config item values |
||
| 53 | define('_MI_NEWSCLASSIC', 'Classic'); |
||
| 54 | define('_MI_NEWSBYTOPIC', 'By topic'); |
||
| 55 | define('_MI_DISPLAYNAME1', 'Username'); |
||
| 56 | define('_MI_DISPLAYNAME2', 'Real name'); |
||
| 57 | define('_MI_DISPLAYNAME3', 'Do not display author'); |
||
| 58 | define('_MI_UPLOAD_GROUP1', 'Submitters and approvers'); |
||
| 59 | define('_MI_UPLOAD_GROUP2', 'Approvers only'); |
||
| 60 | define('_MI_UPLOAD_GROUP3', 'Upload disabled'); |
||
| 61 | // Text for notifications |
||
| 62 | define('_MI_NEWS_GLOBAL_NOTIFY', 'Global'); |
||
| 63 | define('_MI_NEWS_GLOBAL_NOTIFYDSC', 'Global news notification options.'); |
||
| 64 | define('_MI_NEWS_STORY_NOTIFY', 'Story'); |
||
| 65 | define('_MI_NEWS_STORY_NOTIFYDSC', 'Notification options that apply to the current story.'); |
||
| 66 | define('_MI_NEWS_GLOBAL_NEWCATEGORY_NOTIFY', 'New topic'); |
||
| 67 | define('_MI_NEWS_GLOBAL_NEWCATEGORY_NOTIFYCAP', 'Notify me when a new topic is created.'); |
||
| 68 | define('_MI_NEWS_GLOBAL_NEWCATEGORY_NOTIFYDSC', 'Receive notification when a new topic is created.'); |
||
| 69 | define('_MI_NEWS_GLOBAL_NEWCATEGORY_NOTIFYSBJ', '[{X_SITENAME}] {X_MODULE} auto-notify: New news topic'); |
||
| 70 | define('_MI_NEWS_GLOBAL_STORYSUBMIT_NOTIFY', 'New story submitted'); |
||
| 71 | define('_MI_NEWS_GLOBAL_STORYSUBMIT_NOTIFYCAP', 'Notify me when any new story is submitted (awaiting approval).'); |
||
| 72 | define('_MI_NEWS_GLOBAL_STORYSUBMIT_NOTIFYDSC', 'Receive notification when any new story is submitted (awaiting approval).'); |
||
| 73 | define('_MI_NEWS_GLOBAL_STORYSUBMIT_NOTIFYSBJ', '[{X_SITENAME}] {X_MODULE} auto-notify: New news story submitted'); |
||
| 74 | define('_MI_NEWS_GLOBAL_NEWSTORY_NOTIFY', 'New story'); |
||
| 75 | define('_MI_NEWS_GLOBAL_NEWSTORY_NOTIFYCAP', 'Notify me when any new story is posted.'); |
||
| 76 | define('_MI_NEWS_GLOBAL_NEWSTORY_NOTIFYDSC', 'Receive notification when any new story is posted.'); |
||
| 77 | define('_MI_NEWS_GLOBAL_NEWSTORY_NOTIFYSBJ', '[{X_SITENAME}] {X_MODULE} auto-notify: New news story'); |
||
| 78 | define('_MI_NEWS_STORY_APPROVE_NOTIFY', 'Story approved'); |
||
| 79 | define('_MI_NEWS_STORY_APPROVE_NOTIFYCAP', 'Notify me when this story is approved.'); |
||
| 80 | define('_MI_NEWS_STORY_APPROVE_NOTIFYDSC', 'Receive notification when this story is approved.'); |
||
| 81 | define('_MI_NEWS_STORY_APPROVE_NOTIFYSBJ', '[{X_SITENAME}] {X_MODULE} auto-notify: Story approved'); |
||
| 82 | define('_MI_RESTRICTINDEX', 'Restrict topics on index page?'); |
||
| 83 | define('_MI_RESTRICTINDEXDSC', "If set to 'yes', users will only see news items listed in the index from the topics, they have access to as set in news permissions"); |
||
| 84 | define('_MI_NEWSBYTHISAUTHOR', 'News by the same author'); |
||
| 85 | define('_MI_NEWSBYTHISAUTHORDSC', "If you set this option to 'yes', then a link 'Articles by this author' will be visible"); |
||
| 86 | define('_MI_NEWS_PREVNEX_LINK', 'Show previous and next link?'); |
||
| 87 | define('_MI_NEWS_PREVNEX_LINK_DESC', "When this option is set to 'yes', two new links are visible at the bottom of each article. Those links are used to go to the previous and next article according to the publish date"); |
||
| 88 | define('_MI_NEWS_SUMMARY_SHOW', 'Show summary table?'); |
||
| 89 | define('_MI_NEWS_SUMMARY_SHOW_DESC', 'When you use this option, a summary containing links to all the recent published articles is visible at the bottom of each article'); |
||
| 90 | define('_MI_NEWS_AUTHOR_EDIT', 'Enable authors to edit their post?'); |
||
| 91 | define('_MI_NEWS_AUTHOR_EDIT_DESC', 'With this option, authors can edit their posts.'); |
||
| 92 | define('_MI_NEWS_RATE_NEWS', 'Enable users to rate news?'); |
||
| 93 | define('_MI_NEWS_TOPICS_RSS', 'Enable RSS feeds per topics?'); |
||
| 94 | define('_MI_NEWS_TOPICS_RSS_DESC', "If you set this option to 'yes' then the topics content will be available as RSS feeds"); |
||
| 95 | define('_MI_NEWS_DATEFORMAT', "Date's format"); |
||
| 96 | define('_MI_NEWS_DATEFORMAT_DESC', "Please refer to the Php documentation (http://php.net/manual/en/function.date.php) for more information on how to select the format. Note, if you don't type anything then the default date's format will be used"); |
||
| 97 | define('_MI_NEWS_META_DATA', 'Enable meta data (keywords and description) to be entered?'); |
||
| 98 | define('_MI_NEWS_META_DATA_DESC', "If you set this option to 'yes' then the approvers will be able to enter the following meta data: keywords and description"); |
||
| 99 | define('_MI_NEWS_BNAME8', 'Random news'); |
||
| 100 | define('_MI_NEWS_NEWSLETTER', 'Newsletter'); |
||
| 101 | define('_MI_NEWS_STATS', 'Statistics'); |
||
| 102 | define('_MI_NEWS_FORM_OPTIONS', 'Form option'); |
||
| 103 | define('_MI_NEWS_FORM_COMPACT', 'Compact'); |
||
| 104 | define('_MI_NEWS_FORM_DHTML', 'DHTML'); |
||
| 105 | define('_MI_NEWS_FORM_SPAW', 'Spaw editor'); |
||
| 106 | define('_MI_NEWS_FORM_HTMLAREA', 'HtmlArea editor'); |
||
| 107 | define('_MI_NEWS_FORM_FCK', 'FCK editor'); |
||
| 108 | define('_MI_NEWS_FORM_KOIVI', 'Koivi editor'); |
||
| 109 | define('_MI_NEWS_FORM_OPTIONS_DESC', "Select the editor to use. If you have a 'simple' install (e.g you use only xoops core editor class, provided in the standard xoops core package), then you can just select DHTML and Compact"); |
||
| 110 | define('_MI_NEWS_KEYWORDS_HIGH', 'Use keywords highlighting?'); |
||
| 111 | define('_MI_NEWS_KEYWORDS_HIGH_DESC', 'If you use this option, then the keywords typed in the search will be highlighted in the articles'); |
||
| 112 | define('_MI_NEWS_HIGH_COLOR', 'Color used to highlight keywords?'); |
||
| 113 | define('_MI_NEWS_HIGH_COLOR_DES', "Only use this option if you have chosen 'yes' for the previous option"); |
||
| 114 | define('_MI_NEWS_INFOTIPS', 'Tooltips length'); |
||
| 115 | define('_MI_NEWS_INFOTIPS_DES', 'If you use this option, links related to news will contains the first (n) characters of the article. If you set this value to 0, then the infotip will be empty'); |
||
| 116 | define('_MI_NEWS_SITE_NAVBAR', "Use Mozilla and Opera site navigation's bar?"); |
||
| 117 | define('_MI_NEWS_SITE_NAVBAR_DESC', "If you set this option to 'yes', then the visitors of your website will be able to use the site navigation's bar to navigate through your articles."); |
||
| 118 | define('_MI_NEWS_TABS_SKIN', 'Select the skin to use in tabs'); |
||
| 119 | define('_MI_NEWS_TABS_SKIN_DESC', 'This skin will be used by all blocks which uses tabs'); |
||
| 120 | define('_MI_NEWS_SKIN_1', 'Bar style'); |
||
| 121 | define('_MI_NEWS_SKIN_2', 'Beveled'); |
||
| 122 | define('_MI_NEWS_SKIN_3', 'Classic'); |
||
| 123 | define('_MI_NEWS_SKIN_4', 'Folders'); |
||
| 124 | define('_MI_NEWS_SKIN_5', 'MacOs'); |
||
| 125 | define('_MI_NEWS_SKIN_6', 'Plain'); |
||
| 126 | define('_MI_NEWS_SKIN_7', 'Rounded'); |
||
| 127 | define('_MI_NEWS_SKIN_8', 'ZDnet style'); |
||
| 128 | // Added in version 1.50 |
||
| 129 | define('_MI_NEWS_BNAME9', 'Archives'); |
||
| 130 | define('_MI_NEWS_FORM_TINYEDITOR', 'TinyEditor'); |
||
| 131 | define('_MI_NEWS_FOOTNOTES', 'Shows links in printable versions of your articles?'); |
||
| 132 | define('_MI_NEWS_DUBLINCORE', "Activate 'Dublin Core Metadata'?"); |
||
| 133 | define('_MI_NEWS_DUBLINCORE_DSC', "For more information, <a href='http://dublincore.org/'>visit this link</a>"); |
||
| 134 | define('_MI_NEWS_BOOKMARK_ME', "Display a 'Bookmark this article at these sites' block?"); |
||
| 135 | define('_MI_NEWS_BOOKMARK_ME_DSC', "This block will be visible on the article's page"); |
||
| 136 | //define('_MI_NEWS_FF_MICROFORMAT',"Activate 'Firefox Micro Summaries'?");//obsolete, see here : http://wiki.mozilla.org/Microsummaries (cesagonchu) |
||
|
0 ignored issues
–
show
|
|||
| 137 | //define('_MI_NEWS_FF_MICROFORMAT_DSC',"For more information, see <a href='http://wiki.mozilla.org/Microsummaries' target='_blank'>this page</a>");//obsolete, see here : http://wiki.mozilla.org/Microsummaries (cesagonchu) |
||
| 138 | define('_MI_NEWS_WHOS_WHO', "Who's who"); |
||
| 139 | define('_MI_NEWS_METAGEN', 'Metagen'); |
||
| 140 | define('_MI_NEWS_TOPICS_DIRECTORY', 'Topics directory'); |
||
| 141 | define('_MI_NEWS_ADVERTISEMENT', 'Advertisement'); |
||
| 142 | define('_MI_NEWS_ADV_DESCR', 'Enter a text or a java-script code to display in your articles'); |
||
| 143 | define('_MI_NEWS_MIME_TYPES', 'Enter authorized mime-types for upload (separated them on a new line)'); |
||
| 144 | define('_MI_NEWS_ENHANCED_PAGENAV', 'Use enhanced page navigator?'); |
||
| 145 | define('_MI_NEWS_ENHANCED_PAGENAV_DSC', 'With this option you can separate your pages with something like this: [pagebreak:Page Title], the links to the pages are replaced by a drop-down list and you can use [summary] to create an automatic summary of pages'); |
||
| 146 | // Added in version 1.54 |
||
| 147 | define('_MI_NEWS_CATEGORY_NOTIFY', 'Category'); |
||
| 148 | define('_MI_NEWS_CATEGORY_NOTIFYDSC', 'Notification options that apply to the current category'); |
||
| 149 | define('_MI_NEWS_CATEGORY_STORYPOSTED_NOTIFY', 'New Story Submitted'); |
||
| 150 | define('_MI_NEWS_CATEGORY_STORYPOSTED_NOTIFYCAP', 'Notify me when any new story is posted to this category.'); |
||
| 151 | define('_MI_NEWS_CATEGORY_STORYPOSTED_NOTIFYDSC', 'Receive notification when any new story is posted to this category.'); |
||
| 152 | define('_MI_NEWS_CATEGORY_STORYPOSTED_NOTIFYSBJ', '[{X_SITENAME}] {X_MODULE} auto-notify: New news story'); |
||
| 153 | // Added in version 1.63 |
||
| 154 | define('_MI_NEWS_TAGS', 'Use the tag system?'); |
||
| 155 | define('_MI_NEWS_TAGS_DSC', 'This is based on the Xoops module Tag'); |
||
| 156 | define('_MI_NEWS_BNAME10', 'Tags cloud'); |
||
| 157 | define('_MI_NEWS_BNAME11', 'Top tags'); |
||
| 158 | define('_MI_NEWS_INTRO_TEXT', 'Introduction text to show on the submit page'); |
||
| 159 | define('_MI_NEWS_IMAGE_MAX_WIDTH', 'Maximum image width when it is re-sized'); |
||
| 160 | define('_MI_NEWS_IMAGE_MAX_HEIGHT', 'Maximum image height when it is re-sized'); |
||
| 161 | //Added in 1.67 |
||
| 162 | define('_MI_NEWS_HELP', 'Help'); |
||
| 163 | define('_MI_NEWS_ABOUT', 'About'); |
||
| 164 | define('_MI_NEWS_HOME', 'Home'); |
||
| 165 | define('_MI_NEWS_UPGRADE', 'Upgrade'); |
||
| 166 | define('_MI_NEWS_DESCRIPTION', 'With this Xoops module, you can create an unlimited number of news articles on your site. <br /><br /> |
||
| 167 | You can create all articles you want and organize them in topics.<br /><br /> |
||
| 168 | With a very powerful permissions management, you can create groups authorized to submit articles and a group authorized to approve them and decide who can see what.'); |
||
| 169 | define('_MI_NEWS_SHARE_ME', 'Display share icons?'); |
||
| 170 | define('_MI_NEWS_SHARE_ME_DSC', 'Share icons to Facebook, Twitter, Google Plus'); |
||
| 171 | define('_MI_NEWS_SHOWICONS', 'Display item icons?'); |
||
| 172 | define('_MI_NEWS_SHOWICONS_DSC', 'Display icons for print and email at the bottom of each article'); |
||
| 173 | //1.67 |
||
| 174 | define('_MI_NEWS_FACEBOOKCOMMENTS', 'Use Facebook comments?'); |
||
| 175 | define('_MI_NEWS_FACEBOOKCOMMENTS_DSC', 'Let your users use Facebook to add comments to your articles'); |
||
| 176 | |||
| 177 | define('_MI_NEWS_SHOWICONS_PDF', 'Display PDF icon for non-registered users?'); |
||
| 178 | define('_MI_NEWS_SHOWICONS_PDF_DSC', 'Display PDF icon at the bottom of each article for Anonymous users'); |
||
| 179 |
Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.
The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.
This check looks for comments that seem to be mostly valid code and reports them.