Commit abbe4916 authored by David Morley's avatar David Morley

usr fa, make services a && or || search

parent 47b5dedb
......@@ -35,6 +35,7 @@ $fullview = false;
<link rel="stylesheet" href="node_modules/ion-rangeslider/css/ion.rangeSlider.skinHTML5.css"/>
<link rel="stylesheet" href="node_modules/featherlight/release/featherlight.min.css"/>
<link rel="stylesheet" href="node_modules/tablesorter/dist/css/theme.bootstrap_4.min.css"/>
<link rel="stylesheet" href="node_modules/@fortawesome/fontawesome-free/css/all.min.css"/>
<meta property="og:url" content="https://<?php echo $_SERVER['HTTP_HOST'] ?>"/>
<meta property="og:title" content="Social Network Pod Finder"/>
<meta property="og:type" content="website"/>
......
......@@ -14,7 +14,9 @@
"popper.js": "^1.14.3",
"tablesorter": "^2.30.7"
},
"devDependencies": {},
"devDependencies": {
"@fortawesome/fontawesome-free": "^5.2.0"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
......
......@@ -75,7 +75,7 @@ $country_code = $_SERVER['HTTP_CF_IPCOUNTRY'] ?? '';
<th class="columnSelector-false" data-priority="5"><div data-toggle="tooltip" title="Pod City, based on IP Geolocation.">City</div></th>
<th class="columnSelector-false" data-priority="5"><div data-toggle="tooltip" title="Pod State, based on IP Geolocation.">State</div></th>
<th class="columnSelector-false filter-select"><div data-toggle="tooltip" title="Pod language detected from their main page text.">Language</div></th>
<th data-priority="3" data-selector-name="All Services"><div data-toggle="tooltip" title="External Social Networks this pod can post to." class="filter-false">Services</div></th>
<th data-placeholder="Try: facebook AND twitter" class="filter-match" data-priority="3" data-selector-name="All Services"><div data-toggle="tooltip" title="External Social Networks this pod can post to." class="filter-false">Services</div></th>
<th class="columnSelector-false filter-select"><div data-toggle="tooltip" title="External post to Facebook.">Facebook</div></th>
<th class="columnSelector-false filter-select"><div data-toggle="tooltip" title="External post to Twitter.">Twitter</div></th>
<th class="columnSelector-false filter-select"><div data-toggle="tooltip" title="External post to Tumblr.">Tumblr</div></th>
......
......@@ -88,21 +88,21 @@ foreach ($pods as $pod) {
($pod['service_xmpp'] ?? false) && $services[] = 'xmpp';
$services_list = [
'facebook' => ['img' => '/images/facebook.png', 'title' => 'Publish to Facebook'],
'twitter' => ['img' => '/images/twitter.png', 'title' => 'Publish to Twitter'],
'tumblr' => ['img' => '/images/tumblr.png', 'title' => 'Publish to Tumblr'],
'wordpress' => ['img' => '/images/wordpress.png', 'title' => 'Publish to WordPress'],
'xmpp' => ['img' => '/images/xmpp.png', 'title' => 'XMPP chat server'],
'appnet' => ['img' => '/images/appnet.png', 'title' => 'Publish to App.net'],
'atom1.0' => ['img' => '/images/atom.png', 'title' => 'Publish to Atom'],
'blogger' => ['img' => '/images/blogger.png', 'title' => 'Publish to Blogger'],
'gnusocial' => ['img' => '/images/gnusocial.png', 'title' => 'Publish to GNUSocial'],
'google' => ['img' => '/images/google.png', 'title' => 'Publish to Google+'],
'libertree' => ['img' => '/images/libertree.png', 'title' => 'Publish to Libertree'],
'linkedin' => ['img' => '/images/linkedin.png', 'title' => 'Publish to LinkedIn'],
'livejournal' => ['img' => '/images/livejournal.png', 'title' => 'Publish to Live Journal'],
'pinterest' => ['img' => '/images/pinterest.png', 'title' => 'Publish to Pinterest'],
'pumpio' => ['img' => '/images/pumpio.png', 'title' => 'Publish to Pump.io'],
'facebook' => ['fa' => 'fab fa-facebook-f', 'title' => 'Publish to Facebook'],
'twitter' => ['fa' => 'fab fa-twitter-t', 'title' => 'Publish to Twitter'],
'tumblr' => ['fa' => 'fab fa-tumblr-t', 'title' => 'Publish to Tumblr'],
'wordpress' => ['fa' => 'fab fa-wordpress-w', 'title' => 'Publish to WordPress'],
'xmpp' => ['fa' => 'fas fa-comments', 'title' => 'XMPP chat server'],
'appnet' => ['fa' => 'fas fa-th', 'title' => 'Publish to App.net'],
'atom1.0' => ['fa' => 'fas fa-rss', 'title' => 'Publish to Atom'],
'blogger' => ['fa' => 'fab fa-blogger-b', 'title' => 'Publish to Blogger'],
'gnusocial' => ['fa' => 'fab fa-grunt', 'title' => 'Publish to GNUSocial'],
'google' => ['fa' => 'fab fa-google', 'title' => 'Publish to Google+'],
'libertree' => ['fa' => 'fas fa-tree', 'title' => 'Publish to Libertree'],
'linkedin' => ['fa' => 'fab fa-linkedin-in', 'title' => 'Publish to LinkedIn'],
'livejournal' => ['fa' => 'fas fa-pencil-alt', 'title' => 'Publish to Live Journal'],
'pinterest' => ['fa' => 'fab fa-pinterest-p', 'title' => 'Publish to Pinterest'],
'pumpio' => ['fa' => 'fas fa-greater-than', 'title' => 'Publish to Pump.io'],
];
echo '<td class="text-truncate">';
......@@ -113,9 +113,10 @@ foreach ($pods as $pod) {
}
printf(
'<div class="smlogo mr-sm-1"><img src="%1$s" data-toggle="tooltip" title="%2$s" alt="%2$s"></div>',
$services_list[$service]['img'],
$services_list[$service]['title']
'<div class="smlogo mr-sm-1"><i class="%1$s" data-toggle="tooltip" title="%2$s"></i><div class="hidden">%3$s</div></div>',
$services_list[$service]['fa'],
$services_list[$service]['title'],
$service
);
}
echo '</td>';
......
......@@ -2,6 +2,10 @@
# yarn lockfile v1
"@fortawesome/fontawesome-free@^5.2.0":
version "5.2.0"
resolved "https://registry.yarnpkg.com/@fortawesome/fontawesome-free/-/fontawesome-free-5.2.0.tgz#50cd9856774351c56c0b1b0db4efe122d7913e58"
bootstrap@^4.1.3:
version "4.1.3"
resolved "https://registry.yarnpkg.com/bootstrap/-/bootstrap-4.1.3.tgz#0eb371af2c8448e8c210411d0cb824a6409a12be"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment