Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Telegram is missing as a social network #1565

Open
Kezii opened this issue Apr 5, 2024 · 1 comment
Open

Telegram is missing as a social network #1565

Kezii opened this issue Apr 5, 2024 · 1 comment

Comments

@Kezii
Copy link

Kezii commented Apr 5, 2024

In the list of possible social network, telegram is not present

@Piehnat
Copy link

Piehnat commented Apr 24, 2024

Which theme? For my Tagg Theme..

The social icons are displayed by the following part in the file index.php in the directory /bl-themes/tagg-1.1/ (line 31):

		<!-- Social Networks -->
		<?php foreach (Theme::socialNetworks() as $key=>$label): ?>
		<li class="menu__item">
			<a class="link link--dark" href="<?php echo $site->{$key}(); ?>" target="_blank">
			<i class="fa fa-<?php echo $key ?>"></i> <?php echo $label ?>
			</a>
		</li>
		<?php endforeach; ?>

You can move the snippet to the following section:

                                           <aside  class="doc__nav">

                                          [...]

                                          </aside>

To display the links in vertical order you can "borrow" the class "js-btn" of the tags and use

                                         <li class="js-btn">

instead of

                                       <li class="menu__item">

The whole template can be like this:

<div class="doc__bg"></div>
<nav class="header">
	<h1 class="logo"><a href="<?php echo $site->url() ?>"><?php echo $site->title() ?></a></h1>
	<ul class="menu">
		<div class="menu__item toggle"><span></span></div>
	</ul>
</nav>

<div class="wrapper">
	<aside class="doc__nav">
		<ul>
		<?php
			foreach ($tags->db as $key=>$fields) {
				$active = '';
				if ($WHERE_AM_I=='page') {
					foreach ($page->tags(true) as $tagKey) {
						$active = ($key==$tagKey)?'active':'';
						if ($active) {
							break;
						}
					}
				} elseif ($WHERE_AM_I=='tag') {
					$active = ($url->slug()==$key)?'active':'';
				}

				$html  = '<li class="tags js-btn">';
				$html .= '<a class="tag '.$active.'" href="'.DOMAIN_TAGS.$key.'">';
				$html .= '<i class="fa fa-tag"></i> '.$fields['name'];
				$html .= '</a>';
				$html .= '</li>';
				echo $html;
			}
		?>
		</ul>

        <ul>
		<!-- Social Networks -->
		<?php foreach (Theme::socialNetworks() as $key=>$label): ?>
		<li class="js-btn">
			<a class="link link--dark" href="<?php echo $site->{$key}(); ?>" target="_blank">
			<i class="fa fa-<?php echo $key ?>"></i> <?php echo $label ?>
			</a>
		</li>
		<?php endforeach; ?>
		</ul>

	</aside>

	<?php
		if ($WHERE_AM_I=='page') {
			include(__DIR__.'/page.php');
		} else {
			include(__DIR__.'/home.php');
		}
	?>
</div>

<footer class="footer"><?php echo $site->footer() ?>. Powered by <a href="https://www.bludit.com" target="_blank" class="link link--light">Bludit</a></footer>

<!-- JavaScript -->
<?php
	echo Theme::js('vendors/highlight/highlight.min.js');
	echo Theme::js('vendors/scribbler/scribbler.js');
?>
<script>hljs.initHighlightingOnLoad();</script>

<?php Theme::plugins('siteBodyEnd') ?>

You can add also the HTML link to the page "About" in the section

.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants