PageRenderTime 55ms CodeModel.GetById 25ms RepoModel.GetById 1ms app.codeStats 0ms

/application/views/favorite-articles.php

https://gitlab.com/fcupen/PHP
PHP | 479 lines | 276 code | 76 blank | 127 comment | 0 complexity | 9e08f2c0ccc51ca0559559d038b811b4 MD5 | raw file
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title><?=$pages->title?></title>
  6. <?php include('style.php');?>
  7. <style type="text/css">
  8. #slide #author #alg_profile #profile #text_profile #articlesl #titl{
  9. font-size:20px;
  10. font-weight:bolder;
  11. padding-bottom:25px;
  12. }
  13. #slide #author #alg_profile #profile #text_profile #data #nam{
  14. font-size:20px;
  15. font-weight:bolder;
  16. padding-bottom:10px;
  17. }
  18. #slide #author #alg_profile #profile #text_profile #data {
  19. padding-left: 15px;
  20. }
  21. #slide #author #alg_profile #profile #data #nam{
  22. padding-left: 15px;
  23. }
  24. #slide #author #alg_profile #profile {
  25. margin-top:20px;
  26. padding-left:40px;
  27. margin-bottom:30px;
  28. -moz-border-radius: 18px;
  29. -webkit-border-radius: 18px;
  30. border-radius:18px;
  31. background-color:#fff;
  32. background-color:rgba(255,255,255,0.7);
  33. float: left;
  34. height: auto;
  35. width: 800px;
  36. padding-top: 30px;
  37. padding-bottom: 40px;
  38. padding-right:30px;
  39. margin-right: 30px;
  40. margin-left: auto;
  41. }
  42. #slide #author #alg_profile #profile #text_profile {
  43. float: none;
  44. width: 600px;
  45. }
  46. #slide #author #alg_profile #profile #text_profile #articlesl {
  47. /*width: 250px;
  48. height: auto;*/
  49. float: none;
  50. display:block;
  51. }
  52. #slide #author #alg_profile #profile #text_profile #articlesl #row #article #art_data {
  53. float: left;
  54. height: 200px;
  55. max-width:520px;
  56. width: auto;
  57. }
  58. #slide #author #alg_profile #profile #text_profile #articlesl #row {
  59. width: 100%;
  60. padding: 0 0 0 0;
  61. margin:0 0 0 0;
  62. }
  63. #slide #author #alg_profile #profile #text_profile #articlesl {
  64. width: 100%;
  65. }
  66. #slide #author #alg_profile #profile #text_profile {
  67. width: 700px;
  68. padding-top: 10px;
  69. }
  70. #slide #author #alg_profile #profile #text_profile #articlesl #row #article{
  71. float: left;
  72. width: 700px;
  73. padding-bottom: 20px;
  74. margin-bottom: 20px;
  75. }
  76. #slide #author #alg_profile #profile #text_profile #data{
  77. float: left;
  78. width: calc(100% - 270px);
  79. padding-left: 25px;
  80. padding-top: 0px;
  81. height: auto;
  82. vertical-align: top;
  83. }
  84. #slide #author #alg_profile #profile #text_profile #articlesl #titl{
  85. float: none;
  86. width: 100%;
  87. overflow: hidden;
  88. padding-top: 10px;
  89. height: auto;
  90. font-size: 25px;
  91. vertical-align: top;
  92. }
  93. /*
  94. #slide #author #alg_profile #profile #text_profile #img{
  95. float: left;
  96. width: 260px;
  97. }
  98. #slide #author #alg_profile #profile #text_profile{
  99. float: none;
  100. width: 100%;
  101. padding-top: 0px;
  102. }
  103. #slide #author #alg_profile #profile #titlf{
  104. float: none;
  105. width: 100%;
  106. padding: 0 0 0 0;
  107. }
  108. #slide #author #alg_profile #profile #text_profile #data{
  109. float: left;
  110. width: calc(100% - 270px);
  111. padding-left: 25px;
  112. padding-top: 0px;
  113. height: auto;
  114. vertical-align: top;
  115. }
  116. #slide #author #alg_profile #profile #text_profile #articlesl{
  117. float: left;
  118. width: 100px;
  119. padding-left: 25px;
  120. padding-top: 0px;
  121. height: auto;
  122. vertical-align: top;
  123. }
  124. float: none;
  125. font-size:28px;
  126. font-weight:bolder;
  127. width: 100%;
  128. padding-bottom:25px;
  129. */
  130. #slide #author #alg_profile #profile #text_profile #img{
  131. /*background-color: white;*/
  132. width: 160px;
  133. }
  134. #slide #author #alg_profile #profile #text_profile #data{
  135. padding: 0 0 0 0;
  136. margin: 0 0 0 0;
  137. padding-left: 0px;
  138. }
  139. @media screen and (max-width:1000px){
  140. #slide #author #alg_profile {
  141. float: none;
  142. height: auto;
  143. width: 800px;
  144. text-align: center;
  145. margin-right: auto;
  146. margin-left: auto;
  147. }
  148. #slide #author #alg_profile #profile #text_profile #img{
  149. float: none;
  150. text-align: center;
  151. width: 100%;
  152. padding: 0 0 0 0;
  153. /*background-color: white;
  154. */ }
  155. #slide #author #alg_profile #profile #text_profile #data{
  156. float: none;
  157. text-align: center;
  158. width: 100%;
  159. padding: 0 0 0 0;
  160. /*background-color: white;
  161. */ }
  162. #slide #author #alg_profile #profile #text_profile #img img{
  163. padding: 0 0 0 0;
  164. margin-right: auto;
  165. margin-left: auto;
  166. }
  167. #slide #author #alg_profile #profile {
  168. margin-top:20px;
  169. padding-left:30px;
  170. margin-bottom:30px;
  171. width: 100%;
  172. padding-top: 30px;
  173. padding-right:30px;
  174. margin-right: auto;
  175. margin-left: auto;
  176. }
  177. #slide #author #alg_profile #profile #text_profile {
  178. float: none;
  179. width: 100%;
  180. padding: 0 0 0 0;
  181. }
  182. #slide #author #alg_profile #profile #text_profile #articlesl {
  183. /*width: 250px;
  184. height: auto;*/
  185. float: none;
  186. display:block;
  187. width: 100%;
  188. }
  189. #slide #author #alg_profile #profile #text_profile #articlesl #row #article{
  190. width: 650px;
  191. }
  192. #slide #author #alg_profile #profile #text_profile #articlesl #row #article #art_data {
  193. width: 400;
  194. }
  195. /*#slide #author #alg_profile #profile #text_profile #articlesl #row #article #art_data {
  196. float: left;
  197. height: auto;
  198. }
  199. #slide #author #alg_profile #profile #text_profile #articlesl #row #article{
  200. float: left;
  201. width: 500px;
  202. padding-bottom: 20px;
  203. margin-bottom: 0px;
  204. }
  205. #slide #author #alg_profile #profile #text_profile #data{
  206. float: left;
  207. width: 100%;
  208. padding: 0 0 0 0;
  209. height: auto;
  210. vertical-align: top;
  211. margin-right: auto;
  212. margin-left: auto;
  213. }
  214. #slide #author #alg_profile #profile #text_profile #articlesl #titl{
  215. float: none;
  216. width: 100%;
  217. overflow: hidden;
  218. padding-top: 10px;
  219. height: auto;
  220. vertical-align: top;
  221. }
  222. */
  223. }
  224. @media screen and (max-width:800px){
  225. #slide #author #alg_profile #profile #text_profile #articlesl #row #article{
  226. width: 100%;
  227. margin-right: auto;
  228. margin-left: auto;
  229. }
  230. #slide #author #alg_profile #profile #text_profile #articlesl #row #article #art_data {float: none;
  231. width: 100%;
  232. }
  233. #slide #author #alg_profile #profile #text_profile #articlesl #row #article #art_img {float: none;
  234. width: 100%;
  235. }
  236. #slide #author #alg_profile #profile #text_profile #articlesl{padding-left: 0;padding-right: 0; width: 100%;padding-top: 0;}
  237. #slide #author #alg_profile #profile #text_profile{padding-left: 0;padding-right: 0; width: 100%;}
  238. #slide #author #alg_profile #profile #text_profile #articlesl #row #article{padding-left: 0;padding-right: 0; width: 100%;}
  239. #slide #author #alg_profile {
  240. float: none;
  241. height: auto;
  242. width: 600px;
  243. text-align: center;
  244. margin-right: auto;
  245. margin-left: auto;
  246. }
  247. #slide #author #alg_profile #profile {
  248. margin-top:20px;
  249. padding-left:30px;
  250. margin-bottom:30px;
  251. width: 100%;
  252. padding-right:30px;
  253. margin-right: auto;
  254. margin-left: auto;
  255. }
  256. #slide #author #alg_profile #profile #text_profile #articlesl #row #article #art_data {
  257. float: left;
  258. }
  259. #slide #author #alg_profile #profile #text_profile #articlesl #row #article{
  260. /* float: left;
  261. width: 600px;*/
  262. padding-bottom: 20px;
  263. }
  264. }
  265. @media screen and (max-width:600px){
  266. #slide #author #alg_profile {
  267. float: none;
  268. height: auto;
  269. width: 500px;
  270. text-align: center;
  271. margin-right: auto;
  272. margin-left: auto;
  273. }
  274. #slide #author #alg_profile #profile {
  275. margin-top:20px;
  276. padding-left:30px;
  277. margin-bottom:30px;
  278. width: 100%;
  279. padding-top: 30px;
  280. padding-right:30px;
  281. margin-right: auto;
  282. margin-left: auto;
  283. }
  284. #slide #author #alg_profile #profile #text_profile #articlesl #row #article #art_data {
  285. float: none;
  286. height:auto;
  287. margin-right: auto;
  288. margin-left: auto;
  289. }
  290. #slide #author #alg_profile #profile #text_profile #articlesl #row #article #art_img {
  291. float: none;
  292. height: auto;
  293. margin-right: auto;
  294. margin-left: auto;
  295. }
  296. #slide #author #alg_profile #profile #text_profile #articlesl #row #article{
  297. float: left;
  298. width: 100%;
  299. padding-left: 0;
  300. margin-left: 0;
  301. padding-bottom: 20px;
  302. }
  303. }
  304. @media screen and (max-width:500px){
  305. #slide #author #alg_profile {
  306. float: none;
  307. height: auto;
  308. width: 400px;
  309. text-align: center;
  310. margin-right: auto;
  311. margin-left: auto;
  312. }
  313. #slide #author #alg_profile #profile {
  314. margin-top:10px;
  315. padding-left:15px;
  316. margin-bottom:15px;
  317. width: 100%;
  318. padding-top: 15px;
  319. padding-right:15px;
  320. margin-right: auto;
  321. margin-left: auto;
  322. }
  323. }
  324. @media screen and (max-width:400px){
  325. #slide #author #alg_profile {
  326. float: none;
  327. height: auto;
  328. width: 300px;
  329. text-align: center;
  330. margin-right: auto;
  331. margin-left: auto;
  332. }
  333. #slide #author #alg_profile #profile #text_profile #articlesl #row #article #art_img {
  334. width: 300px;
  335. padding: 0 0 0 0;
  336. }
  337. #slide #author #alg_profile #profile #text_profile #articlesl #row #article {
  338. padding: 0 0 0 0;
  339. }
  340. #slide #author #alg_profile #profile #text_profile #articlesl #row {
  341. padding: 0 0 0 0;
  342. }
  343. #slide #author #alg_profile #profile {
  344. padding-left: 0;
  345. padding-right: 0;
  346. }
  347. #slide #author #alg_profile #profile #text_profile #articlesl #row #article #art_img img{
  348. width: 290px;
  349. }
  350. }
  351. </style>
  352. </head>
  353. <body>
  354. <?php include('menu.php');?>
  355. <!-- MENU -->
  356. <div id="slide">
  357. <div id="author">
  358. <div id="link"><div id="text"><a href="https://www.astral-foundations.com/"><font style="color:white;"> Home</font></a> > <strong>Favorite Articles</strong></div></div>
  359. <div id="alg_profile" >
  360. <!-- FAVORITE AUTHOR-->
  361. <div id="profile" >
  362. <div id="titl">
  363. <div style="font-size:29px;
  364. font-weight:bolder;
  365. padding-bottom:25px;"> FAVORITE ARTICLES</div>
  366. </div>
  367. <?php foreach($fav as $article) : ?>
  368. <div id="text_profile">
  369. <div id="img">
  370. <div style="">
  371. <a href="<?=base_url().'users/view/'.$article->article.'/'?>">
  372. <img src="<?=base_url().'public/articles/'.$article->cover?>" width="160" height="160" />
  373. </a></div>
  374. </div>
  375. <div id="data">
  376. <div style=" font-size:22px; font-weight:bold;" id="nam"><a href="<?=base_url().'users/view/'.$article->article.'/'?>"><stong><?=$article->title?></stong></a></div>
  377. <div id="nam"><a href="<?=base_url().'users/profileauthor/'.$article->author.'/'?>"><?=$article->username?></a></div>
  378. <div style="text-align: center; width:100%; padding-top: 20px;"><a href="<?=base_url().'users/view/'.$article->article.'/'?>"> VIEW ARTICLE</a></div>
  379. </div>
  380. <div id="data_2">
  381. </div>
  382. </div><?php endforeach; ?>
  383. </div>
  384. <!-- FAVORITE AUTHOR-->
  385. <div id="side_bar">
  386. <div style="background-color: #000;border-top-left-radius: 18px;border-top-right-radius: 18px;">
  387. <div id="title" >RELATED LINKS</div></div>
  388. <!-- SIDE BAR-->
  389. <?php include('formula/side_menu.php'); ?>
  390. <!-- SIDE BAR-->
  391. </div>
  392. </div>
  393. </div>
  394. </div>
  395. <!-- FOOTER -->
  396. <?php include('footer.php');?>
  397. </body>
  398. </html>