Dixon.php
226 lines
| 1 | <?php |
| 2 | |
| 3 | namespace ProfilePress\Core\Themes\Shortcode\Userprofile; |
| 4 | |
| 5 | |
| 6 | use ProfilePress\Core\Themes\Shortcode\ThemeInterface; |
| 7 | |
| 8 | class Dixon implements ThemeInterface |
| 9 | { |
| 10 | public function get_name() |
| 11 | { |
| 12 | return 'Dixon'; |
| 13 | } |
| 14 | |
| 15 | public function get_structure() |
| 16 | { |
| 17 | $asset_url = PPRESS_ASSETS_URL . '/images/dixon-fe-profile'; |
| 18 | |
| 19 | return <<<CODE |
| 20 | <div class="dixon-wraper"> |
| 21 | <div class="dixon-header"> |
| 22 | <div class="dixon-container"> |
| 23 | <div class="dixon-img"> |
| 24 | <div class="dixon-avatar"> |
| 25 | <img src="[profile-avatar-url]" /> |
| 26 | </div> |
| 27 | </div> |
| 28 | <div class="dixon-text"> <span>[profile-username] </span> |
| 29 | <br />Profile</div> |
| 30 | <div class="dixon-icon"> |
| 31 | <ul> |
| 32 | <li> <a href="[profile-cpf key=facebook]"><img src="{$asset_url}/facebook.png" /> </a> |
| 33 | </li> |
| 34 | <li> <a href="[profile-cpf key=twitter]"><img src="{$asset_url}/twitter.png" /> </a> |
| 35 | </li> |
| 36 | <li> <a href="[profile-cpf key=linkedin]"><img src="{$asset_url}/linkedin.png"/> </a> |
| 37 | </li> |
| 38 | </ul> |
| 39 | </div> |
| 40 | </div> |
| 41 | </div> |
| 42 | <div class="dixon-container"> |
| 43 | <div style="text-align: center;"> |
| 44 | <h3> PROFILE DETAILS </h3> |
| 45 | </div> |
| 46 | <div class="dixon-section"> |
| 47 | <div class="dixon-section-name"> |
| 48 | <span>First name</span> |
| 49 | </div> |
| 50 | <div class="dixon-section-address"> |
| 51 | <span>[profile-first-name]</span> |
| 52 | </div> |
| 53 | <div class="dixon-section-name"> |
| 54 | <span>Last name</span> |
| 55 | </div> |
| 56 | <div class="dixon-section-address"> |
| 57 | <span>[profile-last-name]</span> |
| 58 | </div> |
| 59 | <div class="dixon-section-name"> |
| 60 | <span>Nickname</span> |
| 61 | </div> |
| 62 | <div class="dixon-section-address"> |
| 63 | <span>[profile-nickname]</span> |
| 64 | </div> |
| 65 | <div class="dixon-section-name"> |
| 66 | <span>Gender</span> |
| 67 | </div> |
| 68 | <div class="dixon-section-address"> |
| 69 | <span>Male</span> |
| 70 | </div> |
| 71 | <div class="dixon-section-name"> |
| 72 | <span>Website</span> |
| 73 | </div> |
| 74 | <div class="dixon-section-address"> |
| 75 | <span><a href="[profile-website]">[profile-website]</a></span> |
| 76 | </div> |
| 77 | <div class="dixon-section-name"> |
| 78 | <span>Bio</span> |
| 79 | </div> |
| 80 | <div class="dixon-section-address"> |
| 81 | <span>[profile-bio]</span> |
| 82 | </div> |
| 83 | </div> |
| 84 | </div> |
| 85 | </div> |
| 86 | CODE; |
| 87 | |
| 88 | } |
| 89 | |
| 90 | public function get_css() |
| 91 | { |
| 92 | $asset_url = PPRESS_ASSETS_URL . '/images/dixon-fe-profile'; |
| 93 | |
| 94 | return <<<CSS |
| 95 | @import url(https://fonts.googleapis.com/css?family=Lato:300,400,600,700|Raleway:300,400,600,700&display=swap); |
| 96 | |
| 97 | .dixon-wraper { |
| 98 | width: 100%; |
| 99 | max-width: 800px; |
| 100 | background:#ececec; |
| 101 | } |
| 102 | |
| 103 | .dixon-wraper p { |
| 104 | margin: 0 0 5px 0 !important; |
| 105 | padding: 0 !important; |
| 106 | } |
| 107 | |
| 108 | .dixon-section-name { |
| 109 | float:left; |
| 110 | color:#222222; |
| 111 | } |
| 112 | .dixon-section-address { |
| 113 | margin-left:30%; |
| 114 | color: #6b6969; |
| 115 | } |
| 116 | .dixon-container { |
| 117 | margin:auto; |
| 118 | width:100%; |
| 119 | padding-bottom: 10px; |
| 120 | } |
| 121 | .dixon-section-name > span, .dixon-section-address > span { |
| 122 | padding-bottom:20px; |
| 123 | margin:0; |
| 124 | display: block; |
| 125 | } |
| 126 | |
| 127 | .dixon-section-name > a, .dixon-section-address > a { |
| 128 | text-decoration:none; |
| 129 | } |
| 130 | |
| 131 | .dixon-container h3 { |
| 132 | margin:30px 0; |
| 133 | font-family:Lato, sans-serif; |
| 134 | color:#196783; |
| 135 | font-size:28px; |
| 136 | } |
| 137 | .dixon-header { |
| 138 | background:url({$asset_url}/bg.jpg); |
| 139 | width:100%; |
| 140 | height:60%; |
| 141 | border-bottom:3px solid #a7bdc8; |
| 142 | padding-bottom: 5px; |
| 143 | } |
| 144 | .dixon-aside { |
| 145 | margin-top:30px; |
| 146 | } |
| 147 | .dixon-section { |
| 148 | background:#fff; |
| 149 | padding:40px 20px 10px; |
| 150 | border-top:4px solid red; |
| 151 | margin: 0 10px; |
| 152 | } |
| 153 | .dixon-img { |
| 154 | padding-top:40px; |
| 155 | position:relative; |
| 156 | float:left; |
| 157 | width: 50%; |
| 158 | } |
| 159 | .dixon-icon > ul > li img { |
| 160 | box-shadow: none; |
| 161 | } |
| 162 | |
| 163 | .dixon-text { |
| 164 | text-align:center; |
| 165 | font-size:30px; |
| 166 | color:#fff; |
| 167 | padding-top:50px; |
| 168 | line-height:40px; |
| 169 | font-family:Raleway, Sans-serif; |
| 170 | text-transform:uppercase; |
| 171 | } |
| 172 | |
| 173 | |
| 174 | .dixon-icon ul li::before { |
| 175 | content: none; |
| 176 | } |
| 177 | |
| 178 | .dixon-icon li { |
| 179 | display:inline-block; |
| 180 | text-align:center; |
| 181 | } |
| 182 | .dixon-icon { |
| 183 | text-align:center; |
| 184 | margin-top:15px; |
| 185 | } |
| 186 | .dixon-text span { |
| 187 | border-bottom:1px solid #52edc7; |
| 188 | padding-bottom:4px; |
| 189 | } |
| 190 | .dixon-aside img { |
| 191 | width:190px; |
| 192 | margin-top:-30px; |
| 193 | } |
| 194 | .dixon-center-text { |
| 195 | color:#6b6969; |
| 196 | } |
| 197 | .dixon-section-address span a { |
| 198 | color:#24758e; |
| 199 | } |
| 200 | .dixon-light { |
| 201 | margin-left:10px; |
| 202 | } |
| 203 | .dixon-img-left { |
| 204 | margin-left:5px; |
| 205 | } |
| 206 | .dixon-aside-text { |
| 207 | border-bottom: 1px solid #949798; |
| 208 | border-top: 1px solid #949798; |
| 209 | padding:25px 0; |
| 210 | margin-top: 50px; |
| 211 | } |
| 212 | |
| 213 | .dixon-avatar > img { |
| 214 | border: 3px solid #ffffff; |
| 215 | border-radius: 50%; |
| 216 | margin: 10px; |
| 217 | padding: 4px; |
| 218 | width: 70%; |
| 219 | height: auto; |
| 220 | float: left; |
| 221 | } |
| 222 | |
| 223 | CSS; |
| 224 | |
| 225 | } |
| 226 | } |