コード例 #1
0
 /**
  * Gibt die Kachelbox für den Header aus.
  * @param String $titel Titel der Kachelbox
  * @param String $bild Name des Bildes
  * @param String $farbe Hintergrundfarbe (Hex Wert)
  * @param String $url URL des Links
  */
 function getKachelboxTitel($titel, $bild, $farbe, $url)
 {
     print '<div class="col-xs-6 col-md-3">';
     if ($farbe == "") {
         $farbe = "grey";
     }
     print '<div class="box" style="background-color: #' . $farbe . '">';
     print '<a href="' . $url . '">';
     print '<div class="view_head">';
     if ($bild == "") {
         $bild = "leere_kachel.png";
     }
     print '<img src="' . seo42::getImageManagerFile($bild, "d2u_kurse_header") . '" alt="' . $titel . '">';
     print '</div>';
     print '<div class="title_head">' . $titel . '</div>';
     print '</a>';
     print '</div>';
     print '</div>';
 }
コード例 #2
0
 /**
  * Gibt die Kachelbox aus.
  * @param String $titel Titel der Kachelbox
  * @param String $bild Name des Bildes
  * @param String $farbe Hintergrundfarbe (Hex Wert)
  * @param String $url URL des Links
  */
 function getKachelbox($titel, $bild, $farbe, $url)
 {
     print '<div class="col-xs-6 col-md-4 abstand" data-height-watch>';
     if ($farbe == "") {
         $farbe = "grey";
     }
     print '<div class="box" style="background-color: #' . $farbe . '">';
     print '<a href="' . $url . '">';
     print '<div class="view">';
     if ($bild == "") {
         $bild = "leere_kachel.png";
     }
     print '<img src="' . seo42::getImageManagerFile($bild, "d2u_kurse_kategorie") . '" alt="' . $titel . '">';
     print '</div>';
     print '<div class="title">' . $titel . '</div>';
     print '</a>';
     print '</div>';
     print '</div>';
 }
コード例 #3
0
 public static function includeMagnificPopup($params)
 {
     global $REX;
     if (method_exists('seo42', 'getMediaDir')) {
         $urlStart = seo42::getMediaDir();
     } else {
         $urlStart = $REX['HTDOCS_PATH'] . 'files/';
     }
     $insert = PHP_EOL;
     $insert .= "\t" . '<!-- BEGIN AddOn Magnific Popup -->' . PHP_EOL;
     $insert .= "\t" . '<link rel="stylesheet" type="text/css" href="' . $urlStart . 'addons/magnific_popup/magnific-popup.css" media="screen" />' . PHP_EOL;
     $insert .= "\t" . '<link rel="stylesheet" type="text/css" href="' . $urlStart . 'addons/magnific_popup/custom.css" media="screen" />' . PHP_EOL;
     if ($REX['ADDON']['magnific_popup']['settings']['include_jquery']) {
         $insert .= "\t" . '<script type="text/javascript" src="' . $urlStart . 'addons/magnific_popup/jquery.min.js"></script>' . PHP_EOL;
     }
     $insert .= "\t" . '<script type="text/javascript" src="' . $urlStart . 'addons/magnific_popup/jquery.magnific-popup.min.js"></script>' . PHP_EOL;
     $insert .= "\t" . '<script type="text/javascript" src="' . $urlStart . 'addons/magnific_popup/init.js"></script>' . PHP_EOL;
     $insert .= "\t" . '<!-- END AddOn Magnific Popup -->' . PHP_EOL;
     return str_replace('</head>', $insert . '</head>', $params['subject']);
 }
コード例 #4
0
         print '<td><div class="div_warenkorb"><select class="teilnehmer" name="teilnehmer_' . $kurs_id . '[' . $id . '][geschlecht]">';
         if ($teilnehmer["geschlecht"] == "M") {
             print '<option value="M" selected>Männlich</option>';
             print '<option value="W">Weiblich</option>';
         } else {
             print '<option value="M">Männlich</option>';
             print '<option value="W" selected>Weiblich</option>';
         }
         print '</select></div></td>';
         print '<td align="right"><div class="div_warenkorb">';
         $rueckfrage = "";
         if (count($array_teilnehmer) == 1) {
             $rueckfrage = ' onclick="return window.confirm(\'Wollen Sie den Kurs aus dem Warenkorb entfernen?\');"';
         }
         print '<a href="' . rex_getUrl($REX['ADDON']['d2u_kurse']['settings']['anmeldung_artikel']) . '?delete=' . $kurs_id . '&teilnehmer=' . $id . '" ' . $rueckfrage . '>';
         print '<img src="' . seo42::getMediaFile("loeschen.png") . '" alt="Aus Warenkorb entfernen"></a>';
         print '</div></td>';
         print '</tr>';
     }
     print '<tr>';
     print '<td>';
     print '<input type="submit" class="add_teilnehmer" name="teilnehmer_hinzufuegen[' . $kurs_id . ']" value="[Teilnehmer hinzufügen]"><br><br>';
     print '</td>';
     print '</tr>';
     print '</table>';
     print '</div>';
     print '</div>';
     print '</div>';
     print '</div>';
 }
 print '</div>';
コード例 #5
0
ファイル: tools.inc.php プロジェクト: omphteliba/seo42
				$('#pagerank').removeClass('loading');
				$('#pagerank').addClass('info');
				$('#pagerank').html('<?php 
echo $I18N->msg('seo42_pr_tool_failure');
?>
');
			}
		});
	});

	<?php 
if (!$REX['ADDON']['seo42']['settings']['pagerank_checker_unlock']) {
    ?>
		jQuery('.domain-unlock-form').submit(function() {
			if (confirm('<?php 
    echo $I18N->msg('seo42_tool_domain_unlock_msg', seo42::getServerWithSubDir());
    ?>
')) {
				return true;
			}

			return false;
		});
	<?php 
}
?>
});
</script>


コード例 #6
0
ファイル: config.inc.php プロジェクト: ReggaePanda/seo42
define('SEO42_NO_DOUBLE_CONTENT_REDIRECT_WWW_TO_NON_WWW', 3);
define('SEO42_NO_DOUBLE_CONTENT_REDIRECT_ONLY_HTTPS', 4);
define('SEO42_NO_DOUBLE_CONTENT_REDIRECT_AVAILABILITY_FRONTEND_BACKEND', 0);
define('SEO42_NO_DOUBLE_CONTENT_REDIRECT_AVAILABILITY_FRONTEND', 1);
define('SEO42_AUTO_REDIRECT_NONE', 0);
define('SEO42_AUTO_REDIRECT_ARTICLE_ID', 1);
define('SEO42_AUTO_REDIRECT_URL_REWRITE', 2);
define('SEO42_AUTO_REDIRECT_URL_REWRITE_R3', 3);
// default settings (user settings are saved in data dir!)
$REX['ADDON']['seo42']['settings'] = array('rewriter' => true, 'url_ending' => '.html', 'hide_langslug' => 0, 'homeurl' => 2, 'homelang' => 0, 'no_double_content_redirects' => SEO42_NO_DOUBLE_CONTENT_REDIRECT_ONE_DOMAIN_ONLY, 'no_double_content_redirects_availability' => SEO42_NO_DOUBLE_CONTENT_REDIRECT_AVAILABILITY_FRONTEND, 'auto_redirects' => SEO42_AUTO_REDIRECT_NONE, 'smart_redirects' => true, 'sync_redirects' => false, 'sync_redirects_only_online' => false, 'redirects_allow_regex' => false, 'redirects_max_age' => 0, 'css_dir' => '/resources/css/', 'js_dir' => '/resources/js/', 'images_dir' => '/resources/images/', 'icons_dir' => '/resources/icons/', 'seo_friendly_image_manager_urls' => true, 'full_urls' => false, 'allow_article_id' => false, 'ignore_root_cats' => false, 'url_whitespace_replace' => '-', 'url_start' => '/', 'url_start_subdir' => './', 'remove_root_cats_for_categories' => array(), 'no_url_for_categories' => array(), 'include_query_params' => true, 'ignore_query_params' => array(), 'force_download_for_filetypes' => array(), 'send_header_x_ua_compatible' => true, 'fix_image_manager_cache_control_header' => false, 'static_sitemap_priority' => true, 'no_robots_txt_auto_disallow' => true, 'robots' => '', 'google_site_verification_filename' => '', 'robots_follow_flag' => 'follow', 'robots_archive_flag' => 'noarchive', 'title_delimiter' => '-', 'seopage' => true, 'title_preview' => true, 'no_prefix_checkbox' => false, 'custom_canonical_url' => false, 'noindex_checkbox' => false, 'urlpage' => true, 'all_url_types' => true, 'pagerank_checker' => true, 'redirects' => true, 'redirects_compact_view' => false, 'one_page_mode' => false, 'pagerank_checker_unlock' => false, 'global_special_chars' => '', 'global_special_chars_rewrite' => '', 'urlencode_whitespace_replace' => '_', 'urlencode_lowercase' => false, 'lang' => array(0 => array('code' => 'de', 'original_name' => 'deutsch', 'rewrite_mode' => SEO42_REWRITEMODE_SPECIAL_CHARS, 'special_chars' => 'Ä|ä|Ö|ö|Ü|ü|ß|&', 'special_chars_rewrite' => 'Ae|ae|Oe|oe|Ue|ue|ss|und', 'inherit_from_clang' => 0)));
// overwrite default settings with user settings
seo42_utils::includeSettingsFile();
// include cached redirects
seo42_utils::includeRedirectsFile();
// pre init seo42 vars
seo42::init();
// fix for iis webserver: set request uri manually if not available
seo42_utils::requestUriFix();
// do redirects
seo42_utils::noDoubleContentRedirect();
if (!$REX['REDAXO']) {
    seo42_utils::redirect();
}
// check for expired redirects
if (seo42_utils::redirectsDoExpire()) {
    seo42_utils::checkExpiredRedirects();
}
// init
if (!$REX['SETUP']) {
    // auto mod rewrite, but not for redaxo system page
    if ($REX['REDAXO'] && rex_request('page') == 'specials') {
コード例 #7
0
ファイル: output.php プロジェクト: darwin26/magnific_popup
     $description = '';
 }
 // get media dir
 if (isset($REX['MEDIA_DIR'])) {
     $mediaDir = $REX['MEDIA_DIR'];
 } else {
     $mediaDir = 'files';
 }
 // generate image manager url
 if (method_exists('seo42', 'getImageManagerFile')) {
     $imageManagerUrl = seo42::getImageManagerFile($imageFile, $imageType);
     $imageUrl = seo42::getMediaDir() . $imageFile;
 } elseif (method_exists('seo42', 'getImageManagerUrl')) {
     // compat
     $imageManagerUrl = seo42::getImageManagerUrl($imageFile, $imageType);
     $imageUrl = seo42::getMediaDir() . $imageFile;
 } else {
     $imageUrl = $REX['HTDOCS_PATH'] . $mediaDir . '/' . $imageFile;
     if ($REX['REDAXO']) {
         $imageManagerUrl = $REX['HTDOCS_PATH'] . 'redaxo/index.php?rex_img_type=' . $imageType . '&amp;rex_img_file=' . $imageFile;
     } else {
         $imageManagerUrl = $REX['HTDOCS_PATH'] . 'index.php?rex_img_type=' . $imageType . '&amp;rex_img_file=' . $imageFile;
     }
 }
 // get dimensions of image manager image
 $resizedFile = $REX['INCLUDE_PATH'] . '/generated/files/image_manager__' . $imageType . '_' . $imageFile;
 $imageSize = @getimagesize($resizedFile);
 if ($imageSize != false) {
     $imageDimensions = ' width="' . $imageSize[0] . '" height="' . $imageSize[1] . '"';
 } else {
     $imageDimensions = '';
コード例 #8
0
 protected function _getNavigation($categoryId)
 {
     global $REX;
     static $depth = 0;
     $return = '';
     $listIdAttribute = '';
     $listClassAttribute = '';
     $listClasses = '';
     if ($categoryId < 0) {
         return '';
     } elseif ($categoryId < 1) {
         $cats = OOCategory::getRootCategories($this->ignoreOfflines);
     } else {
         $cats = OOCategory::getChildrenById($categoryId, $this->ignoreOfflines);
     }
     if (count($cats) > 0) {
         if (isset($this->listId[$depth])) {
             $listIdAttribute = ' id="' . $this->listId[$depth] . '"';
         }
         if (isset($this->listClass[$depth])) {
             $listClasses .= ' ' . $this->listClass[$depth];
         }
         if ($listClasses != '') {
             $listClassAttribute = ' class="' . trim($listClasses) . '"';
         }
         $return .= '<ul' . $listIdAttribute . $listClassAttribute . '>';
     }
     foreach ($cats as $cat) {
         if ($this->_checkCallbacks($cat, $depth)) {
             $cssClasses = '';
             $idAttribute = '';
             // default li class
             if ($this->listItemClass != '') {
                 $cssClasses .= ' ' . $this->listItemClass;
             }
             // li class
             if (is_array($this->listItemClassFromCategoryId) && isset($this->listItemClassFromCategoryId[$cat->getId()])) {
                 $cssClasses .= ' ' . $this->listItemClassFromCategoryId[$cat->getId()];
             }
             if ($this->listItemClassFromMetaField != '' && $cat->getValue($this->listItemClassFromMetaField) != '') {
                 $cssClasses .= ' ' . $cat->getValue($this->listItemClassFromMetaField);
             }
             // li id
             if (is_array($this->listItemIdFromCategoryId) && isset($this->listItemIdFromCategoryId[$cat->getId()])) {
                 $idAttribute = ' id="' . $this->listItemIdFromCategoryId[$cat->getId()] . '"';
             } elseif ($this->listItemIdFromMetaField != '' && $cat->getValue($this->listItemIdFromMetaField) != '') {
                 $idAttribute = ' id="' . $cat->getValue($this->listItemIdFromMetaField) . '"';
             }
             // selected class
             if ($cat->getId() == $this->current_category_id) {
                 // active menuitem
                 $cssClasses .= ' ' . $this->activeClass;
             } elseif (in_array($cat->getId(), $this->path)) {
                 // current menuitem
                 $cssClasses .= ' ' . $this->selectedClass;
             } else {
                 // do nothing
             }
             $trimmedCssClasses = trim($cssClasses);
             // build class attribute
             if ($trimmedCssClasses != '') {
                 $classAttribute = ' class="' . $trimmedCssClasses . '"';
             } else {
                 $classAttribute = '';
             }
             if ($this->hideWebsiteStartArticle && $cat->getId() == $REX['START_ARTICLE_ID'] || in_array($cat->getId(), $this->hideIds)) {
                 // do nothing
             } else {
                 $depth++;
                 $urlType = 0;
                 // default
                 $return .= '<li' . $idAttribute . $classAttribute . '>';
                 if ($this->customLinkFunction != '') {
                     $defaultLink = call_user_func($this->customLinkFunction, $cat, $depth);
                 } else {
                     $defaultLink = '<a href="' . $cat->getUrl() . '">' . htmlspecialchars($cat->getName()) . '</a>';
                 }
                 if (!class_exists('seo42')) {
                     // normal behaviour
                     $return .= $defaultLink;
                 } else {
                     // only with seo42 2.0.0+
                     $urlData = seo42::getCustomUrlData($cat);
                     // check if default lang has url clone option (but only if current categoy has no url data set)
                     if (count($REX['CLANG']) > 1 && !isset($urlData['url_type'])) {
                         $defaultLangCat = OOCategory::getCategoryById($cat->getId(), $REX['START_CLANG_ID']);
                         $urlDataDefaultLang = seo42::getCustomUrlData($defaultLangCat);
                         if (isset($urlDataDefaultLang['url_clone']) && $urlDataDefaultLang['url_clone']) {
                             // clone url data from default language to current language
                             $urlData = $urlDataDefaultLang;
                         }
                     }
                     if (isset($urlData['url_type'])) {
                         switch ($urlData['url_type']) {
                             case 5:
                                 // SEO42_URL_TYPE_NONE
                                 $return .= htmlspecialchars($cat->getName());
                                 break;
                             case 4:
                                 // SEO42_URL_TYPE_LANGSWITCH
                                 $newClangId = $urlData['clang_id'];
                                 $newArticleId = $REX['ARTICLE_ID'];
                                 $catNewLang = OOCategory::getCategoryById($newArticleId, $newClangId);
                                 // if category that should be switched is not online, switch to start article of website
                                 if (OOCategory::isValid($catNewLang) && !$catNewLang->isOnline()) {
                                     $newArticleId = $REX['START_ARTICLE_ID'];
                                 }
                                 // select li that is current language
                                 if ($REX['CUR_CLANG'] == $newClangId) {
                                     $return = substr($return, 0, strlen($return) - strlen('<li>'));
                                     $return .= '<li class="' . $this->selectedClass . '">';
                                 }
                                 $return .= '<a href="' . rex_getUrl($newArticleId, $newClangId) . '">' . htmlspecialchars($cat->getName()) . '</a>';
                                 break;
                             case 8:
                                 // SEO42_URL_TYPE_CALL_FUNC
                                 $return .= call_user_func($urlData['func'], $cat);
                                 break;
                             default:
                                 $return .= $defaultLink;
                                 break;
                         }
                     } else {
                         $return .= $defaultLink;
                     }
                 }
                 if (($this->showAll || $cat->getId() == $this->current_category_id || in_array($cat->getId(), $this->path)) && ($this->levelCount > $depth || $this->levelCount < 0)) {
                     $return .= $this->_getNavigation($cat->getId());
                 }
                 $depth--;
                 $return .= '</li>';
             }
         }
     }
     if (count($cats) > 0) {
         $return .= '</ul>';
     }
     return $return;
 }
コード例 #9
0
 /**
  * INSERT SITEMAP LINK INTO ROBOTS.TXT
  *
  * @return  (string) robots.txt
  */
 public function addSitemapLink()
 {
     $this->robots_txt = rtrim($this->robots_txt, "\r\n");
     $this->robots_txt .= "\r\n" . PHP_EOL . 'Sitemap: ' . seo42::getBaseUrl() . 'sitemap.xml';
 }
コード例 #10
0
 protected static function prepareDir($dir)
 {
     return seo42::getUrlStart() . trim($dir, './') . '/';
 }
コード例 #11
0
 /**
  * REDIRECT()
  *
  * redirect request
  * @param $redirect   (array) params passed through from EP
  */
 protected function redirect($redirect)
 {
     global $SEO42_IDS;
     $base = seo42::getServerUrl();
     $status = isset($redirect['status']) ? $redirect['status'] : 200;
     $location = $base . $SEO42_IDS[$redirect['id']][$redirect['clang']]['url'];
     while (ob_get_level()) {
         ob_end_clean();
     }
     if ($status == 301) {
         header('HTTP/1.1 301 Moved Permanently');
     } else {
         header('HTTP/1.1 ' . $status);
     }
     header('Location:' . $location);
     exit;
 }
コード例 #12
0
ファイル: settings.inc.php プロジェクト: omphteliba/seo42
?>
</textarea>
            </p>
          </div>

		  <div class="rex-form-row">
            <p class="rex-form-col-a rex-form-select">
              <label for="robots-txt"><?php 
echo $I18N->msg('seo42_settings_robots_link');
?>
</label>
              <span class="rex-form-read" id="robots-txt"><a href="<?php 
echo seo42::getBaseUrl();
?>
robots.txt" target="_blank"><?php 
echo seo42::getBaseUrl();
?>
robots.txt</a></span>
            </p>
          </div>

        </div>
      </fieldset>

      <fieldset class="rex-form-col-1">
        <legend><?php 
echo $I18N->msg('seo42_settings_google_site_verification_section');
?>
</legend>
        <div class="rex-form-wrapper slide">
コード例 #13
0
 print '</div>';
 print '</div>';
 print '</div>';
 print '</div>';
 // Stellendaten
 print '<div class="large-12 columns" data-match-height>';
 print '<div id="timeline" class="showbiz-container">';
 print '<div class="showbiz" data-left="#showbiz_left_2" data-right="#showbiz_right_2" data-play="#showbiz_play_2" id="sbiz5011">';
 print '<div class="overflowholder">';
 print '<ul>';
 foreach ($stellen as $stelle) {
     print '<li class="sb-light-skin">';
     print '<article class="box-grey stimmen" data-height-watch>';
     if ($stelle->bild != "") {
         print '<a href="' . $stelle->getUrl($REX['CUR_CLANG']) . '">';
         print '<img src="' . seo42::getImageManagerFile($stelle->bild, '340x132') . '" alt="' . $stelle->bezeichnung . '">';
         print '</a>';
     }
     print '<h1>';
     print '<a href="' . $stelle->getUrl($REX['CUR_CLANG']) . '">' . strtoupper($stelle->bezeichnung) . '</a>';
     print '</h1>';
     print '<h2>';
     if ($stelle->ort != "") {
         print '###raum### ' . $stelle->ort . ' / ';
     }
     print '###referenznummer### ' . $stelle->interne_nummer . '</h2>';
     print '</article>';
     print '</li>';
 }
 print '</ul>';
 print '<div class="sbclear"></div>';
コード例 #14
0
ファイル: class.seo42.inc.php プロジェクト: ReggaePanda/seo42
 public static function setNavigationClass($class)
 {
     self::$navigationClass = $class;
 }
コード例 #15
0
ファイル: urlpage.inc.php プロジェクト: omphteliba/seo42
?>
 || $(this).val() == <?php 
echo SEO42_URL_TYPE_LANGSWITCH;
?>
) {
			$('#clone-row').hide();
		} else {
			$('#clone-row').show();
		}
	});

	<?php 
if ($dataUpdated) {
    ?>
jQuery('.rex-navi-content li:last-child a').attr('href', '<?php 
    echo seo42::getFullUrl();
    ?>
');<?php 
}
?>

	<?php 
if (!$doDataUpdate) {
    ?>
$('#url_type').val(<?php 
    echo rex_request('url_type', 'int');
    ?>
); $('#url_type').change();<?php 
}
?>
});
コード例 #16
0
 public static function getImagesHTML()
 {
     global $REX;
     $return = [];
     /**
      * prepare images from MetaInfo
      */
     if (self::$curArticle->getValue('art_open_graph_images')) {
         $images = explode(',', self::$curArticle->getValue('art_open_graph_images'));
         foreach ($images as $image) {
             $ogImage = new Image();
             $image = \OOMedia::getMediaByFileName($image);
             if (false && \rex_addon::isActivated('seo42')) {
                 $ogImage->setUrl(\seo42::getMediaUrl($image));
             } else {
                 $ogImage->setUrl($REX['SERVER'] . $REX['MEDIA_DIR'] . '/' . $image->getFileName());
             }
             $ogImage->setType($image->getType());
             $ogImage->setWidth($image->getWidth());
             $ogImage->setHeigt($image->getHeight());
             self::addImage($ogImage);
         }
     }
     /** @var Image $image */
     foreach (self::$images as $image) {
         $return[] = '<meta property="og:image" content="' . $image->getUrl() . '">';
         if ($image->getSecureUrl() || $REX['ADDON']['open_graph']['settings']['https']) {
             if (!$image->getSecureUrl()) {
                 if (strpos($image->getUrl(), $REX['SERVER']) == 0) {
                     $image->setSecureUrl(str_replace('http://', 'https://', $image->getUrl()));
                 }
             }
             if ($image->getSecureUrl()) {
                 $return[] = '<meta property="og:image:secure_url" content="' . $image->getSecureUrl() . '">';
             }
         }
         if ($image->getWidth()) {
             $return[] = '<meta property="og:image:width" content="' . $image->getWidth() . '">';
         }
         if ($image->getHeigt()) {
             $return[] = '<meta property="og:image:height" content="' . $image->getHeigt() . '">';
         }
         if ($image->getType()) {
             $return[] = '<meta property="og:image:type" content="' . $image->getType() . '">';
         }
     }
     return implode("\n\t", $return) . "\n\t";
 }
コード例 #17
0
ファイル: seopage.inc.php プロジェクト: ReggaePanda/seo42
	var titlePrefix = '<?php 
echo str_replace("'", "&#039;", seo42::getWebsiteName());
?>
';
	var articleName = '<?php 
echo str_replace("'", "&#039;", seo42::getArticleName());
?>
';
	var customTitle = jQuery('#seo_title').val();
	var titleDelimiter = '<?php 
echo seo42::getTitleDelimiter();
?>
';
	var hasPrefix = !jQuery('#prefix-check').is(':checked');
	var isStartPage = <?php 
if (seo42::isStartArticle()) {
    echo 'true';
} else {
    echo 'false';
}
?>
;
	var curTitle = '';
	var curTitlePart = '';

	if (customTitle !== '') {
		curTitlePart = customTitle;
	} else {
		curTitlePart = articleName;
	}
コード例 #18
0
		.footer-box a, .footer-box a:hover {
			color: white;
		}

		a.white, a.white:hover {
			color: white;
		}
	</style>
</head>

<body>
	<header>
		<center>
			<?php 
print '<img class="logo" src="' . seo42::getMediaFile("dks-logo-gr.png") . '" alt="Dieter-Kaltenbach-Stiftung">';
?>
			<p class="onlinelink">Wenn dieser Newsletter nicht korrekt angezeigt wird, klicken Sie bitte
				<a href="+++NEWSLETTERLINK+++">hier</a>.</p>
		</center>
	</header>
	<br clear="all">
	<section class="section">
		<div class="container">
			<div class="row" data-match-height>
				REX_ARTICLE[]
			</div>
		</div>
	</section>
	<br clear="all">
	<footer data-match-height>
コード例 #19
0
ファイル: controller.inc.php プロジェクト: omphteliba/seo42
 case 'download':
     error_reporting(0);
     @ini_set('display_errors', 0);
     if (isset($REX['ADDON']['seo42']['settings']['force_download_for_filetypes']) && is_array($REX['ADDON']['seo42']['settings']['force_download_for_filetypes']) && count($REX['ADDON']['seo42']['settings']['force_download_for_filetypes']) > 0 && isset($_GET["file"])) {
         $file = strtolower(preg_replace("/[^a-zA-Z0-9.\\-\$\\+]/", "_", rex_get('file', 'string')));
         $file = urlencode(basename($file));
         $fileWithPath = realpath('./' . $REX['MEDIA_DIR'] . '/' . $file);
         $pathInfo = pathinfo($fileWithPath);
         if (isset($pathInfo['extension']) && in_array($pathInfo['extension'], $REX['ADDON']['seo42']['settings']['force_download_for_filetypes']) && file_exists($fileWithPath)) {
             header('Content-Description: File Transfer');
             header('Content-Type: application/octet-stream');
             header('Content-Disposition: attachment; filename=' . $file);
             header('Expires: 0');
             header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
             header('Pragma: public');
             header('Link: <' . seo42::getServerUrl() . ltrim(seo42::getMediaFile($file), "./") . '>; rel="canonical"');
             header('Content-Length: ' . filesize($fileWithPath));
             ob_clean();
             flush();
             readfile($fileWithPath);
             exit;
         }
     }
     break;
 case 'googlesiteverification':
     $googleSiteVerificationFile = strtolower(preg_replace("/[^a-zA-Z0-9.\\-\$\\+]/", "_", trim(trim($REX['ADDON']['seo42']['settings']['google_site_verification_filename']), '/')));
     $requestedFile = strtolower(preg_replace("/[^a-zA-Z0-9.\\-\$\\+]/", "_", trim($_SERVER['REQUEST_URI'], '/')));
     if ($googleSiteVerificationFile != '' && $requestedFile == $googleSiteVerificationFile) {
         ob_clean();
         flush();
         echo 'google-site-verification: ' . $googleSiteVerificationFile;
コード例 #20
0
ファイル: debug.inc.php プロジェクト: ReggaePanda/seo42
<?php

$REX['REDAXO'] = false;
$REX['ADDON']['seo42']['settings']['include_query_params'] = false;
$debugOut = seo42::getDebugInfo($REX['START_ARTICLE_ID']);
$REX['REDAXO'] = true;
$REX['ADDON']['seo42']['settings']['include_query_params'] = true;
if ($debugOut) {
    echo $debugOut;
} else {
    echo '<strong>' . $I18N->msg('seo42_help_debug_article_wrong') . ' ' . $REX['START_ARTICLE_ID'] . '</strong>';
}
コード例 #21
0
 public static function noDoubleContentRedirect()
 {
     global $REX;
     if ($REX['ADDON']['seo42']['settings']['no_double_content_redirects'] == SEO42_NO_DOUBLE_CONTENT_REDIRECT_NONE) {
         // do nothing
         return;
     } elseif ($REX['ADDON']['seo42']['settings']['no_double_content_redirects_availability'] == SEO42_NO_DOUBLE_CONTENT_REDIRECT_AVAILABILITY_FRONTEND && $REX['REDAXO']) {
         // do nothing
         return;
     } elseif (isset($REX['SETUP']) && $REX['SETUP']) {
         // do nothing
         return;
     } else {
         // todo: here now seo42 methods can be used!
         $urlParts = parse_url($REX['SERVER']);
         if (isset($urlParts['scheme'])) {
             $protocol = $urlParts['scheme'];
         } else {
             $protocol = 'http';
         }
         if (isset($urlParts['host'])) {
             $server = $urlParts['host'];
         } else {
             $server = $REX['SERVER'];
         }
         $location = '';
         $serverHost = self::getServerHost();
         $requestUri = $_SERVER['REQUEST_URI'];
         if (self::isHttps()) {
             $curProtocol = 'https';
         } else {
             $curProtocol = 'http';
         }
         // check for possible protocol only redirect
         if ($curProtocol != $protocol) {
             $location = $protocol . '://' . $serverHost . $requestUri;
         }
         switch ($REX['ADDON']['seo42']['settings']['no_double_content_redirects']) {
             case SEO42_NO_DOUBLE_CONTENT_REDIRECT_ONE_DOMAIN_ONLY:
                 // one domain only (when website manager ist installed this redirect is not allowed)
                 if ($serverHost != $server) {
                     // don't redirect if server url is empty, or default value or not full url
                     if (self::isWebsiteUrlValid(seo42::getServerUrl())) {
                         $location = $protocol . '://' . $server . $requestUri;
                     }
                 }
                 break;
             case SEO42_NO_DOUBLE_CONTENT_REDIRECT_NON_WWW_TO_WWW:
                 // non-www to www
                 if (preg_match('/^[^.]+\\.[^.]+$/', $serverHost, $hits)) {
                     $location = $protocol . '://www.' . $hits[0] . $requestUri;
                 }
                 break;
             case SEO42_NO_DOUBLE_CONTENT_REDIRECT_WWW_TO_NON_WWW:
                 // www to non-www
                 if (preg_match('/^www\\.(.*)$/', $serverHost, $hits)) {
                     $location = $protocol . '://' . substr($hits[0], 4) . $requestUri;
                 }
                 break;
             case SEO42_NO_DOUBLE_CONTENT_REDIRECT_ONLY_HTTPS:
                 // https only
                 $urlParts = parse_url($serverHost);
                 if ($curProtocol == 'http') {
                     $location = 'https://' . $serverHost . $requestUri;
                 }
                 break;
         }
         if ($location != '') {
             header('HTTP/1.1 301 Moved Permanently');
             header('Location: ' . $location);
             exit;
         }
     }
 }
コード例 #22
0
<link rel="stylesheet" href="<?php echo seo42::getCSSFile("http://fonts.googleapis.com/css?family=Fjalla+One"); ?>" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php echo seo42::getResourceFile("resources/mediaelement/mediaelementplayer.css"); ?>" type="text/css" media="screen" />

<link rel="shortcut icon" href="<?php echo seo42::getFavIconFile("favicon.ico"); ?>" />

<script type="text/javascript" src="<?php echo seo42::getCombinedJSFile("combined.js", array("jquery.magnific-popup.min.js", "jquery.nivo-slider.min.js")); ?>"></script>
<script type="text/javascript" src="<?php echo seo42::getJSFile("http://codeorigin.jquery.com/jquery-2.0.3.min.js"); ?>"></script>
<script type="text/javascript" src="<?php echo seo42::getResourceFile("resources/mediaelement/mediaelement-and-player.min.js"); ?>"></script>
<script type="text/javascript" src="<?php echo seo42::getJSFile("init.js"); ?>"></script>
<script type="text/javascript"><?php echo seo42::getJSCodeFromTemplate(5); ?></script>

<img src="<?php echo seo42::getImageFile("logo.png"); ?>" />
';
$codeExample3 = '<?php
echo seo42::getImageManagerFile("image.png", "rex_mediapool_detail"); 
// --> ' . seo42::getUrlStart() . seo42::imageTypesDir . '/rex_mediapool_detail/image.png
?>';
$codeExample4 = '<!DOCTYPE html>
<html lang="<?php echo seo42::getLangCode(); ?>">';
$codeExample5 = '<title><?php echo seo42::getTitle(rex_string_table::getString("website_name")); ?></title>';
$codeExample5a = '<?php
echo seo42::getUrlString("The Hitchhiker\'s Guide to the Galaxy!");
// --> the-hitchhikers-guide-to-the-galaxy
?>';
$codeExample7 = '<?php
// --> ' . strtoupper($I18N->msg('seo42_help_codeexamples_ex7_comment1')) . '
class seo42_ex extends seo42 {
	public static function getTitle($websiteName = "") {
		if ($websiteName == "") {
			// use default website name if user did not set different one
			$websiteName = self::getWebsiteName();
コード例 #23
0
 /**
  * BUILD SINGLE XML LOC FRAGMENT
  *
  * @param $loc        (string) full article url  [including lang]
  * @param $lastmod    (string) article last modified date  [UNIX date]
  * @param $changefreq (string) change frequency  [never|yearly|monthly|weekly|daily|hourly|always]
  * @param $priority   (float)  priority  [maximum: 1.0]
  *
  * @return            (string) xml location fragment
  */
 private function xml_loc_fragment($loc, $lastmod, $changefreq, $priority)
 {
     $xml_loc = "\t" . '<url>' . PHP_EOL . "\t\t" . '<loc>' . seo42::getServerUrl() . seo42::trimUrl($loc) . '</loc>' . PHP_EOL . "\t\t" . '<lastmod>' . $lastmod . '</lastmod>' . PHP_EOL . "\t\t" . '<changefreq>' . $changefreq . '</changefreq>' . PHP_EOL . "\t\t" . '<priority>' . number_format($priority, 1, ".", "") . '</priority>' . PHP_EOL . "\t" . '</url>' . PHP_EOL;
     return $xml_loc;
 }
コード例 #24
0
ファイル: class.nav42.inc.php プロジェクト: omphteliba/seo42
 protected function _getLangNavigation()
 {
     global $REX;
     // ul id
     if ($this->langUlId == '') {
         $ulIdAttribute = '';
     } else {
         $ulIdAttribute = ' id="' . $this->langUlId . '"';
     }
     $out = '<ul' . $ulIdAttribute . '>';
     foreach ($REX['CLANG'] as $clangId => $clangName) {
         $article = OOArticle::getArticleById($REX['ARTICLE_ID'], $clangId);
         // new article id
         if (OOArticle::isValid($article) && $article->isOnline()) {
             $newArticleId = $article->getId();
             $articleStatus = true;
         } else {
             $newArticleId = $REX['START_ARTICLE_ID'];
             $articleStatus = false;
         }
         if (!$articleStatus && $this->langHideLiIfOfflineArticle) {
             // do nothing
         } else {
             $langCode = '';
             $originalName = '';
             $langSlug = '';
             if (class_exists('seo42')) {
                 $langCode = seo42::getLangCode($clangId);
                 $originalName = seo42::getOriginalLangName($clangId);
                 $langSlug = seo42::getLangUrlSlug($clangId);
             }
             if ($langCode == '') {
                 $langCode = $clangName;
             }
             if ($originalName == '') {
                 $originalName = $clangName;
             }
             if ($langSlug == '') {
                 $langSlug = $clangName;
             }
             // link text
             if ($this->langUseLangCodeAsLinkText) {
                 $linkText = $langCode;
             } else {
                 $linkText = $originalName;
             }
             if ($this->langUpperCaseLinkText) {
                 $linkText = strtoupper($linkText);
             }
             // li attribute
             if ($this->langShowLiIds) {
                 $liIdAttribute = ' id="' . $langSlug . '"';
             } else {
                 $liIdAttribute = '';
             }
             // class attribute
             if ($REX['CUR_CLANG'] == $clangId) {
                 $liClassAttribute = ' class="' . $this->langSelectedClass . '"';
             } else {
                 $liClassAttribute = '';
             }
             // li out
             $out .= '<li' . $liIdAttribute . $liClassAttribute . '><a href="' . rex_getUrl($newArticleId, $clangId) . '">' . $linkText . '</a></li>';
         }
     }
     $out .= '</ul>';
     return $out;
 }
コード例 #25
0
ファイル: setup.inc.php プロジェクト: omphteliba/seo42
")) {
			e.preventDefault();
		}
	});
	<?php 
}
?>

	jQuery('#modify_rewritebase').click(function(e) {
		if (!jQuery('#modify_rewritebase').is(':checked') && !rewriteBaseMsgShown) {
			rewriteBaseMsgShown = true;
			alert("<?php 
echo $I18N->msg('seo42_setup_rewritebase_alert');
?>
\r\n\r\nRewriteBase /<?php 
echo seo42::getServerSubDir();
?>
");
		}
	});

	jQuery('#directory_listing').click(function(e) {
		if (jQuery('#directory_listing').is(':checked')) {
			jQuery('#directory_listing_hint').css('display', 'inline-block');
		} else {
			jQuery('#directory_listing_hint').hide();
		}
	});
});
</script>